Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-31-2009, 07:43 AM   #1
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
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.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2009, 07:53 AM   #2
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
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.
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2009, 08:11 AM   #3
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Quote:
Originally Posted by fris View Post
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/
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.