A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: variables in embedded .swf s

Threaded View

  1. #1
    Junior Member
    Join Date
    May 2004
    Location
    Isle of Man
    Posts
    14

    variables in embedded .swf s

    Can anyone help me with this - PLEASE.

    I'm using a master .swf with navigation code to control a number of slave movies. If only!

    I've stripped it down into two simple .swfs and I still can't get it to work.

    In my master I have an empty movieclip and I want to load a slave .swf into it. This bit works fine with code of the form

    holder_mc.loadMovie("slaveMovie.swf");

    In my slave movie there is a frame label "blue" and a test variable. I want the master movie to be able to access the variable and move the slave movie to the "blue" frame:

    // below currently returns undefined and goto is ignored
    trace ("holder_mc.testVariable = "+holder_mc.testVariable);
    holder_mc.gotoAndStop("blue");

    in the slaveMovie are the actions:

    var testVariable:String = "success";
    stop();

    Please could someone have a look at the files and tell me how I could make them work. The success of my project rather hinges on .swfs being able to talk to each other.

    Thanks lots.
    Attached Files Attached Files

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