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

Thread Tools Display Modes
Old 09-26-2009, 01:54 PM   #1
Join Date: Aug 2009
Location: Cork, Ireland
Posts: 7
Default swf preloader

Hello all.
Well I finally got my head around dreamweaver and got my site up and running.
I have uploaded two swf files on the home page and engineering page.
The file size for both are around 1.9 mb (is this ok for the average connection?)
As the files take a few seconds to load it slows down the rest of the page. I want to add a preloader so I watched a few tutorials over at lynda.com but Im still having trouble.
I moved all frames over 1 frame and added dynamic text (0%) and then added the code below under the actions tab.
When I test the movie it shows 0% for one frame and then the movie starts loading.
Any ideas. thanks in advance.


My website: www.cmgdesigns.ie


LoaderInfo.addEventListener(ProgressEvent.PROGRESS, updatePrelaoder) ;

function updatePrelader(evtobj:ProgressEvent) :void
	//container for the progress of the video (download)
	var percent:Number=Math.floor((evtobj.bytesLoaded*100)/evtesTotal);
	if (percent==100) {
Cian 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 10:45 AM.

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