Luar's Flash Playground:loadMovie(JPG或SWF)是可以跨Domain
新聞(100)
觀點或評論(93)
Flash書(63)
教程(65)
Design Patterns(3)
FlashCom筆記(45)
Flash Remoting筆記(27)
Flex筆記(11)
Flash Lite筆記(14)
PHP資訊(22)
Ajax筆記(9)
習作(47)
組件(15)
酷站(31)
學習資源(28)
書籍推介(15)
本站與我(90)
RSS瀏覽器
聯絡
熱愛鑽研
Ajax
ActionScript
Flash
Flash Lite
Flex
Flash Remoting
FlashCom
Director
Lingo
PHP
Multiplayer Game

搜尋
VCASMO
loadMovie(JPG或SWF)是可以跨Domain (03-10-2004)

一直都知道Flash Player限制跨Domain的Data傳送,沒有留意原來loadMovie(JPG或SWF)是可以跨Domain,不過當宿主SWF用讀取被載SWF裡的Variable,是不可以的,除非被載SWF加入System.security.allowDomain(宿主Domain);,例如:System.security.allowDomain("www.luar.com.hk");,再簡單一點,可以直接這樣寫:System.security.allowDomain(_root._url);

本文章由luar發表。
同組文章

Movable Type 3.15系統支持,Luar's Production版權所有。