??xml version="1.0" encoding="utf-8" standalone="yes"?>国产电影一区在线,av在线免费观看网站,欧美与亚洲与日本直播http://www.aygfsteel.com/robbie/category/16723.htmlzh-cnFri, 27 Nov 2009 19:43:43 GMTFri, 27 Nov 2009 19:43:43 GMT60flex custom layout && easy flex skinninghttp://www.aygfsteel.com/robbie/archive/2009/11/25/303597.htmlThe MatrixThe MatrixWed, 25 Nov 2009 04:25:00 GMThttp://www.aygfsteel.com/robbie/archive/2009/11/25/303597.htmlhttp://www.aygfsteel.com/robbie/comments/303597.htmlhttp://www.aygfsteel.com/robbie/archive/2009/11/25/303597.html#Feedback0http://www.aygfsteel.com/robbie/comments/commentRss/303597.htmlhttp://www.aygfsteel.com/robbie/services/trackbacks/303597.htmlhttp://www.insideria.com/2009/05/flex-4-custom-layouts.html


http://www.insideria.com/2009/10/easy-flex-skinning-with-firewo.html



The Matrix 2009-11-25 12:25 发表评论
]]>
flex中如何用~程的方式实现Statehttp://www.aygfsteel.com/robbie/archive/2009/11/11/302020.htmlThe MatrixThe MatrixWed, 11 Nov 2009 13:59:00 GMThttp://www.aygfsteel.com/robbie/archive/2009/11/11/302020.htmlhttp://www.aygfsteel.com/robbie/comments/302020.htmlhttp://www.aygfsteel.com/robbie/archive/2009/11/11/302020.html#Feedback0http://www.aygfsteel.com/robbie/comments/commentRss/302020.htmlhttp://www.aygfsteel.com/robbie/services/trackbacks/302020.html在Flash Builder 4 Beta 2版本中,使用mxml方式实现state的切换有了很大改q,使用h更方便,具体可参见下文:

http://onflex.org/learn/fx4/index.php?page=States

看完q篇文章后,惛_一个问题,如何用编E的方式实现切换呢,找了参考资料,实现了一个例子,代码如下Q?/p>

开发环境:Flash Builder 4 Beta2

<?xml version="1.0" encoding="utf-8"?>
<s:Application
    
xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s
="library://ns.adobe.com/flex/spark"
    creationComplete
="creationCompleteHandler(event)">
    
<fx:Script>
        
<![CDATA[
            import mx.core.UIComponent;
            import mx.events.FlexEvent;
            import mx.states.SetProperty;
            import mx.states.State;
            
            import spark.components.Label;
            import spark.components.Panel;

            private var stateArray : Array;
            private var state1 : State;
            private var state2 : State;
            
            protected function creationCompleteHandler(event:FlexEvent):void
            {
                state1 = new State();
                state1.name="state1";
                
                state2 = new State();
                state2.name="state2";
                
                var stateArray1:Array = new Array();
                var stateArray2:Array = new Array();
                
                state1.overrides = stateArray1;
                state2.overrides = stateArray2;
                
                stateArray = new Array();
                stateArray.push(state1);
                stateArray.push(state2);
                this.states = stateArray;
                
                var panel:Panel = new Panel();
                group.addElement(panel);
                var label:Label = new Label();
                panel.addElement(label);
                
                buildStates(stateArray1, stateArray2, panel, label);
                this.currentState = "state1";
            }

            private function buildStates(stateArray1:Array, stateArray2:Array,
                compenent1:UIComponent, compenent2:UIComponent) : void{
                
                stateArray1.push(makeSetProp(compenent1, "title", "Panel1"));            
                stateArray1.push(makeSetProp(compenent2, "text", "One"));
                
                stateArray2.push(makeSetProp(compenent1, "title", "Panel2"));
                stateArray2.push(makeSetProp(compenent2, "text", "Two"));
            }
            
            private function makeSetProp(target:UIComponent, name:String, value:*):SetProperty{
                var sp:SetProperty = new SetProperty();
                sp.target = target;
                sp.name = name;
                sp.value = value;
                return sp;
            } 
        
]]>
    
</fx:Script>
        
    
<s:VGroup autoLayout="true" horizontalAlign="center">
        
<s:HGroup horizontalCenter="0">            
            
