Vanish

Categories

Twitter

Twitter Updates

    follow me on Twitter

    .

    29486

    有趣

    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月17日 03:03 | Comments(0) | Category:日记 | Tags:

    sophie marceau

    2009年5月13日 23:28 | Comments(0) | Category:日记 | Tags:

     

    还没熟就老了

    2009年5月13日 06:07 | Comments(0) | Category:日记 | Tags:

    (一)迷失
     
    睿智的老人说
    人生是一条长长的河
     
    世人在这条长河中游走
    河岸上的脚步匆匆
    那是迷茫的人们
    在纷繁的尘世里迷失了自我
    转角  漩涡
    我也丢掉了自己
    辨不清哪是风行  哪是水流
     
    (二)打捞
     
    迷失自己的人们
    用密密的网兜
    在长河中打捞着自己
    河流混浊
     
    我也站在滩头  绝不离走
    用我如凝的眸
    不放走一个浪头
     
    就只在我眨眼的一瞬间
    网兜依旧
    浪头已游
    可谁又敢说那只是浪花逐游
    不是时光漂流
     
    (三)回首
     
    等到我渐渐长大  老去
    再回首
    发现往事不堪回首
    只盼着那一天
    河水倒流

    代码高亮

    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.  

    不好意思!

    2009年5月12日 07:23 | Comments(0) | Category:日记 | Tags:

     

     

    解决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
    安装,搞定.

    测试图片上传

    2009年5月12日 01:01 | Comments(2) | Category:日记 | Tags:

    看驴生豪迈

    2009年5月11日 19:04 | Comments(0) | Category:日记 | Tags:

          一头老驴,不小心掉到了一个废弃的陷阱里,很深,根本爬不上来,主人看他是老驴,懒得 去救他了,让他在那里自生自灭。于是,那头驴有些泄气了,渐渐地也就放弃了求生地欲望。日子一天天过去,每天也不断地有人往陷阱里面倒垃圾,按理说老驴应 该很生气,应该 天天去抱怨,自己倒霉掉到了陷阱里,他的主人不要他,就算死也不让他死得舒服点, 每天还有那么多垃圾仍在他旁边。

          可是有一天,他决定改变他的人生态度(更确切点是改变驴生态度)。于是,他每天都把 垃圾踩到自己的脚下,从垃圾中找到残羹来维持自己的生命,而不是被垃圾所淹没,终于 有一天,他重新回到了地面上。

          不要抱怨所服务的公司不好,不要抱怨所相处的领导不好,不要报怨所共事的同伴不好,不 要抱怨自己没有旁人那样的背景和机遇,不要抱怨老天看自己的时候眼睛总没张大,不要抱 怨自己空怀一身绝技没人赏识........

          真的,现实有太多的不如意,就算生活给我们的是垃圾,我们也要把垃圾踩在脚底下,登上 世界之巅。这个世界只在乎我们是否能达了一定的高度,而不在乎我们是踩在巨人的肩膀上上去的,还是 踩在垃圾上上去的。踩在垃圾上上去的人更值得尊重。

    人生没有失败,看驴生豪迈, 不过重头再来。

     

    [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.