Movie progress bar

  • garryd
  • Born
  • Born
  • No Avatar
  • Joined: May 28, 2004
  • Posts: 3
  • Status: Offline

Post May 31st, 2004, 4:46 am

hey guys, is there a way I can create a movie progress bar with moving play head?

The movie the play head will control and show the progress of will be an externally loaded swf.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 31st, 2004, 4:46 am

  • rynoe
  • Banned
  • Banned
  • User avatar
  • Joined: May 31, 2004
  • Posts: 17
  • Status: Offline

Post May 31st, 2004, 9:30 pm

Do you mean a preloader bar?
  • Sulfin
  • Graduate
  • Graduate
  • User avatar
  • Joined: Jun 12, 2004
  • Posts: 129
  • Loc: canada
  • Status: Offline

Post June 14th, 2004, 6:23 pm

This code is for the preloader percent:
Code: [ Select ]
this.onEnterFrame = function() {
  percentLoaded=Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"%";
};
  1. this.onEnterFrame = function() {
  2.   percentLoaded=Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"%";
  3. };

This code is for the progress percent:
Code: [ Select ]
this.onEnterFrame = function() {
  percentPlayed=Math.round((_root._currentframe/_root._totalframes)*100)+"%";
};
  1. this.onEnterFrame = function() {
  2.   percentPlayed=Math.round((_root._currentframe/_root._totalframes)*100)+"%";
  3. };

You have to put this code on the first frame of your movie and you can only put one of them unless you put them both together in the same onEnterFrame. Should work!
P.S. Post if you wan't more info.
  • OriginNO
  • Graduate
  • Graduate
  • User avatar
  • Joined: May 18, 2004
  • Posts: 137
  • Loc: the Glass City (Hometown: the NO)
  • Status: Offline

Post June 15th, 2004, 11:07 am

This script will give you the percent loaded, KB loaded, and KB total.

You will need to make 3 dynamic text fields and make their vriable names c, d, e.

Add this script to the first frame.
Code: [ Select ]
a = getBytesLoaded();
b = getBytesTotal();
c = Math.ceil((a/b)*100)+"%";
d = Math.floor(a/1024)+"KB Has Loaded";
e = Math.floor(b/1024)+"KB Total";
if (A == B) {
  nextScene ();
}
  1. a = getBytesLoaded();
  2. b = getBytesTotal();
  3. c = Math.ceil((a/b)*100)+"%";
  4. d = Math.floor(a/1024)+"KB Has Loaded";
  5. e = Math.floor(b/1024)+"KB Total";
  6. if (A == B) {
  7.   nextScene ();
  8. }


Put this action in the second frame.
Code: [ Select ]
gotoAndPlay (1);
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 24, 2004
  • Posts: 1013
  • Loc: Living In Today
  • Status: Offline

Post June 15th, 2004, 11:28 am

Do an Ozzu search for preloaders. This type of question has been asked numerous times.
Yesterday is history.Tomorrow is mystery.Today is a gift.
Car Audio Sytems
LED Emergency Lights

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 40 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.