Looking for the perfect gift? Check Baloka.com
Powered by MaxBlogPress  
  • MyLineRider

  • Flex 3 Experiment: Drawing curve with many editable points at run time

18th July 2009

Flex 3 Experiment: Drawing curve with many editable points at run time

It has been a while since my last post. I Have tons of experiments and ideas to post, but I guess I procrastinate too much.

Anyway, a couple days ago a got the book: “Foundation ActionScript 3.0 Image Effects” by Todd Yard and its great. I just finished Chapter 1, but I have so many ideas to play with that I guess it will take a while to finish the book (I sort of browsed the whole thing already though).

One of the descriptions in Chapter 1, which deals with AS3 Drawing API is about changing points in a path.You can see the example below. Click on the canvas (anywher), then click somewhere else, etc.  At any time  you can drag the points to edit the path.

Another example refers to drawing curves. In this case a curve is drawn of the stage, but the user can change the start and end point and the control point.  You can play with the curve below.

Then, I decided to make some changes and make something like the changing points in a path, but with the path made of curves. The result is shown below. Again, click on the stage a couple of times to draw some stuff. Now besides been able to move the points, you can move the control points (in light red).  The source code is available here

Enjoy.

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

This entry was posted on Saturday, July 18th, 2009 at 3:40 pm and is filed under Flash, Flex, Rich interactive Applications. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

There are currently 8 responses to “Flex 3 Experiment: Drawing curve with many editable points at run time”

Why not let us know what you think by adding your own comment! Your opinion is as valid as anyone elses, so come on... let us know what you think.

  1. 1 On July 18th, 2009, Marcus said:

    Wrong point source code view link.

    Can you fix it?

  2. 2 On July 18th, 2009, Gilbert Mizrahi said:

    Marcus,

    Thanks. I added a link to the source code.

  3. 3 On July 18th, 2009, Flex 3 Experiment: Drawing curve with many editable points at run … | Design Graphics said:

    [...] The rest is here: Flex 3 Experiment: Drawing curve with many editable points at run … [...]

  4. 4 On July 22nd, 2009, Flex 3 Experiment: Drawing a path at run time with insert points | MyLineRider said:

    [...] from my previous post about how to draw a curve with editable points at run time, I decided to post a new one, on how to make draw a path (with straight lines) that include points [...]

  5. 5 On July 25th, 2009, Flex 3 Experiment: Drawing curve with many editable points at run time | Adobe Tutorials said:

    [...] It has been a while since my last post. I Have tons of experiments and ideas to post, but I guess I procrastinate to much. Anyway, a couple days ago a got the book: “ Foundation ActionScript 3.0 Image Effects ” by Todd Yard and its great. The rest is here: Flex 3 Experiment: Drawing curve with many editable points at run time [...]

  6. 6 On July 25th, 2009, Flex 3 Experiment: Drawing curve with many editable points at run time | Adobe Tutorials said:

    [...] It has been a while since my last post. I Have tons of experiments and ideas to post, but I guess I procrastinate to much. More here: Flex 3 Experiment: Drawing curve with many editable points at run time [...]

  7. 7 On July 25th, 2009, BlackBerry Curve 8900 Javelin Unlocked Phone with 3.2 MP Camera, GPS, Stereo Bluetooth, Media Player, and MicroSD Slot–International Version with No Warranty (Titanium) | pdacellphone said:

    [...] Flex 3 Experiment: Drawing curve with many editable points at run … [...]

  8. 8 On July 17th, 2010, pet store said:

    I required to appreciate this excellent learn!! I am undoubtedly relishing every small bit of this. I have you bookmarked to learn fresh stuff you post.

Leave a Reply

  • About Me

  • Hi, I'm Gilbert Mizrahi and I created this blog to comment about technology and internet marketing. Additionally, I will post Flash/Flex experiments and in most cases they will refer to baloka.com, my wife's site- hey I have to promote the brand:)

google

google

asus