Java Doc for Program.java in  » Ajax » Laszlo-4.0.10 » org » openlaszlo » iv » flash » api » action » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » Laszlo 4.0.10 » org.openlaszlo.iv.flash.api.action 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openlaszlo.iv.flash.api.FlashItem
      org.openlaszlo.iv.flash.api.FlashObject
         org.openlaszlo.iv.flash.api.action.Program

Program
final public class Program extends FlashObject (Code)
Wrapper of ActionScript bytecode.

The bytecodes are not parsed into some objects but rather kept in their "bytecoded" form. Parsing the stuff is very simple and straightforward and due to the nature of JGenerator this is what we need most of the time.
author:
   Dmitry Skavish


Inner Class :static class ForwardRef

Field Summary
final public static  intPROP_ALPHA
    
final public static  intPROP_CURRENTFRAME
    
final public static  intPROP_DROPTARGET
    
final public static  intPROP_FOCUSRECT
    
final public static  intPROP_FRAMESLOADED
    
final public static  intPROP_HEIGHT
    
final public static  intPROP_HIGHQUALITY
    
final public static  intPROP_NAME
    
final public static  intPROP_QUALITY
    
final public static  intPROP_ROTATION
    
final public static  intPROP_SOUNDBUFTIME
    
final public static  intPROP_TARGET
    
final public static  intPROP_TOTALFRAMES
    
final public static  intPROP_URL
    
final public static  intPROP_VISIBLE
    
final public static  intPROP_WIDTH
    
final public static  intPROP_X
    
final public static  intPROP_XMOUSE
    
final public static  intPROP_XSCALE
    
final public static  intPROP_Y
    
final public static  intPROP_YMOUSE
    
final public static  intPROP_YSCALE
    

Constructor Summary
public  Program()
     Creates empty program of default capacity.
public  Program(FlashBuffer body)
     Creates program from specified flashbuffer.
public  Program(byte[] buf, int start, int end)
     Creates program from specified buffer of bytecodes.

Method Summary
protected  boolean_isConstant()
    
public  voidadd()
     Adds two numbers.
public  voidaddConstantPool(String[] constants)
    
public  voidaddString()
     Concatenates two strings.
public  voidapply(Context context)
     Applies specified context to this program

Searches for all possible generator variables in this program data and applies specified context to them.
Since changing the data may change the offsets used in the program to perform gotos and jumps the special care taken to resolve forward references in the bytecode.

public  FlashBufferbody()
    
public  voidcallFrame()
     Calls a subroutine.
public  voidcallFunction()
     Calls a function.
public  voidcallMethod()
     Calls a method of an object.
public  voidchr()
     Converts ASCII to character code.
public  voidcloneClip()
     Clones a sprite.
public  voiddivide()
     Divides two numbers.
public  voidendDrag()
     Ends drag operation.
public  voidequal()
     Tests two numbers for equality.
public  voideval()
     Gets a variable’s value.
final protected  intgetByte()
    
public  FlashItemgetCopy(ScriptCopier copier)
    
final protected  intgetDWord()
    
public  intgetLength()
    
public  voidgetMember()
     Get member.
final protected  intgetPos()
    
public  voidgetProperty()
     Gets a movie property

  1. Pops index off the stack.
final protected  StringgetString()
    
public  intgetTag()
    
public  voidgetTimer()
     Reports milliseconds since player started.
final protected  intgetUByte()
    
final protected  intgetUDWord()
    
public  voidgetURL(String url, String target)
     Instructs the player to get the URL specified by UrlString. The URL can be of any type, including an HTML file, an image or another SWF movie.
public  voidgetURL(int method)
     Get URL, stack-based.

  1. Pops window off the stack.
public  voidgetURL_GET()
     Get URL using GET method, stack-based.

  1. Pops window off the stack.
public  voidgetURL_POST()
     Get URL using POST method, stack-based.

  1. Pops window off the stack.
final protected  intgetUWord()
    
public  voidgetVar()
     An equivalent of Program.eval .
final protected  intgetWord()
    
public  voidgotoFrame(int frame)
     Instructs the player to go to the specified frame in the current movie.
