-
-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package { | ||
import flash.display.Sprite; | ||
import flash.text.TextField; | ||
import flash.events.FocusEvent; | ||
|
||
public class Test extends Sprite { | ||
public function Test() { | ||
trace("///"); | ||
var textField1 = new TextField(); | ||
textField1.text = "hello world"; | ||
trace(textField1.getLineText(0)); | ||
try { | ||
trace(textField1.getLineText(1)); | ||
} catch (e) { | ||
trace(e); | ||
} | ||
|
||
trace("///"); | ||
var textField2 = new TextField(); | ||
textField2.multiline = true; | ||
textField2.text = "line 1\nline 2"; | ||
trace(textField2.getLineText(0)); | ||
trace(textField2.getLineText(1)); | ||
|
||
trace("///"); | ||
var textField3 = new TextField(); | ||
textField3.htmlText = "a <b>b</b> <i>i</i>"; | ||
trace(textField3.getLineText(0)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// | ||
hello world | ||
RangeError: Error #2006: The supplied index is out of bounds. | ||
/// | ||
line 1 | ||
line 2 | ||
/// | ||
a b i |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
num_ticks = 1 |