Number - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
The following example loads an image into a movie clip called
movie clip, the movie clip is removed and information is displayed in the Output panel.
this.createEmptyMovieClip("image_mc", this.getNextHighestDepth());
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
target_mc._x = 100;
target_mc._y = 100;
target_mc.onRelease = function() {
trace("Unloading clip...");
trace("\t name: "+target_mc._name);
trace("\t url: "+target_mc._url);
image_mcl.unloadClip(target_mc);
};
};
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip("http://www.helpexamples.com/flash/images/image1.jpg",
image_mc);
See also
loadClip (MovieClipLoader.loadClip method)
(MovieClipLoader.onLoadError event listener)

Number

Object
|
+-Number
public class Number
extends
Object
The Number class is a simple wrapper object for the Number data type. You can manipulate
primitive numeric values by using the methods and properties associated with the Number
class. This class is identical to the JavaScript Number class.
The properties of the Number class are static, which means you do not need an object to use
them, so you do not need to use the constructor.
The following example calls the
string
:
1234
var myNumber:Number = new Number(1234);
myNumber.toString();
544
ActionScript classes
,
method of the Number class, which returns the
toString()
. If you click the
image_mc
onLoadError

Advertisement

Table of Contents
loading

Table of Contents