public  voidgotoFrameAndPlay()
     Go to frame and play, stack-based.

  1. Pops frame off the stack.
  2. If frame is a number, the next frame of the movie to be displayed will be the frame’th frame in the current movie clip.
  3. If frame is a string, frame is treated as a frame label. If the specified label exists in the current movie clip, the labeled frame will become the current frame.
public  voidgotoFrameAndStop()
     Go to frame and stop, stack-based.

  1. Pops frame off the stack.
  2. If frame is a number, the next frame of the movie to be displayed will be the frame’th frame in the current movie clip.
  3. If frame is a string, frame is treated as a frame label. If the specified label exists in the current movie clip, the labeled frame will become the current frame.
public  voidgotoLabel(String label)
     Instructs the player to go to frame associated with the specified label.
public  voidjump(int offset)
     Unconditional branch.
public  voidjumpIfTrue(int offset)
     Conditional Test and Branch.
public  voidlessThan()
     Tests if a number is less than another number.
public  voidlogicalAnd()
     Performs a logical AND of two numbers.
public  voidlogicalNot()
     Performs a logical NOT of a number.
public  voidlogicalOr()
     Performs a logical OR of two numbers.
public  voidmbChr()
     Converts ASCII to character code, multi-byte aware.
public  voidmbLength()
     Computes the length of a string, multi-byte aware.
public  voidmbOrd()
     Converts character code to ASCII, multi-byte aware.
public  voidmbSubString()
     Extracts a substring from a string, multi-byte aware.

  1. Pops number count off the stack.
  2. Pops number index off the stack.
  3. Pops string string off the stack.
  4. The substring of string starting at the index’th character and count characters in length is pushed to the stack.
  5. If either index or count do not evaluate to integers, the result is the empty string.
  6. This is a multi-byte aware version of ActionStringExtract.
public  voidmultiply()
     Multiplies two numbers.
public  voidnewObject()
    
public  voidnextFrame()
     Instructs the player to go to the next frame in the current movie.
public  voidnone()
    
public  voidord()
     Converts character code to ASCII.
public  voidplay()
     Instructs the player to start playing at the current frame.
public  voidpop()
     Pops a value from the stack.
public  voidprevFrame()
     Instructs the player to go to the previous frame in the current movie.
public  voidprintContent(PrintStream out, String indent)
    
public  voidpush(String data)
     Pushes a string to the stack.
public  voidpush(float data)
     Pushes a float to the stack.
public  voidpush(int data)
     Pushes an int to the stack.
public  voidpush(Short const_idx)
    
public  voidpush(Object[] data)
    
public  voidpush(Object o)
    
public  voidrandom()
     Calculates a random number.

  1. Pops maximum off the stack.
  2. Calculates a random number, an integer in the range 0 ...
public  voidremoveClip()
     Removes a clone sprite.
public  voidsetMember()
     Set member.
final protected  voidsetPos(int pos)
    
public  voidsetProperty()
     Sets a movie property.
public  voidsetTarget()
     Set current context, stack-based

  1. Pops target off the stack and makes it the current active context.
public  voidsetTarget(String target)
     Instructs the player to change the context of subsequent actions, so they apply to a named object (TargetName) rather than the current movie.

For example, the SetTarget action can be used to control the timeline of a sprite object.

public  voidsetVar()
     Sets a variable.

  1. Pops value off the stack.
  2. Pops name off the stack, which is a string naming the variable to set.
  3. Sets the variable name in the current execution context to value.
A variable in another execution context may be referenced by prefixing the variable name with the target path and a colon.
public  voidstartDrag()
     Starts dragging a movie clip.

  1. Pops target off the stack.
public  voidstop()
     Instructs the player to stop playing the movie at the current frame.
public  voidstopSounds()
     Instructs the player to stop playing all sounds.
public  voidstringEqual()
     Tests two strings for equality.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. A and B are compared as strings.
public  voidstringLength()
     Computes the length of a string.
public  voidstringLessThan()
     Tests if a string is less than another string.
public  voidsubString()
     Extracts a substring from a string.
public  voidsubtract()
     Subtracts two numbers.
public  voidtoInt()
     Converts to integer.
public  voidtoggleQuality()
     Toggle the display between high and low quality.
public  voidwaitForFrame(int frame, int skip)
     Instructs the player to wait until the specified frame, otherwise skip the specified number of actions.
public  voidwaitForFrameAndSkip(int skip)
     Wait for a frame to be loaded, stack-based.
public  voidwrite(FlashOutput fob)
    

Field Detail
PROP_ALPHA
final public static int PROP_ALPHA(Code)



PROP_CURRENTFRAME
final public static int PROP_CURRENTFRAME(Code)



PROP_DROPTARGET
final public static int PROP_DROPTARGET(Code)



PROP_FOCUSRECT
final public static int PROP_FOCUSRECT(Code)



PROP_FRAMESLOADED
final public static int PROP_FRAMESLOADED(Code)



PROP_HEIGHT
final public static int PROP_HEIGHT(Code)



PROP_HIGHQUALITY
final public static int PROP_HIGHQUALITY(Code)



PROP_NAME
final public static int PROP_NAME(Code)



PROP_QUALITY
final public static int PROP_QUALITY(Code)



PROP_ROTATION
final public static int PROP_ROTATION(Code)



PROP_SOUNDBUFTIME
final public static int PROP_SOUNDBUFTIME(Code)



PROP_TARGET
final public static int PROP_TARGET(Code)



PROP_TOTALFRAMES
final public static int PROP_TOTALFRAMES(Code)



PROP_URL
final public static int PROP_URL(Code)



PROP_VISIBLE
final public static int PROP_VISIBLE(Code)



PROP_WIDTH
final public static int PROP_WIDTH(Code)



PROP_X
final public static int PROP_X(Code)



PROP_XMOUSE
final public static int PROP_XMOUSE(Code)



PROP_XSCALE
final public static int PROP_XSCALE(Code)



PROP_Y
final public static int PROP_Y(Code)



PROP_YMOUSE
final public static int PROP_YMOUSE(Code)



PROP_YSCALE
final public static int PROP_YSCALE(Code)




Constructor Detail
Program
public Program()(Code)
Creates empty program of default capacity.



Program
public Program(FlashBuffer body)(Code)
Creates program from specified flashbuffer.

Specified flashbuffer is not copied but directly used.
Parameters:
  body - flashbuffer containing actionscript bytecode




Program
public Program(byte[] buf, int start, int end)(Code)
Creates program from specified buffer of bytecodes.

The bytecodes from the buffer copied into internal flashbuffer
Parameters:
  buf - buffer containing bytecodes
Parameters:
  start - offset in the buffer
Parameters:
  end - end offset in the buffer





Method Detail
_isConstant
protected boolean _isConstant()(Code)



add
public void add()(Code)
Adds two numbers.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. A and B are converted to floating-point; non-numeric values evaluate to 0.
  4. The numbers are added.
  5. Pushes the result, A+B, to the stack.

since:
   flash 4



addConstantPool
public void addConstantPool(String[] constants)(Code)
Creates constant pool
Parameters:
  constants - array of constants to be created
since:
   flash 5



addString
public void addString()(Code)
Concatenates two strings.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. The concatenation BA is pushed to the stack.

since:
   flash 4



apply
public void apply(Context context)(Code)
Applies specified context to this program

Searches for all possible generator variables in this program data and applies specified context to them.
Since changing the data may change the offsets used in the program to perform gotos and jumps the special care taken to resolve forward references in the bytecode.
Parameters:
  context - specified generator context




body
public FlashBuffer body()(Code)



callFrame
public void callFrame()(Code)
Calls a subroutine.

  1. Pops a value off the stack.
  2. This value should be either a string matching a frame label, or a number indicating a frame number.
  3. The value may be prefixed by a target string identifying the movie clip that contains the frame being called.
  4. If the frame is successfully located, the actions in the target frame are executed. After the actions in the target frame are executed, execution resumes at the instruction after the ActionCall instruction.
  5. If the frame cannot be found, nothing happens.
  6. NOTE: This action's tag (0x9E) has the high bit set, which will waste a few bytes in SWF file size. This is a bug.

since:
   flash 4



callFunction
public void callFunction()(Code)
Calls a function. Stack state must be [ arguments, argCount, methodName ]
since:
   flash 5



callMethod
public void callMethod()(Code)
Calls a method of an object. Stack state must be [ arguments, argCount, object, methodName ]
since:
   flash 5



chr
public void chr()(Code)
Converts ASCII to character code.

  1. Pops value off the stack.
  2. The value is converted from a number to the corresponding ASCII character..
  3. The resulting character is pushed to the stack.

since:
   flash 4



cloneClip
public void cloneClip()(Code)
Clones a sprite.

  1. Pops depth off the stack.
  2. Pops target off the stack.
  3. Pops source off the stack.
  4. Duplicates movie clip source, giving the new instance the name target, at z-order depth depth.

since:
   flash 4



divide
public void divide()(Code)
Divides two numbers.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. A and B are converted to floating-point; non-numeric values evaluate to 0.
  4. B is divided by A.
  5. Pushes the result, B/A, to the stack.
  6. If A is zero, the result is the string #ERROR#.
Note: When playing a Flash 5 .SWF, NaN, Infinity or –Infinity is pushed to the stack instead of #ERROR#.
since:
   flash 4



endDrag
public void endDrag()(Code)
Ends drag operation.

  1. Ends the drag operation in progress, if any.

since:
   flash 4



equal
public void equal()(Code)
Tests two numbers for equality.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. A and B are converted to floating-point; non-numeric values evaluate to 0.
  4. The numbers are compared for equality.
  5. If the numbers are equal, a 1 (TRUE) is pushed to the stack.
  6. Otherwise, a 0 is pushed to the stack.
Note: When playing a Macromedia Flash 5 .SWF, true is pushed to the stack instead of 1, and false is pushed to the stack instead of 0.
since:
   flash 4



eval
public void eval()(Code)
Gets a variable’s value.

  1. Pops name off the stack, which is a string naming the variable to get.
  2. Pushes the value of the variable to the stack.

since:
   flash 4



getByte
final protected int getByte()(Code)



getCopy
public FlashItem getCopy(ScriptCopier copier)(Code)



getDWord
final protected int getDWord()(Code)



getLength
public int getLength()(Code)
Gets length of the program length of the program



getMember
public void getMember()(Code)
Get member. Stack state must be [ object, member name ]
since:
   flash 5



getPos
final protected int getPos()(Code)



getProperty
public void getProperty()(Code)
Gets a movie property

  1. Pops index off the stack.
  2. Pops target off the stack.
  3. Retrieves the value of the property enumerated as index from the movie clip with target path target and pushes the value to the stack.

since:
   flash 4



getString
final protected String getString()(Code)



getTag
public int getTag()(Code)



getTimer
public void getTimer()(Code)
Reports milliseconds since player started.

  1. Calculates the number of milliseconds since the Player was started (an integer).
  2. This number is pushed to the stack.

since:
   flash 4



getUByte
final protected int getUByte()(Code)



getUDWord
final protected int getUDWord()(Code)



getURL
public void getURL(String url, String target)(Code)
Instructs the player to get the URL specified by UrlString. The URL can be of any type, including an HTML file, an image or another SWF movie. If the movie is playing in a browser, the URL will be displayed in the frame specified by TargetString. The special target names _level0 and _level1 are used to load another SWF movie into levels 0 and 1 respectively.
Parameters:
  url - specified url
Parameters:
  target - target
since:
   flash 3



getURL
public void getURL(int method)(Code)
Get URL, stack-based.

  1. Pops window off the stack. window specifies the target window, which may be an empty string to indicate the current window.
  2. Pops url off the stack. url which specifies the URL to be retrieved.

Parameters:
  method - Method specifies the method to use for the HTTP request. If (method and 0x40) != 0 then target is movie clip target,NOT browser window target!
  • A value of 0 indicates that this is not a form request,so the movie clip’s variables should not be encoded and submitted.
  • A value of 1 specifies a HTTP GET request.
  • A value of 2 specifies a HTTP POST request.
  • If method is 1 (GET) or 2 (POST), the variables in the currentmovie clip are submitted to the URL using the standardx-www-urlencoded encoding and the HTTP request method specified by method.

