LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 05-16-2005, 09:52 PM
glennandrewcoop glennandrewcoop is offline
Registered User
 
Join Date: May 2005
Posts: 2
Rep Power: 0
glennandrewcoop is on a distinguished road
Unhappy pass PHP variable to Flash

Ok, I've spend most of the night trying to find out how to pass a php variabe to a flash file with no luck.

Here's what I've done so far:

PHP code:
PHP Code:

print "vForename=\"$Login\""
Which works fine - see: http://osiris.sunderland.ac.uk/~ca3gco/flash/test.php

I've also tried the above without the speech marks.


In flash I have created a textbox, with no instance name, and the variable name set to vForename. I then converted this to a symbol, exporting it to ActionScript, setting the code as follows:

[SWF]
onClipEvent(load)
{ loadVariables("http://osiris.sunderland.ac.uk/~ca3gco/flash/test.php", this,"POST");
}[/SWF]

I've also tried "GET" in the method with no luck.

Can someone PLEASE tell me where I'm going wrong! It seems such a simple task!
Attached Files
File Type: zip test.zip (5.3 KB, 2 views)
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Flash Builder 4.6 is now available for download FlashMove Flash Builder 0 12-05-2011 01:35 AM
Is it possible to pass data between flash and php? simy202 General Flash 1 01-19-2011 07:41 AM
2D Physics Engine Scottae Members Cafe 11 07-24-2008 04:36 PM
Php - Mysql - Flash julianseclaire Flash Media Server 1 03-30-2004 04:21 PM




All times are GMT. The time now is 01:22 AM.