A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: comunicating between external movies

  1. #1

    comunicating between external movies

    I have beens searching forums and trying to work this out... but its the end of the day and I have not managed to do this.

    It should be quite simple really.

    I want to comunicate betwen movies and their mc_ 's to load other external swfs.

    main movie

    adma_novo.swf ----- has 2 empty mc's called top_mc and info_mc

    after click on a menu button in adma_novo.swf it loads external eventos.swf into info_mc of adma_novo.swf

    eventos.swf (contains another menu)


    after pressing button in eventos.swf it opens noel.swf .

    noel.swf then contains some thumbnails of images.

    i want to be able to click a thumbnail and have it open into top_mcof adma_novo.swf

    I thought I had to try something like loadmovie "./imag1.swf","_root.top_mc"

    but it is not working.

    so.

    1 a movie with Mc_top, Mc_info
    2 a movie opens external b movie into Mc_info
    3 b movie opens external swf into movie a Mc_top

    im stuck at 3.

    If anybody has any goof links for the loadmovie command... or comunicating between movies using loadmovie.. etc or _root explenation... I would apreciate it.

    thanx all !
    Hendrik-Jan

    www.innov8.com.br

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    From the structure you describe,
    code:

    _root.top_mc.loadMovie("./imag1.swf");
    // or
    _level0.top_mc.loadMovie("./imag1.swf");


    should do it, although using absolute notation is not the best practice.

    Make sure the instance name is correct, top_mc and is on the stage of the main movie.

    For more details read understanding target paths.

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