A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Let's have a definitve answer here!

  1. #1
    Fresh Prince of FK
    Join Date
    Nov 2000
    Posts
    313
    I hear this question asked all the time on FlashKit, and I want to know the answer.

    Can you load a movie into another movie in a specific place using the loadMovie function?

    In other words, can you take movie A and load it into movie B at a specific location, say X & Y coordinates or a target.

    Usually, I have to make movie A and B the same size and position them to make the content on movie A appear where I want it.

    Please, if you know the answer, post it here. Not just for me, but for all of FlashKit.

    This thread can be referenced to each time this question comes up.

  2. #2
    ScratchingEverything

    100% Swedish
    DaPurno's Avatar
    Join Date
    Oct 2000
    Posts
    325

    Hey,

    Yes very good of you... Hope there will be an answer soon..
    I suggest we all cary this around in our footer so everyone will see this !

  3. #3
    Fresh Prince of FK
    Join Date
    Nov 2000
    Posts
    313
    good idea...changing footer now!!

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    Yes. The swf will load with it's top left corner in the center of the mc. To Set the x,y position set the x,y of the mc you are loading into... ~ mgb

  5. #5
    ActionScript.org
    Join Date
    Aug 2000
    Posts
    1,030

    Definitive answer

    Yes you can and it doesn't matter if you load into a layer ora target clip.

    Layer:
    Load up your movie on a layer, then on the next frame or later manipulate the layer using setProperty (_layer1, blah blah) to set the _x and _y.

    Clip:
    Position an empty Movie clip on the stage and call it 'target'. Put the center of the clip where you want the center of the loaded clip to be. Then load your movie into y our target clip, 'target'.

    Cheers

    Jesse

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