Difference between revisions of "Flash"
From Wikicliki
(→Clicktag) |
|||
Line 17: | Line 17: | ||
<table> | <table> | ||
<tr> | <tr> | ||
− | <td> | + | <td valign=top> |
For Google: | For Google: | ||
<pre>on (release) { | <pre>on (release) { | ||
Line 25: | Line 25: | ||
}</pre> | }</pre> | ||
</td> | </td> | ||
− | <td> | + | <td valign=top> |
For others: | For others: | ||
<pre> | <pre> | ||
Line 35: | Line 35: | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | |||
== Reducing File Size == | == Reducing File Size == |
Revision as of 13:04, 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(); } }
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.