precision
asked on
php to swf - param name="FlashVars" value="id=123&rid=456"
Ok, I am not a flash expert so be understanding, thanks! I have PHP file that will send data into flash, such as:
goingintoflash.php
<param name="FlashVars" value="id=123&wa=456&ww=78 9">
Inside the fla file I have image that is clickable or hotspot, not sure of flash lingo
on (release) {
getURL("learnmore.php", "_self");
}
How do I get in flash, learnmore.php to be "learnmore.php?id=123&wa=4 56&ww=789 ???
I read somewhere that it goes in the root? Where is that????
goingintoflash.php
<param name="FlashVars" value="id=123&wa=456&ww=78
Inside the fla file I have image that is clickable or hotspot, not sure of flash lingo
on (release) {
getURL("learnmore.php", "_self");
}
How do I get in flash, learnmore.php to be "learnmore.php?id=123&wa=4
I read somewhere that it goes in the root? Where is that????
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
yes, you got it right,
ASKER
Ok, just had the time to try, does not work, I know its me, not sure where to find the issue. In the index.php file I have:
<param name="FlashVars" value="id=123&wa=456&ww=78 9">
Then in the swf I stuck:
on (release) {
getURL("learnmore.php?id=" +_root.id+ "&wa="+_ro ot.wa+"&ww ="+_root.w w, "_self");
}
Not working though, does the code above have to be in certain scene or level? I am not a flash expert.
Thanks!
<param name="FlashVars" value="id=123&wa=456&ww=78
Then in the swf I stuck:
on (release) {
getURL("learnmore.php?id="
}
Not working though, does the code above have to be in certain scene or level? I am not a flash expert.
Thanks!
you have to put the above code on a button..
and on click of button above code will execute...
alternative, just put following code in FLA's first frame:
---------
getURL("learnmore.php?id=" +_root.id+ "&wa="+_ro ot.wa+"&ww ="+_root.w w, "_self");
---------
it will gets executed itself as swf loads in browser
alternative, just put following code in FLA's first frame:
---------
getURL("learnmore.php?id="
---------
it will gets executed itself as swf loads in browser
ASKER
Its on a button already, I just exchanged:
on (release) {
getURL("learnmore.php", "_self");
}
FOR
on (release) {
getURL("learnmore.php?id=" +_root.id+ "&wa="+_ro ot.wa+"&ww ="+_root.w w, "_self");
}
My learnmore.php has in body:
<?=$_GET['id']?><br>
<?=$_GET['wa']?><br>
<?=$_GET['ww']?><br>
learnmore.php comes up blank.
on (release) {
getURL("learnmore.php", "_self");
}
FOR
on (release) {
getURL("learnmore.php?id="
}
My learnmore.php has in body:
<?=$_GET['id']?><br>
<?=$_GET['wa']?><br>
<?=$_GET['ww']?><br>
learnmore.php comes up blank.
ASKER
Just got it to work....Dummy me...I did not refesh one page...YOU THE MAN!
ASKER
on (release) {
getURL("learnmore.php?id="
}
and when user clicks on the url it will drag the data back out?
Nice if so...Let me know before I try