Hi Drew,

Are you using the latest build of FlashJS?

I believe this has to do with the release build of Flash/JS Integration Kit's use of the getURL('javascript:') method to send script calls to javascript. javascript: urls break HistoryKeeper. You can get around this by using fscommand from within flash to send calls out to javascript from flash, but I believe they are using that method in the latest version.

http://www.osflash.org/flashjs/docs/getsource

Download the one that is generated daily (http://weblogs.macromedia.com/flashjavascript/fjs_source.zip)

If that's not it, let me know, and I'll see if I can think of something else. :-)

Oh, if you are using javascript: urls anywhere else in you flash movie, that will break it too.


Kevin N.



Drew Foehn wrote:
Hi Kevin,

After wrestling with this issue for awhile and writing a solution
myself, I decided to try your more elegant implementation and found it
very useful, I really like the 'onHistoryChange event' notification
system. I tied it to the JavaScript Integration Kit to notify my flash
app.

I have an issue with IE that is very perplexing and it occurs with my
solution and yours. After making more than 2 calls to update the
location.hash object, IE6 freezes and stops loading the page. I think
it's the same issue that is documented here
http://www.thescripts.com/forum/threadnav157294-1-10.html and I don't
see a solution to it. Have you had this issue?

Cheers,

Drew Foehn
Actionscript Developer
HotHouse Interactive

---------------------------------
p:  +61 2 9432 3600
e: [EMAIL PROTECTED] ---------------------------------
HotHouse Interactive Pty Ltd
Level 3, 154 Pacific Highway
St Leonards NSW 2067
Australia
---------------------------------
www.hothouse.com.au <http://www.hothouse.com.au/> ---------------------------------


-- Original Message --
Date: Tue, 25 Apr 2006 11:50:33 -0400
From: Kevin Newman <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] Deep Linking and the Back button.
To: Flashcoders mailing list <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I have made a script that intends to solve this very issue. It is a single javascript file (no extra server calls to grab a file to fill the

iframe, it's all done in javascript), with a method (addHistory) that adds a history entry, and a delegation pattern for history change notification. You can find it here:

http://www.unfocus.com/projects/HistoryKeeper/
http://www.unfocus.com/projects/source/

The history script only takes care of the history portion, you will have

to take care of the javascript/flash communication using one of the many

techniques available (my communication framework, or FlashJS, or ExternalInterface), and you will need to set up a small script that will

update the flash movie when the state changes. The state will also need to be maintained by your custom Flash scripting (however it is that you build your app, I recommend MVC, and making a VC out of the history part

of the app).

I am working on a History Bridge (JS side is done) to take or this, but it isn't ready for prime time yet.

Kevin N.







_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to