![]() |
|
||||||||||
|
|||||
|
Регистрация: Oct 2011
Сообщений: 18
|
Не подключается к проектам. Только к офф. сайту с тестовым квестом. Пробовал и свои swf создавать и по сайтам искал может какой-то подцепит.
Думаю что неправильно скомпилировал MonsterConnector.swf в mm.cfg ошибиться трудно. Кто сталкивался? |
|
|||||
|
не понял откуда вы взяли MonsterConnector.swf
В хелпе есть такая инструкция: Getting started with the Monster Debugger is really easy. Just take the following steps and you'll be up and running in no time: Download and install the Adobe AIR runtime from: http://get.adobe.com/air/ Download and install the Monster Debugger. Export the client SWC file from the Monster Debugger to your own project. Link the client SWC file to your project (read more about this in the next chapter). Initialize the debugger in your main class: package { import com.demonsters.debugger.MonsterDebugger; import flash.display.Sprite; public class Main extends Sprite { public function Main() { // Start the MonsterDebugger MonsterDebugger.initialize(this); MonsterDebugger.trace(this, "Hello World!"); } } } This basic setup works for all Adobe Flash, Flex and AIR applications. In the following chapters we will focus on more specific use cases like the new Flex component and mobile debugging. |
|
|||||
|
Регистрация: Oct 2011
Сообщений: 18
|
Ну со своими проектами я разобрался! А вот с чужими?) Сам перехватчик не работает
package { import flash.display.*; import flash.events.*; import com.demonsters.debugger.MonsterDebugger; public class MonsterConnector extends Sprite { public function MonsterConnector():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); root.addEventListener("allComplete", allCompleteHandler); } private var loader:LoaderInfo; private function allCompleteHandler(e:Event):void { try { var loader:LoaderInfo = LoaderInfo(e.target); if (loader.content.root.stage == null) return; MonsterDebugger.initialize(loader.content.root); MonsterDebugger.trace(this, loader.loaderURL); } catch (e:Error) { } } } } Добавлено через 26 минут 5800 порт открыт. Туда дебаггер удачно подцепился. Ничего не пойму |
![]() |
![]() |
Часовой пояс GMT +4, время: 04:14. |
|
|
« Предыдущая тема | Следующая тема » |
|
|