Changeset 127 for trunk/buddypub
- Timestamp:
- 04/30/08 18:34:21 (8 months ago)
- Location:
- trunk/buddypub/bpclientflex/src/org/cnflex/buddypub/mvc
- Files:
-
- 3 modified
-
control/ModelGlueConfiguration.mxml (modified) (1 diff)
-
view/container/ContentBoxCanvas.as (modified) (5 diffs)
-
view/container/Main.mxml (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/buddypub/bpclientflex/src/org/cnflex/buddypub/mvc/control/ModelGlueConfiguration.mxml
r78 r127 16 16 <ModelGlue xmlns="com.firemoss.modelglue.tags.*" xmlns:mx="http://www.adobe.com/2006/mxml" 17 17 xmlns:control="org.cnflex.buddypub.mvc.control.*" 18 xmlns:event="com.firemoss.modelglue.tags.event.*"> 18 xmlns:event="com.firemoss.modelglue.tags.event.*" creationComplete="systemInit()"> 19 20 <mx:Script> 21 <![CDATA[ 22 23 import mx.controls.Alert; 24 25 private function systemInit():void{ 26 27 Alert.show("SystemInit!"); 28 29 } 30 ]]> 31 </mx:Script> 19 32 20 33 <controllers> -
trunk/buddypub/bpclientflex/src/org/cnflex/buddypub/mvc/view/container/ContentBoxCanvas.as
r126 r127 1 1 package org.cnflex.buddypub.mvc.view.container 2 2 { 3 4 5 3 import flash.events.MouseEvent; 6 4 import flash.geom.Point; … … 46 44 private static const TASKBAR_HEIGHT:Number = 35; // 最小化时Panel的高度 47 45 private static const TASKBAR_HORIZONTAL_GAP:Number = 1; // 最小化时Panel之间的间距 48 private static const TASKBAR_ITEM_WIDTH:Number = 200; // 在有足够大的空间时,最小化Panel最佳的宽度46 private static const TASKBAR_ITEM_WIDTH:Number = 160; // 在有足够大的空间时,最小化Panel最佳的宽度 49 47 private static const TASKBAR_PADDING_TOP:Number = 10; // 最后一行Panel与底下最小化Panel之间的间距 50 48 private static const PADDING_RIGHT:Number = 5; //右边边界距离 … … 61 59 verticalScrollPolicy = "off"; 62 60 horizontalScrollPolicy ="off"; 61 63 62 64 63 } … … 118 117 private function updateLayout(tween:Boolean=true):void 119 118 { 119 graphics.clear(); 120 graphics.lineStyle(2,0xFF9966); 121 graphics.moveTo(0,23); 122 graphics.lineTo(width-5,23); 123 120 124 var len:Number = items.length;//当前items的个数 121 125 var sqrt:Number = Math.floor(Math.sqrt(len));//取当前个数的平方根的下限值 … … 275 279 Alert.noLabel = "取消"; 276 280 //弹出对话框 277 Alert.show("你确定要关闭 吗?", "提示信息", 3, null,alertClickHandler,null,Alert.NO);281 Alert.show("你确定要关闭<"+closePanel.title+">吗?", "提示:", 3, null,alertClickHandler,null,Alert.NO); 278 282 279 283 } -
trunk/buddypub/bpclientflex/src/org/cnflex/buddypub/mvc/view/container/Main.mxml
r126 r127 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" borderStyle="solid"2 <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" 3 3 verticalScrollPolicy="off" horizontalScrollPolicy="off" 4 4 xmlns:view="org.cnflex.buddypub.mvc.view.container.*" … … 10 10 private var isFirstSearch:Boolean = true; 11 11 12 private function focusSearch(event:FocusEvent):void{13 if(isFirstSearch){14 searchBox.text = "";15 searchBox.setStyle("color",0x0B333C);16 searchBtn.enabled = true;17 }18 }19 20 private function searchKeyword():void{21 Alert.show("Coming Soon....");22 }23 24 12 ]]> 25 13 </mx:Script> 26 14 27 <mx:HBox width="100%" borderStyle="solid" borderSides="bottom" verticalAlign=" middle"15 <mx:HBox width="100%" borderStyle="solid" borderSides="bottom" verticalAlign="bottom" 28 16 paddingLeft="10" paddingRight="10" > 29 <mx:Image source="@Embed(source='assets/pic/logo.jpg')"/> 17 <mx:Image source="@Embed(source='assets/pic/logo.jpg')"/> 18 <mx:LinkButton label="登陆" /> 30 19 <mx:Spacer width="100%"/> 31 <mx:TextInput id="searchBox" width="250" text="在此输入你关注的字眼" color="#BABABA" 20 <mx:LinkButton label="添加功能面板" /> 21 22 <!-- 23 <mx:HBox height="100%" verticalAlign="middle" > 24 <mx:TextInput id="searchBox" width="250" text="在此输入你关注的字眼" color="#BABABA" 32 25 focusThickness="0" focusIn="focusSearch(event)" focusEnabled="false" paddingLeft="2" /> 33 <mx:Image id="searchBtn" source="@Embed(source='assets/pic/search.gif')" enabled="false" 34 buttonMode="true" useHandCursor="true" click="searchKeyword()"/> 26 <mx:Image id="searchBtn" source="@Embed(source='assets/pic/search.gif')" enabled="false" 27 buttonMode="true" useHandCursor="true" click="searchKeyword()"/> 28 </mx:HBox> 29 --> 35 30 </mx:HBox> 36 31 <mx:HBox paddingBottom="0" paddingTop="5" width="100%" height="100%" paddingLeft="10" paddingRight="10"> 37 <view:ContentBoxCanvas width="100%" minHeight="600" height="100%" > 32 <view:ContentBoxCanvas width="100%" minHeight="600" height="100%" > 38 33 <view:displayItems> 39 34 … … 46 41 <contentbox:ContentBoxPanel title="好友/消息" /> 47 42 <contentbox:ContentBoxPanel title="测试1" /> 48 <contentbox:ContentBoxPanel title="测试2" /> 49 <contentbox:ContentBoxPanel title="测试3" /> 50 <contentbox:ContentBoxPanel title="测试4" /> 51 <contentbox:ContentBoxPanel title="测试5" /> 52 <contentbox:ContentBoxPanel title="测试6" /> 53 <contentbox:ContentBoxPanel title="测试7" /> 54 <contentbox:ContentBoxPanel title="测试8" /> 43 <contentbox:ContentBoxPanel title="测试2" /> 55 44 </view:displayItems> 56 45 </view:ContentBoxCanvas> … … 58 47 59 48 60 <mx:HBox width="100%" height="30" borderStyle="solid" borderSides="top" 61 horizontalGap="20" verticalAlign=" bottom" paddingLeft="10" paddingRight="10" >49 <mx:HBox width="100%" height="30" borderStyle="solid" borderSides="top" borderColor="#51AEE8" 50 horizontalGap="20" verticalAlign="middle" paddingLeft="10" paddingRight="10" > 62 51 <mx:Label color="#FF6633" text="无兄弟,不快乐!"/> 63 <mx:Label color="#999999" text="... www.buddypub.com"/> 52 <mx:Spacer width="100"/> 53 <mx:Label paddingLeft="10" color="#BABABA" text="*本网站内容为网友引用自互联网, 可能受著作权保护, 本网站与呈现内容的出处无关. "/> 64 54 <mx:Spacer width="100%"/> 65 <mx:LinkButton color="#0088ee"label="感谢:东莞网络中心" click="ExternalInterface.call('window.open','http://www.aadata.net','_blank');" />55 <mx:LinkButton label="感谢:东莞网络中心" click="ExternalInterface.call('window.open','http://www.aadata.net','_blank');" /> 66 56 </mx:HBox> 67 <mx:Label paddingLeft="10" color="#BABABA" text="*本网站内容为网友引用自互联网, 可能受著作权保护, 本网站与呈现内容的出处无关. "/>57 68 58 </mx:VBox>