since:
   flash 4



getURL_GET
public void getURL_GET()(Code)
Get URL using GET method, stack-based.

  1. Pops window off the stack. window specifies the target window, which may be an empty string to indicate the current window.
  2. Pops url off the stack. url which specifies the URL to be retrieved.

See Also:   Program.getURL(int)
since:
   flash 4



getURL_POST
public void getURL_POST()(Code)
Get URL using POST method, stack-based.

  1. Pops window off the stack. window specifies the target window, which may be an empty string to indicate the current window.
  2. Pops url off the stack. url which specifies the URL to be retrieved.

See Also:   Program.getURL(int)
since:
   flash 4



getUWord
final protected int getUWord()(Code)



getVar
public void getVar()(Code)
An equivalent of Program.eval .
See Also:   Program.eval
since:
   flash 4



getWord
final protected int getWord()(Code)



gotoFrame
public void gotoFrame(int frame)(Code)
Instructs the player to go to the specified frame in the current movie.
Parameters:
  frame - frame number
since:
   flash 3



gotoFrameAndPlay
public void gotoFrameAndPlay()(Code)
Go to frame and play, stack-based.

  1. Pops frame off the stack.
  2. If frame is a number, the next frame of the movie to be displayed will be the frame’th frame in the current movie clip.
  3. If frame is a string, frame is treated as a frame label. If the specified label exists in the current movie clip, the labeled frame will become the current frame. Otherwise, the action is ignored.
  4. Either a frame or a number may be prefixed by a target path, e.g. /MovieClip:3 or /MovieClip:FrameLabel

since:
   flash 4



gotoFrameAndStop
public void gotoFrameAndStop()(Code)
Go to frame and stop, stack-based.

  1. Pops frame off the stack.
  2. If frame is a number, the next frame of the movie to be displayed will be the frame’th frame in the current movie clip.
  3. If frame is a string, frame is treated as a frame label. If the specified label exists in the current movie clip, the labeled frame will become the current frame. Otherwise, the action is ignored.
  4. Either a frame or a number may be prefixed by a target path, e.g. /MovieClip:3 or /MovieClip:FrameLabel

since:
   flash 4



gotoLabel
public void gotoLabel(String label)(Code)
Instructs the player to go to frame associated with the specified label. A label can be attached to a frame with the FrameLabel tag.
Parameters:
  label - specified frame label
since:
   flash 3



jump
public void jump(int offset)(Code)
Unconditional branch.

  1. BranchOffset bytes are added to the instruction pointer in the execution stream.
  2. The offsets is a signed quantity, enabling branches from –32,768 bytes to 32,767 bytes.
  3. An offset of 0 points to the action directly after the ActionJump action.

Parameters:
  offset - specified offset
since:
   flash 4



jumpIfTrue
public void jumpIfTrue(int offset)(Code)
Conditional Test and Branch.

  1. Pops Condition, a number, off the stack.
  2. Tests if Condition is nonzero: If Condition is nonzero, BranchOffset bytes are added to the instruction pointer in the execution stream.
Note: When playing a Macromedia Flash 5 .SWF, Condition is converted to a boolean and compared to true, not 0. The offset is a signed quantity, enabling branches from –32768 bytes to 32767 bytes. An offset of 0 points to the action directly after the ActionIf action.
Parameters:
  offset - specified offset
since:
   flash 4



lessThan
public void lessThan()(Code)
Tests if a number is less than another number.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. A and B are converted to floating-point; non-numeric values evaluate to 0.
  4. The numbers are compared for equality.
  5. If B < A, a 1 is pushed to the stack; otherwise, a 0 is pushed to the stack.
Note: When playing a Macromedia Flash 5 .SWF, true is pushed to the stack instead of 1, and false is pushed to the stack instead of 0.
since:
   flash 4



logicalAnd
public void logicalAnd()(Code)
Performs a logical AND of two numbers.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. A and B are converted to floating-point; non-numeric values evaluate to 0.
  4. If both numbers are nonzero, a 1 is pushed to the stack; otherwise, a 0 is pushed to the stack.
