|
|
| FlashStore rating: |
Not rated yet.
|
| User rating: |
|
| Date: |
15-08-06 |
| Submited by: |
papusharu |
| Skill: |
beginner |
|
|
|
|
|
About |
Flash Loader Pro is a loader component that supports horizontal and vertical content alignment, content resize, scale and other settings that the original mx.loader never did.
The Loader Pro component can be used in Flash MX 2004 and Flash 8. The component itself was developed under Flash 8 . We also integrated alpha tween on appear and transition tween also. When you need a simple built in preloader just set the built in parameter "true" and set the color for it, or, you can use our own preloader. This is a "quick use" component, even if you need a simple container for a basic movie, the Loader Pro component will certainly work well. This component adds touch to your flash movie in seconds. Use the component to display images and swfs' without scripting, or with less script.
|
UI Access |
| Components panel under UI Pro Components – jumpEYE |
Support address |
|
|
Useful links |
|
Code samples |
Usage:
1. Drag and drop the component to the stage.
2. Set the contentPath of the component.
3. Set the parameters to your movie needs.
4. Compile and go.
To access the loaded content use this linkage:
loaderinstance.content
Parameters:
1. _builtInPreloader:Boolean (default=true) if true will open the built In preloader; false will make it invisible.
2. _discard_old:Boolean (default=false) if true will discard last object loaded right when the new one starts loading; if false, will unload last object only when new object is arrived.
3. _preloaderColor:Color (default=0xFFFFFF) choose the color for the built in preloader from the colorpicker.
4. _scaleMode:String Enumeration (defaul="scale") modes available: scale, resize and none.
5. _alignH:String Enumeration (default=center) Horizontal alignment.
6. _alignV:String Enumeration (default=middle) Vertical alignment.
7. appear:String Enumeration (default=alpha) appearance modes available: alpha, transition, none.
8. contentPath:String Sets the link to the object that has to be loaded in the loader component.
9. speed:Number (default=10) the number of frames of the appearance transition tween.
Functions:
1. loader.onLoad(boolvar); will be called when new content is loaded (boolvar = true) or when error occurs (boolvar = false). The onLoad function will also be called with no parameters when component draws.
2. loader.onProgress(percentage); will be called on every frame of the loading progress. Use this instead of using the built in preloader. use the percentage to animate loader bars, or to display in textfields.
» Code Samples
loader.onLoad = function(success) {
if (success) {
trace("loaded");
}
};
btn.onRelease = function() {
loader.contentPath = "poza3.jpg";
};
loader.onProgress = function(proc){
pregressbar._xscale=proc
}
|
|
|