A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: XY Coordinates

  1. #1
    Senior Member
    Join Date
    Nov 2000
    Posts
    124
    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

  2. #2
    Senior Member
    Join Date
    Oct 2001
    Posts
    135
    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

  3. #3
    Senior Member
    Join Date
    Nov 2000
    Posts
    124
    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

  4. #4
    Senior Member
    Join Date
    Oct 2001
    Posts
    135
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center