Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : flash and php


agatam
6/20/2004 10:58:26 PM
I am a very very beginner in Flash and Web at all.
I put Flash movie as a button in my php site.
I wanted to write
<A "href=mysite.php?var1=$s&var2=$s2"><OBJECT>/*here comes description of
flash movie*/</OBJECT></A>
but A element doesn't work with OBJECT.
How can I send variables to php script. I tried to use:
getURL("mysite.php?var1=$s&var2=$s2")
but it doesn't work either.
Thanks for any help.
Retroboy_mx
6/21/2004 4:57:07 PM
Hi!

If you are working with hard data server information is more easy to use the
LoadVars Class for manage all the data.

function myFunction(){
trace("YEAHHH")
}

var my_variable:LoadVars=new LoadVars()
my_variable.onLoad=myFunction
my_variable.load("yourscript.php?uniqueID=" + getTimer(), this, "POST"); or
GET

I add getTimer(), because some browser have problems refresing data example
Apple Safari


Happy Flash.

:-D

Fearless Studio 2004

AddThis Social Bookmark Button