• 0

loading html or php into flash


Question

i am trying to make a site in flash mx 2k4 and i cant seem to get the AS right

this is what i have

on (release) {
	getURL("home.htm", "_self");
}

thats on a button, when i click the button, i want it to load a html(maybe php) file into a certain spot in the flash, and i cant get it to work, any help would be appreciated, thanks

Link to comment
https://www.neowin.net/forum/topic/165620-loading-html-or-php-into-flash/
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I'm mainly a Flash5 guy, but I'm guessing your wanting to load variables from PHP into a dynamic text box in flash. To do this you need to use

loadVariablesNum ("something.php", 0, "POST");

This is used if your going to load the variables into a specifc level, if you want to load it into a specific movie clip then use

loadVariables ("something.php", "movieclip", "POST");

This is usually used in a button but can also be used in keyframes as well.

If you want to sent the variables from flash to php use POST or GET at the end, otherwise you can take that part out.

Something to keep in mind is where the variables are going, (to a different movie clip, or even a movie clip inside of another movie clip. For this you need to add some code before loadvariables such as:

_root.hello.loadVariables ("something.php");

For more info on this check out

http://www.actionscript.org/tutorials/inte...ion/index.shtml

Cheers

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.