ActionScript: Difference between revisions

Content deleted Content added
Tags: Reverted nowiki added Visual edit
Undid revision 1179521603 by 213.137.70.155 (talk)
Line 102:
ActionScript code is [[free-form language|free form]] and thus may be created with whichever amount or style of whitespace that the author desires. The basic syntax is derived from [[ECMAScript]].
 
</nowiki></small></sub>===ActionScript 2.0===
<sub><sup>Subscript text</sup><small><big>Small text</big><br>
<nowiki>
# Insert non-formatted text here
*
==== Bulleted list item ====—
</nowiki></small></sub>===ActionScript 2.0===
The following code, which works in any compliant player, creates a text field at depth 0, at position (0, 0) on the screen (measured in pixels), that is 100 pixels wide and high. Then the <code>text</code> parameter is set to the "{{Mono|Hello, world}}" string, and it is automatically displayed in the player:
<syntaxhighlight lang="actionscript">
Line 124 ⟶ 119:
}
</syntaxhighlight>
 
 
===ActionScript 3.0===
Line 143 ⟶ 137:
import flash.display.Sprite;
 
public class Greeter extends Sprite
123456778
{
public function Greeter()
{