Tagged: Flash

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...

Flash: the function of mergeAlpha in copyPixels 0

Flash: the function of mergeAlpha in copyPixels

the sytx of copyPixels is like this: copyPixels(sourceBitmap:BitmapData, sourceRect:Rectangle, destPoint:Point, [alphaBitmap:BitmapData], [alphaPoint:Point], [mergeAlpha:Boolean]) : Void Just assume, we have a destination BMP called desBMP, a sourceBitmap, and a alphaBitmap to provide secondary alpha setting....

18 flash loading animations 63

18 flash loading animations

Loading…. a most frequently used part in flash movie. To avoid your user see a blank screen and don’t know what happens, you provide them with loading animation indicating the progress and how long...

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...

Flash Google Map 5

Flash Google Map

Google Map, an useful tool in our daily life. Lots of us has already known how to use javascript version google map. Today, we will talk about how to use flash version and how...

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...