topical media & game development
lib-flex-ximpel-editor-net-ximpel-components-QuestionEditorView.mx
lib-flex-ximpel-editor-net-ximpel-components-QuestionEditorView.mx
(swf
)
[ flash
]
flex
<?xml version="1.0" encoding="utf-8"?>
<!--
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Javier Quevedo Fernández 05-2009.
-->
<mx:TitleWindow label="Question editor"
showCloseButton="true"
xmlns:mx="http://www.adobe.com/2006/mxml"
horizontalScrollPolicy="off" verticalScrollPolicy="off"
horizontalCenter="0" verticalCenter="0"
creationComplete="init()" title="Question editor: {this.clip.file}"
close="{PopUpManager.removePopUp(this)}">
<mx:Script>
<![CDATA[
import net.ximpel.classes.Helper;
import net.ximpel.classes.MediaClip;
import mx.managers.PopUpManager;
import mx.binding.utils.BindingUtils;
[Bindable]
public var clip : MediaClip;
public function init():void {
BindingUtils.bindProperty(clip.question, "questionText", this.question, "text");
BindingUtils.bindProperty(clip.question, "rightAnswer", this.rightAnswerInput, "selected");
//BindingUtils.bindProperty(clip.question, "rightAnswer", this.rightAnswer, "text");
}
]]>
</mx:Script>
<mx:Form id="form" width="100%" >
<mx:FormItem label="Question" width="286">
<mx:TextInput id="question" width="185" text="{clip.question.questionText}" />
</mx:FormItem>
<mx:FormItem label="Correct answer" width="286">
<mx:HBox>
<mx:RadioButton id="rightAnswerInput" groupName="answer" selected="{this.clip.question.rightAnswer}" label="True" />
<mx:RadioButton groupName="answer" selected="{!this.clip.question.rightAnswer}" label="False" />
</mx:HBox>
</mx:FormItem>
</mx:Form>
</mx:TitleWindow>
(C) Æliens
18/6/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.