สิ่งที่อยากทำคือให้คนส่ง URL แล้วเอาภาพไปโชว์บนเวที .. ฉันก็เลยเขียนโค้ดไป แต่มันก็ไม่ได้ผลอย่างที่คิด .. นี่คือโค้ด
var myurl:String ; // a var to load the text in it
var reques:URLRequest = new URLRequest (myurl) ; // the urlrequest (i know that this only accept strings but what to do !!)
var loader:Loader = new Loader(); // the loader
loadit.addEventListener (MouseEvent.CLICK , loadthatimage ) // button
function loadthatimage (ev : MouseEvent){
myurl = geurl.text ; // geurl is the txt box i have on the stage
loader.load (reques);
addChild(loader);
}
ความช่วยเหลือบางอย่างจะได้รับการชื่นชม .. ขอบคุณล่วงหน้า
var reques:URLRequest = new URLRequest (myurl) ;
เป็นสิ่งนี้var reques:URLRequest = new URLRequest (String(myurl)) ;
ทำให้ฉันมีข้อผิดพลาดนี้SecurityError: Error #2000: No active security context.
- person hussein   schedule 19.07.2011