Welcome, Guest
  • Author Topic: LoadMovieNum having trouble passing variables and Google won't help  (Read 916 times)

    paphone

    • Server what's that
    • *
    • Posts: 1
      • View Profile
      • Email
    I've read a couple of forum post slightly touching on this, but nothing really seems to help.
    I have two movies. The first movie is a navigation bar populated with titles of photography.
    When a button in clicked in the first movie it loads the second movie, a thumbnail image player.

    The thumbnail player is just a standard dynamic image library that pulls it's info from an xml file.
    What I would like to do is define a variable for each button in the first movie which would pass to the thumbnail movie and tell it which XML file to call

    something like this:
    Movie 1:
    NAV  (var to send)
    New York    (ny)
    Memphis      (mem)

    Movie 2:
    the same movie but would call _______.xml depending on whichever button is clicked

    Here is the code I have for the buttons in the 1st movie:

    on(press){   
    var display="memphis";
    loadMovienum("player.swf",2,"POST");
    }

    I don't know if that right or where to go from there.

    Thanks!

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    The loaded movie could look for some variable, let's see a _global variable to simplify:

    on(press){   
    _global.display="memphis.xml";
    loadMovienum("player.swf",2,"POST");
    }

    In the loaded movie:

    myXML.load(_global.display)

    Jorge