A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: x and y problem

  1. #1

    Lightbulb

    I have a movie clip set on my main stage that acts as a navigation bar, when one of the buttons in that navigation bar is pressed it is to load another movieclip. my problem is that I can't get the second movie clip to load into position, it loads but not where I want it to. this is the code that I used??? I want to position this movie clip on the main stage are my X and Y missing something.


    on (press){
    // MC_2.gotoAndPlay(1);

    attachMovie( "website", "navbar" ,1);
    website._x=162
    website._y=-36}

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Have you checked if it may load into the position of your navigation MC? I mean position inside your Navigation MC instaed of the main stage.

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Planet Earth
    Posts
    298

    Where is the registration point

    the movie clip that you are loading the movie into...where is the crosshair?

    If it is in the center of the movie clip, that may explain it. For loading movie clips, you need to have the registration point be the top left corner of the movie clip so that you _x and _y start at zero.

    If you already knew that or this in way answers your problem, please forgive me.

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