Показать сообщение отдельно
Старый 06.07.2013, 19:19
Akopalipsis вне форума Посмотреть профиль Найти все сообщения от Akopalipsis
  № 3  
Ответить с цитированием
Akopalipsis
Banned

Регистрация: Mar 2013
Сообщений: 1,864
Добавил ещё проверку на строгое равенство и вывод текста на экран...
Код AS3:
private function changeHandler( e : SWFAddressEvent ):void 
		{
			Console.console( e.path );
			var t : TextField = new TextField();
			t.text = e.path as String;
			addChild( t );
			if ( e.path === 'blue/')
			{
				Console.console( 'job' );
			}
			switch ( e.path ) 
			{
				case '/':
					this.graphics.clear();
					this.graphics.beginFill( 0xDAF00F );
					this.graphics.drawRect( 0 , 0 , stage.stageWidth , stage.stageHeight );
					this.graphics.endFill();
				break;
				case 'orange/':
					this.graphics.clear();
					this.graphics.beginFill( 0xFFAE5E );
					this.graphics.drawRect( 0 , 0 , stage.stageWidth , stage.stageHeight );
					this.graphics.endFill();
				break;
				case 'blue/':
					this.graphics.clear();
					this.graphics.beginFill( 0x9797CC );
					this.graphics.drawRect( 0 , 0 , stage.stageWidth , stage.stageHeight );
					this.graphics.endFill();
				break;
			}
		}
вывод в консоль:
Код AS3:
blue/
blue/
job
то есть и текст на экран выводит и показывает ссылку, и строгое иф показывает, что интерпретация правильная. Но цвет не меняет...Вот что думать?