Skip navigation
Currently Being Moderated

How to define the Image for backgroundImage of  DownloadProgressBar

Nov 11, 2006 11:03 AM

Here is the example:
package myProgressBars
{
import mx.preloaders.*;
import flash.events.ProgressEvent;

public class DownloadProgressBarSubClassMin extends DownloadProgressBar
{
public function DownloadProgressBarSubClassMin() {
super();
// Set the download label.
downloadingLabel="Downloading app..."
// Set the initialization label.
initializingLabel="Initializing app..."
// Set the minimum display time to 2 seconds.
MINIMUM_DISPLAY_TIME=2000;
}

But I would like to specify backgroundImage, it need pass in by the preloader, and it defines as a Object. I tried use @Embed, but seem it can’t load on runtime.
And I tried backgroundColor, I assign value like 0xFFFFFFFF, I found it from uint class. It doesn’t work too.
Anyone knows how to assign value to backgroundImage or backgroundColor? thanks
 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points