Hi,
I've been involved into a project where the client required the deep linking
feature.
The project is built with pure AS3 embedding symbols from a SWF library
file, ZendAMF php and mysql,
Now the question is how can I sync the address with the current state of my
flash movie. All I know is that I have two things to do, which are to change
the flash state then change the address, and at the other hand to listen for
address changes and change the state based on that change.
What sounded logical to me is to change the link address directly when
changing the state so that when the address changes, the listener handler
logic brings the right flash state... like this:
HomeButton.addEventListener(MouseEvent.CLICK, onButtonClick);
SWFAddress.addEventListner(SWFAddressEvent.CHANGE, onAddressChange);
private function onButtonClick(e:MouseEvent):void {
//changes the address here to "www.mysite.com/#/home
}
private function onAddressChange(e:SWFAddressEvent):void {
//reads the address, understands that refers to home, and changes the
state to home.
}
I don't know if this is the right thing to do in this case. I just need some
advice because things are too much buggy.
Cordially.
--
Omar M. Fouad - Adobe Flashâ„¢ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [email protected]
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders