View Full Version : swf inside swf
queerfm
12-05-2007, 10:08 AM
Hi i am using this code to get .swf file inside an other swf file
loadMovieNum("http://www.queerfm.net/studio/playing.swf",2);
how ever i clearly have no idea what i am doing it is showing but not where i want it it is showing it up in the left hand corner how do i move it?
BLiZZaRD
12-05-2007, 03:51 PM
Well, depends, really. The loadMovie action will put it at 0,0 based on registration point. So if you have the movie just loading up it will be loaded where it's top left corner meets the top left corner of the housing swf.
Alternately you can attachMovie to an empty movie clip, placing the empty movie clip on the stage where you want it, and adjusting the registration point as needed.
queerfm
12-05-2007, 04:05 PM
Sorry i don't understand?
All i know is i need it to load at
x386.3
y181.2
sorry not use to flash still learning and this has been the hardest thing so far
Thanks
BLiZZaRD
12-05-2007, 04:46 PM
okay try this:
createEmptyMovieClip("empty" , "9999");
loadMovie("website.swf" , "empty");
empty.x=386.3;
empty.y=181.2;
Normally you would want round numbers (not XXX.3 but just XXX) but this should work
queerfm
12-05-2007, 06:19 PM
i tried everything you suggested still not working...
BLiZZaRD
12-05-2007, 07:07 PM
zip up your fla and attach it here, I will look at your code and put it right :)
queerfm
12-05-2007, 07:20 PM
Here you are i have created layer 47 where i have the code...
Also for some reason i could not upload it so feel free to download it from http://www.queerhuntradio.com/main_v8.zip
Thanks
punstc
12-09-2007, 07:32 AM
I opened up your file to take a look and there is no layer 47. on layer 38 there are some loadmovienum action are those what you are talking about?
queerfm
12-09-2007, 12:37 PM
i found out away to get around importing swf and yes the code above does work.
Thanks
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.