A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: how can I load a swf into a specific position? Please help!!

  1. #1
    Member
    Join Date
    Jul 2001
    Posts
    39
    I have a homebutton.swf that I am loading into level 2.
    I am wondering how can I get it to load into a specific position. Now, it's loading into the upper left corner, but I would like it to load into the bottom right corner.
    How can I do this?
    Anyone have a clue?????

    Thanks!!

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    2,943
    The best thing to do is load it into a movie clip - and position that.

    Create a blank movie clip and put an instance on the stage. Give it an instance name (clip1).

    Now, use:
    Code:
    loadMovie("homebutton.swf","clip1");
    You can now position it using:
    Code:
    setProperty("clip1", _x, xpos;
    setProperty("clip1", _y, ypos;
    Just for the record, you can't (according to the literature) position a loaded movie in a level. People will tell you that you can - but I've tried it and can't get it to work.

    Officially, you can't do it...

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