02-23-2010, 11:26 AM
|
#1
|
|
|
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
|
|
|
02-23-2010, 12:11 PM
|
#2
|

 |
Halley Research Station,
Latitude 75°35' S,
Longitude 26°39' W,
Brunt Ice Shelf,
Coats Land,
Antarctica |
|
 |
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
|
|
|
02-23-2010, 02:08 PM
|
#3
|
|
|
Quote:
Originally Posted by glosrfc
|
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..
|
|
|
02-23-2010, 03:25 PM
|
#4
|

 |
Halley Research Station,
Latitude 75°35' S,
Longitude 26°39' W,
Brunt Ice Shelf,
Coats Land,
Antarctica |
|
 |
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
|
|
|
02-23-2010, 05:20 PM
|
#5
|
|
|
Quote:
Originally Posted by glosrfc
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..
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 11:28 PM.
|
|