Link to home
Start Free TrialLog in
Avatar of 7of9121098
7of9121098

asked on

Using the LoadMovie function in Flash Mx?

I have a program that uses the LoadMovie build in function to load dynamic jpg image files. ie.
loadMovie("../images/mypicture" + i + ".jpg", "Pictures");

Is there a way to make the jpg image display in a fixed
width and height, no matter what size the jpg file is?
Avatar of Zeffer
Zeffer
Flag of New Zealand image

If you target a Flash movie as a template for
receiving the .jpgs the images will inherit the
properties of the target movie..This will display
the images using whatever properties you have set for
the movie...see below from ActionScript Help.

Loadmovie...
>>
Action; load a SWF or JPEG file into the Flash Player while the original movie is playing. The loadMovie action lets you display several movies at once and switch between movies without loading another HTML document. Without the loadMovie action, the Flash Player displays a single movie (SWF file) and then closes.

When you use the loadMovie action, you must specify either a level in the Flash Player or a target movie clip, into which the movie will load. If you specify a level, the action changes to loadMovieNum. If a movie is loaded into a target movie clip, you can use the target path of that movie clip to target the loaded movie.

A movie or image loaded into a target inherits the position, rotation, and scale properties of the targeted movie clip. The upper left corner of the loaded image or movie aligns with the registration point of the targeted movie clip. Alternatively, if the target is the _root Timeline, the upper left corner of the image or movie aligns with the upper left corner of the Stage.

Use the unloadMovie action to remove movies loaded with the loadMovie action. <<

Z

ASKER CERTIFIED SOLUTION
Avatar of rootdir
rootdir

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial