Skip navigation
Currently Being Moderated

Set a FLVPlayback Object Colour

May 11, 2012 7:12 AM

Tags: #flvplayback #actionscript_3

Hello

 

I am creating an FLV movie player using one of the FLVPlayback Skins (SkinUnderPlaySeekStop). I am trying to set the colour of the play button and the SeekBar dynamically from my player.

 

I can assign the Skin OK using flashMovie.skin = "SkinUnderPlaySeekStop.swf";

 

I thought I would be able to add the following code into the Skin's actionscript:

 

// Set the seekBarHandle colour.

var myColor:ColorTransform = seekBarHandle_mc.transform.colorTransform;

myColor.color = 0xFF3300;

seekBarHandle_mc.transform.colorTransform = myColor;

 

If I preview the Skin the colour changes, but when referenced into my player it remains white!

 

I simply want to make the default green parts a colour of my choice depending on some variables in the player.

 

Thank you.

 

Chris

 

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