AS 2 noob question: communication between swf's
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: noob question: communication between swf's

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    3

    noob question: communication between swf's

    Hi,

    I have a swf, which should open another swf.
    I was instructed to use:

    _btn.onPress = function() {
    getURL(_root.popout, "");
    }


    Should I stick this in a frame action? and instance my button to '_btn'.
    What do I do with the 'popout' part and the ""?

    thanks,
    Xav

  2. #2
    Senior Member
    Join Date
    Mar 2006
    Posts
    130
    call your button my_btn then on a frame action use:

    my_btn.onPress = function(){loadMovie("myswf.swf", 10);}

    the bit between the "" is the path to the external swf, so in this case the other swf is called myswf.swf and is in the same directory as the swf calling it. The 10 is the level its being loaded onto.

    hope that helps!

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

Poll by Flashkit.com