●內嵌資源類別不需撰寫類別檔,僅需在元件庫中作一些指定,就可被關鍵影格上的AS碼操作。
●右鍵單擊元件庫裡的photo_1.jpg,點選 [屬性],在 [點陣圖屬性] 面板做以下設定

// import flash.display.Bitmap; import flash.display.Sprite; // var container:Sprite = new Sprite() addChild(container); // var bitmap:Bitmap = new Bitmap(new NewPhoto(600,426)); container.addChild(bitmap); // addChild(txt1); addChild(txt2);
沒有留言:
張貼留言