View Full Version : Loading 2 .swf movies ?
peace
June 18th, 2003, 11:07 PM
Hi, how can i load 2 .swf movies simultaneously through one load movie action button ?
Raydred
June 18th, 2003, 11:21 PM
have the same code in the button...
have 2 movie clips you want the movies to load into..
and put this on your button:
----------------------------
on(press){
loadmove("whavever1.swf",_root.Mc1);
loadMovie("whatever2.swf",_root.Mc2);
}
-----------------------------------------
something like tha.t
peace
June 18th, 2003, 11:29 PM
It didn't work ,only one movie loaded and it overlapped, it did not place where i wanted it to . Thanks for your help .
peace
June 19th, 2003, 09:15 PM
Other suggestions please from anyone .
Thankyou .
Peace.
SetroGamer
June 20th, 2003, 08:17 PM
The reason only one showed up was because they typed one of the lines incorrectly. It should be:
------
on(press){
loadMovie("whavever1.swf",_root.Mc1);
loadMovie("whatever2.swf",_root.Mc2);
}
-----
As for what you can do about overlapping, I couldn't help you there...
peace
June 21st, 2003, 01:18 AM
Thankyou :) SetroGamer ,i'll try that .
Is it possible to have options here like making the movies overlap when i want to and place at a certain position when i want to ? can anyone help ?
Thankyou.
Voetsjoeba
June 21st, 2003, 01:33 AM
You could change their stacking order to make them overlap eachother. Find a tutor here (http://www.kirupa.com/developer/actionscript/swapdepth.htm).
To place them at a certain position, simply use
_root.mc1._x = xposition;
_root.mc1._y = yposition;
_root.mc2._x = xposition;
_root.mc2._y = yposition;
Of course, xposition and yposition have to be replaced by the x and y coordinates of the movie you are loading the other ones in when at the place you want them to load.
Hope this helps.
peace
June 22nd, 2003, 04:38 AM
Thanks.
The prob. is still there. i saw a couple of sites in which the developers did 2 things , i think . When i pressed the buttons (service etc.) 2 things took place one was "loadmovie" the other was "sliding picture", i think both of those developers had given 2 different actions to every button .one action loaded the movie and the other moved the bg pic. inside a box .i don't remember those sites' names , i think one was jontom .com or something ,it was placed at sotw section of these forums ,today i tried to visit jontom site it said page under const., now maybe it was the same site i mentioned maybe some else . i hope i've stated my question clearly but if u don't understand what i'm trying to say please ask again so that i explain more .
Thankyou.
Peace.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.