Difference between revisions of "Flash"
Line 104: | Line 104: | ||
Q: WHY DOESN'T MY CODE WORK? I'VE CHECKED IT MILLIONS OF TIMES AND ITS CORRECT???<br> | Q: WHY DOESN'T MY CODE WORK? I'VE CHECKED IT MILLIONS OF TIMES AND ITS CORRECT???<br> | ||
A: Check that its set to publish the correct version of Actionscript. If you are writing in Actionscript 2, make sure its exporting in Actionscript 2! | A: Check that its set to publish the correct version of Actionscript. If you are writing in Actionscript 2, make sure its exporting in Actionscript 2! | ||
+ | |||
+ | Q: WHAT DO I DO IF WHEN I PUBLISH A FILE, ONE OF MY LOGOS IS MISALIGNED BY 1 PIXEL???? | ||
+ | A: RESAVE THE ORIGINAL LOGO WITH A WHITE/BACKGROUND BORDER AROUND IT OF ABOUT 2PX AND THE BACKGROUND BORDER CAN BE CHEWED UP WITHOUT AFFECTING THE LOGO ITSELF. GLITCH IN FLASH PERHAPS??!?? ARGH???? | ||
== From Photoshop to Flash : Exporting layer as PNG == | == From Photoshop to Flash : Exporting layer as PNG == |
Revision as of 10:04, 19 March 2009
cs4 has lots of new features too and i want to learn them...
Contents
- 1 CS4
- 2 Syncing with sound
- 3 Flash Shortcuts
- 4 Easing
- 5 SWF to AVI
- 6 Flash Banners
- 7 Actionscripted Tweening
- 8 Preloader
- 9 Clicktag
- 10 Reducing File Size
- 11 Effects I like
- 12 Trace Bitmap
- 13 Toggle Flash
- 14 TROUBLESHOOTING ALARMING BUT SILLY PROBLEMS
- 15 From Photoshop to Flash : Exporting layer as PNG
CS4
Learn more about CS4's new features:
Syncing with sound
Flash Shortcuts
- Q - Transform
- V - Selection Tool
- A - Sub selection
- P - Pen
- T - Text
- F5 - Add frame
- Shift-F5 - Remove frame
- F6 - Add Keyframe
- F7 - Add blank Keyframe
Easing
SWF to AVI
to convert swf to avi, use: swf2avi
Flash Banners
Standard Flash Banner Sizes:
250 x 250 Square
200 x 200 Small Square
468 x 60 Banner
728 x 90 Leaderboard
300 x 250 Inline Rectangle
335 x 280 Large Rectangle
120 x 600 Skyscraper
160 x 600 Wide Skyscraper
I reckon the three most important sizes are: Inline Rectangle, Banner, and Skyscraper.
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 (eg: ad2one): 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.
Effects I like
Trace Bitmap
Trace Bitmap function - posterise effect
Toggle Flash
Toggle Flash is a useful utility for windows ie that lets you toggle flash quickly.
TROUBLESHOOTING ALARMING BUT SILLY PROBLEMS
Q: WHY DOES MY TEXT INPUT APPEAR LOPSIDED WHEN I FIRST ENTER IT IN??
A: this may be because you are entering it into an instance of a movieclip which has been put in an angle. stop editing it in place and it will be straight when you first enter it, instead of disturbingly askew.
Q: WHY DOESN'T MY CODE WORK? I'VE CHECKED IT MILLIONS OF TIMES AND ITS CORRECT???
A: Check that its set to publish the correct version of Actionscript. If you are writing in Actionscript 2, make sure its exporting in Actionscript 2!
Q: WHAT DO I DO IF WHEN I PUBLISH A FILE, ONE OF MY LOGOS IS MISALIGNED BY 1 PIXEL???? A: RESAVE THE ORIGINAL LOGO WITH A WHITE/BACKGROUND BORDER AROUND IT OF ABOUT 2PX AND THE BACKGROUND BORDER CAN BE CHEWED UP WITHOUT AFFECTING THE LOGO ITSELF. GLITCH IN FLASH PERHAPS??!?? ARGH????
From Photoshop to Flash : Exporting layer as PNG
export layer as PNG 24 with alpha channel and it will have transparency in flash
- http://www.pretentiousname.com/ps_exportlayersfast/index.html : photoshop script