Flash Tutorials - Herong's Tutorial Examples - v3.03, by Dr. Herong Yang
circle.sc - First SWFC Script Example
This section provides a tutorial example on using SWFC script to generate a simple Flash application showing a solid circle.
Now let's try to learn some basics of the SWFC script language from a simple tutorial example:
1. Create a text file called circle.sc with these SWFC script statements:
#- circle.sc #- Copyright (c) 2014, HerongYang.com, All Rights Reserved. # .flash bbox=150x150 background=gray .circle myCircle r=50 line=5 color=black fill=green .put myCircle x=25 y=25 .end
2. Compile the SWFC script file into a SWF file, circle.swf:
C:\herong>\local\SWFTools\swfc circle.sc -o circle.swf
3. Generate a HTML file, circle.html, to view the SWF file:
C:\herong>\local\SWFTools\swfdump -E circle.swf > circle.html
4. Open circle.html in a Web browser. You will see:
Congratulations, you have successfully created a SWF application with SWFC script!
Table of Contents
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
SWFTools - SWF File Manipulation Tools
►SWFC Script to Generate Flash SWF Files
►circle.sc - First SWFC Script Example
Frame.sc - Managing Animation Frames
Sound.sc - Adding Sound to Animation
Text.sc - Add Text to Animation
ActionScript Embedded in SWFC Script
AS3Compile - ActionScript 3 Compiler