A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: positioning a movie level:

  1. #1
    Member
    Join Date
    Nov 2000
    Posts
    52
    Could someone show me some love and help me out. Ok I have a link that when you click on that link, another swf movie is suppose to load up, the question is when the movie is loaded, how would I position to to where I want it on the movie stage?

  2. #2
    Senior Member
    Join Date
    Feb 2001
    Posts
    185
    I had to try and do that once so... i cheated

    I just made that movie have the same size canvas as my main swf (since its by default transparent) so when the movie loaded even though it was the same size it was positioned exactly where i wanted it to be because all around it was actually trasperency - hope you're following me

    for MC's though i've always used

    targetX = 300;
    targetY = 300;
    -- this went into my main frame

    and on my buttons i would say
    on (press) {
    gotoAndStop (1);
    _root.attachMovie("linkagename", "name", level);
    _root.name._x = targetX;
    _root.name._y = targetY;
    }

    i hope that helps you.


  3. #3
    Member
    Join Date
    Apr 2001
    Posts
    35
    you must load the swf into a MC. you can then ad just the position of the MC on your stage.


  4. #4
    Member
    Join Date
    Nov 2000
    Posts
    52

    Question

    I'am sorry I'm stupid, I'm a slow learner what does the term "MC" mean?

  5. #5
    Blood elf, or PHP guru... hmmm Paradoxz's Avatar
    Join Date
    Aug 2001
    Location
    Califorina
    Posts
    589
    x-town chika, congrats on senior menority.. and MC=Movie Clip

  6. #6
    Member
    Join Date
    Nov 2000
    Posts
    52

    definiton

    I'm sort of stupid, I need help could someone help me step by step and explain what this statement means:

    _root.attachMovie("linkagename", "name", level);

  7. #7
    Senior Member
    Join Date
    Feb 2001
    Posts
    185
    thanks paradoxz


    k

    _root - the timeline that you are targeting is the "MAIN" timeline of your movie (ie not a movie clip's)


    attachMovie is the action that calles that MC onton your _root (main) timeline.

    in order to attach a MC you first have to set linkage properties.

    right click the MC in your library (Ctrl+L) and go to linkage, choose 'export this symbol' and put in an identifiying name into the field

    this name that you enter in that 'identifyer' field is your
    "linkage name"

    "name" is the name of that same MC that is in the library

    "level" how far up it is (basically this is there so if you have more than one MC on stage that you could specify which one is on top)

    _root is on level 0




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