Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-16-2008, 11:08 PM   #1
gons
Registered User
 
Join Date: Nov 2008
Posts: 2
Default Line on Drawing Canvas with draggable line ends

Hey AS/Flex Community!

I'm having massive problems with drawing a line with a dot on each end on a drawing canvas.

What i'm exactly looking for is this:
Drawing Canvas (exists) with a line object added to it that has to extend Canvas. LineObject Canvas should be a tad bigger than the drawn line itself so the Object can be selected without a hassle when clicking it even when the line is horizontal/vertical and the line itself is of height/width 1 therefore.

Dots at each end of the line can be drag/dropped around on the drawing canvas to change LineObjects height, width, x and y accordingly.

The whole problem is not as simple as described, but i seem stuck at this very beginning and as posting code of my current try is not an option due to the complexity of the project, i'm hoping that my problem description is understandable.

Thanks in advance! :-)

Edit: Quite like the lines in http://www.flashcomguru.com/componen...iteboard_demo/ - but based on canvas that resizes with the graphics.

Last edited by gons; 12-17-2008 at 02:58 AM.
gons is offline   Reply With Quote
Old 01-05-2009, 09:02 PM   #2
bluezero
Registered User
 
Join Date: Dec 2008
Posts: 3
Default

I'm having the same problem, can someone help please. At least with some reading materials. I'm new Flex & Flash, but I have the basics for both.
bluezero is offline   Reply With Quote
Old 01-06-2009, 05:57 AM   #3
ljuwaidah
Registered User
 
Join Date: Nov 2008
Posts: 36
Default

i saw that you're using squares on the square object, why not use the same squares for the line? they're bigger and easier to drag and drop than dots.
ljuwaidah is offline   Reply With Quote
Old 02-01-2009, 03:12 PM   #4
bluezero
Registered User
 
Join Date: Dec 2008
Posts: 3
Default

hi ljuwaidah,
can you ellaborate more please.
bluezero is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cool animated line drawing jeff lebowski ActionScript 3.0 10 09-04-2012 12:30 AM
How to animate drawing a line from piont A to point B? jenniferma ActionScript 3.0 1 11-30-2008 08:08 AM
drawing on a canvas object tgf Flex 2, 3 & 4 3 10-21-2008 05:55 PM
Drawing canvas overlay WMODE works in FF, not in IE :( mirellemus2001 ActionScript 2.0 1 09-12-2005 01:02 PM
Drawing a straight line simontheak Simple Stuff (Newbies) 33 11-03-2002 05:09 AM


All times are GMT. The time now is 09:06 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.