Is it possible to create dynamic embed function?

后端 未结 3 1629
自闭症患者
自闭症患者 2021-01-23 21:17

Is it possible to create dynamic embed function in ActionScript3

for example like this

     public function embedImage(path:String):Bitmap{
                     


        
3条回答
  •  甜味超标
    2021-01-23 21:40

    Embedded elements are embedded at compile time. You can't dynamically embed something at compile time... If you want to load resources dynamically, use the Loader.

提交回复
热议问题