PDA

View Full Version : Flash And Php Variables



Cory
July 24th, 2003, 12:40 PM
Here Is My Problem,

I Am Trying To Make Buttons In Flash That Link To Other Pages On The Site. When You Press On A Button, It Will Take You To A Page Like main.php?page=thepage. (Which Also Has Flash)

I Am Trying To Use The Variable page (from The Url) In The Flash On The New Page. How Do I Get It From The Url, Into The Flash?

I Have Looked All Over But Cannot Find A Solution That Works.

Thanks,

Cory

lostinbeta
July 24th, 2003, 12:46 PM
Ok, Server-Side flash is an area I failed at, but hopefully these tutorials can help you...

http://www.kirupa.com/developer/actionscript/scripting.htm


Other than that, I can't help much, sorry.

ahmed
July 24th, 2003, 12:53 PM
lv = new LoadVars();
myButton.onRelease = function() {
lv.page = "the page"
lv.send("main.php", "_self", "GET");
}

That Does It :) Make Sure That The Button Has An Instance Name of myButtom :)

Cory
July 24th, 2003, 01:49 PM
Okay.............That Worked.............I Can Read Flash Variables In Php......How Do I Now Read That Php Variable Into Flash?