Go Back   Dreamweaver Club Forums > Graphic Design > Flash
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 02-20-2008, 02:35 PM   #1
Join Date: Feb 2008
Posts: 6
Exclamation Flash CS3 Preloader

My preloader works when I simulate download in flash cs3. I have "entry7.swf" in the same folder as the preloader on my hard drive and on my server. But when you visit my website:
www.cbsanswer.com/start.html the preloader freezes. Does anyone know why this is? I have never used a preloader before, so I think it is because of an error of mine. Here is the code:
// first request the file
var req:URLRequest = new URLRequest("/entry7.swf");
// next create a loader object
var loader:Loader = new Loader();
// then tell the loader object to load the requested file
// now add the loader object to the stage
// check the loading progress of the requested file (the data is stored in 'contentLoaderInfo')
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, checkProgress);
// run this event handler function every time the event listener is triggered
function checkProgress(p:ProgressEvent):void {
var percent:int = (p.currentTarget.bytesLoaded / p.currentTarget.bytesTotal) * 100;
loadingBar.text = String(percent);
mcLoadingBar.width = percent;
necessity is offline   Reply With Quote
Old 02-20-2008, 02:58 PM   #2
davidj's Avatar
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256

not sure about this as its in an OOP styley

im used to the traditional methods. Need to brush up on this stuff
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 05:04 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com