Flash Tutorials - Herong's Tutorial Examples
∟SWFC Script to Generate Flash SWF Files
This chapter provides tutorial notes and example codes on SWFC Script. Topics include description of SWFC Script compiler from SWFTools; creating animation with '.frame' commands; adding music with '.sound' and '.play' commands; adding text with '.font' and '.text' commands.
What Is SWFC Script?
circle.sc - First SWFC Script Example
Frame.sc - Managing Animation Frames
Sound.sc - Adding Sound to Animation
Text.sc - Add Text to Animation
Conclusions:
- SWFC script compiler is part of the SWFTools package.
- '.flash bbox=150x350 background=gray fps=12' defines a new Flash SWF file.
- '.circle greenLight r=50 line=5 color=black fill=green' defines a circle object.
- '.box mybox width=100 height=50 color=red line=2 fill=blue' defines a box object.
- '.put greenLight x=25 y=225' puts an object on a frame to show.
- '.del greenLight' delets an object from a frame.
- '.fame 25' starts changes on a given frame.
- '.sound mySound "Music_Sample.mp3' loads and defines a sound object from a file.
- '.play mySound loop=1' plays a sound object.
- '.font arial "\Windows\Fonts\arial.ttf"' loads and defines a font object from a file.
- '.text greenText font=arial text="Green" size=28pt color=black' defines a text object.
- Many more SWFC script commands are supported. See SWFTools Web site.
Table of Contents
About This Book
Introduction of Adobe Flash
Adobe Flash Player Plugin for Firefox
Adobe Flash Player Plugin for Chrome
Adobe Flash Player Plugin for Safari
Adobe Flash Player ActiveX for IE
Using "object" Elements for Flash Files
Using "embed" Elements for Flash Files
"mp3player" - MP3 Music Player
SWFObject - Hidding "object" behind JavaScript
Flash Player Projector
SWFTools - SWF File Manipulation Tools
►SWFC Script to Generate Flash SWF Files
ActionScript Embedded in SWFC Script
AS3Compile - ActionScript 3 Compiler
Adobe Flex SDK 4
SWF File Structure and Tags
SWF File Processing Rules
SWF Files for Video and Audio Streams
Outdated Tutorials
References
Full Version in PDF/EPUB