Scripting Tutorials
|
Top Previous Next |
.swi File
|
Tutorial Name
|
Purpose
|
helloworld.swi
|
Hello World
|
Demonstrate the use of the trace command and Debug Panel
|
flowcontrol.swi
|
Variables and Flow Control
|
Demonstrate the use of variables, if and while statements
|
button.swi
|
Button
|
Demonstrates the on(release) Button Event
|
button1.swi
|
Button with rollOver
|
Demonstrate the on(rollOver), on(rollOut) Button Events.
Demonstrate the _xscale and _yscale properties |
calculator.swi
|
Calculator
|
Introduces the Text Object with Input and Dynamic text properties. Introduces the Math Object
|
properties.swi
|
Object Properties
|
Introduce the Object properties:
_X, _Y, _xscale, _yscale, _width, _height, _alpha, _rotation, _name and _visible |
dragging.swi
|
Mouse Dragging
|
Introduces startDragUnlocked(), startDragLocked() and stopDrag() methods. Introduces onSelfEvent( press ) and onSelfEvent( release ) Events to start and stop dragging
|
droptarget.swi
|
Drop Target / Target
|
Demonstrates the use of the _target and _droptarget properties
|
collide.swi
|
Collision Detection
|
Introduces isNearTarget() and isNearThis() methods
|
game.swi
|
Simple Gaming
|
Introduces User defined functions, use of onLoad() Event Handling function to initialise variables and the use of the onEnterFrame() Event Handling function to animate Objects
|
mymoviecontrol.swi
|
Movie Control
|
Demonstrates how to control timelines playing in Sprites and how Sprites can control the main movie timeline using various methods of the gotoAndPlay() action.
|
welcome.swi
|
Input and Dynamic Text
|
Demonstrates how users can add text to the movie to be used at a later time in the same movie. Introduces methods for user input through Input Text fields and storing that information as a variable to be used in dynamic content
|
maxarray.swi
|
Arrays and Random
|
Demonstrates how to use Arrays to display a random message. Introduces methods for Arrays and Math.randomInt()
|
txtmessage.swi
|
Data Transfer - text
|
Demonstrates how data can be transferred to and from .htm, .asp, .php or text files that are resident on a server.
Introduces the methods loadVariables() and shows how you can load an external .txt file into your movie at runtime. |