Skip to main content
Inspiring
June 15, 2009
Question

how to fill a background color in a movie clip instance

  • June 15, 2009
  • 1 reply
  • 634 views

how can i fill a background color to a movie clip instance?

thanks.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 15, 2009

if you want to use actionscript to do this:

convert the background (say of mc) to a movieclip (say bg) and then you can use:

var c:Color=new Color(mc.bg);

c.setRGB(yourcolor);

Inspiring
June 16, 2009

this scenario is not working for me.. when i tried to use it.

the scenario is that, my movie clip is located at my main fla file, but i am manipulating the movie clip in an external actionscript file.

i did exported the movie clip as actionscript to access the movieclip name, but it's not working and.. i can't change the color of the movieclip.

i also tried to use tweenlite coz changing of colors on my text works on this.

but i can't seem to access my movie clip that's why the color is not changing..

thanks so much..

here's how i declared it.