Method | Description |
---|---|
loadContent() | Loading external jpg, png and swf from url source. |
Availability Flash Player 7.
Edition Flash MX 2004.
Usage SimpleLOADER.loadContent(url)
Parameters url: url of the content being load.
Returns MovieClip; MovieClip instance of the loaded content.
Description Method; load external jpg, png and swf from url source.
Code Example :
loader_mc.loadContent("http://www.abc.com/photo.jpg");
loader_mc.loadContent("http://www.abc.com/content.swf");
Event | Description |
---|---|
onLoadComplete() | Broadcast when content loading completed. |
onLoadStart() | Broadcast when content loading started. |
onLoadProgress() | Broadcast when content loading in progress. |
Code Example :
var loaderListener = new Object();
//Define Event Listener
loaderListener.onLoadComplete = function() {
trace("onLoadComplete");//Ouput when all load completed
}
loaderListener.onLoadStart = function() {
trace("onLoadStart");//Ouput when load started
}
loaderListener.onLoadProgress = function(eventObj) {
trace(eventObj.progress);//Output the loaded progress in %
}
//Add Event Listener
loader_mc.addEventListener("onLoadComplete",loaderListener);
loader_mc.addEventListener("onLoadStart",loaderListener);
loader_mc.addEventListener("onLoadProgress",loaderListener);
Property | Type | Description | Default Value | Possible Value |
---|---|---|---|---|
srcURL | String | The source url of the content. Use loadContent() instead of changing this value when you want to change the content on the fly. | Any string | |
resizeMode | String | The parameter determine where the blur effect active or not. This effect is only supported in Flash Player version 8+. | Auto | Auto,Auto Height,Auto Width,Stretch,None |
imageFadeTime | Number | The time in second of the fading effect. | 2 | Number > 0 |
enableMouseScroll | Boolean | Enable/disable the mouse pan scrolling. | true | Any string |
skinName | String | Specify the id name use for skinging the loading graphics. | Any valid URL, product.html or other vaild url |
| |||||||||||||||||||||||||