Dear all, I want to draw some lines on the "canves". Location of canves is inside the "panel".Without canvas & panel tags it works. (But if I set "backgroundColor" it didn't appear) I tried to get some hint from manual.But failed. Can someone please tell me how to draw a line on the "canves" which is in the "panel", with setting of "backgroundColor".
Thanks Prasad ---------------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" > <mx:Panel width="432" title="MyPanel"> <mx:Canvas width="415" height="208" backgroundColor="#CCCCFF" initialize="drawlines()" visible="true"> </mx:Canvas> </mx:Panel> <mx:Script> <![CDATA[ function drawlines() { var lines = this.createEmptyMovieClip("line_mc", 1); with (lines) { lineStyle(5, 0xff0000, 100); moveTo(350, 100); lineTo(400, 120); } } ]]> </mx:Script> </mx:Application> ---------------------------------------------------------------- ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h3fha2b/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124422020/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/">In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!</a>.</font> --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/