Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: Totally baffled...help please |
From: | Phil Ward |
Date: | Sat, 13 May 2000 08:32:28 +0100 |
Hi all, still can't crack the passing of PHP generated variables to my swf
whilst on a server apologies for the re-post new info below.
It's almost as if the string being generated by the PHP3 page is not
considered to be a text file, so is ignored.
Should I be putting some code in the HTM page to properly pass the info to
the swf? other than the OBJECT and EMBED tags.
Here is the string being created if a direct call is made to the PHP page in
the browser.
transport=By+Rail &dest1=Thamesport+Le+Havre &sailing1=Wednesday
&cutoff1=Saturday &days1=6+days &dest2=Hamburg &sailing2=Sunday
&cutoff2=Thursday &days2=6+days &dest3=Liverpool+Antwerp &sailing3=Sunday
&cutoff3=Wednesday &days3=6+days &destA=Naples+Genoa+Fos &sailingA=Sunday
&cutoffA=Saturday &daysA=6+days &destB=Livorno &sailingB=Sunday
&cutoffB=Friday &daysB=6+days &destC= &sailingC=Sunday &cutoffC= &daysC=&
This is what it looks like when the source is viewed
transport=By+Rail
&dest1=Thamesport+Le+Havre
&sailing1=Wednesday
&cutoff1=Saturday
&days1=6+days
&dest2=Hamburg
&sailing2=Sunday
&cutoff2=Thursday
&days2=6+days
&dest3=Liverpool+Antwerp
&sailing3=Sunday
&cutoff3=Wednesday
&days3=6+days
&destA=Naples+Genoa+Fos
&sailingA=Sunday
&cutoffA=Saturday
&daysA=6+days
&destB=Livorno
&sailingB=Sunday
&cutoffB=Friday
&daysB=6+days
&destC=
&sailingC=Sunday
&cutoffC=
&daysC=&
The files act as they should when viewed locally...the variables are passed
and all is good...but when uploaded to the server, which also holds the
MySQL DB and the PHP3, the variables are not getting through.
Here's the code:
Frame 1
Label loading
Load Variables
("http://212.69.197.118/generator/mapdata.php3?city=Kansas+City",
"/kansas_vars", vars=POST)
There is also empty mc with an instance name of kansas_vars to collect the
loaded PHP3 string.
Frame 2
If (/kansas_vars:cutoff3 ne "")
Go to and Stop ("done")
End If
Frame 3
Go to and Play ("loading")
Frame 5
mc instance name kansas_primary with buttons which contains an mc called
secondary containing the text variable place holders dest_output etc. action
script attached to the buttons in kansas_primary mc as below...this is just
one button example
On (Roll Over)
Set Variable: "secondary/:dest_output" = /kansas_vars:dest1
Set Variable: "secondary/:transport_output" = /kansas_vars:transport
Set Variable: "secondary/:sailing_output" = /kansas_vars:sailing1
Set Variable: "secondary/:days_output" = /kansas_vars:days1
Set Variable: "secondary/:cutoff_output" = /kansas_vars:cutoff1
Begin Tell Target ("secondary")
Go to and Play ("display data")
End Tell Target
End On
On (Roll Out)
Begin Tell Target ("secondary")
Go to and Stop (1)
End Tell Target
End On
That's the structure and it would be repeated for 30 cities on a map.
The swf has a detection script to check that the variables are being loaded
before the call is made on them, which again works locally...see above.
If I create a .txt file with the same variable string as is being produced
by the PHP page it works fine...so is the blockage being caused by the PHP
string not being interpreted as a text string?
I have checked Macromedia technotes and various tutorials and I can't see a
problem with what I am trying to achieve.
Any ideas gratefully received as I am about to go and find a large brick
wall!
TIA
Phil Ward
Crescent Graphics
phil-wcrescent-graphics [dot] co [dot] uk
www.crescent-graphics.co.uk
New Media <> Internet <> Visuals
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml
Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: Gettimer problem, Jester
Re: FLASH: Totally baffled...help please, Helen Triolo
FLASH: Re: [flashpro] Totally baffled..., Joe Laffey
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]