PDA

View Full Version : Targetting iframe page from flash



blah-de-blah
August 28th, 2003, 09:41 AM
This probably goes in the flash section, but i thought it'd be more relevant to Javascript (i think).

So anyways, i have a flash created button. And i want this button to change the content of an iframe. How would i do this? I was thinking using 'getURL'. But i'm not too sure how. I was also thinking of sending a variable to a PHP page, and then processing it from there. But i'm not sure which it would be. Any clues? thanks!

Jubba
August 28th, 2003, 03:42 PM
getURL("location", "target", "method");

target is the name of the frame. And sending variables to a php page can be seen here:

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17604

blah-de-blah
August 29th, 2003, 12:30 AM
Yeah thanks that works perfectly jubba :thumb: but i was just doin a test with the send variable thing, but it doesn't see to work :-\ I have this code in my PHP page:



<?PHP
$var1 = $_POST['inputbox'];
print "VAR1 = ".$var1;
?>


and this code in my flash:


on (release) {
getURL("processVar.php", "_blank", "GET")
}


I've tried changing the 'gets' and 'posts' around but they dont seem to work sill :-\ I'm trying to send some information from an input box to process through the php form. Do you know whats wrong? thanks!