I have a movie clip on the main stage that within it has a button that upon rollover, plays a fade in/out animation. This part is fine.
I would like have the movie clip on a layer called movie 1 when clicked on, load a jpg into a blank movieclip on a seperate layer called moviebox. How could I do that?
Thanks in advance!
Last edited by antipodeansson; 09-23-2003 at 06:59 PM.
Its your button that acts weird, probably because of the movieclip on the first frame. I made a new button and then the jpg loaded fine.
Note though that external files load with their top left into the middle of the target mc.
When saving a jpg you have the option to save it as a progressive jpg. In a html page that would mean it will show as its being loaded. Flash does not support that.
i usually do it by creating a container for a MC.. and then dynamically load the jpg in that.
i used this technique for a childrens toy catelogue. http://www.earlylearningcentre.com.au . if you are looking for a tutorial regarding dynamic images.. there is a good one at http://www.kirupa.com then all you do is create an on release function for your button.
eg.
code:
on (release)
{
loadMovie("swf file that has the container.swf", level)
}
for the swf with the container that holds the image
code:
_root.createEmptyMovieClip("container", level);
container.loadMovie("image.jpg");
container._x = 0; // this positions the images x co-ordinate.
container._y = 0; // this positions the images y co-ordinate.
hope this helps...
remember you can't save the jpg as progressive.. flash MX doesn't support it.