View Full Version : Accessing layers in Actionscript
swasick
04-07-2008, 07:35 PM
I have a MovieClip in my flash library that normally has a white background. What I would like to do is have that background change color in response to events in my program. Is there any way to dynamically change this in actionscript?
lookatme0128
04-07-2008, 08:54 PM
as long as the background is a moveiclip you can change it's color.
mymc.color = (a hexadecimal value);
swasick
04-08-2008, 02:51 AM
Thanks for the tip, it doesn't seem to change the color of my MovieClip however. It's probably something more fundamental that I don't understand.
guiltfilter
04-08-2008, 03:28 AM
are you targeting the bg:
mymc.my_bg_clip.color = 0xFF0000;
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.