Показать сообщение отдельно
Старый 16.12.2011, 03:04
wvxvw вне форума Посмотреть профиль Отправить личное сообщение для wvxvw Найти все сообщения от wvxvw
  № 2  
Ответить с цитированием
wvxvw
Modus ponens
 
Аватар для wvxvw

модератор форума
Регистрация: Jul 2006
Адрес: #1=(list #1#)
Сообщений: 8,049
Записей в блоге: 38
Долго думал, как бы такое протестировать, но ничего не придумал - а как именно виден результат?
Ниже мои логи из дебаггера:
Код:
r /home/wvxvw/Projects/as3-tests/bin/Shell.swf
Adobe fdb (Flash Player Debugger) [build 14159]
Copyright (c) 2004-2007 Adobe, Inc. All rights reserved.
(fdb) Attempting to launch and connect to Player using URL
/home/wvxvw/Projects/as3-tests/bin/Shell.swf
Player connected; session starting.
Set breakpoints and then type 'continue' to resume the session.
[SWF] home/wvxvw/Projects/as3-tests/bin/Shell.swf - 38,963 bytes after decompression
(fdb) b Shell.as:40
Breakpoint 1: file Shell.as, line 40
(fdb) b Shell.as:27
Breakpoint 2: file Shell.as, line 27
(fdb) c
Breakpoint 2, load() at Shell.as:27
 27         if (loader)
(fdb) n
 30         loader = new Loader();
(fdb) n
 31         addChild(loader);
(fdb) n
 32         var context:LoaderContext = new LoaderContext();
(fdb) n
 33         context.applicationDomain = new ApplicationDomain();
(fdb) n
 34         loader.load(new URLRequest("Module.swf"), context);
(fdb) n
 35     }
(fdb) n
[SWF] home/wvxvw/Projects/as3-tests/bin/Module.swf - 1,419 bytes after decompression
Execution halted, onMouseOut() at PushButton.as:173
 173   // code goes here
(fdb) n
 175   // code goes here
(fdb) c
Additional ActionScript code has been loaded from a SWF or a frame.
To see all currently loaded files, type 'info files'.
Set additional breakpoints as desired, and then type 'continue'.
(fdb) info files
---
FontAsset.as#6
IFlexAsset.as#5
mx_internal.as#8
---
Component.as#2
Label.as#7
Module.as#10
PushButton.as#3
Shell.as#1
Style.as#4
(fdb) info swfs
Shell.swf - 38,963 bytes after decompression, 8 scripts [#1 - #8]+ remaining source is still being loaded, url is fi
le:///home/wvxvw/Projects/as3-tests/bin/Shell.swf                                                                  
Module.swf - 1,419 bytes after decompression, 1 scripts [#10 - #10]+ remaining source is still being loaded, url is 
file:///home/wvxvw/Projects/as3-tests/bin/Module.swf                                                               
(fdb) c
Breakpoint 1, unload() at Shell.as:40
 40         if (!loader) return;
(fdb) n
 42         removeChild(loader);
(fdb) n
 43         loader.unloadAndStop(true);
(fdb) n
 44         loader = null;
(fdb) n
 45     }
(fdb) n
[UnloadSWF] home/wvxvw/Projects/as3-tests/bin/Module.swf
Execution halted, onMouseOut() at PushButton.as:173
 173   // code goes here
(fdb) n
 175   // code goes here
(fdb) c
Breakpoint 1, unload() at Shell.as:40
 40         if (!loader) return;
(fdb) info files
---
FontAsset.as#6
IFlexAsset.as#5
mx_internal.as#8
---
Component.as#2
Label.as#7
Module.as#10
PushButton.as#3
Shell.as#1
Style.as#4
(fdb) info swfs
Shell.swf - 38,963 bytes after decompression, 8 scripts [#1 - #8]+ remaining source is still being loaded, url is fi
le:///home/wvxvw/Projects/as3-tests/bin/Shell.swf                                                                  
(fdb) c
q
Do you want to attempt to halt execution? (y or n) y
Attempting to halt.
To help out, try nudging the Player (e.g. press a button)
Execution halted in 'Module.swf' at 0x00009890 (39056)
(fdb) q
The program is running.  Exit anyway? (y or n) y

Process terminal finished
__________________
Hell is the possibility of sanity