Hello,
This is probably a noob question..but here goes.
anyone know to turn this into a MXML component

What i really want is to be able to drag a box like on this site  : http://www.myheritage.com/FP/Company/faceSamples.php?s=1&u=g0&lang=EN
click the pic then click the image crop tool.
i just basically want that as a component so i can extract the X,Y coordinates of the verticies.



this.createEmptyMovieClip("box" ,1)
//box.lineStyle(thickness,0xCOLORCODE)
//You must have the 0x before you put the color code
box.lineStyle(1,0x000000 ) //Sets the thickness to 1 and the line color to black
//box.beginFill(0xCOLORCODE)
box.beginFill(0xFFFF00) //Sets the fill inside the box to yellow
//This will move the box so that you can start drawing (x,y)
box. moveTo(0,0) //Move it to 0 x and 0 y
//The line to method will draw a line from 0 x and 0 y (Which was set above) to the x and y you set it to move
box. lineTo(0,20) //Move from 0 x and 0 y to 0 x and 20 y
box.lineTo( 20,20) //Move 20 x and stay at 20 y
box. lineTo(20,0) //Stay at 20 x and move up to 0 y
box.lineTo(0, 0) //Go back to origanal spot
//Moves the box to 100 x
box._x = 100
//Moves the box to 100 y
box. _y = 200
//When you press on the box a fuction is activated
box. onPress = function() {
          //This will make the output box say "Wow you did it!"
          trace ("Wow you did it!")
}



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to