Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Flash AS3.0 Preloader problem, Preloader not working as it should

views
     
TSjunkieG
post Mar 30 2011, 04:35 PM, updated 15y ago

DIGITAL ERA
*******
Senior Member
2,687 posts

Joined: Jan 2003
From: Sue Bunk Jai Yaa!


Hi all,

Another problem while building Flash AS3.0 Preloader.

This is the script i got from the net. It was meant for picture file ie. Jpeg i think... sweat.gif

QUOTE
stop();

stage.addEventListener(Event.ENTER_FRAME, update);

function update(e:Event):void {


var loadedBytes:Number = stage.loaderInfo.bytesLoaded;
var totalBytes:Number = stage.loaderInfo.bytesTotal;

progress_mc.scaleX = loadedBytes / totalBytes;

percent_txt.text = Math.floor((loadedBytes / totalBytes) * 100) + "%";

if (loadedBytes == totalBytes) {
gotoAndPlay(5) ;
stage.removeEventListener(Event.ENTER_FRAME, update);
}
}


When I replace the Jpeg image with movie clip, the preloader gone cacat. I know this after simulating it under flash player. should if its not a movie clip, my preloader will working just fine

What did i do wrong? icon_question.gif

attached is the project file for your perusal.

Your assistance is highly appreciated. Please help cry.gif


Attached File(s)
Attached File  preloader_problem.zip ( 298.66k ) Number of downloads: 8
TSjunkieG
post Mar 31 2011, 10:38 AM

DIGITAL ERA
*******
Senior Member
2,687 posts

Joined: Jan 2003
From: Sue Bunk Jai Yaa!


hii shinkawa,

it is stopping at the assigned keyframe which is (5) however the preloader seems not to working properly.

@oelalmas, thanks, im looking at some of the tutorial. Personally I feel too technical for a designer like me. huhuuhhu!

appreciate you guys help!


TSjunkieG
post Apr 12 2011, 02:45 PM

DIGITAL ERA
*******
Senior Member
2,687 posts

Joined: Jan 2003
From: Sue Bunk Jai Yaa!


hi mclelun,

do u need me to save it on different version of flash?

 

Change to:
| Lo-Fi Version
0.0147sec    0.67    7 queries    GZIP Disabled
Time is now: 16th December 2025 - 12:38 PM