|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello all. Thanks for looking.
Straight to the point: I thought initially my problem was with setRGB() but I've found the exact same thing happening while using setTransform and a similar problem when I attachMovie. Basically what I've got is a couple of MCs grouped inside another MC. On the stage there's a combo box to select a colour & push button to call the function. The colour changes fine, but the affected mc then stops animating. I'm almost certain this is due to some very basic Flash rule that I've overlooked. Help!?! I recreated my error from scratch, just in case I had some nasty code. Test file attached. Wanna check it out? Please? ![]() |
|
#2
|
|||
|
|||
|
your problem is that it is a group being tweened, not the individual mcs, and groups don't mean anything to as, so you need to make them into an mc then add the reference to your function:
Code:
function doMenuColour() {
if (menuc_select.getValue() == "1") {
BackgroundColor = new Color(button.group_mc.back);
BackgroundColor.setRGB(0x3163FF);
} else if (menuc_select.getValue() == "2") {
BackgroundColor = new Color(button.group_mc.back);
BackgroundColor.setRGB(0x009900);
} else if (menuc_select.getValue() == "3") {
BackgroundColor = new Color(button.group_mc.back);
BackgroundColor.setRGB(0x993300);
} else {
BackgroundColor = new Color(button.group_mc.back);
BackgroundColor.setRGB(0x000000);
}
}
don't forget to also replace the grouped mcs on the keyframe at the end of the tween with an instance of your new mc, and to name both..... |
|
#3
|
|||
|
|||
|
Thank you!
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Something Simple? - MX |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|