Go Back   kirupaForum > Flash > ActionScript 2 (and Earlier)

Reply
 
Thread Tools Display Modes
Old 02-23-2010, 11:26 AM   #1
monarchgg
Registered User
Bitmap Coloring Book?

Is there way to use bitmap fills instead of solid colors for the Coloring Book
by Zelwyn?

I want to color shapes with bitmap fills. If the user changes his mind, then he could recolor the shape with a new bitmap.

It would be the exact same as the coloring book, except using image bitmap fills.

Anyone have a clue or has stumbled across this on the web?

http://www.kirupa.com/developer/mx20...oringbook2.htm
monarchgg is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?

Old 02-23-2010, 12:11 PM   #2
glosrfc
Registered User
 
glosrfc's Avatar
Location Halley Research Station, Latitude 75°35' S, Longitude 26°39' W, Brunt Ice Shelf, Coats Land, Antarctica

Posts 4,774
You'd probably need to start by making sure all the instances in that tutorial have instance names! Then take a look at the MovieClip.beginBitmapFill() in the Help files. You'll also need to create the bitmaps with the BitmapData class, or import them from your Library with BitmapData.loadBitmap(linkageID).

An online search for beginBitmapFill should find examples of how to use it, like these ones:
http://www.reflektions.com/miniml/te...ink.asp?id=327
http://www.reflektions.com/miniml/te...ink.asp?id=328
http://www.reflektions.com/miniml/te...ink.asp?id=322

__________________
©2006 GlosRFC - Searching 8,168,684,336 brain cells
glosrfc is offline   Reply With Quote
Old 02-23-2010, 02:08 PM   #3
monarchgg
Registered User
Quote:
Originally Posted by glosrfc View Post
You'd probably need to start by making sure all the instances in that tutorial have instance names! Then take a look at the MovieClip.beginBitmapFill() in the Help files. You'll also need to create the bitmaps with the BitmapData class, or import them from your Library with BitmapData.loadBitmap(linkageID).

An online search for beginBitmapFill should find examples of how to use it, like these ones:
http://www.reflektions.com/miniml/te...ink.asp?id=327
http://www.reflektions.com/miniml/te...ink.asp?id=328
http://www.reflektions.com/miniml/te...ink.asp?id=322
I've come across those examples, but I'm not too sure how to call the bitmaps from a shared library. I need it to click a bitmap from a swatch palette on the stage and click a zone to change the "fill bitmap" color.

Any ideas?

Last edited by monarchgg; 02-23-2010 at 02:13 PM..
monarchgg is offline   Reply With Quote
Old 02-23-2010, 03:25 PM   #4
glosrfc
Registered User
 
glosrfc's Avatar
Location Halley Research Station, Latitude 75°35' S, Longitude 26°39' W, Brunt Ice Shelf, Coats Land, Antarctica

Posts 4,774
Import your bitmap, right-click on it in the Library, and give it a linkage ID. Create a movieclip as part of your palette and use loadBitmap as shown in the third link. The other two examples show you how to use beginBitmapFill to fill your 'zone' with the desired bitmap.

__________________
©2006 GlosRFC - Searching 8,168,684,336 brain cells
glosrfc is offline   Reply With Quote
Old 02-23-2010, 05:20 PM   #5
monarchgg
Registered User
Quote:
Originally Posted by glosrfc View Post
Import your bitmap, right-click on it in the Library, and give it a linkage ID. Create a movieclip as part of your palette and use loadBitmap as shown in the third link. The other two examples show you how to use beginBitmapFill to fill your 'zone' with the desired bitmap.
glosrfc thanks for your help. Could you make an example .fla for me? I'm a newbee at flash. You would really help me!

Thanks in advance..
monarchgg is offline   Reply With Quote
Reply

Tags
bitmap, bitmap fills, coloring book, dynamically


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:28 PM.

SHARE:

SUPPORTERS:

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com