PDA

View Full Version : need help w/ Easy actionscript 2 MX2004



TG_Laszlo
04-01-2004, 05:01 PM
Hi everyone, I feel really stupid, but I got this problem with a for command. I have a list component on the canvas that has an instance name of Image_List. Now I put this code in the try to add three images with scripting,


Images = 3;
Image1 = "go.png";
Image2 = "gs.gif";
Image3 = "asdf.jpg";
count = Images;
for (c=0; c<count; c++) {
output = Image+c;
Image_List.addItem(output);
}

and ive tried putting this in too but still nothing

for*(c=0;*c<count;*c++)*{
output*=*eval(Image+c);
Image_List.addItem(output);
}

Now Am I doing something wrong here? it prints out three cells Image1 Image2 and Image3. But I want it to have the variables of the image filenames inside the the list instead, like have the list show
go.png
gs.gif
asdf.jpg

buz
04-17-2004, 03:46 AM
you have to click on your graphic and under the choices Movie Clip,Button,Graphic name your graphic/movie then it can read your clip/pic ;)

REfL3ct
04-27-2004, 09:09 AM
i dont think flash loads gifs.

but i could be wrong...

but i tired loading gifs dinamically and it wouldnt work.