On 12/23/06, Reid Priedhorsky <[EMAIL PROTECTED]> wrote:
Charles Parcell wrote: > Hi Charles, Thanks for your help! > I am not very versed on Flex Builder it self, but my first question is to > ask why you are importing UICompnent? I can only guess that you have not > pasted in all of your code here. That's because I was trying to decide whether to subclass Button or UIComponent -- so far, they seem to work the same, but subclassing Button results in a gradiented roundrect being drawn over my own stuff. It's all there; just substitute UIComponent for Button when you read the code. :)
Ahh, ok I can understand that. If it makes any difference to you, I have built a button component that actually extends MovieClip. I would guess in the context of Flex, you would redraw or fill the graphic based on the effect triggered. So, you would have to create methods for each of the events. But this is outside the bounds of your question. I don't know that I can be much more help on this because it seems that the answer lies with how Flex handles the default placement of the center point of the button. Just doing a quick search on the livedocs site... http://livedocs.macromedia.com/flex/2/langref/mx/effects/effectClasses/RotateInstance.html http://livedocs.macromedia.com/flex/2/langref/mx/effects/Rotate.html
Second, why not draw your arrow so that its center is at 0,0? This helps, but the layout is still kind of wonky. This also seems like an odd solution to me; this would mean that people drawing components would have to always work in four quadrants of the Cartesian plane instead of just one.
True. It was just the first thing that popped into my head as a quick try. :) Charles P. _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

