Oleg Tarasenko
Oleg Tarasenko

Reputation: 9610

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 it

Upvotes: 1

Views: 147

Answers (2)

James Ward
James Ward

Reputation: 29433

Check out the dataToLocal() method.

Upvotes: 0

JonSG
JonSG

Reputation: 13097

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);

Upvotes: 1

Related Questions