Menu

[r327]: / cairngorm3 / trunk / libraries / ModuleTest / src / example / MyViewLoader.mxml  Maximize  Restore  History

Download this file

25 lines (22 with data), 710 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="utf-8"?>
<module:ViewLoader
xmlns:module="com.adobe.cairngorm.module.*"
xmlns:mx="http://www.adobe.com/2006/mxml"
progress="message = 'Loading: ' + event.bytesLoaded + ' of ' + event.bytesTotal"
error="message = event.errorText"
horizontalAlign="center"
verticalAlign="middle"
>
<mx:Script>
<![CDATA[
[Bindable]
public var message:String;
]]>
</mx:Script>
<module:progressView>
<mx:Label text="{ message }"/>
</module:progressView>
<module:errorView>
<mx:Label color="0xFF0000" text="{ message }"/>
</module:errorView>
</module:ViewLoader>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.