"private function showAnagramHandler(param1:TimerEvent) : void { var _loc_2:Array; var _loc_3:String; var _loc_4:TextFormat; m_timer.removeEventListener(TimerEvent.TIMER, showAnagramHandler, false); m_timer.delay = 2000; m_timer.addEventListener(TimerEvent.TIMER, hideAnagramHandler, false, 0, true); m_testing.removeEventListener(Event.ENTER_FRAME, scrambleText, false); _loc_2 = ["I", "A", "M", "O", "N", "T", "H", "E", "I", "N", "S", "I", "D", "E"]; _loc_3 = ""; while (_loc_2.length > 0) { // label _loc_3 = _loc_3 + _loc_2.splice(Math.floor(Math.random() * _loc_2.length), 1); }// end while _loc_3 = _loc_3.toLowerCase(); _loc_4 = m_testing.getTextFormat(); m_testing.defaultTextFormat = _loc_4; m_testing.text = _loc_3; return; }"
Источник: http://lostoctagonglobalrecruiting.blogspot.com |