Menu

[r190]: / cairngorm3 / trunk / samples / insync / insync-modularExtended-messaging / src / ComposeMessageModule.mxml  Maximize  Restore  History

Download this file

37 lines (30 with data), 1.2 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:Module
xmlns:mx="http://www.adobe.com/2006/mxml"
width="100%" height="100%" layout="vertical"
verticalAlign="middle" horizontalAlign="center"
addedToStage="buildContext()" >
<mx:Script>
<![CDATA[
import insync.messaging.MessagingContext;
import insync.messaging.presentation.ComposeMessagePM;
import org.spicefactory.parsley.flex.FlexContextBuilder;
[Inject]
[Bindable]
public var model:ComposeMessagePM;
private function buildContext():void
{
FlexContextBuilder.build(MessagingContext, this);
dispatchEvent( new Event( 'configureIOC', true ) );
}
]]>
</mx:Script>
<mx:Label text="Compose Message to: { model.contact.fullName }" />
<mx:TextInput id="subjectInput"
text="{ model.message.subject }"
change="model.message.subject = subjectInput.text" />
<mx:TextArea id="bodyInput"
text="{ model.message.body }"
change="model.message.body = bodyInput.text" />
<mx:Button label="Send Message" click="model.sendMessage()" />
</mx:Module>
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.