PDA

View Full Version : Loading Image in MovieClip



Hakmed
April 1st, 2003, 12:52 PM
I want to load an image onto a Movie Clip when I press a button. So far, for the button on the stage I have:


on (release) {
loadMovie("pics/1.gif", _root.photo);
}


I've created a movie clip on the stage w/ the instance name photo. My images are in the folder pics relative to the flash file. When I run the movie and click on the button, nothing happens. What am I missing here?

Thanx

eyeinfinitude
April 1st, 2003, 02:29 PM
Make sure your images are saved as nonprogressive or else they won't load into flash.

Hakmed
April 2nd, 2003, 06:34 PM
YOU ARE THE MAN!!!

eyeinfinitude
April 2nd, 2003, 06:54 PM
hahah glad it worked. =)

schling
April 3rd, 2003, 01:48 AM
What does it mean that a picture is nonprogressive?

upuaut
April 3rd, 2003, 02:26 AM
progressive pictures were developed to allow people to put high quality images on the web without stoping the flow of construction of a web page. So the browser encounters a progressive pic, it downloads a fuzzy version of the pic (low quality, not much k in size), then it continues to load the rest of the doc. When it reaches the end of the document, it then goes back and downloads the remainder of the images k, improving quality in steps... hence "progressive".
Flash doesn't understand progressive images because they are loaded in peices.
Sometimes it's hard to tell if an image is progressive or not. The most sure fire way to know is to open the picture in Adobe photoshop, hit "save for web", check OFF the check box for progressive image, and hit save.
I'm not sure what programs other than photoshop will convert progressive to nonprogressive.

schling
April 3rd, 2003, 02:30 AM
Oh yeah :-) Nice to know :-) Thanks