// Created at 27/2/2011 2:14AM // by littleshell package com.blogspot.littleshellMultimedia { import flash.display.Sprite; import flash.display.Graphics; import flash.net.URLRequest; import flash.net.navigateToURL; import flash.events.MouseEvent; [SWF(backgroundColor = "0xFFFFFF", width = "120", height = "90")] public class HelloWorld extends Sprite { public function HelloWorld() { var _homeButton:Sprite = makeButton(); _homeButton.buttonMode = true; _homeButton.addEventListener(MouseEvent.CLICK, homeButton_click); addChild(_homeButton); trace(getMessage()); } //visit Syntax Highlighter's homepage public function gotoSyntaxHighlighterWebsite():void { var _uq:URLRequest = new URLRequest("http://alexgorbatchev.com/SyntaxHighlighter/"); navigateToURL(_uq); } //return the contents of this post private function getMessage():String { var _myMessage:String = ""; _myMessage += "各位好~ 寫了兩篇, 發現要在blogger 落script 異常困難"; _myMessage += "不過昨天小弟找到了解決的方案!!就是Syntax Highlighter !!"; _myMessage += "以後可以貼出像樣的code 了~ :D"; _myMessage += "呢篇野唔知有幾多人識睇呢"; return _myMessage; } private function makeButton():Sprite { var _b:Sprite = new Sprite(); var _g:Graphics = _b.graphics; _g.beginFill(0xFFCCFF); _g.drawRect(0, 0, 32, 32); _g.endFill(); return _b; } private function homeButton_click(e:MouseEvent):void { gotoSyntaxHighlighterWebsite(); } } }
BloggerAds廣告
相關文章
loading..
2011年2月27日 星期日
Syntax Highlighter
標籤:
CSS
訂閱:
張貼留言
(
Atom
)
沒有留言 :
張貼留言