Untested but what about something like this:
[as]
var btns = new Array(mc0_btn, mc1_btn, mc2_btn, mc3_btn, mc4_btn,
mc5_btn);
function scaleUp(mc) {
mc._xscale = mc._yscale=150;
}
function scaleDown(mc) {
mc._xscale = mc._yscale=50;
}
function hiliteButton(btn_num, transFuncOn, transFuncOff) {
var l = btns.length;
for (var i = 0; i<l; i++) {
if (i == btn_num) {
transFuncOn(btns[i]);
}
else {
transFuncOff(btns[i]);
}
}
}
var l = btns.length;
for (var i = 0; i<l; i++) {
btns[i].idx = i;
btns[i].onPress = function() {
hiliteButton(this.idx, scaleUp, scaleDown);
};
}
[/as]
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Laurent CUCHET
> Sent: 20 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 = B_mc.onPress = C_mc.onPress = function() {
> this._xscale = this._yscale = 300;
> };
>
> Thank you very much
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com