;

PDA

Click to See Complete Forum and Search --> : tell html file that variable Test = "ready" from flash?


CrystalComet k
11-28-2006, 04:17 PM
Hi,

I have this problem which i can't seem 2 figure out. In the html file (main.html) i am using a selfmade varialbe called 'Test' .

Test = "stoppp" when the html code is entered for the first time.

THen i have a flash (swf) file which has to trigger the Test variable. When a button is pushed in the flash file then the variable in the html file has to change.

Test = "ready"



is this possible and how can i achieve this. tnx very much for reading and i'm looking forward to your reply! :rolleyes:

Frets
11-29-2006, 06:47 AM
Hi,

Html is static. your not going to beable to change the substance of it.

rdoyle720
11-29-2006, 03:03 PM
Of course you can change HTML, you do it with Javascript.

Basically you need to use Flash to call a Javascript function. Basically in the HTML you'd have something like

test="stop";
function changeMe(){
test="ready";
}

and then in the Flash movie something like:

on(release){
getURL("javascript: changeMe()");
}

Though you may run into security errors depending on which version of the Flash player you're targeting.