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

load bitmap from library

New Here ,
May 26, 2015 May 26, 2015

Copy link to clipboard

Copied

I have loaded 4 black&white Illustrator Files into the library, which I would like to use them as masks. As an old time Director 8.5 user, I am thinking it should be almost similar in Flash by coping the black&white data as a mask with the CopyPixel() method. However, being a newcomer to Flash, I cannot figure out how to access these 4 images from the library into my ActioonScript, so that I could use the CopyPixel() method. In Director it use to be so simple

myImage = member*(5).image

or by member name

myImage = member("MyImage").image

once I had the image variable I could then call myImage.copyPixes(....)

is there anything similar to this?

TOPICS
ActionScript

Views

220

Translate

Translate

Report

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
Community Expert ,
May 26, 2015 May 26, 2015

Copy link to clipboard

Copied

LATEST

assign the bitmpdata a linkage/class name (eg, BMPD).  then use:

var bmpd:BMPD=new BMPD();

var bmp:Bitmap=new Bitmap(bmpd);

addChild(bmp);

Votes

Translate

Translate

Report

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