I am using Swishmax and have created flash movies for products on my site.
My site is bilingual, so that on each page I have an English and a French version of the flash (2 different movies on the same page). I have put each of the movies in a different <asp:panel>, and I am setting their visibility property to true or false depending if the cookie identifies the user as an english or a french visitor.
The code works fine whenever a visitor comes in from any language.
Now I also have a "Change language" button on my webpage, which changes the person's language preference in their cookies.
Now if I go back to the page with the flash movies (after I changed the language at least one time), it will always show the flash IN THE PERSON'S PREVIOUS LANGUAGE. It just seems to totally ignore the code, and seems to think the flash it has already loaded is just fine.
So I have the wrong language on the screen. But if I push reload on the browser, the page language changes and the page loads the correct flash movie.
Here's my code, where the <asp:panels> are named "air" and "airf":
Sub Page_Load(Source as Object, E as EventArgs)
If Not Request.Cookies ("userprofile") Is Nothing then
Whichlang = Request.Cookies ("userprofile")("langpref")
air.Visible = False
airf.Visible = False
If Whichlang = "english" then
air.Visible = True
airf.Visible = True
Help ! I need to release the site ASAP!