Difference between revisions of "Flash"
From Wikicliki
Line 13: | Line 13: | ||
} | } | ||
}</pre> | }</pre> | ||
+ | |||
+ | == Clicktag == | ||
+ | <table> | ||
+ | <tr> | ||
+ | <td> | ||
+ | For Google: | ||
+ | <pre>on (release) { | ||
+ | if (clickTAG.substr(0,5) == "http:") { | ||
+ | getURL(clickTAG, "_blank"); | ||
+ | } | ||
+ | }</pre> | ||
+ | </td> | ||
+ | <td> | ||
+ | For others: | ||
+ | <pre> | ||
+ | on (release) { | ||
+ | getURL(clickTAG, "_blank"); | ||
+ | } | ||
+ | </pre> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </table> | ||
Revision as of 13:03, 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.