Показать сообщение отдельно
Старый 25.10.2017, 11:47
ZergMaster вне форума Посмотреть профиль Отправить личное сообщение для ZergMaster Найти все сообщения от ZergMaster
  № 3  
Ответить с цитированием
ZergMaster
 
Аватар для ZergMaster

Регистрация: May 2008
Адрес: Питер
Сообщений: 385
Отправить сообщение для ZergMaster с помощью ICQ Отправить сообщение для ZergMaster с помощью Skype™
создаем документ класс main, и пишем что-то вроде:

Код AS3:
package  {
 
	import flash.display.MovieClip;
 
 
	public class main extends MovieClip 
	{
		private var _iterationCount:int = 0;
 
		public function main() 
		{
			this.addEventListener(Event.ENTER_FRAME, enterFrameHandler)
 
			this.play();
		}
 
		private function enterFrameHandler(event:Event):void
		{
			if(_iterationCount > 2)
			{
					this.stop();
					this.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
			}
			else if(this.currentFrame == this.totalFrames)
			{
					_iterationCount ++;
					this.gotoAndPlay(1);
			}
		}
	}
}
__________________
while(live()) { hope(); }