Loading external images into a FlashEff component in Flash CS3

Posted on 2009-05-27
Medium Priority
Last Modified: 2012-05-07
Please take a look at this SWF: http://www.discretedata.com/HBDAP/flashMovie1.html.

* On the timeline is a movie clip named "MC_left."
* Inside that there is a movie clip named "grille." The flashEff component is attached to this one.
* Inside "grille" there is an image "grille.png."

How do I script it so that the movie clip "grille" gets its image from an external source like say: "http://www.mysite/images/grille.png"?  And can that be done without disabling the flashEff effects? (FlashEff requires AS 3.0).

You can download the FLA from the webpage above.


Question by:gabrielPennyback
  • 2
LVL 22

Accepted Solution

rascalpants earned 2000 total points
ID: 24496041

if you can control when the effects start, I would just load the PNGs into the "holder" movieclips like MC_left using the Loader class...

here is an example of how to use it...


rp / ZA

Author Comment

ID: 24497798
Thanks, rascalpants.  I found the link a little overwhelming, but it encouraged me to take a look at the Flash Help, which is rarely any help. But in this case, it actually gave me a simple 4-line script that does it perfectly ... at least for one image. I just asked a followup question on how to adapt this script to pick up a series of images from an xml file. Please take a look: http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_24446659.html


var request:URLRequest = new URLRequest("http://www.discretedata.com/HBDAP/flash/images/grille2.png");
var loader:Loader = new Loader()

Open in new window


Author Closing Comment

ID: 31586075
Thanks again

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question