Vanish

Categories

Twitter

Twitter Updates

    follow me on Twitter

    .

    29505

    有趣

    2009年5月17日 03:03 | Comments(2) | Category:随笔 | Tags:

     

    class bird {
    public function migration():void{
    }
    public function fly():void{
    }
    }
    class eagle extends bird {
    public override function migration():void{
    trace("Sorry, I don't migrate");
    }
    public override function fly():void{
    trace("flying");
    }
    }
    class penguin extends bird {
    public override function migration():void{
    trace("migrating...");
    }
    public override function fly():void{
    trace("Sorry, I can't fly...");
    }
    }

     

     

    代码高亮

    2009年5月12日 18:54 | Comments(0) | Category:随笔 | Tags:

     

    1. <?xml version="1.0" encoding="utf-8"?>
    2. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    3.         layout="absolute"
    4.         creationComplete="initApp(event);">
    5. <mx:Button id="btn" label="Show Names"
    6.         click="showNames(event)"  x="216" y="176"/>
    7. <mx:Script>
    8.         <![CDATA[
    9.                 import mx.events.FlexEvent;
    10.                 private function initApp(evt:FlexEvent):void
    11.                 {
    12.                         btn.addEventListener(MouseEvent.CLICK,showNames);
    13.                         btn.addEventListener(MouseEvent.CLICK,showTitles);
    14.                
    15.                
    16.                 }
    17.                 private function showNames(evt:MouseEvent):void
    18.                  {
    19.                         var temp:Array =
    20.                                new Array("ddd","ssss","dsddsd");
    21.                         trace (temp.toString());
    22.                  }
    23.                  private function showTitles(evt:MouseEvent):void
    24.                  {
    25.                         var temp:Array = new Array("Director","Vice-Prresident","President","CEO");
    26.                         trace(temp.toString());
    27.                 
    28.                 
    29.                  }
    30.         ]]>
    31. </mx:Script>
    32. </mx:Application>
    33.  

    解决Adobe flash player安装失败的最好方法

    2009年5月12日 07:14 | Comments(1) | Category:随笔 | Tags:

    解决Adobe flash player安装失败的最好方法

    解决Adobe flash player安装失败的最好方法最近买了张GHOST系统盘,发现还没有安装好Adobe flash player,每次上网都提示安装这个插件,但是安装的时候又如下有故障提示:“Adobe?flash?player安装失败,请访问 http://www.adobe.com/go/tn_19166_cn”。于是我到网上搜索解决的方法,但是绝大多数都没有用,最后找到了下面的一个方法,这个方法能够完全解决这个问题,下面就贴出来让大家分享。

    解决办法:
    1.下载微软subinacl.msi
    http://download.microsoft.com/download/1/7/d/17d82b72-bc6a-4dc8-bfaa-98b37b22b367/subinacl.msi
    安装
    2.下载reset_minimal
    http://www.adobe.com/support/flashplayer/ts/documents/fb1634cb/reset_minimal.zip
    解压缩后,将reset_minimal复制到C:\Program Files\Windows Resource Kits\Tools\ 目录下(即第一步安装的那个软件的所在目录),执行reset_minimal,执行时不要使用电脑,执行完毕后提示“按任意键退出”。
    3.下载flash player 卸载器
    http://download.macromedia.com/pub/flashplayer/current/uninstall_flash_player.exe
    执行卸载操作
    4.下载flash player 9
    http://www.adobe.com/support/flashplayer/ts/documents/tn_19166/Install_Flash_Player_9_ActiveX.zip
    安装,搞定.

    [Flex]Hello World

    2009年5月11日 18:31 | Comments(10) | Category:随笔 | Tags:

    Flex  Hello World Project

    1. Open Flex Builder.
    2. Choose File➪New➪Flex Project.
    3. Enter a project name (for the sample application, enter Hello World)
    and click Finish.

    Creating the Hello World application
    1. Write an <mx:Label /> tag directly in the MXML code editor, which
    opens by default when you create a new Flex project.
    2. Directly in the Label MXML tag, add the following code:
    text=”Hello World!”
     

    <mx:Label text=”Hello World!” />


    3. To center the Label control, add one center constraint to the Label tag
    by using the horizontalCenter attribute and setting the value to 0.
    Add this code to the Label MXML tag:
    horizontalCenter=”0”
    <mx:Label text=”Hello World!” horizontalCenter=”0” />


    Design mode renders an to indicate what it will look like when you run it.