Vanish's Blog
Happy coding
Vanish
Random Article
Top Article
Comments
Message
.
有趣
2009年5月17日 03:03 | Comments(2) | Category:随笔 | Tags:
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:
-
<?xml version="1.0" encoding="utf-8"?>
-
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
-
layout="absolute"
-
creationComplete="initApp(event);">
-
<mx:Button id="btn" label="Show Names"
-
click="showNames(event)" x="216" y="176"/>
-
<mx:Script>
-
<![CDATA[
-
import mx.events.FlexEvent;
-
private function initApp(evt:FlexEvent):void
-
{
-
btn.addEventListener(MouseEvent.CLICK,showNames);
-
btn.addEventListener(MouseEvent.CLICK,showTitles);
-
-
-
}
-
private function showNames(evt:MouseEvent):void
-
{
-
var temp:Array =
-
new Array("ddd","ssss","dsddsd");
-
trace (temp.toString());
-
}
-
private function showTitles(evt:MouseEvent):void
-
{
-
var temp:Array = new Array("Director","Vice-Prresident","President","CEO");
-
trace(temp.toString());
-
-
-
}
-
]]>
-
</mx:Script>
-
</mx:Application>
-
解决Adobe flash player安装失败的最好方法
2009年5月12日 07:14 | Comments(1) | Category:随笔 | Tags:
解决Adobe flash player安装失败的最好方法
解决办法:
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.