[Xerte] Constraining freehand
Dave Burnett
d_b_burnett at hotmail.com
Fri Dec 3 18:27:23 GMT 2010
Good idea.
My objects are a little close together to get perfect fidelity, but it works well enough.
Cheers Julian, have a good weekend!
Dave
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Fri, 3 Dec 2010 16:04:26 +0000
Subject: RE: [Xerte] Constraining freehand
Dirty as anything but you need to check the length of draw.shapes.length //greater than 0 and you have drawing Make a border round the draws, and listen for events on that.When the mouse leaves the area (rolls over the border), do your check, light up the buttons?Something equally creative? Otherwise you need an event broadcasting from the DRW class, which I can do, but how? Everytime a shape gets drawn broadcast ‘shapeDrawn’ or something? From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 03 December 2010 15:56
To: Xerte list
Subject: RE: [Xerte] Constraining freehand
I have 2 addDraws on screen to draw stuff into.
Need to know when something has been drawn into both so I can enable a "Next" button.
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Fri, 3 Dec 2010 15:46:16 +0000
Subject: RE: [Xerte] Constraining freehandNot sure… Gotta say, one of the things I love about AS3 is event handling. But that’s not going to help here. Back up a bit – what do you need to do? From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 03 December 2010 15:45
To: Xerte list
Subject: RE: [Xerte] Constraining freehand
ah.
Can I catch those events somehow?From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Fri, 3 Dec 2010 15:41:29 +0000
Subject: RE: [Xerte] Constraining freehandYou’re probably overriding the draw methods event handlers… From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 03 December 2010 15:39
To: Xerte list
Subject: RE: [Xerte] Constraining freehand
It's weird.
As soon as I define the icon I'm adding the addDraw to as an event target (Press. Release, rollover, whatever, the draw function fails. From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Fri, 3 Dec 2010 15:14:52 +0000
Subject: RE: [Xerte] Constraining freehandIf you mask the draw, then even if drawing continues out of sight, it isn’t ugly. Does that work? From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 03 December 2010 15:05
To: Xerte list
Subject: RE: [Xerte] Constraining freehand
OK, how about targeting an addDraw.
I want to catch the onRelease event, but when I add the target icon (the one addDraw is appending to), the drawing function itself stops working, though I do get the event when I release the mouse.
Wonder why it is blocking the draw?
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101203/5a5aa6f1/attachment-0001.html
More information about the Xerte
mailing list