开发者

Flex: What is the best way to place an image in specific coords on canvas

I know that the question may seem very easy. I am trying to display an image on canvas. I need to do it in AS, and also I need to locate image in specific coordinates.

Could you please suggest how to do 开发者_JAVA技巧it


just an image at a specific location within a canvas:

            var myImage:Image = new Image();
        myImage.source =  "image1.png";
        myImage.x = 100;
        myImage.y = 100;
        myCanvas.addChild(myImage);


Check out the dataToLocal() method.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