Jump to content


Photo
* * * * * 2 votes

TIP:SWFAddress v2.0/SWFObject v1.5 with Express Install/SwishMax2


  • Please log in to reply
53 replies to this topic

#1 FlawlessDog

FlawlessDog

    Advanced Member

  • Members
  • PipPipPip
  • 516 posts
  • Gender:Male
  • Location:We're not in Wisconsin anymore, Toto.
  • Interests:Doin' 3D in Swish

Posted 16 November 2007 - 10:20 PM

SWFAddress 2.0 - Deep linking for SWiSHMax2 Flash and Ajax

Download | Samples | Docs | Showcase | Resources | License (MIT) | Forums

SWFAddress is a small, but powerful library that provides deep linking for SWiSHMax2, Flash and Ajax. 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

Supported Browsers

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

-----------------------------------------------------------------------------------------------------------------------

I have been working on this for a while, and have been waiting for this new SWFAddress2.0
I hope that this SwishMax2 2007.09.25 version I have put together, will be included not only
in the sample pages at http://www.asual.com/, but also in the next updated zip file.

SWFAddress2.0 and SwishMax2
http://flawlessdog.c...s2_0_SwishMax2/

and a deeplink to portfolio 2
http://flawlessdog.c.../#/portfolio/2/

This version also includes a SwishMax2 version of the expressinstall to go with the SWFObject

-----------------------------------------------------------------------------------------------------------------------

/**
* SWFAddress 2.0: Deep linking for Flash and Ajax - http://www.asual.com/swfaddress/
*
* SWFAddress is � 2006-2007 Rostislav Hristov and is released under the MIT License:
* http://www.opensourc...mit-license.php
*
*/
/**
* SWFObject v1.5.1: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
*
* SWFObject is � 2007 Geoff Stearns and is released under the MIT License:
* http://www.opensourc...mit-license.php
*
*/
/*
=============================
Copyright � 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
This software is released under the MIT License < http://www.opensourc...mit-license.php >
=============================
Express Install
Copyright � 2005-2007 Adobe Systems Incorporated and its licensors. All Rights Reserved.
=============================
AS1 version
=============================
*/


/*
This conversion to SWiSHMax2 2007.09.25 by
L.E.Benedict
http://www.flawlessdog.com/
*/

Attached Files


FlawlessDog.com - 'previously eggs-in-Wisconsin'
My top threads to watch: | (Check for multiple/updated attachments in each thread)
Bringing it all together | MC_Tween2 for SM2 | experimental xml gallery | 3d Spiral Stair Case
Component Pack | SWFAddress v2.0/SWFObject v1.5 | Practice script - (chat app) | 3D

#2 FlawlessDog

FlawlessDog

    Advanced Member

  • Members
  • PipPipPip
  • 516 posts
  • Gender:Male
  • Location:We're not in Wisconsin anymore, Toto.
  • Interests:Doin' 3D in Swish

Posted 17 November 2007 - 12:05 AM

I am proud to announce that my sample has been accepted, and will be included in the SWFAddress project,
and should show up in the sample pages soon, and in the zip file for the next SWFAddress update.
FlawlessDog.com - 'previously eggs-in-Wisconsin'
My top threads to watch: | (Check for multiple/updated attachments in each thread)
Bringing it all together | MC_Tween2 for SM2 | experimental xml gallery | 3d Spiral Stair Case
Component Pack | SWFAddress v2.0/SWFObject v1.5 | Practice script - (chat app) | 3D

#3 mathespup

mathespup

    New Member

  • New Members
  • Pip
  • 2 posts

Posted 17 November 2007 - 12:49 AM

great job.

i've done the same thing for swfaddress 1.1 / swishmax 1 for a new german forum 2 weeks ago. haha
swfaddress 2.. interesting. :D

http://www.swish4all...ight=swfaddress

#4 Bojko

Bojko

    Advanced Member

  • Members
  • PipPipPip
  • 344 posts
  • Gender:Male
  • Location:Croatia

Posted 17 November 2007 - 01:03 AM

