First flash log..
As this will be more of a techy blog site, let's start with some flashy findings.
One of my recent flash projects require a dynamically colored background. As some of you always know, there is no way to change the background color (as easy as the html javascript way). One of the hack you can pull is to create a layer(bottommost), put a movieclip in it, fill it with color, and dynamically fill the background by resizing it.
Code:
var color_bg:Color = new Color(_root.bg);
color_bg.setRGB(c_bg);
So the make a color object from the mc, and set its rgb, which conveniently, can be hex(ff0000) or decimal(255).
0 Comments:
Post a Comment
<< Home