Groups | Blog | Home
all groups > flash (macromedia) > february 2004 >

flash (macromedia) : external jpegs


Shirley Ong
2/12/2004 10:45:27 PM
I would appreciate some help on a function I am trying to add to a project.
I am still using Flash 5. I would like to have an swf file with external
graphics. I want to be able to change the images (jpegs) without having to
open the swf file. But instead, replace the existing images with new ones in
the same folder (with or without same names).

Can I do this in Flash 5 or is this a Flash 6 or 7 function? Is this a
linking function? Could I some how automate adding these images on a server
without manually adding them to an SWF file?

Thought I could do this but am not finding a way to link to external images.

antony
2/13/2004 12:28:54 AM
I'm afraid you will need flashMX for this...........

//basic proceedure for loading external image
//create a blank movie clip........call it whatever (i've called mine
"ImageSwf"
//drag an instance of "ImageSwf" onto the stage
//click on it once and name it with an instance name of "ImageSwf"
//then click on frame 1 in the timeline
//paste the following code into the actions pane (you will need to be in
expert mode for this)

//code
loadMovie("myImage.jpg", "_root.ImageSwf");


//run the flash file, make sure your image is in the same directory as the
flash file for this example
//that's it

regards
richie



[quoted text, click to view]

AddThis Social Bookmark Button