Re: [問題] 請問一下有關 Loader

看板Flash作者 (scars)時間15年前 (2010/04/23 20:29), 編輯推噓5(505)
留言10則, 3人參與, 最新討論串7/8 (看更多)
※ 引述《HudsonE (象象共和國國王)》之銘言: : 我完全 copy / paste... : 還是一片空白耶... : 把 graphics.beginBitmapFill( bmpd); : 換成 graphics.beginFill( 0x000000); : 就可以看見一片黑 : 這是什麼情況... ~"~ 不好意思沒有仔細爬前文 BitmapData不能draw Loader的原因 有可能是因為你的圖片是跨網域 flash會因為安全性的理由讓你不能draw 在本機上測試應該是OK的,但是放上網路就會一片空白 但如果圖片所在網域有放crossdomain.xml的話就OK 你可以在Loader load的時候傳入一個LoaderContext 讓他check policy file var loaderContext:LoaderContext = new LoaderContext(); loaderContext.checkPolicyFile = true; var loader:Loader = new Loader(); loader.load(request, loaderContext); 或許是這個問題 請google: bitmapdata draw loader crossdomain 之類關鍵字 -- 'Cause you are beautiful your scars are beautiful like the jade -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.224.42.222

04/23 21:08, , 1F
嗯嗯這個我有看到, 今天測完, 應該是 FLEX 的 bug 我猜啦
04/23 21:08, 1F

04/23 23:15, , 2F
最好不要馬上作出 "是官方的bug" 這種結論
04/23 23:15, 2F

04/23 23:16, , 3F
因為通常是寫程式疏忽造成的...
04/23 23:16, 3F

04/23 23:20, , 4F
可是 CJ 大的程式已經算很簡單了... 怎麼會出不來 QQ
04/23 23:20, 4F

04/23 23:37, , 5F
官方產生的bug的機率,比使用者產生的bug小很多
04/23 23:37, 5F

04/23 23:38, , 6F
沒有足夠的測試結果,別太急著下結論
04/23 23:38, 6F

04/23 23:44, , 7F
原po不是提到可能跟cross comain policy file有關?
04/23 23:44, 7F

04/23 23:44, , 8F
朝這個方向研究看看吧
04/23 23:44, 8F

04/24 00:57, , 9F
不過他說 local file 理應不該這樣耶, 我加個 crossdomain
04/24 00:57, 9F

04/24 00:57, , 10F
再測看看
04/24 00:57, 10F
文章代碼(AID): #1BqPAxU1 (Flash)
討論串 (同標題文章)
文章代碼(AID): #1BqPAxU1 (Flash)