5 Replies Latest reply on Oct 19, 2009 1:21 AM by stemple07

    FlashVars bug in CS3?

      I have a problem similar to that of a previous poster, the solution to which I'm unable to adopt.

      I'm using CS3 > ActionScript 2.0 and am unable to get FlashVars working.

      Has anyone been able to successfully use FlashVars in CS3 using AS2.0 and/or recreate the quick app in the help file?

      Any help would be greatly appreciated.

        • 1. Re: FlashVars seemingly not working
          MotionMaker Level 1
          I think this has changed.
          Look at
          • 2. Re: FlashVars seemingly not working
            mr_delete_happy Level 1
            loaderInfo class has been added in ActionScript 3.0, unfortunately I need to complete project in AS2.0.

            If anyone has an example of this working - ie flash file created in CS3, AS2.0 using FlashVars, I'd greatly appreciate knowing!!

            • 3. Re: FlashVars bug in CS3?
              mr_delete_happy Level 1
              The FlashVars help section requires updating to cater for new code written by CS3 when publishing HTML and Flash.

              HTML published automatically by CS3 as 'Flash only' includes an Active Content script which appears to work around blockers and the annoying 'click here to activate content' message in browser.

              As such, if you wish to make use of the new script AND use FlashVars, the FlashVars parameter and name/value pairs need to be added:

              (a) as arguments to the AC_FL_RunContent function call
              (b) as parameters of the <object> tag
              (c) as attributes of the <embed> tag

              • 4. Re: FlashVars bug in CS3?
                miquael Level 1
                I am also having a problem getting using FlashVars to work with CS3 and AS 3.0. I don't get the solution presented here.

                I have a Flash file that I mastered in AS 2.0 that used FlashVars successfuly. I just rewrote to AS 3.0 with CS3, and cannot get FlashVars to work.


                1) When using an external package class, how do you pass a FlashVar into the class? Is it really the same as passing a var onto the main timeline?

                2) In any case, I also tried placing all my AS 3.0 on the main timeline (stripped of package form), and still don't get success with FlashVar.

                Can someone post a concrete example of getting FlashVars to work with AS 3.0?

                • 5. Re: FlashVars bug in CS3?

                  I don't know if this helps any.  This is what I have used.

                  in Flash CS3

                  //bank = 5000;
                  bank = root.loaderInfo.parameters.bank;  //Pulls the variable from mysql db

                  in php file

                  $q = "SELECT (chips) FROM st_users WHERE uid='$user'";
                  $qr = mysql_query($q);
                  $bankarray = mysql_fetch_array($qr, MYSQL_ASSOC);
                  $bank = $bankarray['chips'];

                  flashvars ="bank='.$bank.'"