shouldn't that be 
<mx:Canvas id ="mycanvas" width="715" height="408" 
backgroundColor="#CCCCFF" 
initialize="drawlines&Arrows(event.target)">


--- In flexcoders@yahoogroups.com, Prasad Dhananjaya <[EMAIL PROTECTED]> 
wrote:
> Hi All,
> 
> I have a small question.
> I want to call function "line()" and function "arrow()" from 
> function "drawlines&Arrows()". I tried sevaral ways. But failed.
> Can someone tell me how to do this?
> 
> Best Regards,
> Prasad
> (Absolute beginner of Flex & ActionScript)
> 
> 
> -------------------------------------------------------------------
---------
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"; > 
> <mx:Panel width="732" title="MyPanel" >
> <mx:Canvas id ="mycanvas" width="715" height="408" 
backgroundColor="#CCCCFF" 
>            initialize="drawlines(event.target)">
> </mx:Canvas>
> </mx:Panel>
> 
> <mx:Script>
>      <![CDATA[
>      function line(x1, y1, x2, y2) { moveTo(x1, y1);  lineTo(x2, 
y2);  }
>      function arrow(x1, y1, x2, y2, size) { ..... }
> 
>      function drawlines&Arrows(target) {
>         var lines = target.createEmptyMovieClip("line_mc", 1);
>             with (lines) {
>             lineStyle(1, 0xff0000, 100);
>             //¡úbelow  two lines are not working
>             line(145, 25,192, 88);
>             arrow(100, 100, 300, 300, 10, 0.4);
>             }
>     }
> ]]>
> </mx:Script>
> </mx:Application>




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h5dsb1t/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124795308/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</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/
 


Reply via email to