My account
Shopping cart
Knowledge base

Knowledge Base

Important! All new questions are usually answered within the next business day.

Loader Pro V3

(views: 22355)

The Loader Pro V3 is a professional loader that features scale modes (scale, crop, scale-crop, resize), align modes, built in preloaders and customized transition tweens. Here are all known issues for Loader Pro V3. If you have any questions that you think we should discuss here please let us know.

Create MCTE and Loader v3 using code

(2008-01-19 - views: 22247)
Q: How does one apply mcte effects to objects loaded with Loaderv3 using actionscript 3.0 ?
A: The idea is to create the target object (in this case the loader) before the MCTE instance is created. If you create the MCTE instance using only the constructor. After that, simply set the parameters and it will work. Here is the code snippet that will create an instance of the loader component and then an instance of the MCTE component (using the constructor). Finally, some parameters of the loader will be set, then added to the display list and the source parameter set to load some content.

// Create the instances for the loader and the MCTE components.
var myLoader:LoaderProV3AS3 = new LoaderProV3AS3();
var scaleMCTE:MCTE = new MCTE(myLoader, false, "show", "Scale", 6, 16, "Back", "easeOut", 15);

// Set the loader's visibility property, because, when added by code,
// the MCTE component automatically turns visibility off for the loader
// component.
myLoader.visibility = true;

// Set the loader's size and position.
myLoader.setSize(605, 240);
myLoader.x = 10;
myLoader.y = 70;
// The transition type must be set to "MCTE" or "MCTEfade", otherwise
// the MCTE transition will not be applied.
myLoader.transitionType = "MCTE";


myLoader.source= "ExternalContent.swf";