PDA

View Full Version : Maintining Flash Continuity Across Several HTML pages


vidablue
07-14-2007, 08:30 PM
Description:
I have a flash swf embedded as an object in a wiki. The flash swf acts as a navigation. In this flash movie, the navigation can potentially display a long breadcrump of levels before finding the right button that loads a new html page (new url). However, when the new page loads, I want the flash nav to look exactly like it did when the user left the last page. In other words, the flash breadcrumb that was visible on the last html page's flash nav should be the same on the new html page.

Objective:
I'm trying to think of a "clean" way to solve this problem. I have considered options like calling the cookies and passing those parameters to the flash. However, this is not the ideal solution. I'm worried if users have disabled thier cookies then there's no way to trace back?

spriggan
07-19-2007, 07:08 AM
javascript keeps track of where you've been in an object so you could just access that object (window.history), thought it would be better to just use JS to do your breadcrumbs then. You could also use PHP or ASP to create a new array on page load by pushing each new location into an array upon load and then displaying them in the breadcrumbs.

Honestly going the Non flash route here is the the clean way, so unless you need it for some reason I'd just skip the flash, but you could send all that data to flash for use.

ncracker
07-20-2007, 09:34 AM
I am experiencing the same problem. Having a "menu" flash object on top of the page, having to launch the pages that are to appear according to what's clicked on the menu. Not any thing special, however there is the problem of flickering while the change occurs, since my menu is the same SWF file throughout the different pages. So I decided to load those pages in a different layer and preserve my HTML - however how does flash call out HTML in a different layer?!

spriggan
07-23-2007, 01:39 AM
To get the link to open up in the bottom frame (ie the parent frame) on the getURL function in Flash just set the target to _bottom or _parent just like you would with normal HTML Frames.