Skip navigation
Currently Being Moderated

Other Components > Drawing > Dashed Lines doesn't compile with Flex 4

Sep 10, 2010 1:36 AM

The lib was created in 2006 so it doesn't compile with Flex 4.

The lib can be downloaded here http://www.quietlyscheming.com/blog/charts/dashed-lines/

 

When compiling I get this error:

Description     Resource     Path     Location     Type
1136: Incorrect number of arguments.  Expected 3.     GraphicsUtils.as     /arrows/src/qs/utils     line 66     Flex Problem

 

 

The line which doesn't compile:

stroke.apply(target);

 

How do I fix this error?

 
Replies
  • Currently Being Moderated
    Dec 7, 2011 4:43 PM   in reply to hidarikani

    Yeah man is a shame the examples there and they even dont care to run the code

     

    EDIT. Sorry I just notice that change the SDK to 3.5 from 4.0 using the example as it is, it compiles without problem!

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 19, 2012 3:40 AM   in reply to hidarikani

    the simplest way to correct it is to change in

     

    stroke.apply(target, null,null);

     

    so you can display the dashed line

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points