Forum Moderators: not2easy
I've been asked to make a 'loading....' page for an all flash website.
How can I do this? I've never used Flash before, do I need software or can someone give me an explanation on how to do it?
I put a post in the commersial exchange forum but didn't get much response so maybe I have to D.I.Y. it ;)
Nick
You should get Flash installed on your computer. Then I recommend doing the tutorials included in the installation to get a feel for the software (this'll take a few hours - definitely doable within a day).
Once you've done those tutorials then head over to flashkit.com and do a search for "preloader tutorial". If memory serves they've got a couple of good tutes there that explain everything you'll need.
If you want to get more complicated you can show percentages of loading. Say you have a 100 frame animation. You have 5 loading frames for 0, 25, 50, 75, 100% complete. You would set up the first frame with 0% complete to have the action
ifFrameLoaded (25){
gotoAndPlay (2); // frame 2 has the 25% graphic for the loading screen
}
Frame 2 should have the action
ifFrameLoaded (50){
gotoAndPlay (3); // frame 3 has the 50% graphic for the loading screen
}
So on and so forth. You can also set up a seperate movie to call the first movie once it is loaded but it is more complicated.
I know there is a way to check load status of an element in asp. I do not know how to do it but I do know you can. I know your a PHP guy and I would think PHP should be able to do something similar. If you want to go around flash all together I would think serverside scripting or cgi would be your best alternative.
loadedBytes = _root.getBytesLoaded();
totalBytes = _root.getBytesTotal();
if (loadedBytes < totalBytes){
percentageOutput = int((loadedBytes / totalBytes) * 100);
_root.loaderBar._xscale = percentageOutput;
gotoAndPlay("preload_loop");
}
else{
gotoAndPlay("begin_movie");
}
You should be able to interpret the how here. It's just an example.
[edited by: korkus2000 at 4:48 am (utc) on Aug. 24, 2002]
[edit reason] TOS provision [/edit]
It is always good to have another flash developer in the house. I hope you stick around and add to our discussions about flash and its place in the universe. I am corrected, your preloader is much better. I have stopped creating large Internet flash movies and really have become rusty with preloaders. As you can see my preloader is circa 1999. If you need anything here just let me know. Welcome to the board.