Be a Supporter!

Hard Time Making a preloader

  • 143 Views
  • 1 Reply
New Topic Respond to this Topic
SpaceCommandZero
SpaceCommandZero
  • Member since: Sep. 2, 2012
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Hard Time Making a preloader 2014-02-11 13:43:01 Reply

Hi people.
I've been a busy for a few days trying to make a preloader.
it does seem to load correctly. The problem is that the play
button of the preloader is not working. When I try to add an actionscript
code to the the it, the whole movieclip doesn't do anything but
playing in a loop. Also, the flash does not stop a the frame of the
preloader when it's loaded. It just automatically plays on unless
I put a stop command out side of the movieclip into the frame.
The actionscript code I used is on the "actions" (with aside from it
nothing in the frame) is:
stop();
var total:Number = this.loaderInfo.bytesTotal;
var loaded:Number = this.loaderInfo.bytesLoaded;
var percentage:Number = loaded/total
percentage = Math.floor(percentage = 99);
if(loaded == total) {
gotoAndPlay(2)
}
I also used one of this in on the frame of the symbol that says it's
loader in order for it to go along with the rest of the movieclip.
Can anyone tell me how to go on with this?

Hard Time Making a preloader

Etherblood
Etherblood
  • Member since: Apr. 14, 2013
  • Offline.
Forum Stats
Member
Level 12
Game Developer
Response to Hard Time Making a preloader 2014-02-11 13:55:03 Reply

At 2/11/14 01:43 PM, SpaceCommandZero wrote: Can anyone tell me how to go on with this?

I answered in your other post,
http://www.newgrounds.com/bbs/topic/1360663
but lets keep the discussion here.