Jump to content


* * * * * 2 votes

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


53 replies to this topic

#31 NitWit

    Advanced Member

  • New Members
  • PipPipPip
  • 51 posts

Posted 26 February 2008 - 05:40 AM

I am still using SwishMax. Will this work on a site developed with Swish Max or is there aother way to get the browser back button working? It is one scene with several sprites.
My dog Indy. 19 month old Newfoundland 140 lbs!

#32 FlawlessDog

    Advanced Member

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

Posted 27 February 2008 - 04:24 AM

 NitWit, on Feb 25 2008, 01:40 PM, said:

I am still using SwishMax. Will this work on a site developed with Swish Max or is there aother way to get the browser back button working? It is one scene with several sprites.

In short, no.
You will need to upgrade to SWiSHMax2 to use this.
The upgrade to SM2 is well worth the money!
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

#33 FlawlessDog

    Advanced Member

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

Posted 10 April 2008 - 03:11 AM

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
(8MB, Including docs, samples and sources)

or just the core scripts (17KB).


Release notes

Quote

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.


...and maybe someone could change the title of this thread to read:
RESOURCE:SWFAddress v2.0/SWFObject v1.5 with Express Install/SwishMax2
instead of:
ANSWERED:SWFAddress v2.0/SWFObject v1.5 with Express Install/SwishMax2

thanks :)
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

#34 Bojko

    Advanced Member

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

Posted 11 April 2008 - 05:09 AM

Could you possibly make a sample where SWFaddress.onChange is used to make it more dynamic?
I had a lot of trouble with making it work - and failed at the end :(
I have used this:
	SWFAddress.onChange = function ()
	{
		var myaddress = SWFAddress.getValue();
		if (myaddress == "")
		{
			SWFAddress.setValue("/home");
		}
		else if (myaddress == "/home")
		{
			content.loadMovie("home.swf");
		}
		else if (myaddress == "/news")
		{
			content.loadMovie("news.swf");
		}
		else if (myaddress == "/about")
		{
			content.loadMovie("about.swf");
		}
	}
Tried the tutorials wherever I was able to find them, but just couldn't make it work.

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

#35 FlawlessDog

    Advanced Member

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

Posted 11 April 2008 - 07:25 AM

All the flash samples I am able to open(flash8-), all seem to be time-line based.
I don't think the SWFAddress.onChange function was made to work like that.
I think you'll need to set your loadMovie functions in the appropriate frames.

I can look into it further, but can not make any promises...
If you know of a sample/tutorial I am missing that does what you want,
please post a link(s) to it/them.
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

#36 Bojko

    Advanced Member

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

Posted 11 April 2008 - 08:39 AM

I'm quite sure it's used similar to what I typed in my previous post otherwise SWFaddress wouldn't be that dynamic. Also PLUR uses SWFaddress.onChange in his guestbook. Hope he'll read this, wouldn't want to bother him over private messages.
I don't remember where I originally found this way of using SWFaddress but HERE and HERE you can see it being used like that.

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

#37 PLUR

    Advanced Member

  • Members
  • PipPipPip
  • 578 posts
  • Gender:Male
  • Location:_root.world.australia.brisbane

Posted 11 April 2008 - 09:32 AM

oops... please remove this post, thx
PLUR::[Peace, Love, Unity & Respect] | portfolio: http://lv.felagi.com

Posted Image Posted Image

#38 PLUR

    Advanced Member

  • Members
  • PipPipPip
  • 578 posts
  • Gender:Male
  • Location:_root.world.australia.brisbane

Posted 11 April 2008 - 09:34 AM

SWFaddress.onChange works fine with dynamic data. Here is a sample of code from my old blog (as there'r some problems with domain address I had to close blog for a wile).
onFrame (1){
SWFAddress.onChange = function() {
		var value = SWFAddress.getValue();
		myvar = value;
		getData(myvar);
};
}
function getData(value:String){
	
	//value = "menu=Menu&sub=Submenu&page=1&article=10";	
	totalStuff = value.split("&");
	for (i in totalStuff){
		newvar = totalStuff[i].split("=");
		if (newvar[0].toLowerCase() == "menu"){
			curMenu = newvar[1];
		}else if (newvar[0].toLowerCase() == "sub"){
			curSubMenu = newvar[1];
		}else if (newvar[0].toLowerCase() == "page"){
			curPage = newvar[1];
		}else if (newvar[0].toLowerCase() == "article"){
			curArticle = newvar[1];
		}
	}
		....................
		....................
}


I hope that you will get a part of this script useful for you ;)
Bthw, when the second blog will be finished, the previous one source files will be dropped for a public :)
PLUR::[Peace, Love, Unity & Respect] | portfolio: http://lv.felagi.com

Posted Image Posted Image

#39 Bojko

    Advanced Member

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

Posted 11 April 2008 - 09:39 AM

Ah, great!!! I'll try this first thing tomorrow after I get some sleep :)
Thanks PLUR!

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

#40 FlawlessDog

    Advanced Member

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

Posted 11 April 2008 - 01:10 PM

Ok...
Not sure if this is what you wanted, but...
Is this what you wanted? ;)


..

Attached Files


Edited by eggs-in-Wisconsin, 11 April 2008 - 01:20 PM.

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

#41 Bojko

    Advanced Member

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

Posted 11 April 2008 - 06:59 PM

 eggs-in-Wisconsin, on Apr 11 2008, 04:10 AM, said:

Ok...
Not sure if this is what you wanted, but...
Is this what you wanted? ;)


..
Yes sir, I believe this is it. Don't know how that didn't work for me before tho. Tried it a million of times.
And now I can script the buttons like:
on (release,releaseOutside){
	SWFAddress.setValue("/about/");
}
And it works!!! :)
Thank you.

EDIT:
I see, I've been using it onSelfEvent(Load) and both of you guys used it somewhere in a time line. Perhaps that's where the problem was.

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

#42 FlawlessDog

    Advanced Member

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

Posted 12 April 2008 - 01:21 AM

Cool! Glad it worked out :)

When doing this, be sure you have all the forward slashes "/" in the page names.
That may have been a part of the trouble.

As to the onSelfEvent(Load)
that is the new way to write it in SM2
I admit, it takes a little bit to get used to
after writing onLoad() for all those years ;)
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

#43 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 12 April 2008 - 01:46 AM

onSelfEvent(load) perhaps?
Posted Image

#44 FlawlessDog

    Advanced Member

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

Posted 16 April 2008 - 11:19 AM

Ok...

I am working on a SEO version for SWiSHMax2.
I think I got it, based on work done by Rostislav Hristov
for the flash SEO version, here:
http://www.asual.com...ss/samples/seo/

http://sourceforge.net/forum/forum.php?thr...forum_id=630934

http://www.flawlessd.../SwishMax2_SEO/

I am not at all sure at this point, how to test this...
But still, it seems to work as well as the flash version,
aside from a couple little bugs.
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

#45 FlawlessDog

    Advanced Member

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

Posted 18 April 2008 - 08:40 AM

Well, I got most of the bugs worked out, I think.

have a look here:
http://www.flawlessd.../SwishMax2_SEO/

SwishZone get's the first look at the SEO SWiSH site source files.

Enjoy! :lol:

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users