I am proud to announce that my sample has been accepted, and will be included in the SWFAddress project,
and should show up in the sample pages soon, and in the zip file for the next SWFAddress update.

I believe I speak in the name of all of us on Swishzone when I say:"Thanks, you're the greatest!".
I can use this very well.
Thanks!!!
Bojan Mesar, CEO @ "Kreativa Studio - Izrada Flash Stranica"
Posted Image
LATEST: Flash - Potrčko Zagreb � HTML - Mikrofonija � Layout - Tony Robbins || SOCIAL: on Twitteron Facebookon Kontain

#5 FlawlessDog

FlawlessDog

    Advanced Member

  • Members
  • PipPipPip
  • 516 posts
  • Gender:Male
  • Location:We're not in Wisconsin anymore, Toto.
  • Interests:Doin' 3D in Swish

Posted 17 November 2007 - 09:35 AM

Just making notes for updates on this:

SM2 can now use "include"
I should use it.
Do we know what the official extention is for the external script files for SWiSHMax2?
I've seen dot "ss" someplace, but so long as the script is written in notepad
or something similar, then it really doesn't seem to matter what the extention is.

In anycase, I did make an external file, with the extention dot ss,
and named it appropriatly enough, SWFAddress.ss

I've attached it to the bottom of this post.
Get the SWFAddress.ss out of the zip file, and place it in the root folder with website.swi
Open a copy of website.swi and delete all the script from the main timeline script panel.
Next, copy and paste the following script into that main timeline panel, save and publish.
Seems to work on my machine.

onSelfEvent (load){
	Stage.scaleMode = 'noScale';
	Stage.align = 'T';
	include "SWFAddress.ss";
	// Custom utilities
	replace = function(str, find, replace) {
		return str.split(find).join(replace);
	};
	toTitleCase = function(str) {
		return str.substr(0,1).toUpperCase() + str.substr(1);
	};
	formatTitle = function(title) {
		return 'SWFAddress Website' + (title != '/' ? ' / ' + toTitleCase(replace(title.substr(1, title.length - 2), '/', ' / ')) : '');
	};
	// SWFAddress actions
	btnRelease = function() {
		SWFAddress.setValue(this.deepLink);
	};
	btnRollOver = function() {
		SWFAddress.setStatus(this.deepLink);
	};
	btnRollOut = function() {
		SWFAddress.resetStatus();
	};
}
onFrame (1) {
	this.onEnterFrame = function() {
		var bl:Number = getBytesLoaded();
		var bt:Number = getBytesTotal();
		if (bl && bt && bl == bt) {
			gotoAndPlay(_currentframe + 1);
			delete this.onEnterFrame;
		}
	};
	stop();
}
onFrame (2) {
	// SWFAddress handling
	SWFAddress.onChange = function() {
		var value = SWFAddress.getValue();
		if (_currentframe == 2 && value == '/') {
			play();
	   } else {
		   var frame = _currentframe;
		   gotoAndStop('$' + value);
		   if (frame == _currentframe) {
			   gotoAndStop('$/error/');
			   return;
		   }
	   }
	   SWFAddress.setTitle(formatTitle(value));
	};
}
onFrame (20) {
	setLabel("$/");
	stop();
}
onFrame (30) {
	setLabel("$/about/");
}
onFrame (40) {
	setLabel("$/portfolio/");
}
onFrame (50) {
	setLabel("$/portfolio/1/");
	container_mc.loadMovie('images/1.png');
}
onFrame (60) {
	setLabel("$/portfolio/2/");
	container_mc.loadMovie('images/2.png');
}
onFrame (70) {
	setLabel("$/portfolio/3/");
	container_mc.loadMovie('images/3.png');
}
onFrame (80) {
	setLabel("$/contact/");
}
onFrame (90) {
	setLabel("$/error/");
	//stop();
}

This shortens up the script in the main movie, and makes it easier to work with.

Cool, huh?

Attached Files


