In my last post I explained how one movieclip property can affect the other one and so forth to create a stretchable menu.
In this example, I make the color switch by using the following line of code:
// make growing orange
(clip == growingItem) ?clip.gotoAndStop(2) :clip.gotoAndStop(1);
this is a conditional operator, sort of an if(){}else{} exept that we removed the if and the brackets. Its read (condition) ?if true :else false. What it say is, if the clip is the one griowing, then make it go to frame 2 (where the clip is tinted orange) else go to franme 1 (where its grey).

ahmet said...
good
dino said...
very intresting