Flash

From Wikicliki
Revision as of 13:04, 19 May 2008 by WikiSysop (talk | contribs) (Clicktag)

Jump to: navigation, search

it is sad but i only have limited vegetable powers of Macromedia Flash (now known as Adobe Flash), so i am slowly figuring it out while making Flash Banners. useful flash notes go here.

Actionscripted Tweening

Preloader

stop();
onEnterFrame = function(){
	if (_root.getBytesLoaded() == _root.getBytesTotal()){
		delete onEnterFrame;
		play();
	}
}

Clicktag

For Google:

on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG, "_blank");
}
}

For others:

on (release) {
getURL(clickTAG, "_blank");
}

Reducing File Size

  • Compress images in photoshop before adding them to your flash library.
  • Save duplicated objects as movieclips and reinsert them as iterations of the same mc.
  • Shorten the length of loops.