Loading external images into a FlashEff component in Flash CS3

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.

Thanks!

John
LVL 1
John CarneyReliability Business Tools Analyst IIAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rascalpantsCommented:

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...

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Loader.html

rp / ZA
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
John CarneyReliability Business Tools Analyst IIAuthor Commented:
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

Thanks,
John



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

Open in new window

0
John CarneyReliability Business Tools Analyst IIAuthor Commented:
Thanks again
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.