SunQuest
 
           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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old January 19th, 2003, 07:17 AM
danielpearce danielpearce is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 10 danielpearce User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 5 sec
Reputation Power: 0
Unhappy Dynamic Flash using PHP

Hi,

I'm trying (what I thought was a simple) test to load variables from a php page into flash. The flash piece is simple, about 10 frames of the main timeline containing 3 dynamic text fields.

The variables these fields hold are obtained from a basic php script...

PHP Code:
<?php
    $FileName 
"test name";
    
$TotalFiles 7;
    
$Dummy "bloody marys'";
    
    print 
"FileName=$FileName\n";
    print 
"TotalFiles=$TotalFiles\n";
    print 
"Dummy=$Dummy\n";
?>


The flash piece then loads them using "loadVariablesNum("fileList3.php", 0);".

Now, for some reason flash will only load the first variable stated and no others. Can anyone point out if I'm doing anything wrong?

Many thanks

Daniel

Reply With Quote
  #2  
Old January 19th, 2003, 11:47 AM
numbernine numbernine is offline
Up To His Eyes In Ads
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Chicago
Posts: 160 numbernine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 25 sec
Reputation Power: 6
Hey Daniel,
you need to join your variables with ampersands so that the php pages prints out a string like:

FileName=myValue&TotalFiles=myOtherValue&Dummy=Another Value

Reply With Quote
  #3  
Old January 19th, 2003, 06:12 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Quote:
Originally posted by numbernine
Hey Daniel,
you need to join your variables with ampersands so that the php pages prints out a string like:

FileName=myValue&TotalFiles=myOtherValue&Dummy=Another Value


This is partly true. There is one other problem, flash cache's files like a mofo (its bad), so to get around this you need to do.

loadVariablesNum("fileList3.php?RND="+random(999), 0);

Reply With Quote
  #4  
Old January 20th, 2003, 03:42 AM
danielpearce danielpearce is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 10 danielpearce User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 5 sec
Reputation Power: 0
Many thanks guys,

Daniel

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignFlash Development > Dynamic Flash using PHP


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