Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


Forum Topic: Something wrong with my preloader

(62 views • 4 replies)

This topic is 1 page long.

<< < > >>
None

klaw224

Reply To Post Reply & Quote

Posted at: 5/30/08 10:30 AM

klaw224 EVIL LEVEL 09

Sign-Up: 08/18/05

Posts: 109

So i was making this preloader but somehow it wont work "Its sorta like a mask preloader"
Its supposed to fill in an outline BUT instead of filling it. Flash just waits for it to load and Shows the filled image without showing the progress and stuff. pls help.

heres the fla file.

http://www.mediafire.com/?fwxh3xk5mjt


None

Shadowshot2

Reply To Post Reply & Quote

Posted at: 5/30/08 11:34 AM

Shadowshot2 LIGHT LEVEL 10

Sign-Up: 06/08/06

Posts: 165

Are you sure you have your code right?
I don't know much about it but I can bet that's the problem...
Sorry I can't give you a good answer
someone has to know then ask to see the code...

NgCollabs(Working)
Please note: You are bound to get flamed at one point or another


None

Rustygames

Reply To Post Reply & Quote

Posted at: 5/30/08 11:39 AM

Rustygames LIGHT LEVEL 18

Sign-Up: 05/07/05

Posts: 6,371

At 5/30/08 10:30 AM, klaw224 wrote: So i was making this preloader but somehow it wont work "Its sorta like a mask preloader"
Its supposed to fill in an outline BUT instead of filling it. Flash just waits for it to load and Shows the filled image without showing the progress and stuff. pls help.

heres the fla file.

http://www.mediafire.com/?fwxh3xk5mjt

Your code is riddled with silly mistakes. Also you forgot to convert your mask to an MC and call it rectMask_mc.

Here is your fixed code:

stop();
onEnterFrame = function():Void  {
	var loadedData:Number = _root.getBytesLoaded();
	var allData:Number = _root.getBytesTotal();
	var percent:Number = Math.round(loadedData/allData*100);
	rectMask_mc._yscale = percent;
	if (percent == 100) {
		gotoAndPlay(10);
		delete onEnterFrame;
	}
};

Happy birthday

- Matt, Rustyarcade.com


None

klaw224

Reply To Post Reply & Quote

Posted at: 5/30/08 05:53 PM

klaw224 EVIL LEVEL 09

Sign-Up: 08/18/05

Posts: 109

At 5/30/08 11:39 AM, Rustygames wrote:
At 5/30/08 10:30 AM, klaw224 wrote: So i was making this preloader but somehow it wont work "Its sorta like a mask preloader"
Its supposed to fill in an outline BUT instead of filling it. Flash just waits for it to load and Shows the filled image without showing the progress and stuff. pls help.

heres the fla file.

http://www.mediafire.com/?fwxh3xk5mjt
Your code is riddled with silly mistakes. Also you forgot to convert your mask to an MC and call it rectMask_mc.

Here is your fixed code:

stop();
onEnterFrame = function():Void {
var loadedData:Number = _root.getBytesLoaded();
var allData:Number = _root.getBytesTotal();
var percent:Number = Math.round(loadedData/allData*100);
rectMask_mc._yscale = percent;
if (percent == 100) {
gotoAndPlay(10);
delete onEnterFrame;
}
};

Happy birthday

Oh yea i forgot to give it the instance name!

but

even if i gave it the instance name and did your code how come it still doesnt show the progress IT just show the picture as a whole when finished without any progress or anything.


None

klaw224

Reply To Post Reply & Quote

Posted at: 5/30/08 06:09 PM

klaw224 EVIL LEVEL 09

Sign-Up: 08/18/05

Posts: 109

Your code is riddled with silly mistakes. Also you forgot to convert your mask to an MC and call it rectMask_mc.

Here is your fixed code:

stop();
onEnterFrame = function():Void {
var loadedData:Number = _root.getBytesLoaded();
var allData:Number = _root.getBytesTotal();
var percent:Number = Math.round(loadedData/allData*100);
rectMask_mc._yscale = percent;
if (percent == 100) {
gotoAndPlay(10);
delete onEnterFrame;
}
};

Happy birthday

oooppps im sorry but I just figured out that Instead of loading the movie it loads the movie clip!.

What should i do!


All times are Eastern Daylight Time (GMT -4) | Current Time: 10:04 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!