Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-18-2007, 10:10 PM   #1
misplacedparadox
Registered User
 
Join Date: Sep 2007
Posts: 31
Default pulling specific variable from php file into as2.0

i'm trying to pull a specific variable (i.e. $feed), from a php file, actually the php file that the flash movie is playing in. it is being turned into a generated xml.

what i have done so far is pulling a generated xml from another php file, by calling the php file within my actionscript i can get the "echo $feed" from the php file. in actionscript i am using myXML.load("this.php");

that all works, but i want to be able to pull a specific variable from a php file that the flash file is embeded in, any suggestions?
misplacedparadox is offline   Reply With Quote
Old 10-19-2007, 03:55 PM   #2
kool-Aid
The dude abides
 
kool-Aid's Avatar
 
Join Date: Sep 2006
Location: PA
Posts: 568
Send a message via AIM to kool-Aid
Default

This is probably the most incoveient way to do it, but you could have php write your variable to a text doc then have flash pull the .txt file. I only thought of this way because i just had to do it.
kool-Aid is offline   Reply With Quote
Old 10-19-2007, 04:28 PM   #3
misplacedparadox
Registered User
 
Join Date: Sep 2007
Posts: 31
Default

thanks for the response, it sounded like a tricky means of getting a variable, i was curious from a design challenge perspective if it was doable/been done. i convinced my php-er to make a seperate page instead where i can read the eco of the variable as mentioned.
misplacedparadox is offline   Reply With Quote
Old 10-19-2007, 04:40 PM   #4
xxneon
Super Moderator
 
xxneon's Avatar
 
Join Date: Dec 2006
Location: Amish Country, PA
Posts: 8,570
Send a message via ICQ to xxneon Send a message via AIM to xxneon Send a message via MSN to xxneon Send a message via Skype™ to xxneon
Default

just pass the variable in your embed code with FlashVars..

http://kb.adobe.com/selfservice/view...6417&sliceId=1

or as a query string in the path for the swf.. 'myswf.swf?feed='<?echo $feed?>
__________________
Always optimizing...

Last edited by xxneon; 10-19-2007 at 04:43 PM.
xxneon is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting information from PHP file StormINK ActionScript 2.0 2 12-10-2005 10:20 PM
Problem with AS and PHP, have to click button twice to return variable from php jetgrind ActionScript 2.0 5 10-19-2005 07:43 AM
Skinning components with embedded components epeace Components 5 06-16-2005 08:35 PM
Writing to a file (locally only) isleshocky77 ActionScript 1.0 (and below) 13 08-23-2001 02:43 AM
Loading Variable From A PHP Directed Text File Gamesmash ActionScript 1.0 (and below) 5 06-05-2001 07:41 AM


All times are GMT. The time now is 09:28 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.