Menu

[r114]: / cairngorm3 / trunk / libraries / IntegrationTest / src / LocalConnectionConsumer.mxml  Maximize  Restore  History

Download this file

38 lines (30 with data), 1.1 kB

 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
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:spicefactory="http://www.spicefactory.org/parsley/flex"
xmlns:cairngorm="com.adobe.cairngorm.*"
layout="vertical" minWidth="1024" minHeight="768"
preinitialize="FlexContextBuilder.build( ConsumerContext )">
<mx:Script>
<![CDATA[
import com.adobe.cairngorm.integration.localconnection.IConsumerDelegate;
import samples.localconnection.ConsumerContext;
import org.spicefactory.parsley.flex.FlexContextBuilder;
[Bindable]
[SubscribeToLocalConnection(service="consumerDelegate")]
public var text : String;
[Inject]
public var delegate : IConsumerDelegate;
]]>
</mx:Script>
<spicefactory:Configure />
<cairngorm:CairngormIntegrationLib/>
<mx:Label text="Consumer" />
<mx:HBox>
<mx:Button label="Start Listening" click="delegate.connect()"/>
<mx:Button label="Stop Listening" click="delegate.close()"/>
</mx:HBox>
<mx:Text
width="100%" height="100%"
text="{ text }" />
</mx:Application>
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.