Note: When playing a Macromedia Flash 5 .SWF, true is pushed to the stack instead of 1, and false is pushed to the stack instead of 0.
since:
   flash 4



logicalNot
public void logicalNot()(Code)
Performs a logical NOT of a number.

Note that in Macromedia Flash 5 .SWF files, the ActionNot action converts its argument to a boolean, and pushes a result of type boolean. In Macromedia Flash 4 .SWF files, the argument and result are numbers.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. A and B are converted to floating-point; non-numeric values evaluate to 0.
  4. The numbers are compared for equality.
  5. If the numbers are equal, a 1 (TRUE) is pushed to the stack.
  6. Otherwise, a 0 is pushed to the stack.
Note: When playing a Macromedia Flash 5 .SWF, true is pushed to the stack instead of 1, and false is pushed to the stack instead of 0.
since:
   flash 4



logicalOr
public void logicalOr()(Code)
Performs a logical OR of two numbers.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. A and B are converted to floating-point; non-numeric values evaluate to 0.
  4. If either numbers is nonzero, a 1 is pushed to the stack; otherwise, a 0 is pushed to the stack.
Note: When playing a Macromedia Flash 5 .SWF, true is pushed to the stack instead of 1, and false is pushed to the stack instead of 0.
since:
   flash 4



mbChr
public void mbChr()(Code)
Converts ASCII to character code, multi-byte aware.

  1. Pops value off the stack.
  2. The value is converted from a number to the corresponding character. If the character is a 16-bit value (>= 256), a double-byte character is constructed with the first byte containing the high-order byte, and the second byte containing the low-order byte.
  3. The resulting character is pushed to the stack.

since:
   flash 4



mbLength
public void mbLength()(Code)
Computes the length of a string, multi-byte aware.

  1. Pops a string off the stack.
  2. The length of the string in characters is calculated and pushed to the stack.
  3. This is a multi-byte aware version of ActionStringLength. On systems with double-byte support, a double-byte character is counted as a single character.

since:
   flash 4



mbOrd
public void mbOrd()(Code)
Converts character code to ASCII, multi-byte aware.

  1. Pops value off the stack.
  2. The first character of value is converted to a numeric character code. If the first character of value is a double-byte character, a 16-bit value is constructed with the first byte as the high order byte and the second byte as the low order byte.
  3. The resulting character code is pushed to the stack.

since:
   flash 4



mbSubString
public void mbSubString()(Code)
Extracts a substring from a string, multi-byte aware.

  1. Pops number count off the stack.
  2. Pops number index off the stack.
  3. Pops string string off the stack.
  4. The substring of string starting at the index’th character and count characters in length is pushed to the stack.
  5. If either index or count do not evaluate to integers, the result is the empty string.
  6. This is a multi-byte aware version of ActionStringExtract. index and count are treated as character indices, counting double-byte characters as single characters.

since:
   flash 4



multiply
public void multiply()(Code)
Multiplies two numbers.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. A and B are converted to floating-point; non-numeric values evaluate to 0.
  4. The numbers are multiplied.
  5. Pushes the result, A*B, to the stack.

since:
   flash 4



newObject
public void newObject()(Code)
New Object
since:
   flash 5



nextFrame
public void nextFrame()(Code)
Instructs the player to go to the next frame in the current movie.
since:
   flash 3



none
public void none()(Code)
End of the program
since:
   flash 3



ord
public void ord()(Code)
Converts character code to ASCII.

  1. Pops value off the stack.
  2. The first character of value is converted to a numeric ASCII character code.
  3. The resulting character code is pushed to the stack.

since:
   flash 4



play
public void play()(Code)
Instructs the player to start playing at the current frame.
since:
   flash 3



pop
public void pop()(Code)
Pops a value from the stack.
since:
   flash 4



prevFrame
public void prevFrame()(Code)
Instructs the player to go to the previous frame in the current movie.
since:
   flash 3



printContent
public void printContent(PrintStream out, String indent)(Code)



push
public void push(String data)(Code)
Pushes a string to the stack.
Parameters:
  data - string to push
