Changing _alpha of clip causing tween to stop

[font=Times New Roman]I have a very basic 2 layer fla with a simple motion tween set out over 40 frames with 4 keyframes setting new locations for the clip to tween to & an Action Script layer with the following code in the first frame[/font]

[font=Times New Roman] [/font]

 

mike_mc.onPress=function(){this._alpha=20;

}


[font=Times New Roman] [/font]

[font=Times New Roman]mike_mc obviously being the movie clip that is being tweened.[/font]

[font=Times New Roman] [/font]

[font=Times New Roman]Now – When I click on the tweening clip it’s alpha does indeed go down to 20 but the animation also stops at the exact spot where I had clicked on the clip?[/font]

[font=Times New Roman] [/font]

[font=Times New Roman]How come setting alpha to a value stops the tween & what can I do about it?[/font]

[font=Times New Roman] [/font]

[font=Times New Roman]Thank you for any help[/font]

yes, manual tweens and the setting of properties through actionscript (like color, alpha etc) dont get along to well.

To prevent this, put your tween in a movieclip and then apply the alpha setting to that movieclip letting the animation run freely without disturbance but still getting the change in alpha because its within a movie being affected

Thank you once again senocular for taking the time to reply.

Your fix worked a dream!

welcome :wink: