A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: From one to the other??

  1. #1
    Junior Member
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    21

    From one to the other??

    Hello.... I have 2 diffrent flash movies.

    menu.swf <<This is a menu on the left hand side of my site
    thumbs.swf <<This is a thumb viewer in the middle...


    Now the menu.swf has 3 buttons and I would like it to pass the code over to thumbs.swf but im not sure how... this is the code each button contains

    on(release)
    {
    _root.thumbsmc.switchGallery("structure.gallery.0" );
    }

    on(release)
    {
    _root.thumbsmc.switchGallery("structure.gallery.1" );
    }

    on(release)
    {
    _root.thumbsmc.switchGallery("structure.gallery.2" );
    }


    Now, I know I have todo something with the ""LocalConnection Object"" But I am pretty new to all this and would aprehsaite any help that anyone can supply. Thank you

    ~Mike

  2. #2
    Slinky Designs slinky2000's Avatar
    Join Date
    Jun 2001
    Location
    Ireland
    Posts
    1,227
    you need to use from what I remember this code:

    sender movie:

    myButton.onRelease = function() {

    myLocalConnection = new LocalConnection();

    myLocalConnection.send("incoming message", "onReceive");

    myLocalConnection.close();

    }


    receiver movie:

    myLocalConnection = new LocalConnection();

    myLocalConnection.onReceive = function() {

    mcName.gotoAndStop(2);

    }



    try that

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