since:
   flash 4



push
public void push(float data)(Code)
Pushes a float to the stack.
Parameters:
  data - float to push
since:
   flash 4



push
public void push(int data)(Code)
Pushes an int to the stack.
Parameters:
  data - int to push
since:
   flash 4



push
public void push(Short const_idx)(Code)
Pushes constant index to the stack
since:
   flash 5



push
public void push(Object[] data)(Code)
Pushes array of data to the stack

  • String - is pushed as string
  • Integer - is pushed as int
  • Double - is pushed as double
  • Float - is pushed as float
  • Boolean - is pushed as bool
  • Byte - is pushed as index in constant pool
  • Short - is pushed as index in constant pool
  • null - is pushed as null
    Parameters:
      data - array of data
    since:
       flash 5



push
public void push(Object o)(Code)
Pushes an object to the stack

  • String - is pushed as string
  • Integer - is pushed as int
  • Double - is pushed as double
  • Float - is pushed as float
  • Boolean - is pushed as bool
  • Byte - is pushed as index in constant pool
  • Short - is pushed as index in constant pool
  • null - is pushed as null
    Parameters:
      o - data
    since:
       flash 5



random
public void random()(Code)
Calculates a random number.

  1. Pops maximum off the stack.
  2. Calculates a random number, an integer in the range 0 ... (maximum-1)
  3. This random number is pushed to the stack.

since:
   flash 4



removeClip
public void removeClip()(Code)
Removes a clone sprite.

  1. Pops target off the stack.
  2. Removes the clone movie clip identified by target path target.

since:
   flash 4



setMember
public void setMember()(Code)
Set member. Stack state must be [ object, member name, value ]
since:
   flash 5



setPos
final protected void setPos(int pos)(Code)



setProperty
public void setProperty()(Code)
Sets a movie property.

  1. Pops value off the stack.
  2. Pops index off the stack.
  3. Pops target off the stack.
  4. Sets the property enumerated as index in the movie clip with target path target to the value value.

since:
   flash 4



setTarget
public void setTarget()(Code)
Set current context, stack-based

  1. Pops target off the stack and makes it the current active context.
  2. This action behaves exactly like the original ActionSetTarget from Macromedia Flash 3, but is stack-based to enable the target path to be the result of expression evaluation.

since:
   flash 4



setTarget
public void setTarget(String target)(Code)
Instructs the player to change the context of subsequent actions, so they apply to a named object (TargetName) rather than the current movie.

For example, the SetTarget action can be used to control the timeline of a sprite object. The following sequence of actions sends a sprite called "spinner" to the first frame in its timeline:

  1. SetTarget "spinner"
  2. GotoFrame zero
  3. SetTarget "" (empty string)
  4. End of actions. (Action code = 0)

All actions following SetTarget "spinner" apply to the spinner object until SetTarget "", which sets the action context back to the current movie. For a complete discussion of target names see DefineSprite.
Parameters:
  target - name of the target
since:
   flash 3




setVar
public void setVar()(Code)
Sets a variable.

  1. Pops value off the stack.
  2. Pops name off the stack, which is a string naming the variable to set.
  3. Sets the variable name in the current execution context to value.
A variable in another execution context may be referenced by prefixing the variable name with the target path and a colon. For example: /A/B:FOO references variable FOO in movie clip with target path /A/B.
since:
   flash 4



startDrag
public void startDrag()(Code)
Starts dragging a movie clip.

  1. Pops target off the stack. target identifies the movie clip to be dragged.
  2. Pops lockcenter off the stack. If lockcenter evaluates to a nonzero value, the center of the dragged movie clip is locked to the mouse position. Otherwise, the movie clip moves relatively to the mouse position when the drag started.
  3. Pops constrain off the stack.
  4. If constrain evaluates to a nonzero value:
    1. Pops y2 off the stack.
    2. Pops x2 off the stack.
    3. Pops y1 off the stack.
    4. Pops x1 off the stack.

since:
   flash 4



stop
public void stop()(Code)
Instructs the player to stop playing the movie at the current frame.
since:
   flash 3