<s:Button label="One" 
                click
="this.currentState='state1'"/>            
            
<s:Button label="Two" 
                click
="this.currentState='state2'"/>            
        
</s:HGroup>
        
<s:HGroup id="group" horizontalCenter="0">            
        
</s:HGroup>
    
</s:VGroup>
    
</s:Application>


The Matrix 2009-11-11 21:59 发表评论
]]>
Flex Clear Toolkit3.1http://www.aygfsteel.com/robbie/archive/2009/04/12/265164.htmlThe MatrixThe MatrixSun, 12 Apr 2009 12:57:00 GMThttp://www.aygfsteel.com/robbie/archive/2009/04/12/265164.htmlhttp://www.aygfsteel.com/robbie/comments/265164.htmlhttp://www.aygfsteel.com/robbie/archive/2009/04/12/265164.html#Feedback0http://www.aygfsteel.com/robbie/comments/commentRss/265164.htmlhttp://www.aygfsteel.com/robbie/services/trackbacks/265164.html前两天在InfoQ上看C文章:利用Clear Toolkitq接Flex与Java开?/a>Q今天下载了说明文档_略了翻了一遍,Clear Toolkit包含五个部分Q分别是Q?/p>
  • Clear Data BuilderQ这是个Eclipse插gQ可以根据SQL语句或Java数据传输对象为BlazeDS或LCDS自动生成CRUD应用?
  • DTO2FxQ该插g会根据Javacd自动生成对应的ActionScriptcR?
  • Log4Fx是个构徏于Flex logging API之上的Eclipse插gQ它会自动化日志处理q且更加灉|Q也更加友好?
  • Fx2Ant插g会ؓFlex Builder目生成优化的Ant构徏脚本?
  • clear.swc是个增强的Flexlg库?

暂时用不到这个工P记录留待备查?/p>

The Matrix 2009-04-12 20:57 发表评论
]]>
Flex3 + Spring配置http://www.aygfsteel.com/robbie/archive/2008/08/09/221085.htmlThe MatrixThe MatrixSat, 09 Aug 2008 15:58:00 GMThttp://www.aygfsteel.com/robbie/archive/2008/08/09/221085.htmlhttp://www.aygfsteel.com/robbie/comments/221085.htmlhttp://www.aygfsteel.com/robbie/archive/2008/08/09/221085.html#Feedback0http://www.aygfsteel.com/robbie/comments/commentRss/221085.htmlhttp://www.aygfsteel.com/robbie/services/trackbacks/221085.html
要描qC下:
1、首先要l承FlexFactoryQ实现Spring与Flex的集成,上文中已l提供了具体实现Q下载即可?br />
2、在web.xml中配|SpringQ如下:
   
    <context-param>
        
<param-name>contextConfigLocation</param-name>
        
<param-value>/WEB-INF/applicationContext.xml</param-value>
    
</context-param>

    
<listener>
        
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    
</listener>

3、在service-config.xml配置文g中添?br />    
    <factories>
        
<factory id="spring" class="flex.samples.factories.SpringFactory"/>
    
</factories>

4、修改remote-config.xml中原有的destination配置Q原为:
       
    <properties>      
        <
source>com.bluesky.flexpsp.PsPDataService</source>
   
</properties>
    修改为:
    <properties>
        
<factory>spring</factory><!-- spring为第三步中的factoryID-->
        
<source>pspDataService</source><!-- pspDataService为bean的id -->
    
</properties>

      


The Matrix 2008-08-09 23:58 发表评论
]]>
Flex3中数据访问的几种方式http://www.aygfsteel.com/robbie/archive/2008/07/30/218670.htmlThe MatrixThe MatrixWed, 30 Jul 2008 04:39:00 GMThttp://www.aygfsteel.com/robbie/archive/2008/07/30/218670.htmlhttp://www.aygfsteel.com/robbie/comments/218670.htmlhttp://www.aygfsteel.com/robbie/archive/2008/07/30/218670.html#Feedback0http://www.aygfsteel.com/robbie/comments/commentRss/218670.htmlhttp://www.aygfsteel.com/robbie/services/trackbacks/218670.html     使用HTTPService可以直接讉KASP.NET、JSP、Servlet、PHP{页面,此种方式最为简单直接?br />
2、用WebService
    使用WebService可以直接讉K互联|上各大公司提供的WebService服务Q该U方式对做互联网应用开发可能用的比较多?br />
