Copy link to clipboard
Copied
I want to permanently embed an external image from my local folder in a .FLA file using actionscript. Using actionscript, currently I use the Loader and URLRequest to fetch the external file. Then add this image to a Existing empty MovieClip object. So the animation shows this image as movie clip correctly- as long as the external file exist in local folder. However, I want to remove this dependency on external file once the action script is run (as I am sharing this FLA file with multiple team members over email). And my FLA file should have the image as permanently part of the animation. Any idea on how to solve my problem?
Copy link to clipboard
Copied
You cannot embed an image in an fla using actionscript, at least not as far as I can reason. If you need the image to be available then you should either send it along in the email and giove instructions on where to place it relative to the fla or place it online somewhere and link to it that way. If necessary you will need to set up security provisions to allow the file to be downloaded from an external url.
Copy link to clipboard
Copied
Can't you just add the image to a movie clip in your .FLA Library, then it will always be there when you distribute the FLA.
You can drag it to to the stage or assign the library movie clip to a Custom Class and use AS to create a new instance of that class in your animation.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now