2010年6月30日 星期三

flashplayer debug mode on firefox got crash error (Firefox上flashplayer 一直當機)

最近使用Firefox在寫Flex在debug mode,正在專注要看varible的變化
結果就flash就當機了
google了一下 找到T客邦的這篇文章

外掛當機,本尊沒事的Firefox 3.6.4來了
總結了一下
我做的小修改
主要就是在 firefox 叫出 about:config 後 篩選條件 dom.ipc.plugins.enabled
其中 dom.ipc.plugins.enabled.npswf32.dll; 應該是關連 flashplayer的把它關掉就不會再當機啦
T客邦中另外提到可以下 about:crashes 看一下當機紀錄,還看不是很懂
再者就是 http://www.mozilla.com/en-US/plugincheck/ 可以 check一下firefox裝了哪些plugin

2011/05/06 updated

In 4.0.1 version cant’ got above option
need to search below attribute
dom.ipc.plugins.timeoutSecs
and set the value to –1
 
2011/07/20 updated
In 5.0 version occur this error
發現容易停止回應的程式碼(Script)  [In engilish is unresponsive script warning]
need to setup another attribute
dom.max_script_run_time
and set the value to 20
if can’t find out this attribute ,create new attribute as above

reference link:

http://kb.mozillazine.org/Unresponsive_Script_Warning   <= offcial(english)

http://tw.knowledge.yahoo.com/question/question?qid=1608040905384 <= yahoo+(chinese)

 



2010年6月9日 星期三

Flex Load Image with ProgressBar







import mx.collections.ArrayCollection;
[Bindable]
private var datas:ArrayCollection= new ArrayCollection([{label:'Flex',data:'http://mixmatters.com/hot/2008/images/DJ_Flex-Te_Quiero.jpg'},
{label:'Apple',data:'http://www.teksource.com.tw/Quotation_TEK/images/product/APPLE.jpg'},
{label:'Google',data:'http://140.136.240.106/98/images/google_logo.jpg'},
{label:'Nokia',data:'http://www.blogcdn.com/www.engadgetmobile.com/media/2008/11/nokia-crystal-ball.jpg'}]);
]]>

source="http://mixmatters.com/hot/2008/images/DJ_Flex-Te_Quiero.jpg"
x="{this.list.x + this.list.width}"
y="10"
horizontalAlign="center"
open="progressBar.visible = true"
complete="progressBar.visible = false"
completeEffect="Fade"/>
x="{this.list.x + this.list.width}"
y="10"
source="{image}"
visible="false"
showEffect="Fade"
hideEffect="Fade"/>


image.source = list.selectedItem.data;
]]>




Flex - Slide Menu





layout="absolute"
height="100%" width="100%">




















toState="over1">
target="{this.c1}"
duration="2000"/>

toState="over2">
target="{this.c2}"
duration="2000"/>

toState="over3">
target="{this.c3}"
duration="2000"/>

toState="over4">
target="{this.c4}"
duration="2000"/>

toState="over1-1">
target="{this.c1}"
duration="1000"/>

toState="over2-2">
target="{this.c2}"
duration="1000"/>

toState="over3-3">
target="{this.c3}"
duration="1000"/>

toState="over4-4">
target="{this.c4}"
duration="1000"/>


x="{this.canvas1.x}"
y="{this.canvas1.y}"
width="200"
height="55">


y="23"
width="200"
height="55"
id="canvas1"
mouseOut="this.currentState='over1-1'"
mouseOver="this.currentState = 'over1'">


x="{this.canvas2.x}"
y="{this.canvas2.y}"
width="200"
height="55">


y="96"
width="200"
height="55"
id="canvas2"
mouseOut="this.currentState='over2-2'"
mouseOver="this.currentState = 'over2'">


x="{this.canvas3.x}"
y="{this.canvas3.y}"
width="200"
height="55">


y="168"
width="200"
height="55"
id="canvas3"
mouseOut="this.currentState='over3-3'"
mouseOver="this.currentState = 'over3'">


x="{this.canvas4.x}"
y="{this.canvas4.y}"
width="200"
height="55">


y="242"
width="200"
height="55"
id="canvas4"
mouseOut="this.currentState='over4-4'"
mouseOver="this.currentState = 'over4'">



2010年6月2日 星期三