// debug 超好用呀~~
// press ~ : toggle the debug Console on/off.
FP.console.enable();
// global objects
FP.stage
FP.width
FP.height
FP.halfWidth
FP.halfHeight
2012年1月12日 星期四
2011年12月30日 星期五
FlashDevelop compile swfs using a single class file
標題很難下..XD
大家應該有遇過進行小測試時,只想隨便寫個 as
要怎麼測試,又不想特別開一個 Project
更不想開肥大的 Flash CS5 IDE
那怎麼辦呢??
大家應該有遇過進行小測試時,只想隨便寫個 as
要怎麼測試,又不想特別開一個 Project
更不想開肥大的 Flash CS5 IDE
那怎麼辦呢??
2011年12月16日 星期五
flash countdown timer 倒數計時器
關於 flash 倒數計時器,網路上有很多相關的文章,
但大多是抓取 client 端時間,
本篇加入 server 端時間校正,
防止使用者更改系統時間造成問題。
但大多是抓取 client 端時間,
本篇加入 server 端時間校正,
防止使用者更改系統時間造成問題。
2011年12月15日 星期四
how to get a page custom attribute in gaia
in site.xml
<page id="index" src="index.swf" hiddenOverviewTxt="false">
using node to get page attribute
Gaia.api.getPage(Pages.INDEX).node.@hiddenOverviewTxt
or
page.node.@hiddenOverviewTxt
<page id="index" src="index.swf" hiddenOverviewTxt="false">
using node to get page attribute
Gaia.api.getPage(Pages.INDEX).node.@hiddenOverviewTxt
or
page.node.@hiddenOverviewTxt
2011年12月6日 星期二
wget tip
用來用去還是 wget 最好用呀~~
enable cookies
wget --cookies=on --keep-session-cookies --save-cookies=cookie.txt http://your.url
referer url and load cookies
wget --referer=http://your.referer.url --cookies=on --load-cookies=cookie.txt http://your.url
post data
wget --post-file post.txt http://your.url
wget --post-data="type=APP&nick=nickname" http://your.url
in post.txt(on windows)
type=APP&nick=nickname
user agent
--user-agent="Mozilla/5.0"
2011年11月21日 星期一
passing variable to gaia page
passing variable to gaia page
using deeplink
Gaia.api.goto(Pages.YOUR_PAGE + "/variable);
function transitionIn():void
{
var type:String = Gaia.api.getDeeplink().substr(Gaia.api.getDeeplink().lastIndexOf("/") + 1);
handleDeeplink(type);
}
function handleDeeplink(__arg:String):void
{
// do something...
}
using deeplink
Gaia.api.goto(Pages.YOUR_PAGE + "/variable);
function transitionIn():void
{
var type:String = Gaia.api.getDeeplink().substr(Gaia.api.getDeeplink().lastIndexOf("/") + 1);
handleDeeplink(type);
}
function handleDeeplink(__arg:String):void
{
// do something...
}
2011年10月7日 星期五
away3d how to move 3D object along a path - part2
preFab 還提供兩種工具 Path Extruder and Path Animator
Path Extruder 可以在 Path 上貼上材質(ie:草皮/柏油/水泥...etc.)
可以用 Geometry -> Path -> Path Extruder
首先點出你要的物件
setting:
select path
subdivision -> 4
closepath
allgntopath
coversegment
mapfit
選材質
build
Path Animator 可以用來預覽效果
Geometry -> Path Animator
seletc path
use camera
offset y:100
allgn to path
preview(camera 沿著 path 移動)
use Object3d
object(your car)
offset y:100
allgn to path
preview(3d object 沿著 path 移動)
Path Extruder 可以在 Path 上貼上材質(ie:草皮/柏油/水泥...etc.)
可以用 Geometry -> Path -> Path Extruder
首先點出你要的物件
setting:
select path
subdivision -> 4
closepath
allgntopath
coversegment
mapfit
選材質
build
Path Animator 可以用來預覽效果
Geometry -> Path Animator
seletc path
use camera
offset y:100
allgn to path
preview(camera 沿著 path 移動)
use Object3d
object(your car)
offset y:100
allgn to path
preview(3d object 沿著 path 移動)
訂閱:
文章 (Atom)