A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: communicating between 2 loaded movies.

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    13

    communicating between 2 loaded movies.

    ok so i've got my main swf, into which i load most of the content via loadmov.

    but in my main movie i have 2 sections. a text section, and a photo section. the text and photo sections are both in seperate swfs and load in on a button press.

    in the text swf there is are some buttons which swaps between different areas of text.

    however i realised i would also like the photos to change corresponding to the text, but they are in a seperate external swf.

    so i'm unsure how i would find the path of the other swfs from within an external swf.

    or should i include the code for the buttons in the Main swf ?

  2. #2
    sockpuppet
    Join Date
    Mar 2005
    Posts
    323
    Simple target the instance name of the container clip that the other swf is in. Add _level0.

    on(release){
    _level0.other_container_mc.gotoAndStop(X);
    // text code
    }

  3. #3
    Junior Member
    Join Date
    Apr 2004
    Posts
    13
    thanks!

    thats from within the external text swf right?

  4. #4
    sockpuppet
    Join Date
    Mar 2005
    Posts
    323
    Yes!

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