Flex : MMS editor

MXML Component

<?xml version="1.0" encoding="utf-8"?>
<s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009"
		 title="MMS Template Editor">
		<fx:XMLList id="menuXML">
			<fx:menuitem label="Template">
				<fx:menuitem label="Save" data="Save"/>
				<fx:menuitem label="Save As" data="Save As"/>
				<fx:menuitem label="Close" data="Close"/>
			<fx:menuitem label="Slide">	
				<fx:menuitem label="New" data="New"/>
				<fx:menuitem label="Duplicate" data="Duplicate"/>
				<fx:menuitem label="Delete" data="Delete"/>
			<fx:menuitem label="Insert">
				<fx:menuitem label="Text" data="Text"/>
				<fx:menuitem label="Image" data="Image"/>
				<fx:menuitem label="Audio" data="Audio"/>
				<fx:menuitem label="Video" data="Video"/>
		<s:VerticalLayout paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10"/>
			import mx.controls.Alert;
			import mx.events.MenuEvent;
			import spark.layouts.HorizontalLayout;
			private function itemClickInfo(event:MenuEvent):void {
				if(event.label == 'New') {
					var newPanel:Panel = new Panel();
					newPanel.title = 'New Slide';
	<mx:VDividedBox width="100%" height="100%">
		<mx:HDividedBox width="100%" height="100%">
			<s:Panel width="400" height="400" title="MMS Viewer">
			<s:Panel width="200" height="400" title="Property Viewer">
		<s:Panel width="606" title="Slides Viewer" id="slides">
				<s:HorizontalLayout paddingBottom="4" paddingLeft="4" paddingRight="4" paddingTop="4"/>
			<s:Panel title="Slide x">				
		<mx:MenuBar height="100%" dataProvider="{menuXML}" labelField="@label" showRoot="true" itemClick="itemClickInfo(event)" />
		<mx:HBox paddingBottom="5" paddingTop="5">
			<mx:Spacer width="100%"/>

MMS Template Editor


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: