
Tags
3D abstract actionscript animation as2 as3 blog cg charcoal circle cube color css design download drawing dreamweaver experiment flash flex free iq game graphic design html illustrator ink interactive javascript maya movie network open source painting photoshop php portfolio review rhino sketch stompernet tutorial video web design website work xmlConnect with circlecube
Recent Posts


Flashvars and as3
Flashvars and actionscript 3! Flashvar is a way that in your html embed codes (object tags) you can send variables
Tutorial to Create a Responsive Image Scroller in ActionScript 3.0
I’ve written a tutorial which is published over at flash.tutsplus. This tutorial demonstrates how to create a horizontally scrolling image
circlecube’s New Clothes – Theme Redesign
Thanks for your patience as I’ve been tinkering with the theme, layout and css of circlecube.com. old theme The last theme I used
Stomper999
Interactive Design project for StomperNet’s tease of the announced reveal on 09/09/09 at 09:09:09! “Online Marketing Changes Forever!” Wanted it to be
Forthcoming Actionscript Image Scroller Tutorial
Here is a preview of a file I’m writing a tutorial for. It’s nothing groundbreaking, but it deals with many
StomperNet FormulaFIVE Launch Web Design
StomperNet relaunched the popular FormaulFIVE and I was responsible for the design of the landing pages. Here are screenshots from
Stock Flash Site, Introducing ‘BuyStockFlash.com’
Buy Stock Flash Sell & Buy Flash Buy or Sell, Start Now - Stock Flash – Royalty Free Stock Flash effects, Video, Audio The
Web Hosting Search Review
I recently stumbled across a site that could easily help with your web hosting needs. They are called Web Hosting
Actionscript Drag & Drop Tutorial | Vertical and Horizontal Flash Sliders
A specific use of drag and drop which is a bit more complicated than your average drag & drop
Stomping2 Design
subscribe page with video salesletter page Stomping2.com is the Stomping the Search Engines 2 relaunch by StomperNet. I was responsible for the
Flash Video Issue: loadbar (size) vs playbar (time) usability
This deals with some issues I’m having with the seekbar of a player. The seekbar is the area that displays
Loading ...Popular Posts
- Actionscript Javascript Communication | ExternalInterface call and addCallback Tutorial
- Get current url to Flash swf using an External Interface call
- Get Current URL and Query String Parameters to Flash | Tutorial
- Integrate Google Analytics with Flash | Tutorial
- Intro to Flashvars | Passing variables to actionscript from the html embed | Tutorial
- How to as3 resize a movieClip and constrain proportions | Actionscript Tutorial
- XML and Flash Actionscript made Easy | Parse XML to Object | Tutorial
- Event Tracking with Google Analytics | Flash Integration | Tutorial
- Actionscript Key Listener Tutorial AS3
- ColorTransform | RGB, Hex and random colors | Actionscript Color Tutorial
FlashDen Files
Dynamic scrolling link list, xml driven, auto wrapping
An interactive link list. Vertically scrolling list of links or just text...
Dynamic scrolling link list, xml driven, no wrap
Make your own scrolling list, easy to customize and user friendly interactions...
Interactive image viewer with physics
It is fully customizable and fully driven by xml. Portfolio animated with the interaction options...
Round preloader bar
Clean slick preloader. Rounded bar with gradient and bevel style. All actionscript driven...
Preloader with Stats
Calculates the following: Percent Loaded, Loaded kb, Total kb, Average kbps speed, Remaining time...Calendar
Recent Comments
atasözleri
Thank, working fine but i want to this sample code : ExternalInterface.call(” function anyFunction(blah) { blah; blah;...Burroughs
Mullins!! You are brilliant…email me so I can call you. Please…StuJ
took a little while to sink in it makes perfect sense now! (I’ve had a beer!) And it works! Didnt take long to get it centred...steve
Hi, Thanks for the creative example. I used these once for a flash header on a website. The client wanted the movie to continue to...Rose
I’m using AS2, but this will help me with randomly generating hex values. Thank you so much!Maikel
Thx! Helped me out a lot!
WE
That’s the conclusion I’m starting to come to. I’ve been searching around for a working version of a flash...Hieu
Thanks a lot for sharing.davea0511
this is also worth checking out … http://indivision-codebase-as2.goog lecode.com/files/indivision_code...Ronald
Thanks for the great idea and clear tutorial. I used your code as starting point and tried if I could make some random fireflies...








Rounded Bar Percentage Preloader for Flash Tutorial
I’ve had a couple inquiries about how to do a simple preloader in Flash. The technique and also the actionscript which implements the technique. So here is a percentage preloader example with source code and a source file to play with.
Overview
So the idea of a preloader is to hold the swf until the file has sufficiently loaded. Once it’s is fully loaded, then the preloader advances to swf to the actual content.
There are different types of preloaders: status preloaders and percentage preloaders. Status preloaders only tell you the status of the loading file. So it will have a simple looping animation like a spinning wheel and you just wait until it is fully loaded. Percentage preloaders will actually tell you how much has been loaded or how much is left and usually will have a bar or something that fills as the file loads or at least tell you in numbers how much has been loaded.
These techniques require the same first few steps. As you can guess, the percentage preloader takes a couple extra steps, but it is much worth the extra few minutes in my opinion. It gives the users valuable information about the program or file they are waiting on. If they are waiting and have no idea how much longer their wait will be, who knows how long they will stick around and watch an hourglass.
In actionscript the only special methods we use for a preloader are getBytesLoaded and getBytesTotal. Once we know the bytes loaded and the total bytes to load, with a little math we calculate what percentage is loaded.
Steps
Example
This is a preview, note that it is not actually a preloader, just what one looks like. You can see this preloader working in my Interactive Image Viewer…
Actionscript
I’ve put this code on the preloader movieclip which sits alone on frame one with a simple stop(); actionscript command. Frame 2 contains the beginnings of the actual content. To break down the code, we first see that it is performed every frame: onClipEvent(enterFrame), so every frame we will see how much has loaded. In this case the frame rate is 20 frames per second, so we check the amount loaded every 20th of a second!
First we find the percentLoaded by dividing the total bytes to load by the number of bytes currently loaded. Then we display the percent loaded in a text box named feedback and adjust the xscale of the orange bar according to percentLoaded. Finally we’ll check to see if the percentLoaded has reached 100 yet, and if it has we play the parent clip (which in this case is the root, but it could be used to load numerous objects on the stage). When we play the parent clip, we then go to frame 2 or the actual content of the swf and this preloader is removed from the stage and the code will stop executing. But if percentLoaded is not 100% yet this frame is repeated and the code executes all over again, finding the (hopefully) new number of bytes loaded, and updating the display to inform the user. The code executes so fast that the preloader will actually animate the loading process and inform the user simultaneously.
2
3
4
5
6
7
8
9
10
percentLoaded = _parent.getBytesLoaded() / _parent.getBytesTotal() * 100;
this.feedback.text = "%" + Math.ceil(percentLoaded );
this.bar._xscale = percentLoaded ;
if (percentLoaded => 100) {
_parent.play();
}
}
Download
FlashDen is hosting this preloader file: Round Preloader Bar
Circlecube Files on FlashDen