How to Use the WordPress control statement commonly used in Flash

Source: Internet
Author: User
Tags vars

Many of my friends often ask about the usage of the Flash script statements. Some simple commands can implement some functions. I am here, where I am looking for something ,. Now I will explain the basic usage of some common Action statements in Flash.
1. Goto: jump to a specified Frame)
Scene: Specifies Scene
Frame: Number, Label, Expression, Next Frame, and Previous Frame. You can select the Number and Label of the Frame. The Expression is used to indicate the Next Frame and the Previous Frame.
Expression: defines the Expression.
Control: Go to and Play, Go to and Stop determine whether to continue playing after the specified frame is reached by selecting this item
Example:
Go to and Play (1) Jump to the first frame
Go to Next Frame to jump to the Next Frame for playing
Go to and Stop ("intro") to jump to the frame broadcast labeled as intro
2. Play: Play
Stop: Stop
Toggle High Quality: details of the switching Screen
Stop All Sounds: Stop All Sounds
Get URL: Open the specified URL
URL: URL
Windows: _ self, _ blank, _ parent, _ top
Variables on't Send, Send use GET, Send use POST Variable Transmission Method
Example:
Get URL ("next. asp", window = "_ blank", vars = POST) open next. asp in a new window and PASS Parameters
3. FScommand: Call the command
Command: Command
Arguments: Parameters
For standalone player: Fixed commands and parameters used by fullscreen, allowscale, showmenu, exec, and quit players
Example:
FS Command ("fullscreen", "true") sets full-screen playback
4. Load/Unload Movie: Call/release an external video
Action: Load movie into location, Unload movie from location, Load variables into location: You can choose whether to transfer a new movie, release the imported movie, and call the variable
URL: the video URL
Location: Level, Target: the transferred layer, or the Location of a Target object
Variables on't Send, Send use GET, Send use POST: Variable Transmission Method
Example:
Load Movie ("test.swf", 1): Call test.swf to the first layer.
Load Movie ("test.swf", "loadit", vars = GET): Call test.swf to the location of the loadit target object.
Unload Movie ("loadit"): releases the film at the loadit target object.
Load Variables ("makeit. asp", 2, vars = GET): Call makeit. asp and receive the returned Variables.
5. Tell Target: Specifies the Target object.
Target: Target object
Example:
Begin Tell Target ("obj") specifies the Target object obj
End Tell Target
6. If Frame is Loaded: determines whether a Frame is transferred in.
Scene: Specifies the scenario
Frame: Number, Label, Expression: Specifies the Frame, Number, or Expression.
Expression: Expression
Example:
If Frame Is Loaded (Scene 1, "end ")
End Frame Loaded
: Determines whether frames labeled as end in scenario 1 are transferred.
7. On MouseEvent mouse Time Response
Event ress, Release, Release Outside, Roll Over, Roll Out, Drag Over, Drag Out, Key Press events: Press, open, open Outside, Focus Move, remove, drag, drag, and press the button
Example:
On (Press) when you Press the mouse
End On
On (Key: s) keyboard when s is pressed
End On
8. If determines whether the condition is true.
Condition: Condition
Add Else/Else If clause: Add Else To judge again
Example:
If (a = 10) If a = 10 then ......
End If
If (a = 10) If a = 10 then ...... Otherwise ......
Else
End If
9. Loop
Condition: Condition
Example:
Loop While (a = 10) Loop if a = 10
End Loop
10. Call function frames or objects
Frame: function Frame
Example:
Call ("make") Call The make frame program
11. Set Property to Set Properties
Set: Y Positon, X Position, Y Scale, X Scale, Alpha, Visibility, Rotation, Name, High quality, Show focus rectangle, Sound buffer time Set y coordinate, x coordinate, y magnification, x magnification, transparency, visibility, rotation angle, name, fineness, focus rectangle display, sound buffer time (5 seconds by default)
Target: Target object
Value: value
Example:
Set Property ("aoe", X Position) = "12" sets the x coordinate of the target object aoe to 12
Set Property (Show focus rectangle) = "0" clear focus box
12. Set Variable to Set variables
Variable: Variable
Value: value
Example:
Set Variable: "test" = 10 Set test = 10
13. Duplicate/Remove Movie Clip copy object
Action uplicate movie clip, Remove duplicate movie clip can be copied or deleted
Target: Target object
New name: name of the New target object
Depth: Depth
Example:
Duplicate Movie Clip ("aoe", "aoe2", 1) copy a new aoe animation named aoe2
Remove Movie Clip ("aoe2") Delete the target object aoe2
14. Drag a video Clip using Drag Movie Clip
Start drag operation: Start to drag
Target: Target object
Constrain to rectangle: Left, Top, Right, Bottom cursor position, Top Left and Bottom Right
Lock mouse to center: place the mouse in the center
Stop drag operation Stop dragging
Example:
Start Drag ("aoe", L = 2, T = 3, R = 4, B = 5) Drag the target object aoe at the position of L = 2, T = 3, R = 4, B = 5
Start Drag ("aoe", lockcenter): Drag the target object aoe, which is located in the center.
Stop Drag Stop dragging
15. Trace Tracing
Message: Information
Example:
Trace ("aoe") displays aoe
Trace (aoe) displays the aoe Value
16. Comment comments
Comment: Comment
Example:
Comment ("computing") Comment: Computing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.