Skip to main content
Inspiring
June 20, 2006
Answered

loading gif into flash player 8 problem!

Hi all

Can anyone help please?

I am having a problem dynamically loading a gif file into my swf, using flash player 8 at run time.

I am using flashMX to develop my site but I do understand that dynamically loading gifs & pngs has recently be introduced in the new flash player 8 so I test my swf in a browser window to see the correct result.

First of all let me explain what im trying to do,

I am using myMovieClip.loadMovie("http//:myURL.picture.gif"); because I want to load the picture into a target movieclip.

This works well when I load jpg or swf files, but when I try and load a gif in the same way nothing happens?

I then used loadMovieNum("http//:myURL.picture.gif", 2); to see if I got a different result.

This loads the gif correctly into a new level in my flash movie which is good in a way because I know the flash player can display the gif.

BUT I don't want the picture in a new level in my flash movie, I need it in a target movieclip ???

Can anyone suggest why the loadMovie is not loading the gif.

Thanks for any help

Claire Wall
This topic is closed to new replies. Start a new post to keep the conversation going.
claire_wallCorrect answer
Inspiring
June 22, 2006
Thanks Kglad

I thought this might be the case, I will have a go at loadMovieNum but I think it will be to difficult to intergrate it into the rest of my movie. My employer will have to decide wheather this is worth it.

Cheers guys for the feedback it has solverd the mystery at least ;_0

Claire Wall

15 replies

Inspiring
June 22, 2006
Hi Kglad

I think this must be the problem, I am using flash MX as my authoring environment and when I look at my publish settings I can only specify up to flash 6 under the (file/publish settings/flash tab).

Does this mean my swf wont be correctly formatted to import gifs when it is then run in flash 8 player in a browser?

Thanks

Claire x
Translate
kglad
Community Expert
Community Expert
June 21, 2006
if you're certain you're publishing for flash 8 (file/publish settings/flash tab), post a link to your problem fla and specify the location of your loadMovie() statement.
Translate
kglad
Community Expert
Community Expert
June 20, 2006
is myMovieClip a correct path/file name reference to a visible movieclip?
Translate
Inspiring
June 21, 2006
Hi Kglad

Thanks for replying, yes myMovieClip is referanced to _root and all the url path ways are correct. I have had it working very well when loading jpgs and swfs from the same folder, but for some reason it doesnt want to load gifs using _root.myMovieClip.loadMovie("blah blah");

The bit I dont get is why it will load a gif using loadMovieNum(); ??? Which is a pain because I know the flash player has this capability but just doesnt work in the loadMovie() method!

I need the gif inside a movieclip so I can manipulate it seperatly from the _root

Any Ideas?

Thanks

Claire Wall
Translate