[flexcoders] Re: simple array?

2009-05-22 Thread Eric Cooper
example? It stands as a pointless container for what we are seeing it used for. Unless there will be some additional items added to it that we have not seen yet. I just feel the need to point that out. :) Charles P. On Thu, May 21, 2009 at 3:49 PM, Eric Cooper e...@... wrote: I

[flexcoders] Re: simple array?

2009-05-22 Thread Eric Cooper
at 3:49 PM, Eric Cooper e...@... wrote: I just tried compiling what I wrote - and realized that it didn't... so here are two variants. The first is same as previous, but it compiles. The second may be more in the spirit of what you were attempting initially - and kind of highlights

[flexcoders] Re: simple array?

2009-05-21 Thread Eric Cooper
How about this: var records:Array = new Array( { code:AC, text:Remember to reset the station address. }, { code:RN, text:Remember to reset the station expiration date. }, {

[flexcoders] Re: simple array?

2009-05-21 Thread Eric Cooper
]); } --- In flexcoders@yahoogroups.com, Jason B nos...@... wrote: SWEET thanks --- In flexcoders@yahoogroups.com, Eric Cooper eric@ wrote: How about this: var records:Array = new Array( { code:AC, text:Remember to reset the station address

[flexcoders] Slider question: click on track and drag?

2009-04-13 Thread Eric Cooper
I would like to have sliders whose 'track' could be clicked on to move thumb and whose thumb would then become receptive to thumbDrag. Is there some easy way to enabled this? What I see now, is that a mouse-down event on track will move thumb. But then the user has to release the mouse button

[flexcoders] Re: Load time, multiple redundant Embed() calls, etc.

2008-12-03 Thread Eric Cooper
, Nate On Tue, Dec 2, 2008 at 12:55 PM, Eric Cooper [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Hi, I have inherited some code and it seems to build into a fairly large .swf and takes a very long time to download. Running locally, things go fairly quickly - but not so remotely

[flexcoders] Load time, multiple redundant Embed() calls, etc.

2008-12-02 Thread Eric Cooper
Hi, I have inherited some code and it seems to build into a fairly large .swf and takes a very long time to download. Running locally, things go fairly quickly - but not so remotely. Part of this may be due to slow server and net connection - but I am not able to change those any time soon.

[flexcoders] Re: UI component, a set function creationComplete

2008-10-29 Thread Eric Cooper
Mike, I am wondering if what I am experiencing with createChildren() is similar to what you've described below. I am subclassing UIComponent - and I read that it is best to create children in a createChildren() method. However, I am tying into someone else's existing code and she has done

[flexcoders] Re: UI component, a set function creationComplete

2008-10-29 Thread Eric Cooper
Thanks, Amy. I have decided that my own model is more convoluted than is healthy. So, I have reworked things on my side and stuck with createChildren(). I was tempted to try Mike's suggestion - and, had I felt really good about my implementation, I might have. At this point, with more checks

Re: [flexcoders] Equivalent to Java's Class.isInstance(Object) instance method?

2008-10-27 Thread Eric Cooper
The question has been answered (yes, it is possible to use is as part of isInstanceOf() method. Here's an example of my use of this mechanism (for determining if geometric shapes share an instance of a particular class of constraint, e.g. are these two line segments perpendicular to each

[flexcoders] Resizing width of TextArea to fit content width

2008-10-21 Thread Eric Cooper
Hi, I have searched through the archives and googled, but most related concerns seem to focus on text height. I am concerned solely with text width. I have a subclass of UIComponent (called BTVariable) that contains an HBox which, in turn, contains between two and four TextArea objects. I

[flexcoders] Re: Accessing *other* browser plugins from Flash

2008-10-15 Thread Eric Cooper
@yahoogroups.com ] On Behalf Of Eric Cooper Sent: Tuesday, October 14, 2008 3:05 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Accessing *other* browser plugins from Flash Hi, I have access to some powerful C++ functionality. Porting

[flexcoders] Accessing *other* browser plugins from Flash

2008-10-14 Thread Eric Cooper
Hi, I have access to some powerful C++ functionality. Porting this to ActionScript is not an option. However, it looks like I could create a browser plugin that would wrap the C++ code. I am looking for pointers, caveats or advice on how to proceed. The obvious question is: can a .swf call

[flexcoders] Re: as3CoreLib

2008-09-18 Thread Eric Cooper
I think that I used http://as3corelib.googlecode.com/files/corelib-.90.zip which is now marked as deprecated... but still probably bette than nothing. I only use it for JSON. -eric --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Michael

[flexcoders] Re: Trees, DataProviders and dynamic screen updates

2008-07-24 Thread Eric Cooper
Of Eric Cooper Sent: Wednesday, July 23, 2008 6:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Trees, DataProviders and dynamic screen updates I am adding to and removing from ArrayCollection - and when I do that, the Tree items refresh and are current. But when

[flexcoders] Trees, DataProviders and dynamic screen updates

2008-07-23 Thread Eric Cooper
Hi, I am trying to display changes in state for proxy objects (where real state exists on a server). I have defined a Tree and set its dataProvider to be an ArrayCollection. I have tried having this be an array of references to actual proxy object and also as array of dynamically created

[flexcoders] Re: Trees, DataProviders and dynamic screen updates

2008-07-23 Thread Eric Cooper
to make the updates to the dataProvider, the changes should automatically reflect in the UI. How are you updating the ArrayCollection items? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cooper Sent

[flexcoders] Re: Trees, DataProviders and dynamic screen updates

2008-07-23 Thread Eric Cooper
to make the updates to the dataProvider, the changes should automatically reflect in the UI. How are you updating the ArrayCollection items? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cooper Sent

[flexcoders] Re: How to set the registration point for a UIComponent

2008-06-26 Thread Eric Cooper
How does one control (or even determine) the registration point? I am drawing a circle and it seems like the center of the circle is being used as the registration point - which means that when I display the center point and radius point (having subtracted topLeft from their real positions)

[flexcoders] Re: Writing text directly to Graphics object.

2008-04-26 Thread Eric Cooper
. --- In flexcoders@yahoogroups.com, Eric Cooper [EMAIL PROTECTED] wrote: I have tried this, but it doesn't seem to be working. Here's what I am doing: override public function renderShape(graphics:Graphics):void { var matrix:Matrix = new Matrix

[flexcoders] newbie design question

2008-04-24 Thread Eric Cooper
I have been working in Flex for about 3 months now. I am writing a geometry tool that allows user to create points, line segments, circle and polygons, as well as constraints between these objects (e.g., distance, angle, perpendicular, etc.). Initially, I created a (subclass of)

[flexcoders] Re: How do I repaint?

2008-04-23 Thread Eric Cooper
I am not sure if this is best practice - but have you tried calling stage.invalidate() ? -eric --- In flexcoders@yahoogroups.com, Matt [EMAIL PROTECTED] wrote: I am dynamically setting the 'icon' to a LinkButton using Ben Stucki's IconUtility and it works great when the link first gets

[flexcoders] problems with ArrayCollections, Trees and PopUpButtons

2008-04-23 Thread Eric Cooper
I have spent the day trying to understand how to get a dynamically-backed hierarchical popup menu to work (within a ControlBar). I have gone from a fairly complex starting point to a minimal test case - and things are still not working. I am seeing three failures, depending on how I attempt

[flexcoders] Re: problems with ArrayCollections, Trees and PopUpButtons

2008-04-23 Thread Eric Cooper
, Eric Cooper [EMAIL PROTECTED] wrote: I have spent the day trying to understand how to get a dynamically-backed hierarchical popup menu to work (within a ControlBar). I have gone from a fairly complex starting point to a minimal test case - and things are still not working. I am seeing

[flexcoders] Re: Writing text directly to Graphics object.

2008-04-22 Thread Eric Cooper
:50 PM, Eric Cooper [EMAIL PROTECTED] wrote: Is there any way to write/draw text directly to a Graphics object? For that matter is there anyway to draw text (single line of static text) into a Canvas? I suspect that the answer is no, having searched and searched... but maybe there's

[flexcoders] Re: Writing text directly to Graphics object.

2008-04-22 Thread Eric Cooper
Yes, this is what I was hoping for. And even though it is not now available, I wonder, Gordon, if you are at liberty to tell us about the future? Is Graphics.drawText() be something that might get added? -eric --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: I think

[flexcoders] Re: graphics object seems to degrade performance

2008-04-16 Thread Eric Cooper
? Unfortunately, no. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cooper Sent: Tuesday, April 15, 2008 1:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: graphics object

[flexcoders] Re: graphics object seems to degrade performance

2008-04-15 Thread Eric Cooper
I am experiencing performance issues similar to those described in this thread. By way of background, I am working on a geometry tool that allows the user to create points, line segments, circles and polygons, to move then about and to create constraints between them. I am new to

[flexcoders] Re: graphics object seems to degrade performance

2008-04-15 Thread Eric Cooper
Thanks. Yes, that one got me when I first started -- and took me a few days to realize what was happening. Btw, is there any way to inspect the graphics object to see the drawing commands that it has? --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Also make sure you

[flexcoders] Re: graphics object seems to degrade performance

2008-04-15 Thread Eric Cooper
, Eric Cooper wrote: I am wondering, though, if I would get this for free if I used DisplayObject and the built- in drag events. I am also wondering, if I am saving that much in terms of memory and speed, by rolling my own as it were. I would definetaly use Adobe's to start with, then until

[flexcoders] Re: graphics object seems to degrade performance

2008-04-15 Thread Eric Cooper
Thanks, Troy. I am using alpha currently, and think that I will be able to use various matrix manipulations when I get there. I am drawing to a Canvas. I think that I will be exploring bitmap caching shortly. But if it starts looking like I will need to manage my own dirty rectangles then I

[flexcoders] Re: graphics object seems to degrade performance

2008-04-15 Thread Eric Cooper
be made, albeit with modifier key). Thanks. -Eric --- In flexcoders@yahoogroups.com, Jon Bradley [EMAIL PROTECTED] wrote: On Apr 15, 2008, at 12:23 AM, Eric Cooper wrote: I am wondering, though, if I would get this for free if I used DisplayObject and the built- in drag events. I am

[flexcoders] Writing text directly to Graphics object.

2008-04-11 Thread Eric Cooper
Is there any way to write/draw text directly to a Graphics object? For that matter is there anyway to draw text (single line of static text) into a Canvas? I suspect that the answer is no, having searched and searched... but maybe there's some obscure utility class that I've overlooked.

[flexcoders] Re: Question about DisplayObject.hitTestPoint() and the shapeFlag

2008-04-07 Thread Eric Cooper
jon, thanks! my polygons are only triangles and quadrilaterals at this point, but your method works beautifully for concave quads. I did have to change one line (which appears a few times) in order to compile: w += 2 * ( p[ip].y p[i].y

[flexcoders] Re: Question about DisplayObject.hitTestPoint() and the shapeFlag

2008-04-04 Thread Eric Cooper
, a pointer to some discussion of this issue would be most helpful. (I googled for several hours before posting original question - without any good hits.) --- In flexcoders@yahoogroups.com, Eric Cooper [EMAIL PROTECTED] wrote: I am writing a simple geometry editor (i.e., user can create, move

[flexcoders] Question about DisplayObject.hitTestPoint() and the shapeFlag

2008-03-28 Thread Eric Cooper
I am writing a simple geometry editor (i.e., user can create, move and deform circles and polygons). I am *not* adding geometric shapes to display list. Instead, I am managing them myself. (This may be a bad idea, but doesn't really affect my overall question.) Here is a method that is