Menu

[r107]: / cairngorm3 / trunk / libraries / IntegrationTest / src / LocalConnectionProducer.mxml  Maximize  Restore  History

Download this file

34 lines (27 with data), 943 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
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical" minWidth="1024" minHeight="768"
preinitialize="FlexContextBuilder.build( ProducerContext )"
xmlns:spicefactory="http://www.spicefactory.org/parsley/flex"
xmlns:cairngorm="com.adobe.cairngorm.*">
<mx:Script>
<![CDATA[
import com.adobe.cairngorm.integration.localconnection.IProducerDelegate;
import samples.localconnection.ProducerContext;
import org.spicefactory.parsley.flex.FlexContextBuilder;
[Inject]
public var producer : IProducerDelegate;
private function handleTextChange( event : Event) : void
{
producer.send( textArea.text );
}
]]>
</mx:Script>
<spicefactory:Configure />
<cairngorm:CairngormIntegrationLib/>
<mx:Label text="Producer" />
<mx:TextArea
id="textArea" width="100%" height="100%"
change="handleTextChange(event)" />
</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.