actionscript 3 - Action script 3 so slow mouse over reaction -


On some of my movie clips, I have a mouse on the event listener when the mouse moves over them so I want to scale them. I am Which works entirely except for a delay of 2 or 3 seconds, and something between the mouse is over and some are actually on the screen. Why? Ty

Package {import flash.display.MovieClip; Import flash.events.MouseEvent; Import flash.events.Event; Import Flash. Display.Simpling; Import flash.display.Stage; Import Flash. Text. Textfield; Import Flash. Text. Text format; Import flashx.textLayout.formats.flowat; Public Class Airport Expands Movieclip {// --------------------------------------- --- ----------------------------------- Public Static Enhanced Music ClipAre: Array = New Array () ; Public Static Value Routing: Boolean = True; // ------------------------------------------------ ---------------------------- // -------------------- -------------------------------------------------- ------ Public Function Airport (Navainput, Baynavinput) {Collected Moni Clip Array Pen (This) this.addEventListener (MouseEvent.CLICK, clickHandler); This.addEventListener (MouseEvent.MOUSE_OVER, HoverHandler); } Personal Function Hover Handler (EVT: Mouse Event): Zero {if (ROUTING == true) {this.alpha = 60; This.width = 2 * this.width; This.height = 2 * this.height; This.addEventListener (MouseEvent.MOUSE_OUT, awayhandler); }} Personal Function awayHandler (evt: MouseEvent): zero {this.width = 13; this. Heights = 13; }}}}

Less fps and / or swf overload with math or graphics has been done. How much is scaling and by what size? Are you playing a transition for scaling? More details always help.


Comments