Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : Get the MovieClip source property


mrx NO[at]SPAM pt
3/9/2004 7:21:14 PM
Hi,

I?m using buttons to load images into a MovieClip, what i'm trying to do after
that, is to download the image that was loaded, by clicking in the MovieClip
(the one who received the image):
If
image loaded is: "img1.jpg" then download: "img1.zip"
else
image loaded is: "img2.jpg" then download: "img2.zip"

But, because i?m new in this matter, i'm having problems to write the correct
code.

Can you help me?[i]Text[/i][i]Text[/i][b]Text[/b]
Spinethetic
3/9/2004 7:28:48 PM
Why dont you just import the images to their own individual swf(s) and convert
them to a button symbol and assign the action
on (release)
getURL("somefile.zip,' _blank");

Then in your main movie instead of loading lets say "img001.jpg" load instead
"img001.swf" whereas the corresponding image *.SWF will load and the user can
click on the image to download the *.ZIP file? It seems logical to me.

mrx NO[at]SPAM pt
3/9/2004 7:54:47 PM
Yes, thats a solution but i have 100 images that are suposed to change time to
time, and by that way i have to edit 100 diferent swf's to change the target
file to download insted of editing only the main swf.

Thanks any way

Marco
AddThis Social Bookmark Button