View Full Version : selecting just created shape
ing.pepa
12-30-2007, 07:04 PM
can abybody help?
i create shape like this:
... // drawing path
fl.drawingLayer.endDraw();
myPath.makeShape();
// here I would like to have the shape selected so I can do some things to it ;)
thx
aravinth_vt
01-07-2008, 05:05 AM
try this method,
fl.getDocumentDOM().selectAll()
at the end of you code.
jjbilly
01-11-2008, 03:29 PM
Try creating your shape on a layer of its own. That way, you can be sure that selecting everything on that layer will select just your shape.
ing.pepa
01-14-2008, 06:46 PM
thanx, I needed it for a drawing tool so different layers would not be ok. I finally made it by creating movieclip and drawing into it. onMouseUp, I broke the movieclip apart, leaving me my shape selected.
It's sad that there's no correct way to select current drawing.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.