September 2006 18:03
To: Flashcoders mailing list
Subject: [Flashcoders] MC not pressed
There is a lot of mc but I take to explain the case :
They are name A_mc, B_mc and C_mc
If I press one clip its scale get 300.
How can I do in the same time get 50 to the other not pressed ?
A_mc.onPress
There is a lot of mc but I take to explain the case :
They are name A_mc, B_mc and C_mc
If I press one clip its scale get 300.
How can I do in the same time get 50 to the other not pressed ?
A_mc.onPress = B_mc.onPress = C_mc.onPress = function() {
this._xscale = this._yscale = 300;
};
Laurent CUCHET escreveu:
There is a lot of mc but I take to explain the case :
They are name A_mc, B_mc and C_mc
If I press one clip its scale get 300.
How can I do in the same time get 50 to the other not pressed ?
A_mc.onPress = B_mc.onPress = C_mc.onPress = function() {
this._xscale =
What I usually do is two steps:
Step 1: go through all the clips and scale them to 50.
Step 2: scale the pressed clip back to 300.
If you have a lot of clips, you should put them in an array. If
they're all nested in a parent clip, with nothing else in that clip,
you can use a for...in
4 matches
Mail list logo