-
I have created a new project that uses Loadmovie to load an swf. The problem is the it loads at the top of the stage,
loadMovie("test.swf",1);
How can I tell it to load to a different xy coordinate?
Thanks
-
You could use a empty movie clip in a layer and load that swf file into it. By this you can control the loaded movie, by just changing the properties _x and _y of the movieclip.
-Mav
-
Hmmmm.. That is a good idea so I tried it and it did not work. Here is what I did maybe you can tell me if I did something wrong.
I created a new movie clip.
-In frame 1 I placed the actionscript: LoadMovie(test.swf,1)
-I then place the movie clip onto the project somewhere in the middle
-When I played it the swf was still at the top.
Wha happin?
Thanks
Originally posted by maven5
You could use a empty movie clip in a layer and load that swf file into it. By this you can control the loaded movie, by just changing the properties _x and _y of the movieclip.
-Mav
-
I just tried this and it works
_root.targetmc.loadMovie("abc.swf");
Where the targetmc is the instance name of the movieclip in the _root.
abc.swf is file that is loaded dynamically on pressing a button and is located in the same folder on my machine as the fla and swf which call it.
Enjoy!
-mav
Originally posted by dig
Hmmmm.. That is a good idea so I tried it and it did not work. Here is what I did maybe you can tell me if I did something wrong.
I created a new movie clip.
-In frame 1 I placed the actionscript: LoadMovie(test.swf,1)
-I then place the movie clip onto the project somewhere in the middle
-When I played it the swf was still at the top.
Wha happin?
Thanks
Originally posted by maven5
You could use a empty movie clip in a layer and load that swf file into it. By this you can control the loaded movie, by just changing the properties _x and _y of the movieclip.
-Mav
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|