Skip to main content
Known Participant
January 25, 2014
Question

ProgressBar

  • January 25, 2014
  • 1 reply
  • 547 views

hi
I know someone advise how it can be used ProgressBar component (orginal component), as featured (starting) in preloader swf?


This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 25, 2014

just assign the source property of your progressbar to be your loader (or urlloader or the main timeline's loaderInfo property).

Known Participant
January 25, 2014

I have this code

stop();

import fl.controls.ProgressBar;

import fl.controls.ProgressBarDirection;

my_pb.source =  ??  ;  // (root or stage or this or MovieClip(this)) ???

my_pb.addEventListener(Event.COMPLETE, completeHandler);

function completeHandler(event:Event):void

{

gotoAndStop(2);

}

kglad
Community Expert
Community Expert
January 25, 2014

i assume your question is what should be the source and i assume you want to display the load-progress of the main timeline that contains the code your posted.  if so, use

my_pb.source=this.loaderInfo;