3、用RemoteObject
    此种方式可以直接讉KJava Class的methodQ可以采用此U方式构?Flex + Spring + Hibernate的应用?br />
4、用Message
    此种方式弥补了WEB应用的缺点,使得览器和Server端可以进行双向交互,可以用于构徏复杂的C/S方式的企业应用?br />
不同方式的具体访问方法在BlazeDS的Test中都有样例?br />
W一、第二种方式不需要服务端有特D设|,只要客户端能够解析服务端q回的信息即可?br /> W三、第四种方式需要用BlazeDSq行配置后方可用,或者用ColdFusion?

The Matrix 2008-07-30 12:39 发表评论
]]>
Flex - BlazeDS 安装指南http://www.aygfsteel.com/robbie/archive/2008/07/30/218668.htmlThe MatrixThe MatrixWed, 30 Jul 2008 04:38:00 GMThttp://www.aygfsteel.com/robbie/archive/2008/07/30/218668.htmlhttp://www.aygfsteel.com/robbie/comments/218668.htmlhttp://www.aygfsteel.com/robbie/archive/2008/07/30/218668.html#Feedback0http://www.aygfsteel.com/robbie/comments/commentRss/218668.htmlhttp://www.aygfsteel.com/robbie/services/trackbacks/218668.htmlhttp://opensource.adobe.com/ 可以下蝲BlazeDSQ下载后解压x地?br />
BlazeDS includes the following Web Application Archive (WAR) files:
  • blazeds.war - The primary BlazeDS WAR file: use this as a starting point for building your BlazeDS application.
  • samples.war - Sample BlazeDS applications.
  • ds-console.war - Simple monitoring application for BlazeDS deployments.
在访问BlazeDS的Sample前,需要首先运行install_root/sampledb目录下的HSQLDB数据库,q行方式为启动startdb.bat脚本

然后启动tomcatQ即可访问http://localhost:8400/Q体验BlazeDS了?br />
如果没有下蝲tomcat和BlazeDS的整合包Q直接安装BlazeDS的话Q对于不同的应用服务器需要进行一些额外的配置Q具体参见如下链接:

http://opensource.adobe.com/wiki/display/blazeds/Installation+Guide

The Matrix 2008-07-30 12:38 发表评论
]]>
ActionScript3中的反射http://www.aygfsteel.com/robbie/archive/2007/06/15/124586.htmlThe MatrixThe MatrixFri, 15 Jun 2007 15:16:00 GMThttp://www.aygfsteel.com/robbie/archive/2007/06/15/124586.htmlhttp://www.aygfsteel.com/robbie/comments/124586.htmlhttp://www.aygfsteel.com/robbie/archive/2007/06/15/124586.html#Feedback0http://www.aygfsteel.com/robbie/comments/commentRss/124586.htmlhttp://www.aygfsteel.com/robbie/services/trackbacks/124586.html