stopSounds
public void stopSounds()(Code)
Instructs the player to stop playing all sounds.
since:
   flash 3



stringEqual
public void stringEqual()(Code)
Tests two strings for equality.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. A and B are compared as strings. The comparison is case-sensitive.
  4. If the strings are equal, a 1 (TRUE) is pushed to the stack.
  5. Otherwise, a 0 is pushed to the stack.
Note: When playing a Macromedia Flash 5 .SWF, true is pushed to the stack instead of 1, and false is pushed to the stack instead of 0.
since:
   flash 4



stringLength
public void stringLength()(Code)
Computes the length of a string.

  1. Pops a string off the stack.
  2. The length of the string is calculated and pushed to the stack.

since:
   flash 4



stringLessThan
public void stringLessThan()(Code)
Tests if a string is less than another string.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. If B < A using a byte-by-byte comparison, a 1 is pushed to the stack; otherwise, a 0 is pushed to the stack.
Note: When playing a Macromedia Flash 5 .SWF, true is pushed to the stack instead of 1, and false is pushed to the stack instead of 0.
since:
   flash 4



subString
public void subString()(Code)
Extracts a substring from a string.

  1. Pops number count off the stack.
  2. Pops number index off the stack.
  3. Pops string string off the stack.
  4. The substring of string starting at the index’th character and count characters in length is pushed to the stack.
  5. If either index or count do not evaluate to integers, the result is the empty string.

since:
   flash 4



subtract
public void subtract()(Code)
Subtracts two numbers.

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. A and B are converted to floating-point; non-numeric values evaluate to 0.
  4. A is subtracted from B.
  5. Pushes the result, A-B, to the stack.

since:
   flash 4



toInt
public void toInt()(Code)
Converts to integer.

  1. Pops a value off the stack.
  2. The value is converted to a number.
  3. Next, any digits after the decimal point are discarded, resulting in an integer.
  4. The resulting integer is pushed to the stack.

since:
   flash 4



toggleQuality
public void toggleQuality()(Code)
Toggle the display between high and low quality.
since:
   flash 3



waitForFrame
public void waitForFrame(int frame, int skip)(Code)
Instructs the player to wait until the specified frame, otherwise skip the specified number of actions.
Parameters:
  frame - specified frame
Parameters:
  skip - specified number of actions to skip
since:
   flash 3



waitForFrameAndSkip
public void waitForFrameAndSkip(int skip)(Code)
Wait for a frame to be loaded, stack-based.

  1. Pops frame off the stack.
  2. If the frame identified by frame has been loaded, SkipCount actions following the current one are skipped.
  3. frame is evaluated in the same way as the Program.gotoFrameAndPlay action.

Parameters:
  skip - specified number of actions to skip
since:
   flash 4



write
public void write(FlashOutput fob)(Code)



Methods inherited from org.openlaszlo.iv.flash.api.FlashObject
protected boolean _isConstant()(Code)(Java Doc)
public void apply(Context context)(Code)(Java Doc)
public void collectDeps(DepsCollector dc)(Code)(Java Doc)
public void collectFonts(FontsCollector fc)(Code)(Java Doc)
protected FlashItem copyInto(FlashItem item, ScriptCopier copier)(Code)(Java Doc)
public void generate(FlashOutput fob, DepsCollector dc)(Code)(Java Doc)
public Rectangle2D getBounds()(Code)(Java Doc)
abstract public int getTag()(Code)(Java Doc)
public boolean isConstant()(Code)(Java Doc)
public boolean isProcessed()(Code)(Java Doc)
public void printContent(PrintStream out, String indent)(Code)(Java Doc)
public void process(FlashFile file, Context context) throws IVException(Code)(Java Doc)
protected void setConstant(boolean is_const)(Code)(Java Doc)
public void setProcessed()(Code)(Java Doc)

Methods inherited from org.openlaszlo.iv.flash.api.FlashItem
protected FlashItem copyInto(FlashItem item, ScriptCopier copier)(Code)(Java Doc)
public FlashItem getCopy(ScriptCopier copier)(Code)(Java Doc)
abstract public void printContent(PrintStream out, String indent)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
abstract public void write(FlashOutput fob)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.