Flash Tutorials - Herong's Tutorial Examples - Version 3.01, 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!
Last update: 2014.
Table of Contents