PDA

View Full Version : Why isn't the image showing here?


anderskr
12-03-2002, 08:33 AM
I want to display external images in a flash movie.
I have created a movieClip called drop, and attached the following script to it.

onClipEvent (load) {
loadMovie("http://www.kragstad.com/decks/cards/os/wirewood_elf.jpg", drop);
}

But the image doesn't show. If i hit Ctrl+Enter and click anywhere in the timeframe, the image is there, but not in the published html file. What have I done wrong? (files attached)

Please help
anderskr

Billy T
12-03-2002, 09:41 AM
yeah I've had problems putting a loadMovie within a load event before

try putting it on the frame

loadMovie("wirewood_elf.jpg","drop");

cheers

anderskr
12-03-2002, 10:09 AM
Thank you.

That solved my problem. Now I know about the problem too :D

Billy T
12-03-2002, 10:53 AM
just did some more tests and it seems to work fine if you are targeting another clip to load the movie into (ie not the clip that has the load action on it)

don't know how much help that is...may as well still put it on the frame...

cheers

tg
12-03-2002, 02:59 PM
the code:

onClipEvent (load) {
loadMovie("http://www.kragstad.com/decks/cards/os/wirewood_elf.jpg", drop);
}


creates a really nasty loop.
when the mc originally loads (in the frame) it goes out an loads the jpg.
when the jpg is loaded, it fires the load event of the mc that was just loaded, so it goes out and loads the jpg.
when the jpg is loaded, it fires the load event of the mc that was just loaded...

you get the picture.

Billy T
12-03-2002, 08:28 PM
ahhh I see :)

Thanks