Flashvars?
- Started
- Last post
- 5 Responses
- CyBrain
I have a form page that has several buttons in a nav. I want any of those nav buttons to go to a specific frame of a flash movie. I'm a little familiar with flashvars, but how do I send the value from one html page to another page that has a flash movie in it?
I want this page: http://www.sundayatnoon.com/test…
to work with the flash on this page: http://www.sundayatnoon.com/test…
Thanks in advance.
- acescence0
you could either send a get or post request, just like if you were submitting a form to a script, then grab the var and print it on the target page. so... mypage.html?myvar=whatever and then a bit of php on the target page to print the var to your flash embed...
post would be the same, except you'd use $_POST[] to grab it and it would be prettier without the ?= nonsense at the end
- acescence0
sorry, a bit sleepy from sun and booze, this will work, haha...
- vaxorcist0
hmmm.. not totally sure what you mean...
you could do this using variables in the links, then having a PHP script put those into the flashvars dynamically, then have the actionscript in the flash movie goto that frame...
idea:
nav buttons have links like:
otherpage.php?frame=4
ptherpage.php?frame=10
otherpage.php?frame=part1part1 or some text name (no spaces) is better than numbers that may change...
---------------
then where the flashvars are set in the HTML exported by flash, you dynamically set that using PHP:<PARAM NAME=FlashVars VALUE="frame=<? echo $_GET['frame']">
(or something similar...)then, in your actionscript, you read the "frame" variable, and goto that frame....
- acescence0
damn, i suck at explaining stuff