Forum Moderators: open

Message Too Old, No Replies

Pass data to flash from html page

         

djclark

5:31 am on Nov 24, 2004 (gmt 0)

10+ Year Member




I need some assistance with a site we are developing...

At the top of the page it has a flash file embeded that plays music, we give the option for the music to be paused/muted.
Here lyes the problem, if i move from one page to another the music starts up again even though i have selected to pause it.

I need to be able to to have it so that when a user pressess pause the music will not start up again when they change page. I thought we could use javascript to read and write cookies to store if we should pause the music or not.

But how do we get the values back into flash? hidden input? can i return data from a javascript function to flash? can i pass a variable to the html emeded parmeters?

Any help would be great

rocknbil

5:49 pm on Dec 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Search the flash help files for loadVariables. :-) There are many ways to the top of the mountain.

4string

1:00 pm on Dec 10, 2004 (gmt 0)

10+ Year Member



Something easy would be to load a shared object on the user's computer (it's like a cookie) that says whether they have music on pause or not. Look up shared object in Flash help.