IneedHelp
IneedHelp

Reputation: 1758

AS3 Retrieve And Set Page URL From SWF

I have seen more than a couple of sites using flash content and displaying it based on the URL string.

For example, accessing http://domain.com/ loads the site normally and the SWF object displays the home page and sets the URL to http://domain.com/#/home. Then accessing the About section sets the URL to http://domain.com/#/about

Also, if accessing http://domain.com/#/services directly (from the browser's address bar), loads the site and the SWF displays the Services section automatically.

I would like to implement something similar to this as well. Could anyone tell me how to do it?

Thank you.

Upvotes: 1

Views: 142

Answers (1)

Adam Harte
Adam Harte

Reputation: 10510

You mean "deep linking", and with Flash it is usually done using SWFAddress. The website has a bunch of good examples to get you started.

Upvotes: 1

Related Questions