PDA

View Full Version : SWFAddress 2.0 Update - Deep linking for Flash and Ajax



prg9
November 15th, 2007, 09:08 AM
SWFAddress 2.0 - Deep linking for Flash and Ajax

Main Page (http://www.asual.com/swfaddress/) | Download (http://www.asual.com/download/?swfaddress) | Samples (http://www.asual.com/swfaddress/samples/) | Docs (http://www.asual.com/swfaddress/docs/) | Showcase (http://www.asual.com/swfaddress/showcase/) | Resources (http://www.asual.com/swfaddress/resources/) | License (http://www.opensource.org/licenses/mit-license.php) (MIT) | Forums (http://sourceforge.net/forum/?group_id=181584)

SWFAddress is a small, but powerful library that provides deep linking (http://en.wikipedia.org/wiki/Deep_linking) for Flash and Ajax (http://en.wikipedia.org/wiki/Ajax_(programming)). It's a developer tool, allowing creation of unique virtual URLs, pointing to a website section or application state. SWFAddress enables a number of important capabilities which are missing in today's rich web technologies including:

• Bookmarking in a browser or social website
• Sending links via email or instant messenger
• Finding specific content with the search engines
• Utilizing browser history, back / forward and reload buttons
• Easy integration with SWFObject (see "Quick Setup for SWFObject (http://www.asual.com/swfaddress/docs/)")

Supported Browsers

Mozilla Firefox 1+
Internet Explorer 6+
Mozilla 1.8+
Safari 1.3+
Camino 1+
Opera 9.02+
Netscape 8+

Here is the full changelog for version 2.0: (link (http://www.asual.com/blog/swfaddress/2007/11/16/swfaddress-2.html))

• Support for multiple Flash movies and Ajax.
• Event listeners for ActionScript and JavaScript.
• New SWFAddressEvent class with support for INIT and CHANGE types.
• New unobtrusive SEO technique.
• Support for Adobe Flash CS3.
• Support for Flash Player 7 with the Flash/JavaScript Integration Kit.
• Support for SWFObject 2.0 (http://code.google.com/p/swfobject/), UFO and Adobe's Active Content embedding.
• New strict mode that adds trailing slashes by default.
• New helper methods for link, window and popup management.
• Ability to configure the script with query parameters.
• The swfaddress.html is optional and not used by default.
• Lots of new and improved Flash based samples.
• Various optimizations and fixes.
• API docs for ActionScript 3 and JavaScript.

Blog posts (Its worth reading ALL of these).

SWFAddress 2.0 is coming (http://www.asual.com/blog/swfaddress/2007/11/02/swfaddress-2-is-coming.html)
SWFAddress 2.0 part 1 - The story so far (http://www.asual.com/blog/swfaddress/2007/11/13/swfaddress-2-pt1-the-story-so-far.html)
SWFAddress 2.0 part 2 - Why it matters (http://www.asual.com/blog/swfaddress/2007/11/14/swfaddress-2-pt2-why-it-matters.html)
SWFAddress 2.0 part 3 - Ajax and SEO (http://www.asual.com/blog/swfaddress/2007/11/15/swfaddress-2-pt3-ajax-and-seo.html)
Official SWFAddress 2.0 Release Blog Post (http://www.asual.com/blog/swfaddress/2007/11/16/swfaddress-2.html)

It seems like a very well thought out and substantial expansion/update to an already awesome solution. You can see from the Showcase (http://www.asual.com/swfaddress/showcase/) the types of companies whom utilize this solution to get an idea of its impact and usage with in the community, pretty impressive.

Goning to be AWESOME!

:kommie:

tonni
November 15th, 2007, 10:42 AM
Had high hopes - tried the samples, but no real succes - using firefox 1.8.1.9: 2007102514.

VirgoAnima
November 15th, 2007, 10:46 AM
i'll definitely be trying this out!

prg9
November 15th, 2007, 11:15 AM
Had high hopes - tried the samples, but no real succes - using firefox 1.8.1.9: 2007102514.

:h: What was the problem? Meaning you viewed the sample on the site or you used the samples in the old download v1.1 and did some testing ? If you do feel its an actual bug/issue, it would be helpful to report it on the SWFAddress Forums in the following thread - SWFAddress 2.0 - A call for testing (http://sourceforge.net/forum/forum.php?thread_id=1860143&forum_id=630934).

You state "no real success" but given the Showcase sites and the brand names using the technology I am sure if there was a severe issue with Firefox then those brands would not be using it to jeopardize there campaigns etc...

Again contact the developer if you feel there is a actual issue, by doing so it will benefit everyone.

:}

FlawlessDog
November 15th, 2007, 03:10 PM
Sweet.
I just finished my first simple swishmax example (http://www.flawlessdog.com/SwishMax2_SWFAddress/#/about/) with SWFAddress1.1
One more thing the SWFAddress works well with :thumb2:
Those folks at asual are good!

prg9
November 15th, 2007, 04:44 PM
I just finished my first simple swishmax example with SWFAddress1.1, One more thing the SWFAddress works well with. Those folks at asual are good!

Nice one FlawlessDog, when 2.0 releases you might want to convert the Flash version to your swishmax (so it matches their sample files) and maybe try sending the swishmax version to them in case they want to add it to there samples page (http://www.asual.com/swfaddress/samples/). I am sure they might as they have so many options on there already. Worth a shot! Good work, interesting to know it works with that also.

FlawlessDog
November 15th, 2007, 08:11 PM
I just finished the SwishMax2 version
that looks like the official asual flash version (http://www.asual.com/swfaddress/samples/flash/)

Here's the SwishMax2 2007.09.25 version
How's this?
http://flawlessdog.com/eggzdownload/SWFAddress1_1_SwishMax2/

Here's a deeplink to portfolio 2
http://flawlessdog.com/eggzdownload/SWFAddress1_1_SwishMax2/#/portfolio/2/

FlawlessDog
November 16th, 2007, 07:53 AM
Well, I got the SWFAddress2.0/SwishMax2 sample done, I think.

SWFAddress2.0 and SwishMax2
http://flawlessdog.com/eggzdownload/SWFAddress2_0_SwishMax2/

and a deeplink to portfolio 2
http://flawlessdog.com/eggzdownload/SWFAddress2_0_SwishMax2/#/portfolio/2/

This new version does work better, I think.

tonni
November 16th, 2007, 10:01 AM
Sorry prg9...... my mistake, I had the new Flash Player update 9.0.60.184 Moviestar installed - which obviously doesn't support swfaddress. After installing 9.0.47 it seems to work very well. In IE it worked perfectly, only in
firefox when using the small arrows next to the previous/forward button I had minor issues.

prg9
November 16th, 2007, 10:53 AM
Sorry prg9...... my mistake, I had the new Flash Player update 9.0.60.184 Moviestar installed - which obviously doesn't support swfaddress. After installing 9.0.47 it seems to work very well. In IE it worked perfectly, only in
firefox when using the small arrows next to the previous/forward button I had minor issues.

:thumb: Good to hear tonni, I thought it sounded odd right before they launched the new version ;)

Reminder Again (for people using SWFAddress):

If anyone does find issues/bugs or have problems, report them to the developers as it will help make SWFAddress better for everyone!

FlawlessDog
November 19th, 2007, 01:36 PM
I am a happy man today. :)
My SWiSHMax2 sample has been included with the others
http://www.asual.com/swfaddress/samples/

prg9
November 19th, 2007, 04:53 PM
I am a happy man today. My SWiSHMax2 sample has been included with the others

Congrats FlawlessDog, thats pretty cool for you. I am sure it will be a benefit to your fellow SWiSHMax users also. Good job.

FlawlessDog
November 22nd, 2007, 01:01 PM
Thanks :)

I have spent a little time working with some script (http://www.swishzone.com/index.php?area=resources&tab=movies&do=page&action=detailed&link_id=2892) a friend of mine originally wrote
for SWiSHMax. It's a text field thing with scrollbar, and a bunches of other stuff.
One of the things he packed into this scrollbar was some rightclick menu options.
The original rightclick stuff was geared for use with anchors set in the text filed.
I had to make a few changes to his script, to add some functions so it would work with SWFAddress.

Here's what I can up with so far.
RightClick to nav through this, and check it out.
What do you think? Does it work ok?
http://www.flawlessdog.com/eggzdownload/SWFAddress2_0_SM2Test01/

jimhere
November 23rd, 2007, 02:34 PM
It list the entire "table of contents" in the right menu -- nice.

prg9
November 23rd, 2007, 05:15 PM
One of the things he packed into this scrollbar was some rightclick menu options.
The original rightclick stuff was geared for use with anchors set in the text filed.
I had to make a few changes to his script, to add some functions so it would work with SWFAddress. RightClick to nav through this, and check it out.What do you think? Does it work ok?

Nice, would like to see a Flash version of both the scroll with right click to go to section, and also the right click SWFAddress.... if your up to it :)

ultimante
November 23rd, 2007, 06:33 PM
I have released a new version of Gaia, 1.1.7, which has full support for SWFAddress 2.0.

http://www.kirupa.com/forum/showthread.php?t=279461

~SomeOne~
December 9th, 2007, 02:47 PM
First i would like to thank you for this great job
It deserve donate :)
But I had Problem with SEO Sample there is little mistake I could not solve it
There is a JavaScript function in "index.php" named "swfaddress_content();" I think this function print the called case's content from the "datasource.php" file. But it's seems that it just call the first case only "/" at the time
I discovered that action is for the for the search engines spiders to read the content but this mistake is not helping because it stuck at only one content :(
I tried editing the JS filed "swfaddress.js" and the other but I found code like antes all over :D
I add an attachment to see the problem so clear if my English is not good enough :D:D

Thanks in advance

SomeOne

FlawlessDog
April 9th, 2008, 02:36 PM
swfAddress 2.1 is now available for download.
A few bugs have been fixed,
Better support for the google-analytics.com/ga.js
and the SWiSHMax2 example I supplied is included in the download.

http://www.asual.com/swfaddress/


Download SWFAddress 2.1 (http://www.asual.com/download/?swfaddress)
(8MB, Including docs, samples and sources)

or just the core scripts (http://www.asual.com/download/?swfaddress-dist) (17KB).


Release notes (http://sourceforge.net/project/shownotes.php?group_id=181584&release_id=590904)

Release Name: SWFAddress 2.1
Notes:
A major dot release, bringing various improvements and fixes.
--------------------------------------------------------------------------------
Changes:
- New SWFAddressOptimizer class that encapsulates the JavaScript SEO code
and improves the HTML degradation of Flash websites.
- New getPathNames and getBaseURL methods.
- New Rewriteless sample for SEO support without URL rewriting.
- New YouTube Player API sample for video deep linking.
- New SWiSH Max2 sample.
- Tomcat SEO sample ported to Flex.
- Enhanced SEO sample.
- Improved href and popup methods.
- Safari 3 reload and popup blocker fixes.
- Deep links validation for XSS vulnerabilities.
- DOM fix for Firefox.
- The new Google Analytics tracking is supported out of the box.
- Strict mode no longer requires a slash at the end of the value.
- The A2S/AS3 classes are available in the com.asual.swfaddress package.
- Flex 3 compatibility.

Rada
April 9th, 2008, 05:00 PM
I have experience with StateManager by exanimo. Is yours better?

FlawlessDog
April 9th, 2008, 05:06 PM
Exanimo says so themselves:
http://exanimo.com/actionscript/statemanager/


Due to the success (and quality) of Asual's SWFAddress, I've decided to stop work on this project. SWFAddress is now capable of all the things that StateManager is, so it doesn't seem very beneficial to the open source community to continue development on StateManager. The source code and examples will remain available but no longer be updated, but keep checking xa for other open source code!

Rada
April 9th, 2008, 06:49 PM
eek. *upgrades*

Anogar
April 9th, 2008, 08:08 PM
Looks great, thanks. :)

Gazurt
June 19th, 2008, 05:42 AM
Can you write a simple html code which doesn't check flash player version? I couldn't make it work :(

Thanks

Fragilem17
December 3rd, 2008, 01:03 PM
package be.but.navigation
{
import com.asual.swfaddress.SWFAddress;


public class MyBrowserManager extends SWFAddress
{



}
}

using MyBrowserManager trying any of the static functions in SWFAddress gives a compile error.

Call to a possibly undefined method ..

how would I go arround this? what is the best practise?

Krilnon
December 3rd, 2008, 05:28 PM
Static functions aren't inherited by subclasses. Just use SWFAddress.someStaticMethod.