Changeset 127 for trunk/buddypub

Show
Ignore:
Timestamp:
04/30/08 18:34:21 (8 months ago)
Author:
silver
Message:
 
Location:
trunk/buddypub/bpclientflex/src/org/cnflex/buddypub/mvc
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/buddypub/bpclientflex/src/org/cnflex/buddypub/mvc/control/ModelGlueConfiguration.mxml

    r78 r127  
    1616<ModelGlue xmlns="com.firemoss.modelglue.tags.*" xmlns:mx="http://www.adobe.com/2006/mxml"  
    1717        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> 
    1932         
    2033        <controllers> 
  • trunk/buddypub/bpclientflex/src/org/cnflex/buddypub/mvc/view/container/ContentBoxCanvas.as

    r126 r127  
    11package org.cnflex.buddypub.mvc.view.container 
    22{ 
    3          
    4          
    53        import flash.events.MouseEvent; 
    64        import flash.geom.Point; 
     
    4644                private static const TASKBAR_HEIGHT:Number = 35;                // 最小化时Panel的高度 
    4745                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最佳的宽度 
    4947                private static const TASKBAR_PADDING_TOP:Number = 10;   // 最后一行Panel与底下最小化Panel之间的间距 
    5048                private static const PADDING_RIGHT:Number = 5;  //右边边界距离 
     
    6159                         verticalScrollPolicy = "off"; 
    6260                         horizontalScrollPolicy ="off"; 
     61                         
    6362                          
    6463                } 
     
    118117                private function updateLayout(tween:Boolean=true):void 
    119118                { 
     119                         graphics.clear(); 
     120                         graphics.lineStyle(2,0xFF9966); 
     121                         graphics.moveTo(0,23); 
     122                         graphics.lineTo(width-5,23); 
     123                         
    120124                        var len:Number = items.length;//当前items的个数 
    121125                        var sqrt:Number = Math.floor(Math.sqrt(len));//取当前个数的平方根的下限值 
     
    275279                        Alert.noLabel = "取消"; 
    276280                        //弹出对话框 
    277                         Alert.show("你确定要关闭吗?", "提示信息", 3, null,alertClickHandler,null,Alert.NO); 
     281                        Alert.show("你确定要关闭<"+closePanel.title+">吗?", "提示:", 3, null,alertClickHandler,null,Alert.NO); 
    278282                         
    279283                } 
  • trunk/buddypub/bpclientflex/src/org/cnflex/buddypub/mvc/view/container/Main.mxml

    r126 r127  
    11<?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%"  
    33        verticalScrollPolicy="off" horizontalScrollPolicy="off" 
    44        xmlns:view="org.cnflex.buddypub.mvc.view.container.*" 
     
    1010                        private var isFirstSearch:Boolean = true; 
    1111                         
    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                          
    2412                ]]> 
    2513        </mx:Script> 
    2614         
    27         <mx:HBox width="100%" borderStyle="solid" borderSides="bottom" verticalAlign="middle"  
     15        <mx:HBox width="100%" borderStyle="solid" borderSides="bottom" verticalAlign="bottom"  
    2816                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="登陆" /> 
    3019                <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"   
    3225                        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                --> 
    3530        </mx:HBox> 
    3631        <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%" >                      
    3833                        <view:displayItems> 
    3934                                 
     
    4641                            <contentbox:ContentBoxPanel title="好友/消息" /> 
    4742                            <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" />                       
    5544                </view:displayItems> 
    5645                </view:ContentBoxCanvas> 
     
    5847         
    5948         
    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" >           
    6251                <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="*本网站内容为网友引用自互联网, 可能受著作权保护, 本网站与呈现内容的出处无关. "/> 
    6454                <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');" /> 
    6656        </mx:HBox> 
    67         <mx:Label paddingLeft="10" color="#BABABA" text="*本网站内容为网友引用自互联网, 可能受著作权保护, 本网站与呈现内容的出处无关. "/> 
     57         
    6858</mx:VBox>