DevelopPHP
home Forum gear home

Libraries book

HTML Library CSS Library JavaScript Library PHP Library

Videosbook

PHP and MySQL JavaScript HTML and CSS Vector and 3D Flash Actionscript Android Dev Miscellaneous

Resourcesbook

Website Hosting

Download Source Files

<iframe width="560" height="315" src="http://www.youtube.com/embed/llcgABOHcCI" frameborder="0" allowfullscreen></iframe>
You can embed this video on your blog or web page by copying the video embed code above and pasting it into the source code of your page. Adjust the width and height to specify the size you would like it to display.
Thumb Progress Preloader 1
Embed Source - http://www.youtube.com/watch?v=llcgABOHcCI
Publish Date - Mar 31, 2008     Author - Adam Khoury
Progress Preloader 1
In this Flash AS3 tutorial we give a simple solid example of how to easily preload your bulky Flash files using a loadbar and dynamic load text. It is best practice in flash to give your web site visitors an indication that something big is loading in. If it takes more 2 seconds to load in you will want to implement a progress preloader load bar and percentage text.
Lesson Code

import flash.events.ProgressEvent;

function loadProgress(my_movie:ProgressEvent):void {

var percent:Number = Math.floor( (my_movie.bytesLoaded*100)/my_movie.bytesTotal );

myLoadText.text = percent+"%";
// We want our load bar to be 200px wide
// so we multiply the dynamic percent by 2
myLoadBar.width = percent * 2;

}
loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);

// On frame two there is a stop action


Home   •   Terms of Use   •   Developer Forums   •   T-Shirts   •   RSS   •   Classroom Chalkboard   •   Donate   •   Top ↑
Popular In PHP / MySQL E-Commerce Store Production
Social Network Website Building
Image Upload / Photo Processing
CMS Software Programming
Mass Email Systems
Magic XML Data
Search Programming
Popular In JavaScript JSON Programming
Ajax Programming
Animating Elements
WYSIWYG Programming
Date/Time Programming
DOM Scripting
Object Reference
Popular In HTML Canvas Element
New Form Elements
Audio Element
Video Element
Drag and Drop
Event Handling
Element Grouping
Popular In CSS Custom Font Embedding
Dynamic Fit Backgrounds
Theatre Mode
Box Overlays
CSS Level 1 Properties
CSS Level 2 Properties
CSS Level 3 Properties
©2013 DevelopPHP   |   Navigate to related domains HTML5