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; | |
public class Main extends Sprite | |
{ | |
private var _labelArray:Array = [10, 30, 50, 70, 90]; | |
private var _midDotArray:Array; | |
private var _combineArray:Array; | |
private var _newMidDotArray:Array; |
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 | |
{ | |
public class ChkRepeatedValue | |
{ | |
/** | |
* 檢查陣列中的值是否有重複值,只能是一維陣列,例[0,1,2,3,4,5,6],常用於表單檢查 | |
* 例[0,1,1,3,3]將回傳[[1, 2], [3, 4]] | |
* @param _array 待檢查之陣列 | |
* @return 陣列,例如 [[0, 1], [2, 3, 4]] 代表 第0,1個相同,第2,3,4個值相同 | |
*/ |
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 com.bit101.components.PushButton; | |
import com.greensock.events.LoaderEvent; | |
import com.greensock.loading.data.VideoLoaderVars; | |
import com.greensock.loading.VideoLoader; | |
import com.greensock.TweenMax; | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.events.MouseEvent; |
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.DisplayObjectContainer; | |
import flash.display.MovieClip; | |
public class MovieClipUtil | |
{ | |
public static function stopAll(container:DisplayObjectContainer):void | |
{ | |
if (container is MovieClip) MovieClip(container).stop(); |
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
/* | |
VERSION: 1.0 DATE:2009/11/20 | |
ACTIONSCRIPT VERSION: 3.0 | |
AUTHOR: DFdou, [email protected] | |
Copyright 2009, nwhy.org. All rights reserved. | |
DESCRIPTION: | |
Captcha is a simple class to generate Caphtcha Sprite. | |
PARAMETERS: |
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
private function getUserData():void | |
{ | |
var mq:FQLMultiQuery = new FQLMultiQuery(); | |
mq.add("SELECT uid,name,email FROM user WHERE uid = me()", "myData"); | |
mq.add("SELECT page_id FROM page_fan WHERE uid = me()", "myLike"); | |
//mq.add("SELECT name,fan_count FROM page WHERE page_id = " + FANS_PAGE_ID, "pageCount"); | |
mq.add("SELECT publish_stream FROM permissions WHERE uid = me()", "myPermissions"); | |
Facebook.fqlMultiQuery(mq, onGetUserData); | |
} |
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; | |
import flash.net.URLRequest; | |
import flash.net.navigateToURL; | |
/** | |
* http://blog.lamb-mei.com/2012/06/navigatetourl-ie.html | |
* @author 羊小咩 | |
*/ |
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
public function doShare():void | |
{ | |
if (ExternalInterface.available) | |
{ | |
ExternalInterface.addCallback("onShareSingleComplete", onShareSingleComplete); | |
ExternalInterface.call("myShare", "onShareSingleComplete"); | |
} | |
} | |
public function onShareSingleComplete(result:String):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; | |
/** | |
* @link http://www.peterelst.com/blog/2007/09/13/actionscript-30-using-variables-in-xml/ | |
*/ | |
public class XMLExample extends Sprite | |
{ | |
private var someXML:XML; |
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
/** | |
* - 需求: | |
* 有個公告單元(bulletin),獨立於其他單元,在瀏覽其他單元時,可以隨時開啟或關閉 | |
* 但必須透過網址記錄行為 | |
* | |
* - 解法: | |
* 在原來的 branch 後面加上自定義字串, | |
* 之後再判斷 deeplink 裡是否有該字串。 | |
**/ |
OlderNewer