PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old August 5th, 2002, 05:09 PM
bob.g bob.g is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 bob.g User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
passing variables into php and back from flash 5

Hi guys, whatever... can someone please help me. I am trying to retrieve a counter value from PHP and trying to display it in flash 5. Also a some later stage, I will need to reset the counter, so I will need to send a value to a PHP script. I would appreciate a small code as example, or if someone could point me in the right direction.

thanks
BOB.G

Reply With Quote
  #2  
Old August 8th, 2002, 11:29 PM
Sparky_T Sparky_T is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Campbell River, BC, Canada
Posts: 1 Sparky_T User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: passing variables into php and back from flash 5

I think if you use actionscript's loadVariableNum() to pull the counter variable into the Flash movie as a dynamic text variable, it will. Have the URL point to the page holding the PHP variable and make sure that it has no extra characters, returns, new lines, quotation marks, etc. And pass only one value from the page to the Flash movie (ie $count=44).
hth

Reply With Quote
  #3  
Old August 9th, 2002, 07:57 AM
siteworkspro.com siteworkspro.com is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 92 siteworkspro.com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to siteworkspro.com Send a message via AIM to siteworkspro.com
RE: passing variables into php and back from flash 5

you need to create a file called count.php? it dat, create a variable

lets say something like this

count=123234

ok, of course you can make that number dymamic, it doesnt matter as long as when it comes out its in that format

then using loadVariableNum(count.php, "0")

Load it with a button or something

make sure you have a dynamic field called count, and when the variable is loaded it should work!

Reply With Quote
  #4  
Old August 9th, 2002, 10:06 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: passing variables into php and back from flash 5

or take this nice tutorial at phpbuilder. it helped me alot!

http://www.phpbuilder.com/columns/hill20011214.php3

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > passing variables into php and back from flash 5


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT