ActionScript Reference

 

AdvancedLoaderPro.autoFeederFile

Availability

Flash Player 7

Usage

AdvancedLoaderPro.autoFeederFile:String

Description

String. Filename of autofeeder file.

Example

myAdvancedLoaderPro.autoFeederFile = "autofeeder.php";
trace(myAdvancedLoaderPro.autoFeederFile);

 

 

AdvancedLoaderPro.autoFeederFileTypes

Availability

Flash Player 7

Usage

AdvancedLoaderPro.autoFeederFileTypes:Array

Description

Array. List of file types to be read by the autofeeder file.

Example

myAdvancedLoaderPro.autoFeederFileTypes = ["jpg", "swf"];
trace(myAdvancedLoaderPro.autoFeederFileTypes);

 

 

AdvancedLoaderPro.autoFeederFolder

Availability

Flash Player 7

Usage

AdvancedLoaderPro.autoFeederFolder:String

Description

String. The name of folder on the server the contents of which should be read by the autofeeder file.

Example

myAdvancedLoaderPro.autoFeederFolder = "images/slideshow";
trace(myAdvancedLoaderPro.autoFeederFolder);

 

 

AdvancedLoaderPro.bytesLoaded

Availability

Flash Player 7

Usage

AdvancedLoaderPro.bytesLoaded:Number

Description

Number (read only). Returns the number of bytes currently loaded of the component's current image.

Example

trace(myAdvancedLoaderPro.bytesLoaded);

 

 

AdvancedLoaderPro.bytesTotal

Availability

Flash Player 7

Usage

AdvancedLoaderPro.bytesTotal:Number

Description

Number (read only). Returns the total number of bytes of the image the component is currently loading.

Example

trace(myAdvancedLoaderPro.bytesTotal);

 

 

AdvancedLoaderPro.captionDateFormat

Availability

Flash Player 7

Usage

AdvancedLoaderPro.captionDateFormat:String

Description

String. Determines the format of the date automatically generated by the autofeeder file.

Example

myAdvancedLoaderPro.captionDateFormat = "y/m/d";
trace(myAdvancedLoaderPro.captionDateFormat);

 

 

AdvancedLoaderPro.captions

Availability

Flash Player 7

Usage

AdvancedLoaderPro.captions:Array

Description

Array. List of captions for slideshow relating to the src array.

Example

myAdvancedLoaderPro.captions = ["This is image 1", "This is image 2", "This is image 3"];
trace(myAdvancedLoaderPro.captions);

 

 

AdvancedLoaderPro.captionTextfield

Availability

Flash Player 7

Usage

AdvancedLoaderPro.captionTextfield:String

Description

String. The instance name of the textfield that should display the current image's caption.

Example

myAdvancedLoaderPro.captionTextfield = "myTextField";
trace(AdvancedLoaderPro.captionTextfield);

 

 

AdvancedLoaderPro.CompleteEffect

Availability

Flash Player 7

Usage

AdvancedLoaderPro.CompleteEffect:String

Description

String. Name of the effect to be performed when an image is loaded into component.

Example

myAdvancedLoaderPro.CompleteEffect = "Drop Down";
trace(myAdvancedLoaderPro.CompleteEffect);

 

 

AdvancedLoaderPro.content

Availability

Flash Player 7

Usage

AdvancedLoaderPro.content:Movieclip

Description

Movieclip (read only). Returns a reference to the advancedLoaderPro's content allowing you to access it with script.

Example

myAdvancedLoaderPro.content.play();

 

 

AdvancedLoaderPro.EffectSpeed

Availability

Flash Player 7

Usage

AdvancedLoaderPro.EffectSpeed:Number

Description

Number. The speed of the Complete and Unload effects. The higher the number the higher the speed. Values are restricted to numbers between 0 and 100.

Example

myAdvancedLoaderPro.EffectStrength = 10;
trace(myAdvancedLoaderPro.EffectStrength);

 

 

AdvancedLoaderPro.EffectStrength

Availability

Flash Player 7

Usage

AdvancedLoaderPro.EffectStrength:Number

Description

Number. The strength of the Complete and Unload effects. Only applies to some effects. The higher the number the greater the strength. Values are restricted to numbers between 0 and 100.

Example

myAdvancedLoaderPro.EffectStrength = 10;
trace(myAdvancedLoaderPro.EffectStrength);

 

 

AdvancedLoaderPro.getCurrentImage

Availability

Flash Player 7

Usage

AdvancedLoaderPro.getCurrentImage()

Description

Method. Returns a reference to the currently loaded content's source.

Example

trace(myAdvancedLoaderPro.getCurrentImage());

 

 

AdvancedLoaderPro.getImageCaption

Availability

Flash Player 7

Usage

AdvancedLoaderPro.getImageCaption(index:Number)

Description

Method. Returns the specified image's caption.

Example

trace(myAdvancedLoaderPro.getImageCaption(3));

 

 

AdvancedLoaderPro.getTotalImages

Availability

