• OK. I have an SWF loaded into another. One is sposed' to declare the _global variable "Closed" as true on its last frame. I wanted the main swf that loads this one to pick this vvariable up and gotoAndPlay("close"); when this variable is sent back as true. How can I do this?


    Thanx in advance.

    I tried using a localConnection but it didnt seem to work.


    I got

    ActionScript Code:
    my_lc = new LocalConnection();


    my_lc.send("_myLocalConnection", "recievedValue", "Close");




    on My loaded movie's last frame

    and...
    myReceiving_lc = new LocalConnection();
    myReceiving_lc.connect("_myLocalConnection");
    myReceiving_lc.recievedValue = function(Close) {
    gotoAndPlay("close");
    };
    on my main movie's frame where the movie is loaded



  • Woah no need for so complicated stuff.

    For the external swf, place the code

    theVariable = true; //your variable here

    On the main swf, place the code

    if (//path to swf variable == true){
    //do something)
    }







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Simple swf comunication. , Please add it free.

    Navigation

    Calendar

    Blog

    Categories

    Archives
    Search

    Links

    Feeds and Credits