actionscript + php question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #1

    actionscript + php question

    Is it possible to pass a variable used by a php script in actionscript, even though its not defined in the actionscript, but in the actual external php script?

    Im trying to pass the wordpress plugin path to a video plugin that requires a script, normally it has to be put in the root directory, I want it in the plugin directory instead.

    any help is greatful.

    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.
  • quantum-x
    Confirmed User
    • Feb 2002
    • 6863

    #2
    You can communicate between flash/AS and PHP in a few ways.

    The most simple is to just pass the variable as a flashvar.
    IE, in your embed src.... foo.swf?varname=<?=$value?>
    Obviously depending on your embed method (swfobject etc) the implementation will change.

    Failing that, you can use AS to do a datapost to a URL, and receive back information.

    I'm assuming the first will be what you're looking for.
    PrettyInCash.com - BoozedGFs.com - TeenGFs.com - JizzGFs.com- MilfUploads.com -

    Comment

    • nation-x
      Confirmed User
      • Mar 2004
      • 5370

      #3
      Originally posted by fris
      Is it possible to pass a variable used by a php script in actionscript, even though its not defined in the actionscript, but in the actual external php script?

      Im trying to pass the wordpress plugin path to a video plugin that requires a script, normally it has to be put in the root directory, I want it in the plugin directory instead.

      any help is greatful.

      You can actually call a javascript function that uses ajax to retrive the value from php.

      http://snipplr.com/view/2946/call-an...ript-function/

      Comment

      Working...