The Matrix 2007-06-15 23:16 发表评论
]]>
Flex2中对数组的操?/title><link>http://www.aygfsteel.com/robbie/archive/2007/01/16/94316.html</link><dc:creator>The Matrix</dc:creator><author>The Matrix</author><pubDate>Tue, 16 Jan 2007 14:35:00 GMT</pubDate><guid>http://www.aygfsteel.com/robbie/archive/2007/01/16/94316.html</guid><wfw:comment>http://www.aygfsteel.com/robbie/comments/94316.html</wfw:comment><comments>http://www.aygfsteel.com/robbie/archive/2007/01/16/94316.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/robbie/comments/commentRss/94316.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/robbie/services/trackbacks/94316.html</trackback:ping><description><![CDATA[1、查找数l中的元素可以用ascb.util.ArrayUtilities中的<span id="wmqeeuq" class=docEmphasis><a name=ID-ID-ID-d2074e0-875028></a>findMatchIndex()?span class=docEmphasis><a name=ID-ID-ID-d2077e0-875029></a>findLastMatchIndex()?span class=docEmphasis><a name=ID-ID-ID-d2080e0-875030></a>findMatchIndices()Ҏ(gu)Q具体参考API?br><br>2、用splice()Ҏ(gu)可以U除数组中间的元素,使用pop()Ҏ(gu)U除数组的最后一个元素,使用shift()Ҏ(gu)U除数组的第一个元素。也可以使用splice()Ҏ(gu)向数l中增加元素?br><br>3、将数组转化为StringQ可以用join()Ҏ(gu)?br>例:<br>var letters:Array = ["a", "b", "c"];<br>trace(letters.join());   // Displays: a,b,c</span></span></span> <img src ="http://www.aygfsteel.com/robbie/aggbug/94316.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/robbie/" target="_blank">The Matrix</a> 2007-01-16 22:35 <a href="http://www.aygfsteel.com/robbie/archive/2007/01/16/94316.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Flex2中的q行环境http://www.aygfsteel.com/robbie/archive/2007/01/13/93609.htmlThe MatrixThe MatrixSat, 13 Jan 2007 07:42:00 GMThttp://www.aygfsteel.com/robbie/archive/2007/01/13/93609.htmlhttp://www.aygfsteel.com/robbie/comments/93609.htmlhttp://www.aygfsteel.com/robbie/archive/2007/01/13/93609.html#Feedback0http://www.aygfsteel.com/robbie/comments/commentRss/93609.htmlhttp://www.aygfsteel.com/robbie/services/trackbacks/93609.html q有一些其它的cL?
flash.display.Stage和flash.system.Security允许你控制播攑֙的右键弹单和讄对话框?br /> flash.display.Stageq可以控制播攑֙播放的视频的~放比例和位|?br /> flash.system.Capabilities.os q回操作pȝ信息。代码如下:  

    var os:String = System.capabilities.os.substr(0, 3);
    if (os == "Win") {
        // Windows-specific code goes here
    } else if (os == "Mac") {
        // Mac-specific code goes here
    } else {
        // Must be Unix or Linux
    }

flash.system.Capabilities.playerType   不同的类型包?
    Browser plug-in that runs in web browsers such as Mozilla or Firefox
    ActiveX Control used by Internet Explorer    
    Standalone player, which plays .swfs outside of the browser     
    External player, which is the player integrated in the Flash IDE   

flash.system.capabilities.screenResolutionX ?screenResolutionY获取屏幕分L率?
stage.scaleMode属性可以设|一个movie如何填充播放器,包括比例{?br /> 有四U模式,以静态常量的Ҏ(gu)定义在flash.display.StageScaleModecMQ分别ؓQEXACT_FIT、NO_BORDER、NO_SCALE、SHOW_ALL?br />
stage.align属性可以设|一个movie的排列方式,也以静态常量的方式定义在flash.display.StageAligncM?br />     如下Q?br />                               Vertical   Horizontal
   StageAlign.TOP              Top         Center
   StageAlign.BOTTOM           Bottom      Center
   StageAlign.LEFT             Center      Left
   StageAlign.RIGHT            Center      Right
   StageAlign.TOP_LEFT         Top         Left
   StageAlign.TOP_RIGHT        Top         Right
   StageAlign.BOTTOM_LEFT      Bottom      Left
   StageAlign.BOTTOM_RIGHT     Bottom      Right     
   
flash.system.Capabilities的hasAudio和hasMP3属性可以判断flash player所在设备的音频能力?br /> stage.showDefaultContextMenu属性设为falseQ可以隐藏掉一些系l默认菜单?

The Matrix 2007-01-13 15:42 发表评论
]]>
flex2中的Dispatching Eventhttp://www.aygfsteel.com/robbie/archive/2007/01/13/93603.htmlThe MatrixThe MatrixSat, 13 Jan 2007 07:09:00 GMThttp://www.aygfsteel.com/robbie/archive/2007/01/13/93603.htmlhttp://www.aygfsteel.com/robbie/comments/93603.htmlhttp://www.aygfsteel.com/robbie/archive/2007/01/13/93603.html#Feedback0http://www.aygfsteel.com/robbie/comments/commentRss/93603.htmlhttp://www.aygfsteel.com/robbie/services/trackbacks/93603.html事g是实现对象通讯的一个重要手D,对于构徏一个灵zȝpȝ来说是非常必要的。在Flash Player 9中,事件发送机制内建在了flash.events.EventDispatchercM。所有需要发送事件的c都必须l承EventDispatchercR?br>调用EventDispatchercM的addEventListener( ) and removeEventListener( )Ҏ(gu)Q就可以注册或者移除事件监听器。EventDispatcher中还定义了dispatchEvent()Ҏ(gu)Q可以用该Ҏ(gu)发送事件。dispatchEvent()Ҏ(gu)臛_需要一个参敎ͼ即flash.events.Event对象或者它的子cR?/p>