FlawlessDog.com - 'previously eggs-in-Wisconsin'
My top threads to watch: | (Check for multiple/updated attachments in each thread)
Bringing it all together | MC_Tween2 for SM2 | experimental xml gallery | 3d Spiral Stair Case
Component Pack | SWFAddress v2.0/SWFObject v1.5 | Practice script - (chat app) | 3D

#6 Michael Chrysler

Michael Chrysler

    Advanced Member

  • Admin
  • PipPipPip
  • 4732 posts
  • Gender:Male

Posted 18 November 2007 - 05:41 AM

Hi Larry,
Name it anything you want just be careful.

Just like flash,, .as it's nothing more then a flat file. (txt)


.ss some may take offense to
.sss is already taken (SWiSH Studio2)

Personally I like .sm2

#7 FlawlessDog

FlawlessDog

    Advanced Member

  • Members
  • PipPipPip
  • 516 posts
  • Gender:Male
  • Location:We're not in Wisconsin anymore, Toto.
  • Interests:Doin' 3D in Swish

Posted 18 November 2007 - 07:10 AM

Hi Larry,
Name it anything you want just be careful.

Just like flash,, .as it's nothing more then a flat file. (txt)


.ss some may take offense to
.sss is already taken (SWiSH Studio2)

Personally I like .sm2


Thanks Mike,
I really wasn't sure about that one.
That might be something the powers that be should maybe pin down for once and all, as it were.

.sm2 sounds good to me
...unless someone from above says different. ;)
In either case, I want to get it right.

It seems I will get to keep the sample(s) updated, so as new features and changes are made to SWFAddress
I can make the nessesary changes to the SWiSHMax2 files also.

I am going to say now, that this is a subject SWiSHMax user should keep a close eye on.
There's a lot of cool stuff in these files, and the work Rostislav Hristov is doing.
Hmmm...all of a sudden a swish site can be searchable and is search engine friendly,
and those search results can be linked to the very flash/swish page the user is looking for.
Using it is so much like flash, so all the flash tutorials will help, until something better can be written.
Anybody that would like to help with that, will be welcomed.
FlawlessDog.com - 'previously eggs-in-Wisconsin'
My top threads to watch: | (Check for multiple/updated attachments in each thread)
Bringing it all together | MC_Tween2 for SM2 | experimental xml gallery | 3d Spiral Stair Case
Component Pack | SWFAddress v2.0/SWFObject v1.5 | Practice script - (chat app) | 3D

#8 FlawlessDog

FlawlessDog

    Advanced Member

  • Members
  • PipPipPip
  • 516 posts
  • Gender:Male
  • Location:We're not in Wisconsin anymore, Toto.
  • Interests:Doin' 3D in Swish

Posted 18 November 2007 - 07:37 AM

.sm2 doesn't work.

yes it does...sorry.
Funny...it didn't at first...but does now...
I must have missed something before.
FlawlessDog.com - 'previously eggs-in-Wisconsin'
My top threads to watch: | (Check for multiple/updated attachments in each thread)
Bringing it all together | MC_Tween2 for SM2 | experimental xml gallery | 3d Spiral Stair Case
Component Pack | SWFAddress v2.0/SWFObject v1.5 | Practice script - (chat app) | 3D

#9 FranklinFerreira

FranklinFerreira

    Advanced Member

  • Members
  • PipPipPip
  • 7705 posts
  • Gender:Male
  • Location:Arouca - Portugal
  • Interests:My home, my son, my wife, my family, my work, my friends... my life!

Posted 18 November 2007 - 01:32 PM

Hi Larry,

great work as always
thanks for sharing

according to this
the "click to activate" issue will be removed from IE after April 2008
can you make a version of this without the SWFObject?
Posted Image

#10 FlawlessDog

FlawlessDog

    Advanced Member

  • Members
  • PipPipPip
  • 516 posts
  • Gender:Male
  • Location:We're not in Wisconsin anymore, Toto.
  • Interests:Doin' 3D in Swish

Posted 19 November 2007 - 02:39 AM

Hi Larry,

great work as always
thanks for sharing

