|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i have a link from a flahs movie to an html page which loads in the same window....when a link in the page returns the user to the flash movie (the homepage) i would like to skip certain parts of the movie by the use os say a flag variable that gets passed to the movie....is there anyway i can do this in javascript fro instance okay thanks for your help!!!
|
|
#2
|
|||
|
|||
|
hey,
whatever name you give your flash movie wheny ou embed it, you can pass variables by referring to that name. But it won't work on a mac. Another method would be to have javascript write the actual embed and object tags, flag a javascript variable and then have javascript write a variable into the .swf by appending the src attribute like: src=mymovie.swf?alreadyseen=true then have your flash movie looking for that. If the javascript variable that tells you if they've seen the page already isn't there, you can just embed it like you always do. You could pass these variables by having a hidden frame or something. make sense? bret |
|
#3
|
|||
|
|||
|
thanks!!!
hey bret,
thanks a lot for the speedy reply...the whole passing by appending to a url suddenly seemed really obvious to me....i don't even need to use javascript...just two html files with different values passed for the different states of the movie....now to see if i can get it working! |
|
#4
|
|||
|
|||
|
right, that would work, but only if they use a link to go back to your page. If they hit the back button, they will be taken to the page without the appended url... at least i think that's how it would work... well, good luck anyway
bret |
|
#5
|
|||
|
|||
|
You'll probably also want to look into FlashVars:
http://www.macromedia.com/support/f...s/flashvars.htm |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > passing variables!!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|