views:

97

answers:

2

in my flex .swf file I check for "#/1" at the end of the URL in the browser address box (and if its present, use a local Flex SharedObject to restore a previous state). if "#/1" is not present, I call SWFAddress.setValue("1") which has the effect of appending "#/1" on the end of the URL in the browser address box, if that top level URL is also the url of the html page containing my .swf file.

My problem occurs when the html file containing the swf is in a frame, in which case calling SWFAddress.setValue("1") replaces the top level URL in the browser address box with the URL of this frame page (and then appends the "#/1" on the end of that), which then makes this frame page the top level, wiping out all the other frames. But I just want to append "#/1" on the end of whichever top level url address happens to be in the browser address box (not replace its entire content with the url of the frame page containing the swf.

Hopefully that's succinct enough in case anyone has a solution.

A: 

javascript:

window.self.location.hash

and just dispense with swfaddress entirely for my purposes I think.

Mark
didn't work - the problem is the page title, which is altered strangely when you just set the 'hash' as above. swfaddress is doing some sort of alchemy to maintain the page title, but then it can't handle frames as I indicated in the OP.
Mark
A: 

did you figure out how to get this to work? I have a similar problem: SWFAddress inside a frame works in IE/FF but not in Chrome.

Any ideas?