Tagged: actionscript 3.0

AS3: When and Why use “final” attribute 0

AS3: When and Why use “final” attribute

To prevent a class from being extended or a method from being overridden, we precede that class or method definition with the final attribute. How it works? To Final a class: final public class...

AS3: Recursive Functions vs Loop Functions 1

AS3: Recursive Functions vs Loop Functions

A recursive function is a function that calls itself. The following code shows a simple example of recursion. function trouble(){ trouble(); } A recursive function like above calls itself unconditionally, cause infinite recursion. To...

AS 3: Functions as Values 0

AS 3: Functions as Values

A function can be assigned to a variable, passed to a function, or returned from a function, just like any other values. For example, the following code defines a function, a() and then assigns...

Tags support in htmlText flash as3

Tags support in htmlText flash as3

1. anchor tag <a> </a> Three attributes are supported: 1.1 href: URL can be relativl or absolute. Notice: the absolute URL must begin with “http://”, otherwise, flash player will regard it as relative URL....

How to correctly use Flash htmlText 1

How to correctly use Flash htmlText

Textfield can support some html tag in flash, for example: info.htmlText = “<b>Bold</b>, <i>italic</i>, <u>underline</u>”; the result effect: Bold, italic, underline However, when you use htmlText adding text one by one, the new added...

Actionscript 3.0 – Flash Security Sandbox 2

Actionscript 3.0 – Flash Security Sandbox

Currently, there are 4 kinds of Security Sandbox for swf file. They are: Security.REMOTE – SWF file from Internet URL, following domain sandbox rules; Security.LOCAL_WITH_FILE – SWF file from local which can get local...

Actionscript 3.0 — String 0

Actionscript 3.0 — String

Here I am talking about some tricky things about “String” class in actionscript 3.0: We all know about the the operator like “+”, “+=” “<” “<=” “>” and “>=”. How actually they work in...