Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you mix html in Flash ??

Status
Not open for further replies.

hoja

Technical User
Dec 3, 2003
102
US
Hello...I am creating a website in flash 5....but I have a form that is written in PHP, it's a simple form to retrieve feedback from customers....my first question can incorporate a php form or an html page into flash ? and my second question is, if I create a button from the flash website ("contact") how can I make it jump to the contact.html page that I originally created?is the only way of doing this using the "Get URL" script in flash?

Thank you for your help
 
yes, its easy enough to use the getURL function:

e.g. on a button

Code:
on(press){
    getURL("contact.html");
}

//if you want it in a new window
on(press){
    getURL("contact.html","_blank");
}

you would have to use the loadVars(); function to get databack into flash.

Code:
lv = new LoadVars();
lv.onLoad = function() {
	_root.textboxInstanceName.html = true;
	_root.textboxInstanceName.htmlText = lv.myData;
};
lv.sendAndLoad("page.php", lv, "GET");

then on the php page you would need a string that looked like this:

Code:
echo "&myData=Testing";

hope it helps!


Regards,

Martin

Gaming Help And Info:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top