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

How to permanently embed an external image file in FLA using actionscript (without any dependency on the original file in folder anymore - after actionscript is run)

New Here ,
Feb 03, 2015 Feb 03, 2015

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?

TOPICS
ActionScript
265
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
LEGEND ,
Feb 04, 2015 Feb 04, 2015

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.

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
Explorer ,
Feb 04, 2015 Feb 04, 2015
LATEST

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.

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