A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Communication Between SWF's

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Location
    Indiana,USA
    Posts
    21

    Communication Between SWF's

    Hey there,
    I've hit a block and need a bit of knowledge...
    I've got 2 sfw's on a page, I need to unload or goto and play to have it unload on keyframe inside it on sfw #2. When I choose a menuitem in #1 I should be able to do this right?

    I've tried various method’s and no luck yet...

    I thought that a simple
    on(release)
    Unload("http://site.com/#2.sw");

    But no

    Tried levels to but not in same movie so didn't figure this to work.any tips i'm probably missing obvious things but tries a bunch and no luck!

    Help would be great!!!

    Thanks for any i get!

    mmeye
    ó¿ó

  2. #2
    Member
    Join Date
    Jul 2003
    Location
    I'm not quite sure
    Posts
    31
    you probably are going to want to have one movie that is say ur navigation and when u click a button it will load an external swf and when you click a second btn the old movie unloads and the new loads. that is the only way i can think to do it.

    i hope this is helpful
    Q13

  3. #3
    Flash maniac katiyuki's Avatar
    Join Date
    Sep 2000
    Location
    San Francisco
    Posts
    382

    hi

    what i think you need is this:

    on sending end:
    (where a button is pushed and code is being sent to another external swf)

    buttonName.onRelease=function() {
    outgoing_lc=new LocalConnection();
    outgoing_lc.send("connect_name","methodToExecute", "param1"[,"param2"]);
    delete outgoing_lc;
    }


    on receiving end:
    (where the code should be sent to after a button in an external swf is pressed)

    varname= new LocalConnection();
    varname.connect("connect_name");
    varname.methodToExecute=function (param1[,param2]) {

    your actionscript goes here....

    }

    sorry that i have no time at the moment to get in depth, but you can find lots of info about this either here in flashkit or on the macromedia site.

    hope that helps!

    kat
    back to flashing...woohoo!

  4. #4
    Junior Member
    Join Date
    Oct 2002
    Location
    Indiana,USA
    Posts
    21

    Thanks...........ó¿ó

    I'll check this out!

    I knew there was a way to send script across external's but forgot
    the function...


    Thanks for the help!

    have fun

    mmeye
    mmeye.com
    ó¿ó

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