4 Replies Latest reply on Dec 28, 2009 1:33 PM by ASJoke

    managing loadVars in html embeded swf

    ASJoke

      I am working with loadVars in an swf file embedded in

      an html page. The script is written to add a text string

      to existing textfield. The documentation I have does

      not address this situation. How do I get the return

      value from the server to the embedded SWF file in

      this situation?

       

      Thank you for time and attention;

      JK

        • 1. Re: managing loadVars in html embeded swf
          kglad Adobe Community Professional & MVP

          that's the typical situation.  what problem are you having?

          • 2. Re: managing loadVars in html embeded swf
            ASJoke Level 1

             

            I am developing an mp3 player (I have been posting to the AS 3 forum

            about it

            and you have responded with helpful info, there).

            In the Action Script 3.0 and 2.0 Flash player version 8 I am using

            externalInterface

            to load a play list from the html page. But as I write code around

            fsCommand() for

            version 7, I noticed that fsCommand() will not return a value to action

            script, so my

            work around is to use loadVars to get the play list directly into the

            swf player app.

             

            I thought I had seen the use of a loadVars attribute in the

            object/embed tag sets

            but I don't recall where I saw that and can't find it now.

             

            Oddly, when I load the swf directly into the browser, the version 7 swf

            code will work

            in Fire Fox on Mac OSX 1.5x with Flash version 10 plugin, But the

            version 7

            swf will not work in Fire Fox 1.5x with version 7 Flash plugin (on Mac

            OSX 1.3x).

             

            I am working with a local development server. I am using Flash CS4 and

            setting

            the publish settings to version 7 player. Each version has a container

            directory

            named 'V(version #). Javascript sniffs the Flash plugin version and

            loads the

            appropriate version in to the object/embed tag sets. I am generating

            versions

            with publish settings for 7,8,9, & 10.

             

            Thank you for your time and attention

            JK

             

             

            • 3. Re: managing loadVars in html embeded swf
              kglad Adobe Community Professional & MVP

              you mean flashvars, not loadvars.  the most common cause of a flashvars problem is the failure to define the variable(s) in all needed locations.

               

              with flashvars there are 3 places where you need to define your variable(s):  in a param tag, embed tag and the ac_fl_runcontent function.  have you done that.

              1 person found this helpful
              • 4. Re: managing loadVars in html embeded swf
                ASJoke Level 1

                 

                Yes, of course, flashvars. I need to get a reference to documentation

                to find out how to use that.

                I will do a google search but I have flash_as2_learning.pdf ( based on

                doc downloaded from

                Adobe site, and Action Script 2.0 Language Reference, as well as

                O'reilly's Essential Action

                Script 2.0 and 3.0. As well I will have to get documentation on

                ac_fl_runcontent function.

                 

                thank you for your time and attention;

                JK