Potresti mettere nel primo livello un cerchio ad esempio di 300px, va bene anche una forma, nel livello superiore un cerchio delle stesse misure ma trasformato in MovieClip con punto di registrazione al centro e nome istanza nel mio esempio mc, poi basta che metti questo codice.
codice:
mc.width=50
mc.height=50
var num:int=5
addEventListener(Event.ENTER_FRAME, anima)
function anima(evt:Event):void{
if(mc.width<300){
mc.width=mc.height+=num
}
}
mc.addEventListener(MouseEvent.MOUSE_DOWN, rallenta)
function rallenta(evt:MouseEvent):void{
if(num>0){
num--
}
}
Oppure se vuoi che il rallentamento sia meno repentino, insomma se vuoi fare più click questo codice.
codice:
mc.width=50
mc.height=50
var num:Number=2
var NUM:Number=num/20
addEventListener(Event.ENTER_FRAME, anima)
function anima(evt:Event):void{
if(mc.width<300){
mc.width=mc.height+=num
trace(NUM)
}
}
mc.addEventListener(MouseEvent.MOUSE_DOWN, rallenta)
function rallenta(evt:MouseEvent):void{
if(num>0){
num=num-NUM
trace(num)
}
}