View Full Version : Loading movie clips(position)
Dannygs
04-30-2001, 08:44 AM
I hope u can help me, Im trying 2 load a movie clip into another movie, but I cant set the x,y values! Ive tried usin the expression editor for the target but keep on gettin syntax error! please help me!
Hi..
The smoothest way would be to position the target movie clip precisely, this normally involves trial and error until your happy.
Or you could do it all at once:
on (release) {
loadMovie ("myMovie.swf", "_root.targetMc");
_root.targetMc._x=400;
_root.targetMc._y=350;
}
The above script first loads the movie 'myMovie' into the MC 'targetMc', then it positions the targetMc where we want it on our stage.
Copy & paste the above script directly into your actions panel so you can see how it works.
Hope this helps.
Dannygs
04-30-2001, 12:03 PM
Thanks, is there ne chance of a flash 4 version of this script?
Hi..
Flash 4 version:
On (Release)
Load Movie ("myMovie.swf", "targetMc")
Set Property ("/targetMc", X Position) = "300"
Set Property ("/targetMc", Y Position) = "100"
End On
Experiment with positioning the targetMc as well.
Good luck.
Dannygs
04-30-2001, 12:29 PM
cheers mate! i really would of bin stuk wivout ur help
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.