Flash Player 7

Usage

AdvancedLoaderPro.getTotalImages()

Description

Method. Returns the number of images in the slideshow.

Example

trace(myAdvancedLoaderPro.getTotalImages());

 

 

AdvancedLoaderPro.gotoImage

Availability

Flash Player 7

Usage

AdvancedLoaderPro.gotoImage(index:Number)

Description

Method. Moves slideshow to specified index.

Example

myAdvancedLoaderPro.gotoImage(3);

 

 

AdvancedLoaderPro.linkURLs

Availability

Flash Player 7

Usage

AdvancedLoaderPro.linkURLs:Array

Description

Array. List of links for the slideshow relating to the src array.

Example

myAdvancedLoaderPro.linkURLs = ["http://www.flashloaded.com/", "http://www.flashloaded.com/", "http://www.fontsforflash.com"];
trace(myAdvancedLoaderPro.linkURLs);

 

 

AdvancedLoaderPro.load

Availability

Flash Player 7

Usage

AdvancedLoaderPro.load(src:String)

Description

Method. Loads specified image into the component.

Example

myAdvancedLoaderPro.load("myImage.jpg");

 

 

AdvancedLoaderPro.Mask

Availability

Flash Player 7

Usage

AdvancedLoaderPro.Mask:String

Description

String. The linkage identifier of a movieclip in the library to be used to mask the component.

Example

myAdvancedLoaderPro.Mask = "myMask";
trace(myAdvancedLoaderPro.Mask);

 

 

AdvancedLoaderPro.nextImage

Availability

Flash Player 7

Usage

AdvancedLoaderPro.nextImage()

Description

Method. Advances the slideshow one image forward.

Example

myAdvancedLoaderPro.nextImage();

 

 

AdvancedLoaderPro.onComplete

Availability

Flash Player 7

Usage

AdvancedLoaderPro.onComplete = function()

Description

Function. Called when the loading of the current content is completed.

Example

myAdvancedLoaderPro.onComplete = function()
{
    trace("content loaded!");
}

 

 

AdvancedLoaderPro.onFailure

Availability

Flash Player 7

Usage

AdvancedLoaderPro.onFailure = function()

Description

Function. Called if the loading of the current content fails.

Example

myAdvancedLoaderPro.onFailure = function()
{
    trace("error!");
}

 

 

AdvancedLoaderPro.onProgress

Availability

Flash Player 7

Usage

AdvancedLoaderPro.onProgress = function()

Description

Function. Called everytime the loaded amount of the component's current content changes.

Example

myAdvancedLoaderPro.onProgress = function(total:Number, loaded:Number, percent:Number)
{
    progressToDisplay = loaded + " of " + total + " ( " + percent + " % )";
}

 

 

AdvancedLoaderPro.onUnloaded

Availability

Flash Player 7

Usage

AdvancedLoaderPro.onUnloaded = function()

Description

Function. Called when the unloading of the current content is completed.

Example

myAdvancedLoaderPro.onUnloaded = function()
{
    trace("content removed!");
}

 

 

AdvancedLoaderPro.overlapEffects

Availability

Flash Player 7

Usage

AdvancedLoaderPro.overlapEffects:Boolean

Description

Boolean. If set to true onComplete and onUnload Effects will play simultaneously, otherwise the onComplete Effect will not play until the onUnload Effect has finished.

Example

myAdvancedLoaderPro.overlapEffects = true;
trace(myAdvancedLoaderPro.overlapEffects);

 

 

AdvancedLoaderPro.percentLoaded

Availability

Flash Player 7

Usage

AdvancedLoaderPro.percentLoaded:Number

Description

Number (read only). Returns the amount of content loaded as a percentage.

Example

trace(myAdvancedLoaderPro.percentLoaded);

 

 

AdvancedLoaderPro.PrelColor

Availability

Flash Player 7

Usage

AdvancedLoaderPro.PrelColor:Number

Description

Number. Specifies the color of the preloader.

Example

myAdvancedLoaderPro.PrelColor = 0xFF0099;
trace(myAdvancedLoaderPro.PrelColor);

 

 

AdvancedLoaderPro.PrelTextColor

Availability

Flash Player 7

Usage

AdvancedLoaderPro.PrelTextColor:Number

Description

Number. Specifies the color of the preloader text.

Example

myAdvancedLoaderPro.PrelTextColor = 0xFF0099;
trace(myAdvancedLoaderPro.PrelTextColor);

 

 

AdvancedLoaderPro.PrelWidth

Availability

Flash Player 7

Usage

AdvancedLoaderPro.PrelWidth:Number

Description

Number. Specifies the width of the preloader bar. The maximum value is the width of the component.

Example

myAdvancedLoaderPro.PrelWidth = 100;
trace(myAdvancedLoaderPro.PrelWidth);

 

 

AdvancedLoaderPro.previousImage

Availability

Flash Player 7

Usage

AdvancedLoaderPro.previousImage()

Description

Method. Advances the slideshow one image backwards.

Example

myAdvancedLoaderPro.previousImage();

 

 

AdvancedLoaderPro.print

Availability

Flash Player 7

Usage

AdvancedLoaderPro.print()

Description

Method. This method may be used to print the content of the component.

Example

myAdvancedLoaderPro.print();

 

 

AdvancedLoaderPro.randomDisplay

Availability

Flash Player 7

Usage

AdvancedLoaderPro.randomDisplay:Boolean

Description

Boolean. If set to true the slideshow is displayed in a random order, otherwise the slideshow is displayed in the order specified.

Example

myAdvancedLoaderPro.randomDisplay = true;
trace(myAdvancedLoaderPro.randomDisplay);

 

 

AdvancedLoaderPro.ROverEffect

Availability

Flash Player 7

Usage

AdvancedLoaderPro.ROverEffect:String

Description

String. Specifies the effect to be performed on rollover.

Example

myAdvancedLoaderPro.ROverEffect = "Eased";
trace(myAdvancedLoaderPro.ROverEffect);

 

 

AdvancedLoaderPro.ROverZoom

Availability

Flash Player 7

Usage

AdvancedLoaderPro.ROverZoom:Number

Description

Number. Specifies the value as a percentage to scale the image to on rollover.

Example

myAdvancedLoaderPro.ROverZoom = 120;
trace(myAdvancedLoaderPro.ROverZoom);

 

 

AdvancedLoaderPro.ScaleButton

Availability

Flash Player 7

Usage

AdvancedLoaderPro.ScaleButton:Boolean

Description

Boolean. If set to true the hitarea of the component will scale along with the image.

Example

myAdvancedLoaderPro.ScaleButton = true;
trace(myAdvancedLoaderPro.ScaleButton);

 

 

AdvancedLoaderPro.ScaleContent

Availability

Flash Player 7

Usage

AdvancedLoaderPro.ScaleContent:String

Description

String. Specifies the method that should be used to scale the loaded image to fit the area of the component.

Example

myAdvancedLoaderPro.ScaleContent = "Scale to fit";
trace(myAdvancedLoaderPro.ScaleContent);

 

 

AdvancedLoaderPro.ShowPreloader

Availability

Flash Player 7

Usage

AdvancedLoaderPro.ShowPreloader:Boolean

Description

Boolean. If true the preloader will be displayed when required, otherwise the preloader will never appear.

Example

myAdvancedLoaderPro.ShowPreloader = true;
trace(myAdvancedLoaderPro.ShowPreloader);

 

 

AdvancedLoaderPro.ShowPreloadText

Availability

Flash Player 7

Usage

AdvancedLoaderPro.ShowPreloadText:Boolean

Description

Boolean. If true the percentage of loading will be displayed in the preloader, otherwise only the preloader bar will be used.

Example

myAdvancedLoaderPro.ShowPreloadText = true;
trace(myAdvancedLoaderPro.ShowPreloadText);

 

 

AdvancedLoaderPro.slideShowTime

Availability

Flash Player 7

Usage

AdvancedLoaderPro.slideShowTime:Number

Description

Number. The number of seconds for the image to be displayed before moving to the next image.

Example

myAdvancedLoaderPro.slideShowTime = 5;
trace(myAdvancedLoaderPro.slideShowTime);

 

 

AdvancedLoaderPro.source

Availability

Flash Player 7

Usage

AdvancedLoaderPro.source:String

Description

String. Returns a reference to the currently loaded content's source.

Example

trace(myAdvancedLoaderPro.source);

 

 

AdvancedLoaderPro.src

Availability

Flash Player 7

Usage

myAdvancedLoaderPro.src:Array

Description

Array. A list of images to be used for the slideshow. This list is ignored if using the autofeeder or XML options.

Example

myAdvancedLoaderPro.src = ["image1.jpg", "image2.jpg", "image3.jpg"];
trace(myAdvancedLoaderPro.src);

 

 

AdvancedLoaderPro.target

Availability

Flash Player 7

Usage

AdvancedLoaderPro.target:String

Description

String. The link target of the component specifying which window the link should be loaded into when the component is clicked.

Example

myAdvancedLoaderPro.target = "_blank";
trace(myAdvancedLoaderPro.target);

 

 

AdvancedLoaderPro.UnloadEffect

Availability

Flash Player 7

Usage

AdvancedLoaderPro.UnloadEffect:String

Description

String. Name of the effect to be performed when an image is unloaded.

Example

myAdvancedLoaderPro.UnloadEffect = "Drop Down";
trace(myAdvancedLoaderPro.UnloadEffect);

 

 

AdvancedLoaderPro.XMLFile

Availability

Flash Player 7

Usage

AdvancedLoaderPro.XMLFile:String

Description

String. Filename of the XML file to be used to create the slideshow. This value is ignored if using the autofeeder option.

Example

myAdvancedLoaderPro.XMLFile = "slideshow.xml";
trace(myAdvancedLoaderPro.XMLFile);