Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Getting Bitmap object at runtime

Engaged ,
May 23, 2013 May 23, 2013

When you load an external SWF at runtime and instantiate a symbol that contains a Bitmap object in the .fla file the type of the Bitmap is actually Shape at runtime. Without exporting the object for ActionScript is there any way to get the actual Bitmap object without using bitmapData.draw on a new object?

Where I am going with this is I would like to use the object where a Bitmap type is needed without creating a new bitmap object for memory reasons but it seems like Flash turns this into a generic Shape object at some point.

TOPICS
ActionScript
475
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 23, 2013 May 23, 2013
LATEST

After doing some research it seems like I am basically stuck unless I give it a linkage name in the library which is not an option because this is a .swf that is going to be loading dynamically on an iOS device.

Oh well =/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines