dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: played progress bar

  1. #1
    Junior Member
    Join Date
    Feb 2003
    Posts
    1

    played progress bar

    Hi everyone

    trying to make a progress bar that shows how much of the movie has been played. i did this successfully but i also have a replay button on my movie, when i click the replay button the main movie replays but my sub movie (the bar) does not. i tried an if else statement like: if (main movies plays, play sub movie) else stop but with the correct syntax, the actionscript is within the sub movie and am using MX, any ideas?

    cheers

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    try creating a movie clip 100 frames long which has a tween of the progress bar filling up. on this movie clip add a clip event,

    onClipEvent(load) {
    this.stop();
    }
    onClipEvent(enterFrame) {
    frame = Math.round((_parent._currentframe / _parent._totalframes) * 100);
    this.gotoAndStop(frame);
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center