according to this
the "click to activate" issue will be removed from IE after April 2008
can you make a version of this without the SWFObject?


I think at this point in time, SWFAddress needs the SWFObject or at least UFO to work.
I haven't been able to find a sample that doesn't use one or the other and all but one uses SWFObject.
There is a v2 of SWFObject in beta right now.
I suspect that silly embed issue will be addressed in due time.
It was dumb to start with, and it's dumb now.
Never should have been an issue to begin with.
But it is an issue, and some good came from it.

Case in point, SWFAddress. ;)
FlawlessDog.com - 'previously eggs-in-Wisconsin'
My top threads to watch: | (Check for multiple/updated attachments in each thread)
Bringing it all together | MC_Tween2 for SM2 | experimental xml gallery | 3d Spiral Stair Case
Component Pack | SWFAddress v2.0/SWFObject v1.5 | Practice script - (chat app) | 3D

#11 FlawlessDog

FlawlessDog

    Advanced Member

  • Members
  • PipPipPip
  • 516 posts
  • Gender:Male
  • Location:We're not in Wisconsin anymore, Toto.
  • Interests:Doin' 3D in Swish

Posted 20 November 2007 - 03:37 AM

I am a happy man today. :)
My SWiSH Max2 sample has been included with the others
http://www.asual.com...ddress/samples/
FlawlessDog.com - 'previously eggs-in-Wisconsin'
My top threads to watch: | (Check for multiple/updated attachments in each thread)
Bringing it all together | MC_Tween2 for SM2 | experimental xml gallery | 3d Spiral Stair Case
Component Pack | SWFAddress v2.0/SWFObject v1.5 | Practice script - (chat app) | 3D

#12 peterg

peterg

    Advanced Member

  • Members
  • PipPipPip
  • 5563 posts
  • Gender:Male
  • Location:Essex, England. (UK)
  • Interests:Family, Computing, Web Design, Digital Imaging, Reading, Motor Sport

Posted 20 November 2007 - 06:30 AM

Yo! Well Done Larry :)

Congratulations!

Peter.
peterg,
SWiSH, SWiSH, SWiSH, SWiSH.....SWiSHing!! :)

#13 reiger65

reiger65

    Advanced Member

  • Members
  • PipPipPip
  • 77 posts

Posted 20 November 2007 - 04:56 PM

oeps, server down.....

#14 FlawlessDog

FlawlessDog

    Advanced Member

  • Members
  • PipPipPip
  • 516 posts
  • Gender:Male
  • Location:We're not in Wisconsin anymore, Toto.
  • Interests:Doin' 3D in Swish

Posted 21 November 2007 - 04:35 AM

oeps, server down.....


Just an Internet *hickup*
Should all work now :P
FlawlessDog.com - 'previously eggs-in-Wisconsin'
My top threads to watch: | (Check for multiple/updated attachments in each thread)
Bringing it all together | MC_Tween2 for SM2 | experimental xml gallery | 3d Spiral Stair Case
Component Pack | SWFAddress v2.0/SWFObject v1.5 | Practice script - (chat app) | 3D

#15 FlawlessDog

FlawlessDog

    Advanced Member

  • Members
  • PipPipPip
  • 516 posts
  • Gender:Male
  • Location:We're not in Wisconsin anymore, Toto.
  • Interests:Doin' 3D in Swish

Posted 22 November 2007 - 08:31 AM

This is kindof cool.
I took gsb's "Not just another scrollbar", and
I made a few changes so it would work with SWFAddress,
and the swish sample files I have.

How's this look?
RightClick to nav, and see if it works.
http://www.flawlessd...s2_0_SM2Test01/
FlawlessDog.com - 'previously eggs-in-Wisconsin'
My top threads to watch: | (Check for multiple/updated attachments in each thread)
Bringing it all together | MC_Tween2 for SM2 | experimental xml gallery | 3d Spiral Stair Case
Component Pack | SWFAddress v2.0/SWFObject v1.5 | Practice script - (chat app) | 3D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users