原文如下Q?/font>
Events are an important way for objects to communicate. They are essential for creating flexible systems. Flash Player 9, for example, has a built-in event dispatching mechanism in the flash.events.EventDispatcher class. All classes that dispatch events inherit from EventDispatcher (e.g., NetStream and Sprite). If you want to define a class that dispatches events, you can extend EventDispatcher, as follows:

package {
    import flash.events.EventDispatcher;
    public class Example extends EventDispatcher {

    }
}


The EventDispatcher class has public methods called addEventListener( ) and removeEventListener( ) that you can call from any instance of an EventDispatcher subclass to register event listeners. EventDispatcher also defines a protected method called dispatchEvent( ), which you can call from within a subclass to dispatch an event. The dispatchEvent( ) method requires at least one parameter as a flash.events.Event object or a subclass of Event.



The Matrix 2007-01-13 15:09 发表评论
]]>
actionscript3中的getter和setter的另一U写?/title><link>http://www.aygfsteel.com/robbie/archive/2007/01/13/93601.html</link><dc:creator>The Matrix</dc:creator><author>The Matrix</author><pubDate>Sat, 13 Jan 2007 06:53:00 GMT</pubDate><guid>http://www.aygfsteel.com/robbie/archive/2007/01/13/93601.html</guid><wfw:comment>http://www.aygfsteel.com/robbie/comments/93601.html</wfw:comment><comments>http://www.aygfsteel.com/robbie/archive/2007/01/13/93601.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/robbie/comments/commentRss/93601.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/robbie/services/trackbacks/93601.html</trackback:ping><description><![CDATA[Another option is to use implicit getters and setters. Implicit getters and setters are declared as methods, but they look like properties. The syntax for a getter is as follows:<br /> <br /> public function get name(  ):Datatype {<br /> }<br /> <br /> The syntax for a setter is as follows:<br /> <br /> public function set name(value:Datatype):void {<br /> }<br /> <br /> q样在代码中调用counter.count=5时相当于调用了set count(5)Ҏ(gu)?br /> <br /> Countercd下:<br /> public class Counter {<br />     private var _count:uint;<br />     public function Counter(  ) {<br />         _count = 0;<br />     }<br />     public function get count(  ):uint {<br />         return _count;<br />     }<br />     public function set count(value:uint):void {<br />         if(value < 100) {<br />             _count = value;<br />         }<br />         else {<br />             throw Error(  );<br />         }<br />     }<br /> } <img src ="http://www.aygfsteel.com/robbie/aggbug/93601.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/robbie/" target="_blank">The Matrix</a> 2007-01-13 14:53 <a href="http://www.aygfsteel.com/robbie/archive/2007/01/13/93601.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>拥抱Flex2http://www.aygfsteel.com/robbie/archive/2006/10/30/78172.htmlThe MatrixThe MatrixMon, 30 Oct 2006 14:50:00 GMThttp://www.aygfsteel.com/robbie/archive/2006/10/30/78172.htmlhttp://www.aygfsteel.com/robbie/comments/78172.htmlhttp://www.aygfsteel.com/robbie/archive/2006/10/30/78172.html#Feedback0http://www.aygfsteel.com/robbie/comments/commentRss/78172.htmlhttp://www.aygfsteel.com/robbie/services/trackbacks/78172.html试用了Flex2 BuilderQ备受其可以Debug的鼓舞,同时也受C其Chartlg的诱惑,觉得q是一个比较有前途的RIA发展方向Q决定研I一番?img src ="http://www.aygfsteel.com/robbie/aggbug/78172.html" width = "1" height = "1" />

The Matrix 2006-10-30 22:50 发表评论
]]>
վ֩ģ壺 | | | | ԭ| | | | | | ԭ| | ۩| Ƹ| Ϸ| | | ַ| | ؿ˹| غ| ƽ| | | | | ²| | ʡ| İ| | | | Ӽ| | | Ļ| | | Զ| |