Jump to content
Search Community

Color on loading

celumbra test
Moderator Tag

Recommended Posts

Is there a way to change the color of the background that appears prior to the swf loading? This is the background with the spinner.

 

I see the bgColor parameter, but it doesn't seem to change the light grey color under the spinner.

 

Thanks.

Link to comment
Share on other sites

Hi,

 

Here is the sample code:

 

var swf: SWFLoader = new SWFLoader(url,{x:0, y:0, container:curriculumMapDisplayArea, onProgress:_loaderMaxProgress, onComplete:displayPrintPreview, fitWidth: curriculumMapDisplayArea.width, fitHeight: curriculumMapDisplayArea.height, hAlign: "center", vAlign: "center", bgColor: 0x000000, scaleMode: "proportionalInside", noCache: false});
swf.load();						

\\

 

As the swf loads, the curriculumMapDisplayArea in this example displays a grey background with a spinner animation. I am looking for the place to change this grey color.

 

Thanks.

Link to comment
Share on other sites

It sounds like that has nothing to do with LoaderMax or any GreenSock tools. If you're just asking how to tween the color of a DisplayObject, you can use TweenMax's (or TweenLite's) tint feature like:

 

TweenMax.to(myObject, 1, {tint:0xFF0000});

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...