Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loadMovie to load external jpg

Status
Not open for further replies.

luzippu

Programmer
Sep 2, 2003
24
GB
hi,

i have tried the following code on both the 1st frame of the main movie and on the movieclip itself, but it doesn't work or gives me a huge image:

mymovieclip.loadMovie("loaded/mulino.jpg");
_root.mymovieclip._width = 200;
_root.mymovieclip._height = 200;

what am i doing wrong...thanks
luzippu

i'm quite new to actionscript
 
first create an empty movie clip

insert..new symbol...movie clip...go back to main timeline

open the library and drag a copy of this empty clip onto the stage

give it an instance name...mymovieclip will do just fine

then add this one line to the frame actions

mymovieclip.loadMovie("loaded/mulino.jpg");

all should now be well
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top