[LEFT]
[FONT=Arial][SIZE=2][COLOR=#0000ff]I am needing to load an external image (probably jpg) into a movie. I am using an empty movie clip, giving it an instance name and the code:
[/COLOR][/SIZE][/FONT]
instance1.loadMovie("image.jpg");
[/LEFT]
[LEFT] [/LEFT]
[LEFT][FONT=Arial][SIZE=2][COLOR=#0000ff]What I also need to do is be able to either place that image in a specific location on the stage or just center it. Any advice you can give me on that?
I am attempting to do something like this:[/COLOR][/SIZE][/FONT][/LEFT]
[LEFT] [/LEFT]
[LEFT][FONT=Arial][SIZE=2][COLOR=#0000ff]Use two movie clips. One is a holder that contains the second movie clip, which is where the image is actually being loaded. Then, I am using the following math:[/COLOR][/SIZE][/FONT][/LEFT]
[LEFT] [/LEFT]
[LEFT][/LEFT]
[FONT=Arial][SIZE=2][COLOR=#0000ff]Does this look like it would work? Is there anyway I can set instance1 to have a width that is equal to the size of the main movie (1024 x 768)?[/COLOR][/SIZE][/FONT]
This will center the 0,0 point of the MC, right? Is there a way to reposition the image once it is loaded so that it is centered on the 0,0 point of the movie it is loaded into?
ok, its not centering the way that I want it to. Here is a screenshot of the swf playing, with the actionscript I am using to load the image also visible.