Difference between revisions of "Flash"

From Wikicliki
Jump to: navigation, search
 
Line 4: Line 4:
 
*[http://hosted.zeh.com.br/mctween/index.html MC Tween - Best way to tween]
 
*[http://hosted.zeh.com.br/mctween/index.html MC Tween - Best way to tween]
 
*[http://code.google.com/p/tweener/ Tweener - New way to tween]
 
*[http://code.google.com/p/tweener/ Tweener - New way to tween]
 +
 +
== Preloader ==
 +
<pre>stop();
 +
onEnterFrame = function(){
 +
if (_root.getBytesLoaded() == _root.getBytesTotal()){
 +
delete onEnterFrame;
 +
play();
 +
}
 +
}</pre>
 +
  
 
== Reducing File Size ==
 
== Reducing File Size ==

Revision as of 13:02, 19 May 2008

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();
	}
}


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.