A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: [F9] Bitmap Loading from Library

Threaded View

  1. #4
    crossconscious
    Join Date
    Sep 2005
    Location
    Belgium
    Posts
    1,188
    Okay, I just did some testing, and here's the deal. I imported a bitmap, and set it to export for as, with an auto-generated class called Test.
    If you do var t:Test=new Test(), you get a reference to it, but it extends BitmapData, which isn't a DisplayObject, so you can't just do whatever.addChild(Test). You'll have to create an empty Bitmap, and set it's bitmapData reference to your object. Then you can use that bitmap.

    Seems to work fine.
    Last edited by Fall_X; 07-21-2006 at 04:25 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center