Académique Documents
Professionnel Documents
Culture Documents
Advantages of Flash
Interactive content
Flash Penetration
OOP in ActionScript 3
Objects are its fundamental building blocks. ActionScript program as a group of objects that carry out tasks, respond to events, and communicate with one another. Characteristics that any object can include
Properties Methods Events, Event Handlers, Event Listeners
Functions
public function myFunc(arg1:Number) : Boolean
{ }
Slider UIScrollBar
Animation packages
fl.motion flash.geom flash.display
Document Viewer
Any format is converted to PDF, which is then converted to SWF by pdf2swf utility. pdf2swf -T9 -t -p<page-range> <pdf-doc> -o <swf> Viewer itself a flash application can load SWF format (using Loader API ) where each page of document is considered as one frame of movie clip. Navigate to different pages <MovieClip_object>.gotoAndStop(<frame index>) prevFrame(), nextFrame() Zooming Scaling the bitmap graphics
Scrolling isn t smooth Zooming Searching , highlighting, and annotations not implemented
Resources
Flash Developer Center
http://www.adobe.com/devnet/flash/
PDF2SWF
http://www.swftools.org/download
Graphics in Flash
Flash supports Vector and Raster (Bitmap) graphics
Bitmaps are made to be displayed at fixed sizes Vector graphics are size independent
- Ideal for animations.