Flash Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignFlash Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 3rd, 2002, 01:56 PM
zkitty zkitty is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: CT
Posts: 6 zkitty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to zkitty
Load variables and the such.

I was reading the flash articles here, they helped me alot. I have a question about sending variables from php to flash.
For sending something to flash from php i use something like this
echo '_root.main.news =' . " <b>What I want to say</b>";
The thing i'm stuck on is sending multiple things to flash.
echo '_root.main.news =' . " <b>What I want to say</b>";
echo '_root.main.otherthing =' . " <b>2nd thing I want to say</b>";
That doesnt seem to work.
How would i set something like that up?
I also have another question. It doesnt seem to work when i load variables from 2 different php files. For example:
loadVariablesNum("vars.php?RND="+random(999999), 0);
loadVariablesNum("othervars.php?RND="+random(999999), 0);
But it does work with one php file. I'm forced store everything in one php file, which is ok, but I would rather have multiple files. Well, i think thats it. Hopefully you can help me out.
-John

Reply With Quote
  #2  
Old October 3rd, 2002, 05:13 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
you need to make php print the values out like this

var1=value1&var2=value2&....

something like that, thats the only way flash can read the vars

Reply With Quote
  #3  
Old October 3rd, 2002, 10:09 PM
zkitty zkitty is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: CT
Posts: 6 zkitty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to zkitty
So something similar to:
echo '_root.main.news =' . " <b>What I want to say</b>"&'_root.main.otherthing =' . " <b>2nd thing I want to say</b>";
right?

Reply With Quote
  #4  
Old October 3rd, 2002, 11:40 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
that should work

Reply With Quote
  #5  
Old October 3rd, 2002, 11:43 PM
zkitty zkitty is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: CT
Posts: 6 zkitty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to zkitty
Thanks Ben, I'll test it once my ftp program starts working again.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignFlash Development > Load variables and the such.


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 6 hosted by Hostway