A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [CS3] Flashvars AS2

  1. #1
    Junior Member
    Join Date
    Mar 2002

    [CS3] Flashvars AS2

    Hi everyone,

    I have a question for you. Im tryin to use flashvars, so that depending on the variable sent to the flash movie it would go and play a specific scene. So let me set the scenario for you. I have an index.php page which has three buttons. If the user clicks button1 it opens a popup.php that contains the flash movie and plays the flash movie relative to button1. if the user clicks button2 it opens that same popup.php playing the scene relative to button2, and as im sure you've guessed. if the user clicks button3, it opens popup.php playing the scene relative to button3.

    The code inside the flash movie is:

    section_text.text = "connaught";
    }else if(section=="excel"){
    // gotoAndPlay("ExcelHome");
    section_text.text = "excel";
    else if(section=="stratford"){
    // gotoAndPlay("StratfordHome");
    section_text.text = "stratford";

    I would be greatful if you could help me find a solution to this problem. I put a test version of the site up at http://www.wineandmint.co.uk/fox so at the moment it reads the correct section but doesnt go to and play the relative movie. Any suggestions would be appreciated.

    Kind regards,


  2. #2
    AS3 Mod
    Join Date
    Sep 2007
    Are you positive that myQueryString variable is returning the proper variables?

    So we can debug try this:

    PHP Code:
    section_text.text section

  3. #3
    Junior Member
    Join Date
    Mar 2002

    thanks for the debug script. I should have mentioned i have tried this and it returns the correct variable to section_text. Mannnnn im stumpped! lol. But thats as far as i got, because even thou the variable exists it wont let me do anything with it?

    I also tried something along the lines of;

    if (section_text.text == "stratford") {


    and other variations of that. obviously i wrote that for each of the three links.

    What do you think would be the next step of the debugging or a possible solution?



  4. #4
    Junior Member
    Join Date
    May 2008
    i have similar problem... it works fine in firefox but is off and on with IE.

  5. #5
    Junior Member
    Join Date
    Mar 2002

    Mines doesnt work at all :S. how did you get it to work in Firefox?

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