Jump to content
Search Community

extracting bitmap from a swf class

gigbig test
Moderator Tag

Recommended Posts

Hi,

my question could sound noobish, but... I'am having a headache trying to do a very simple operation.

 

I have loaded a SWF with SWFLoader, and now I want to instance a Bitmap with linkage "DotMatrixPattern" and use its Bitmap content to create a pattern with beginBitmapFill: the problem is... how do I extract the Bitmap from DotMatrixPattern?

 

I am able to instance DotMatrixPattern, but then? DotMatrixPattern.rawContent? No! undefined!

 

What am I doing wrong?

Link to comment
Share on other sites

Fixed!

 

Idiot me: I have to remember that I instance a CLASS from the loader, and I have to instance it to obtain an object, it is not an object yet!

 

Then I can simply throw it on a normal Bitmap.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...