This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 參考 http://little-bill.iteye.com/blog/724570 | |
**/ | |
private function getAstro(ld_month:uint, ld_day:uint):String | |
{ | |
var s:String = "魔羯水瓶双鱼牧羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯"; | |
var arr:Array = [20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22, 22]; | |
return s.substr(ld_month * 2 - (ld_day < arr[ld_month - 1] ? 2 : 0), 2); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
/** | |
* @link http://stackoverflow.com/questions/3455448/regex-url-problem | |
* @param _url | |
* @return | |
*/ | |
public function ValidateURL(_url:String):String | |
{ | |
var pattern:RegExp = new RegExp( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var txt:TextField = new TextField(); | |
txt.name = "t" + i; | |
txt.autoSize = TextFieldAutoSize.LEFT; | |
txt.htmlText = "<font size='" + 14 + "'><a href='event:" + i + "'>" + "Hello World!" + "</a></font> "; | |
txt.styleSheet = getStyleSheet(); | |
txt.addEventListener(TextEvent.LINK, onHyperLinkClick); | |
addChild(txt); | |
private function onHyperLinkClick(e:TextEvent):void | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.events.MouseEvent; | |
import flash.geom.Rectangle; | |
import flash.text.TextField; | |
/** | |
* @usage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"台北市": { | |
"中正區": "100", | |
"大同區": "103", | |
"中山區": "104", | |
"松山區": "105", | |
"大安區": "106", | |
"萬華區": "108", | |
"信義區": "110", | |
"士林區": "111", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 解决swffit在ie9下的bug */ | |
object | |
{ | |
position: absolute; | |
outline: none; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.adobe.date | |
{ | |
import com.adobe.utils.DateUtil; | |
/** | |
* Utility class to help create human-readable Strings representing | |
* the difference in time from two different dates (e.g. "just now" | |
* or "2 hours ago" or "13 minutes from now"). | |
* | |
* @author Charles Bihis (www.whoischarles.com) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.external.ExternalInterface; | |
/** | |
* @author http://www.facebook.com/rhino.lu | |
* @link https://developers.google.com/url-shortener/v1/getting_started | |
* html要嵌入 <script src="https://apis.google.com/js/client.js"></script> | |
* | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TweenMax.to(something, 1, new TweenMaxVars().y(50, true).ease(Quad.easeInOut).yoyo(true).repeat(-1).vars); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 授權需求:publish_stream,user_photos | |
var _array:Array = []; | |
for (var i:int = 0; i < postArray.length; i++) | |
{ | |
_array.push( { "tag_uid":postArray[i].id } ); // tag_uid < 文件似乎沒有 | |
} | |
var postObj:Object = { }; | |
//postObj.to = postArray[0].id; // 單人 |