|
-
Professional Flash Developer
 Originally Posted by as3newb
That looks like a winner there, but I'm not following how the bitmapdata ends up inside the sprite. Are you by any chance implying that the bitmapinstance for mybitmapdata could be changed on the fly by moving over new bitmapdata to it and it would be reflected inside the sprite without the need for a new beginbitmapfill? (phew...what a mouthfull..)
Pretty much that's how it works because everything in the AS3 swf platform is passed by reference (many not primitives though). If a BitmapData object is a property of a Bitmap object that is inside a sprite (on its display list), by simply changing the reference of the bitmapData inside the Bitmap will change the look of the bitmap ans thus the sprite.
I have to work up some examples of both of these (the above also) that are real world and working, but this is how I have been doing it for years.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|