| 1 |
<Application xmlns="http://www.adobe.com/2006/mxml" |
|---|
| 2 |
width="100%" height="100%" |
|---|
| 3 |
horizontalAlign="left" verticalAlign="top" |
|---|
| 4 |
creationComplete="init()"> |
|---|
| 5 |
<Script> |
|---|
| 6 |
<![CDATA[ |
|---|
| 7 |
import mx.controls.Label; |
|---|
| 8 |
import Controller; |
|---|
| 9 |
private var controller : Controller = new Controller(); |
|---|
| 10 |
|
|---|
| 11 |
private function init() : void{ |
|---|
| 12 |
var self : Object = this; |
|---|
| 13 |
controller.addEventListener(Controller.LOAD,function(event : Event) : void{ |
|---|
| 14 |
self.tree.dataProvider = controller.frame; |
|---|
| 15 |
}); |
|---|
| 16 |
|
|---|
| 17 |
controller.addEventListener(Controller.INFO,function(event : Event) : void{ |
|---|
| 18 |
switch(controller.info.tag){ |
|---|
| 19 |
case 'abc': |
|---|
| 20 |
self.abc.visible = true; |
|---|
| 21 |
self.etc.visible = false; |
|---|
| 22 |
break; |
|---|
| 23 |
default: |
|---|
| 24 |
self.abc.visible = false; |
|---|
| 25 |
self.etc.visible = true; |
|---|
| 26 |
self.etc_tag.text = controller.info.tag; |
|---|
| 27 |
self.etc_length.text = controller.info.length; |
|---|
| 28 |
break; |
|---|
| 29 |
} |
|---|
| 30 |
}); |
|---|
| 31 |
this.progress.source = controller; |
|---|
| 32 |
} |
|---|
| 33 |
]]> |
|---|
| 34 |
</Script> |
|---|
| 35 |
<HBox width="100%" height="20"> |
|---|
| 36 |
<TextInput width="100%" id="path" enter="controller.disassemble(this.path.text);" text="http://localhost:3001/swf/Main.swf"/> |
|---|
| 37 |
<Button label="..." /> |
|---|
| 38 |
</HBox> |
|---|
| 39 |
<HBox width="100%" height="100%"> |
|---|
| 40 |
<Tree width="200" height="100%" id="tree" change="controller.showInfo(this.tree.selectedItem)"/> |
|---|
| 41 |
<HBox id="abc" visible="false"></HBox> |
|---|
| 42 |
<HBox id="etc" visible="false" width="100%"> |
|---|
| 43 |
<Form width="100%"> |
|---|
| 44 |
<FormHeading label="ABC" /> |
|---|
| 45 |
<FormItem label="tag"><Label id="etc_tag" /></FormItem> |
|---|
| 46 |
<FormItem label="length"><Label id="etc_length" /></FormItem> |
|---|
| 47 |
</Form> |
|---|
| 48 |
</HBox> |
|---|
| 49 |
</HBox> |
|---|
| 50 |
<ProgressBar width="100%" id="progress" /> |
|---|
| 51 |
</Application> |
|---|