A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Attaching an MC inside of ANOTHER movie clilp on stage

Hybrid View

  1. #1

    Attaching an MC inside of ANOTHER movie clilp on stage

    Ok, here's the deal:

    I have a movie clip in the library exporting to Actionscript with the name "folder".

    I have a button on the main stage that, when you press is , should be using attach movie to create an instance of folder INSIDE of targetMC.

    But it's not working.....nothing shows up.

    I am doing:

    PHP Code:
    on(release){
        
        
    _root.targetMC.attachMovie("folder","foldernew"55);

         
    _root.targetMC.foldernew._x_root.targetMC.birthzone._x;
          
    _root.targetMC.foldernew._y_root.targetMC.birthzone._y;


    -Nmuta

  2. #2
    Btw, I have decided to use AS2 for this project, not AS3.
    -Nmuta

  3. #3
    Ok, I see. my code is correct. it works when tried on any other MC on the stage. The difference is that the MC I am targeting in my example is masked, and its large.

    I just have to figure out how to get this working when the target MC where the attachMovie is happening to is inside of a Mask.
    -Nmuta

  4. #4
    Ok , got it working now. It was simply a matter of my reference to the MC not being case sensitive.

    I should have been doing _root.targetMC.birthzone.attachMovie

    anyway instead of my "positioning" code above.
    -Nmuta

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