Ram
04-07-2008, 10:01 AM
Hi All,
I am pretty new to JSFL and trying to fill the color in a shape created by fl.getDocumentDOM().addNewLine() command.
I.e, I have a trainagle created using below code
fl.getDocumentDOM().addNewLine({x1,y1},{x2,y2})
fl.getDocumentDOM().addNewLine({x2,y2},{x3,y3})
fl.getDocumentDOM().addNewLine({x3,y3},{x1,y1})
Now, I need to just fill in the color, say "#cc00cc" in the shape created by above lines of code.
I tried using fl.getDocumentDOM().setCustomFill( fillObj );
flash.getDocumentDOM().setFillColor("#cc00cc"); etc but nothing worked..Am I missing something? Could you pls help me out?
Thanks in advance!
Regards.
I am pretty new to JSFL and trying to fill the color in a shape created by fl.getDocumentDOM().addNewLine() command.
I.e, I have a trainagle created using below code
fl.getDocumentDOM().addNewLine({x1,y1},{x2,y2})
fl.getDocumentDOM().addNewLine({x2,y2},{x3,y3})
fl.getDocumentDOM().addNewLine({x3,y3},{x1,y1})
Now, I need to just fill in the color, say "#cc00cc" in the shape created by above lines of code.
I tried using fl.getDocumentDOM().setCustomFill( fillObj );
flash.getDocumentDOM().setFillColor("#cc00cc"); etc but nothing worked..Am I missing something? Could you pls help me out?
Thanks in advance!
Regards.