A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Sending variable to another movie???

  1. #1
    Junior Member
    Join Date
    Sep 2000
    Posts
    14
    I have a movie in _level0 with a variable ( val = 1; )

    I want to acess that var in another movie loaded in _level1?

    I've tried this in _level1 movie:

    val =_root.level0.val

    With no luck.

    Charlie...

  2. #2
    psx = new Moderator();
    Join Date
    Jan 2001
    Posts
    923
    Hey,
    Try using _root.val or _level0.val

    _root and _level0 are the same thing. I imagine using _level0 is better since that's how stuff always shows up in the output window.

    Psx

  3. #3
    Junior Member
    Join Date
    Sep 2000
    Posts
    14
    Just tried with no luck...

    I don't know this is what I am doing.

    Main movie is loaded and sent val like this.
    <PARAM NAME=movie VALUE="temp.swf?val=<?PHP echo $val; ?>">

    Now val is seen in temp.swf I can display it.

    But I load another movie in temp.swf at _level1
    and can't display val at all.

    Tried: _level0.val

    Charlie...

  4. #4
    psx = new Moderator();
    Join Date
    Jan 2001
    Posts
    923
    Hmm. when you test the movie, select "List Variables" from the output menu. It should tell you what val is and a complete path to it. If it says something like "_level0.instance35.val=something than it's in a movie clip that you have to give an instance name to. Hope that makes sense!

    Psx

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