Re: [flexcoders] custom components destroy Flex design mode ....

2009-09-03 Thread Pan Troglodytes
I've run into similar situations before with 3rd party components. For some reason, some of them just utterly break the MXML design mode. I've also done it myself when subclassing the charting components. You just get a big rectangle with a big red X over the whole area. On Tue, Sep 1, 2009 at

[flexcoders] charting and/or grid replacements

2009-09-03 Thread Pan Troglodytes
Are there any 3rd-party charting and/or grid replacements in progress that anyone wants to talk about? I'm looking to move away from the AdvancedDataGrid and possibly also Flex charting and am wondering what might be on the horizon. Right now Adobe pretty much has the only game in town for these

Re: [flexcoders] Re: why does my MXML act differently than my AS?

2009-07-09 Thread Pan Troglodytes
Yes, that's what I was referring to in the first post about digging through the generated source. On Thu, Jul 9, 2009 at 5:42 AM, Tom Chiverton tom.chiver...@halliwells.comwrote: On Wednesday 08 Jul 2009, Pan Troglodytes wrote: For those interested: https://bugs.adobe.com/jira/browse/FB

Re: [flexcoders] Re: why does my MXML act differently than my AS?

2009-07-07 Thread Pan Troglodytes
@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: I'm torn on whether to submit this as a bug. I wish someone at adobe could step in and say well, that's not equivalent MXML because you forgot about __. On Thu, Jul 2, 2009 at 10:32 AM, valdhor

Re: [flexcoders] Re: why does my MXML act differently than my AS?

2009-07-03 Thread Pan Troglodytes
out why in the limited time I had to look at it. I am going to have to defer to someone more knowledgeable. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: No ideas on this one? On Wed, Jun 17, 2009 at 12:00 PM, Pan Troglodytes

Re: [flexcoders] Re: how can you make the icon in an AdvancedDataGridGroupItemRenderer accept clicks?

2009-07-02 Thread Pan Troglodytes
, you can extend AdvancedDataGridGroupItemRenderer for your renderer. Best of both worlds ;-) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: Well, the main reason I wouldn't want to write my own itemRenderer

[flexcoders] Re: why does my MXML act differently than my AS?

2009-07-02 Thread Pan Troglodytes
No ideas on this one? On Wed, Jun 17, 2009 at 12:00 PM, Pan Troglodytes chimpathe...@gmail.comwrote: I have a test program that, as far as I can tell, does the same thing using an MXML component and the equivalent actionscript. When I click on the button to execute the AS version, everything

Re: [flexcoders] Re: how can you make the icon in an AdvancedDataGridGroupItemRenderer accept clicks?

2009-06-30 Thread Pan Troglodytes
Class and implement iEventDispatcher but I have never tried it. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: No ideas on how to do this at all? On Tue, Jun 9, 2009 at 4:13 PM, Pan Troglodytes chimpathe...@...wrote: I've

[flexcoders] Re: how can you make the icon in an AdvancedDataGridGroupItemRenderer accept clicks?

2009-06-29 Thread Pan Troglodytes
No ideas on how to do this at all? On Tue, Jun 9, 2009 at 4:13 PM, Pan Troglodytes chimpathe...@gmail.comwrote: I've got a bit of a problem and haven't been able to figure it out. When using hierarchical views with ADG, I find that the icon can't be clicked on to select the row. I can't

[flexcoders] why does my MXML act differently than my AS?

2009-06-17 Thread Pan Troglodytes
I have a test program that, as far as I can tell, does the same thing using an MXML component and the equivalent actionscript. When I click on the button to execute the AS version, everything is fine. But when I click on the button to execute the MXML version, I get a layout flicker. It's bad

Re: [flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Pan Troglodytes
the popup into redrawing. -TH --- In flexcoders@yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: Okay, so given the following application: ?xml version=1.0 encoding=utf-8? Application xmlns=http://www.adobe.com/2006/mxml; Script ![CDATA[ private function addCategory

Re: [flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Pan Troglodytes
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: Thanks, Tim. Knew there must be something, just couldn't find it. I found this to be a good way to do it, as long as I'm not missing something: gr.validateSize(true); var verticalGap:Number

Re: [flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Pan Troglodytes
: verticalGap)); if (grid.localToGlobal(new Point(0, 0)).y grid.owner.localToGlobal(new Point(0, 0)).y) grid.y -= gr.measuredHeight + (isNaN(verticalGap) ? 0 : verticalGap); On Tue, Jun 16, 2009 at 10:38 AM, Pan Troglodytes chimpathe...@gmail.comwrote: C'mon, Tim, your posts help me loads of times

Re: [flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Pan Troglodytes
me with a problem that I was having with RowColorDataGrid and I was also able to use a tree with connector lines that you created. Just glad to return the favor. :) -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: C'mon, Tim

[flexcoders] how can I get a popupButton's popUp to resize while popped up?

2009-06-15 Thread Pan Troglodytes
Okay, so given the following application: ?xml version=1.0 encoding=utf-8? Application xmlns=http://www.adobe.com/2006/mxml; Script ![CDATA[ private function addCategory():void { var gi:GridItem; var gr:GridRow = new GridRow; gi = new GridItem;

[flexcoders] getting files in additional Source Paths to automatically recompile

2009-06-11 Thread Pan Troglodytes
I have a couple of external folders listed in my project's Flex Build Path-Source Path section. These folders are outside of my project hierarchy and contain some common files I share between several different projects. When I'm in my project and ctrl-click on an object in these files, it opens

Re: [flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-10 Thread Pan Troglodytes
= highlightedChange )] public function set highlighted( highlighted : Boolean ) : void { _highlighted = highlighted; dispatchEvent( new Event( highlightedChange ) ); } } } Pan Troglodytes wrote: 1) Yes, this works fine, for the display portion only. It doesn't address the actual problem of needing

Re: [flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-10 Thread Pan Troglodytes
%40yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: 1) Yes, this works fine, for the display portion only. It doesn't address the actual problem of needing to set a flag in the data that indicates it is the currently highlighted one, that flag being also used by other things that bind

Re: [flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-10 Thread Pan Troglodytes
was seeing the problem. On Wed, Jun 10, 2009 at 6:54 PM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: Yes, a mushroom indeed - well put! By the way, I found your posts about your fun

[flexcoders] how can you make the icon in an AdvancedDataGridGroupItemRenderer accept clicks?

2009-06-09 Thread Pan Troglodytes
I've got a bit of a problem and haven't been able to figure it out. When using hierarchical views with ADG, I find that the icon can't be clicked on to select the row. I can't figure out how to capture a click on the icon at all. ?xml version=1.0 encoding=utf-8? Application

Re: [flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-09 Thread Pan Troglodytes
this bound variable on every repaint of the cell is doomed to break the rollover highlight. On Tue, Jun 9, 2009 at 11:49 AM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: That was a good idea

Re: [flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-08 Thread Pan Troglodytes
); data.highlighted = adg.isItemHighlighted(data); } Not sure if this will work for your purposes, but it's worth a shot. -TH --- In flexcoders@yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: Yes. A gigantic 15 items. ;) I wouldn't have thought going through a list of 15 items would

Re: [flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-08 Thread Pan Troglodytes
reliably called for every highlighted row when the highlight leaves it. On Mon, Jun 8, 2009 at 3:46 PM, Pan Troglodytes chimpathe...@gmail.comwrote: That was a good idea and it does get rid of the arraycollection walking. But I get the SAME problem with the grid losing highlighting when I did

Re: [flexcoders] how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-05 Thread Pan Troglodytes
handler is scanning the entire arraycollection. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Pan Troglodytes *Sent:* Thursday, June 04

[flexcoders] how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-04 Thread Pan Troglodytes
I have the following example that is a very simplified form of what I need to do in my much larger program. The goal is to have a mouseover on a grid item set a variable in the data object. In the real program, this fires off some other code which makes that item visible and the others hidden,

Re: [flexcoders] Re: using as breaks data binding?

2009-05-13 Thread Pan Troglodytes
click=for each(var o:TestObject in d) { o.item1++; o.item2++; o.item3++ }/ /mx:Application If anyone thinks my theory is incorrect, please chime in. HTH Steve --- In flexcoders@yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: Well, I entered the two related issues

Re: [flexcoders] using as breaks data binding?

2009-05-12 Thread Pan Troglodytes
Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Pan Troglodytes *Sent:* Saturday, May 09, 2009 10:38 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders

Re: [flexcoders] Re: using as breaks data binding?

2009-05-12 Thread Pan Troglodytes
identifiers I have tried (Very small sample) gives the error as well. It's got me beat. Why would the posted code give an error at all? Why would y work and everything else not? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: I wonder

Re: [flexcoders] Re: using as breaks data binding?

2009-05-12 Thread Pan Troglodytes
. But someone weird and unexpected seems to be going on under the hood. On Tue, May 12, 2009 at 2:39 PM, Pan Troglodytes chimpathe...@gmail.comwrote: Thanks for giving me some confirmation. Now if we could just figure out what Alex/Adobe need to do to replicate our tests. The reason it doesn't give

[flexcoders] using as breaks data binding?

2009-05-09 Thread Pan Troglodytes
I've run across some peculiar behavior and I am trying to figure out if I should report it and if so, how exactly to explain it. Given these two bits of code: *TestObject.as:* package { public class TestObject { [Bindable] public var a:uint = 2; [Bindable] public var b:uint = 3;

Re: [flexcoders] using as breaks data binding?

2009-05-09 Thread Pan Troglodytes
that will ship as 3.4 Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Pan Troglodytes *Sent:* Friday, May 08, 2009 11:06 PM *To:* flexcoders

[flexcoders] where does AdvancedDataGridColumn.id come from?

2009-05-08 Thread Pan Troglodytes
This puzzles me a bit. There is no such property as id on AdvancedDataGridColumn or its ancestors. So why doesn't the compiler barf and give you an unknown property at compile time (it does at runtime)? Is this some kind of kludge in FB such that it always allows an element called id to be

Re: [flexcoders] where does AdvancedDataGridColumn.id come from?

2009-05-08 Thread Pan Troglodytes
MXML. http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_10.html See the second example on this page. Charles P. On Fri, May 8, 2009 at 4:01 PM, Pan Troglodytes chimpathe...@gmail.comwrote: This puzzles me a bit. There is no such property as id

Re: [flexcoders] for better performance, use as rather than just leaving an object as Object?

2009-05-06 Thread Pan Troglodytes
standpoint as the compiler will help you find misspellings and what not. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Pan

[flexcoders] for better performance, use as rather than just leaving an object as Object?

2009-05-04 Thread Pan Troglodytes
I was curious as to the difference between a few different ways of approaching the situation of an itemRenderer having a data property and deciding whether or not to use as to make all the type checking happy. So I tried some test code and found that it made a big difference whether you use as or

Re: [flexcoders] Re: ADG Code Completion Missing

2009-05-01 Thread Pan Troglodytes
. Steve --- In flexcoders@yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: Well, either I got confused before and though it was working when it was still broken, or it's more complicated. It's back to not working at all for me under 3.3.0 for any Advanced* classes n MXML

Re: [flexcoders] ADG Code Completion Missing

2009-04-29 Thread Pan Troglodytes
I had the exact same problem with 3.3.0. After switching it to 3.3.0, it wouldn't bring up code completion for either MXML or ActionScript on AdvancedDataGrid/AdvancedListBase/Advanced*. It would bring it up for the chart classes, though, which are also in the same SWC. Switching it back to

Re: [flexcoders] ADG Code Completion Missing

2009-04-29 Thread Pan Troglodytes
Well, either I got confused before and though it was working when it was still broken, or it's more complicated. It's back to not working at all for me under 3.3.0 for any Advanced* classes n MXML or ActionScript. On Wed, Apr 29, 2009 at 11:42 AM, Pan Troglodytes chimpathe...@gmail.comwrote

[flexcoders] very strange combobox problem when switching dataproviders

2009-02-05 Thread Pan Troglodytes
I'm running into something fairly perplexing. Read the following code and think of what you'd expect it to do when you click the change button. Then run it and click the change button. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical

Re: [flexcoders] Re: very strange combobox problem when switching dataproviders

2009-02-05 Thread Pan Troglodytes
and override the combobox collectionChangeHandler look for the reset kind and remove the listener at that point. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes chimpathe...@... wrote: I'm running into something fairly perplexing. Read the following code and think

[flexcoders] What determines a component's initial skin?

2009-01-21 Thread Pan Troglodytes
I've been dinking with extending PopUpButton and have run into something that really puzzles me - how does it know to load PopUpButtonSkin by default? There is no code that mentions it in PopUpButton. Is it somehow selected based on the class name? In my PopUpButton descendant, I want it to

Re: [flexcoders] Re: What determines a component's initial skin?

2009-01-21 Thread Pan Troglodytes
[mailto:flexcod...@yahoogroups.com] *On Behalf Of *Amy *Sent:* Wednesday, January 21, 2009 9:55 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: What determines a component's initial skin? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes chimpathe

[flexcoders] where is the FB Pro 3.0.2 datavisualization source?

2009-01-14 Thread Pan Troglodytes
I upgraded to 3.0.2 and seem to have a bit of an issue. The last time I've seen the datavisualization source distributed is in 3.0.0. Sometimes when I trace into SDK units (BubbleSeries.as at the moment), you can tell the debugger is going to a line from a different version of the file.

[flexcoders] Re: where is the FB Pro 3.0.2 datavisualization source?

2009-01-14 Thread Pan Troglodytes
\ChartBase.as:4216] Which is really odd, considering I don't have a C:\work folder. It looks like for some reason it's showing the Adobe developer's paths. On Thu, Jan 15, 2009 at 12:32 AM, Pan Troglodytes chimpathe...@gmail.comwrote: I upgraded to 3.0.2 and seem to have a bit of an issue

Re: [flexcoders] Re: where is the FB Pro 3.0.2 datavisualization source?

2009-01-14 Thread Pan Troglodytes
/flexdoc/2008/04/extracting_data_visualization.html Substitute 3.0.0 for 3.2.0 and you should be right. Took me a while to find this when I needed it - don't know why they don't just install it if Flex 3 Pro is detected, but anyway... 2009/1/15 Pan Troglodytes chimpathe...@gmail.comchimpathetic

[flexcoders] Strange error about declaration of style conflicting with unrelated class

2009-01-09 Thread Pan Troglodytes
I'm receiving a very peculiar error. I've boiled it down to a simple reproducible test. Given the following two files: GenericTest.mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ private var

[flexcoders] Anyone written a ComboBox that can take an AdvancedDataGrid as a dropdown?

2009-01-06 Thread Pan Troglodytes
I find myself in the position of really needing a ComboBox that can take an AdvancedDataGrid descendant in the dropdownFactory. Unfortunately, ComboBox is pretty hardcoded to use ListBase and AdvancedListBase does not inherit from it. Recreating a DataGrid version of my existing ADG descendant

[flexcoders] My frustrations with the Adobe Bug Report system

2008-12-19 Thread Pan Troglodytes
I've put off writing this for a while out of laziness. Going out of my way to report bugs is already sort of outside of the scope of what I should be working on, but I consider it very important for the quality of the product. And it helps that my bugs are typically answered and fixed. But

Re: [flexcoders] My frustrations with the Adobe Bug Report system

2008-12-19 Thread Pan Troglodytes
don't know that we can explain every features, we may need you to just make your best guess, but at least for projects we can see what we need to do. Best, Matt On 12/19/08 10:55 AM, Pan Troglodytes chimpathe...@gmail.comchimpathetic%40gmail.com wrote: I've put off writing this for a while

[flexcoders] Replacement Date class?

2008-12-02 Thread Pan Troglodytes
Now that the whole ECMAScript thing has blown over, Adobe is free of being quite so bound to it as a standard. They've expressed interest in doing some things that they previously shied away from because of divergence from the standard. Is anyone else really interested in ditching the Date

[flexcoders] any overhead for calling simple getters?

2008-12-02 Thread Pan Troglodytes
If I have this: private var _myvar:int; public function get myvar():int { return _myvar; } should I try to refer to it in other parts of the same class as _myvar, or is myvar equally efficient? In Delphi, you can define a property like: FMyVar: Integer; property MyVar:Integer read FMyVar;

Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug?

2008-11-19 Thread Pan Troglodytes
this up to just providing a user-unfriendly test case. Thanks Maciek and Tom. On Wed, Nov 19, 2008 at 3:49 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 18 Nov 2008, Pan Troglodytes wrote: Does anyone know if they read bugs that say resolved but have been updated? Should I clone

[flexcoders] Can you spare 5 minutes to reproduce this 12 line bug?

2008-11-18 Thread Pan Troglodytes
I had a bug marked cannot reproduce, even though it's reproducible with a 12 line application for me. It might help if a few others here will give it a shot: http://bugs.adobe.com/jira/browse/FLEXDMV-1908 ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug?

2008-11-18 Thread Pan Troglodytes
Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Pan Troglodytes [EMAIL PROTECTED] chimpathetic%40gmail.com Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com To: flexcoders flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders

Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug?

2008-11-18 Thread Pan Troglodytes
on chart, move mouse again (app traces out null) I've added a comment to the ticket. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Pan Troglodytes [EMAIL PROTECTED] chimpathetic%40gmail.com Reply-To: flexcoders@yahoogroups.com flexcoders

[flexcoders] need some help with an effect I made and its glitches

2008-11-14 Thread Pan Troglodytes
I'm fairly new to making effects, and it's a miracle I have any hair left. I have created the following effect so that I can transition between various states of a component. The problem is that I want to reuse the same component and not make a new one for every different screen. So I'm making a

[flexcoders] threading, forcing code to run in the main thread, URLLoader, etc.

2008-11-12 Thread Pan Troglodytes
I've read that Flash Player runs flex code single threaded, with the exception of network calls and rendering calls. So if I have a URLLoader and I add an event to it for COMPLETE, does that event handler code get run in the main thread, or in a separate networking thread? If it's a separate

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

2008-10-26 Thread Pan Troglodytes
You might find this informative: http://www.f-in-box.com/forum/viewtopic.php?t=509sid=43cc9bffc200ae813c56c988b3b777ad The examples are in Delphi for the f-in-box component, but the explanations of ExternalInterface invoke strings might be helpful. On Wed, Oct 15, 2008 at 4:16 PM, Eric Cooper

Re: [flexcoders] what is a String? (default encoding question)

2008-10-21 Thread Pan Troglodytes
the people who can actually see that code. Always frustrating when I bump up against the wall where open source becomes closed. On Tue, Oct 21, 2008 at 6:09 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 17 Oct 2008, Pan Troglodytes wrote: The reason I ask is because I'm reading some

Re: [flexcoders] what is a String? (default encoding question)

2008-10-18 Thread Pan Troglodytes
that, and it might change in the future. I suggest that you do some timing tests to see what's fastest. - Gordon *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Pan Troglodytes *Sent:* Friday, October 17, 2008 12:49 PM *To:* flexcoders *Subject:* [flexcoders] what

[flexcoders] what is a String? (default encoding question)

2008-10-17 Thread Pan Troglodytes
How is a string represented internally in Flex? It never actually says it in the help for String. Is it UTF-8? I think this because because mxml uses utf-8 as the encoding in the ?xml directive, ByteArray seems to treat utf-8 specially, and ByteArray.readMultiByte says the return value is a

Re: [flexcoders] force SeriesInterpolate on BubbleSeries to preserve bubble order?

2008-10-13 Thread Pan Troglodytes
. *I also attached a small graphic explication in order.pdf (order matters) file. *I hope that is what you want. Have a nice day. Regards, Cosmin On Tue, Sep 23, 2008 at 12:01 AM, Pan Troglodytes [EMAIL PROTECTED]wrote: Following is a simplified example of what

[flexcoders] function to get a color uint value from a color name string?

2008-10-13 Thread Pan Troglodytes
Is there a function somewhere that takes something like red as input and returns 0xFF? I've looked all over in the docs and can't find it. Thanks. -- Jason

Re: [flexcoders] function to get a color uint value from a color name string?

2008-10-13 Thread Pan Troglodytes
:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Pan Troglodytes *Sent:* Monday, October 13, 2008 12:50 PM *To:* flexcoders *Subject:* [flexcoders] function to get a color uint value from a color name string? Is there a function somewhere that takes something like red

[flexcoders] using callLater with setter?

2008-10-10 Thread Pan Troglodytes
Is there some way to use callLater to set a property that has a setter? So far, all I can think of is to create a dummy function that does the setting and pass it in the callLater: private function setSelectedChild(viewStack:ViewStack, newChild:Container):void { viewStack.selectedChild =

Re: [flexcoders] using callLater with setter?

2008-10-10 Thread Pan Troglodytes
PROTECTED]wrote: Hi, This works, I tested it; callLater(function (stack:ViewStack, container:Container):void { stack.selectedChild = container; }, [viewStack, someBox]); Mike On Fri, Oct 10, 2008 at 12:10 PM, Pan Troglodytes [EMAIL PROTECTED]wrote: Is there some way to use

[flexcoders] any way to integrate 3rd-party help into FB?

2008-10-06 Thread Pan Troglodytes
I'm been hunting around to no avail on this question. I have created help for my components using ASDOC. What's the recommended procedure to get that help to show up in FB? Is there one? Thanks. -- Jason

Re: [flexcoders] any way to integrate 3rd-party help into FB?

2008-10-06 Thread Pan Troglodytes
using the help extension point (in the PDE docs). This might be worthy of a blog post someday. :) Mike On Mon, Oct 6, 2008 at 12:15 PM, Pan Troglodytes [EMAIL PROTECTED]wrote: I'm been hunting around to no avail on this question. I have created help for my components using ASDOC

[flexcoders] force SeriesInterpolate on BubbleSeries to preserve bubble order?

2008-09-22 Thread Pan Troglodytes
Following is a simplified example of what I'm running into. Basically, BubbleSeries doesn't preserve the order of the bubbles when you switch the dataprovider. Run the following program and click the left and right buttons. ?xml version=1.0 encoding=utf-8? mx:Application

[flexcoders] possible to get bytes from a pre-existing Image?

2008-09-17 Thread Pan Troglodytes
This question is really part of a larger ball of stuff I'm trying to untangle. Basically, the first part is that if I have this: [Embed(source=logo.png)] public var logo:Class; ... var img:Image = new Image; img.source = logo; Is there any way to get a ByteArray from img that can be fed to

Re: [flexcoders] possible to get bytes from a pre-existing Image?

2008-09-17 Thread Pan Troglodytes
be at least along the lines of what you want to know, apologies in advance if I've got the wrong end of the stick. -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Pan Troglodytes

Re: [flexcoders] possible to get bytes from a pre-existing Image?

2008-09-17 Thread Pan Troglodytes
, apologies in advance if I've got the wrong end of the stick. -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Pan Troglodytes Sent: 17 September 2008 22:26 To: flexcoders Subject

Re: [flexcoders] possible to get bytes from a pre-existing Image?

2008-09-17 Thread Pan Troglodytes
@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Pan Troglodytes *Sent:* Wednesday, September 17, 2008 6:25 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] possible to get bytes from a pre-existing Image? Alex - did part of your reply get chopped off? I'm not quite

Re: [flexcoders] Issue with runtime adding of axis labels in DateTimeAxis

2008-09-16 Thread Pan Troglodytes
. --- On Mon, 15/9/08, Pan Troglodytes [EMAIL PROTECTED]chimpathetic%40gmail.com wrote: From: Pan Troglodytes [EMAIL PROTECTED] chimpathetic%40gmail.com Subject: Re: [flexcoders] Issue with runtime adding of axis labels in DateTimeAxis To: flexcoders@yahoogroups.com flexcoders

Re: [flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread Pan Troglodytes
the AdvancedDataGrid's renderer? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes [EMAIL PROTECTED] wrote: Check out the help for AdvancedDataGridHeaderRenderer. That's what the grid is using by default. It should show all the styles there. The following

Re: [flexcoders] AdvancedDataGrid: Exclude last row from sorting

2008-09-16 Thread Pan Troglodytes
, and any further comments appreciated! Dan. Pan Troglodytes wrote: Sorry Dan, my brain must not have been fully in gear. You do need to check the columns sort order: if (obj1.summaryRow) return col1.sortDescending ? -1 : 1 else if (obj2.summaryRow) return col1.sortDescending ? 1 : -1

[flexcoders] any way to use embedded image in htmlText?

2008-09-16 Thread Pan Troglodytes
The answer to this is probably going to be no, but I figure it's worth a shot. I have a number of images embedded into my flash application. I would like to allow the user to type some html that would include an img tag that references those images. That would then get applied to a

Re: [flexcoders] Drag and Drop question

2008-09-16 Thread Pan Troglodytes
I believe you're going to need to handle the drop events yourself and not use the dropEnabled=true setting. When you do that, by default drop is denied and you have to tell it to allow it, like in the dragEnter event. For example: private function dragEnterHandler(e:DragEvent):void {

Re: [flexcoders] Overriding parent's style in custom component

2008-09-16 Thread Pan Troglodytes
This might be kind of a hack, but you could override setStyle, catch the backgroundcolor style being set and not call the super for it. On Tue, Sep 16, 2008 at 9:52 AM, aaronius9er9er [EMAIL PROTECTED]wrote: Hi all, I'm creating a custom component which extends Container. I would like to

Re: [flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread Pan Troglodytes
%40yahoogroups.com, Pan Troglodytes [EMAIL PROTECTED] wrote: Yeah, I think your could subclass it and override updateDisplayList for what you're needing. Check this out and see if it does what you need: package nes { import mx.controls.advancedDataGridClasses.AdvancedDataGridHeaderRenderer

Re: [flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread Pan Troglodytes
verticalGridLines, alternatingItemColors and sortExpertMode. Is there any way to avoid that? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes [EMAIL PROTECTED] wrote: I THINK I know what you're talking about. You mean the grey line that separates each column, right? What

Re: [flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread Pan Troglodytes
flexcoders%40yahoogroups.com, Pan Troglodytes [EMAIL PROTECTED] wrote: Did you override just the headerSeparatorSkin, or go farther? On Tue, Sep 16, 2008 at 2:29 PM, whatabrain [EMAIL PROTECTED] wrote: Thanks. That's exactly what I was looking for, and it fixed my problem

Re: [flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread Pan Troglodytes
subclass StandardTreeGrid and override headerSeparatorSkin there, I lose a bunch of ADG attributes. Any idea how I can fix this? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan Troglodytes [EMAIL PROTECTED] wrote: Did you override just the headerSeparatorSkin, or go

Re: [flexcoders] Property isLoading in class Image?

2008-09-15 Thread Pan Troglodytes
I don't think so, but there is percentLoaded, bytesTotal and bytesLoaded. I think those may get you what you need. On Mon, Sep 15, 2008 at 8:18 AM, João [EMAIL PROTECTED] wrote: Hi, I need to know on a specific moment if an instance of class Image is loading content or not. Is there any

Re: [flexcoders] Issue with runtime adding of axis labels in DateTimeAxis

2008-09-15 Thread Pan Troglodytes
This may be caused by a lack of binding in your data objects. Can you post an short, simple example that replicates your issue? On Mon, Sep 15, 2008 at 4:21 AM, arajendr [EMAIL PROTECTED] wrote: Hi All, I've been facing this problem for a while. My application gets new data every 5 mins

Re: [flexcoders] AdvancedDataGrid: Exclude last row from sorting

2008-09-15 Thread Pan Troglodytes
row stays as the last row. However if the user sorts that column again then the sort order is reversed, and the summary row moves to the first row. Am I missing a simple way to resolve this? Thanks again, Dan. Pan Troglodytes wrote: Yes, it's fairly easy to do with a custom sort

Re: [flexcoders] Styling AdvancedDataGrid's header

2008-09-15 Thread Pan Troglodytes
Check out the help for AdvancedDataGridHeaderRenderer. That's what the grid is using by default. It should show all the styles there. The following code worked as expected: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script

Re: [flexcoders] Copying graphs to the clipboard

2008-09-13 Thread Pan Troglodytes
As an AIR app, it should definitely be much easier. With it, you have access to flash.desktop.Clipboard. When flash is running in the browser, it's subject to a lot more restrictions. You can call System.setClipboard to copy a string to the clipboard, but that's pretty much it. Different

Re: [flexcoders] AdvancedDataGrid: Exclude last row from sorting

2008-09-13 Thread Pan Troglodytes
Yes, it's fairly easy to do with a custom sort function. Here is an example function that assumes you set a summaryRow property on the last row object: private function compareWithSummary(obj1:Object, obj2:Object):int { if (obj1.summaryRow) return -1 else if (obj2.summaryRow)

Re: [flexcoders] Not able to capture event dispached from custom state override - what's wrong?

2008-09-13 Thread Pan Troglodytes
You need to register your event handler with the object actually dispatching events. t:TestOverride id=mytest/ ... mytest.addEventListener(testEvent, handleIt) On Wed, Sep 10, 2008 at 1:39 PM, Dan [EMAIL PROTECTED] wrote: I have a class TestOverride that implements IOverride. This class is

Re: [flexcoders] Browser Bug ? Display 2 scrollbars

2008-09-13 Thread Pan Troglodytes
It would probably help a lot if you can post a small test app the shows what you're talking about. Keep it as simple as possible to illustrate your problem. But my first instinct is that it's kind of an age-old problem in programming with scrollbars. Say you have an element that is 500 pixels

Re: [flexcoders] How to do a State Change Area Chart with Time Series State Change Source Data?

2008-09-13 Thread Pan Troglodytes
This shouldn't really be hard at all. Have you actually tried it and are running into difficulties? You need to make sure your x values are in the format that Date() likes, and if using a DateTimeAxis doesn't work, you can use a LinearAxis and a custom axis label function. If you want a

Re: [flexcoders] Bug ? IE FireFox Menubar

2008-09-13 Thread Pan Troglodytes
I believe you're just running into how different browsers handle embedded flash objects. Once you click on a flash app, firefox generally lets it have every keystroke after that until you actually click somewhere outside it. IE is less permissive and continues to listen for keystrokes even when

Re: [flexcoders] Custom vertical axis line on plot chart

2008-09-13 Thread Pan Troglodytes
There are several ways you could go about doing it, though nothing built in to support it. One way would be to make your data so that 30 is actually 0 in the underlying data. You'd write an axis label function that would add 30 to the values for labelling. If you wanted datahints, you'd have to

Re: [flexcoders] Date field in either arraycollection or datagrid

2008-09-13 Thread Pan Troglodytes
For #2, look at ArrayCollection.sort. You can create a sort object and use a slightly modified version of your date_sortCompareFunc for the compareFunction of the Sort object. I've never really found a good way to do #1, so I'd be interested in that if you or anyone else finds a way. On Thu,

Re: [flexcoders] Flex Charting Issue with Data Effects

2008-09-13 Thread Pan Troglodytes
Okay, I think I figured it out. I had the same problem in the 3.1 SDK. You were definitely being stumped because you didn't have the Pro source code. I went ahead and created a bug and entered the reason it's broken and how you can go about working around it. If you vote for the issue, there's

Re: [flexcoders] Flex Charting Issue with Data Effects

2008-09-13 Thread Pan Troglodytes
Ooops, the bug report is at: https://bugs.adobe.com/jira/browse/FLEXDMV-1879 On Sat, Sep 13, 2008 at 2:12 PM, Pan Troglodytes [EMAIL PROTECTED]wrote: Okay, I think I figured it out. I had the same problem in the 3.1 SDK. You were definitely being stumped because you didn't have the Pro source

Re: [flexcoders] Getting a the supplied DisplayObject must be a child of the caller error

2008-09-13 Thread Pan Troglodytes
The problem is your line: addChild(win); Omit that and you should stop getting that error. On Wed, Sep 3, 2008 at 4:26 PM, lynnkuh [EMAIL PROTECTED] wrote: I'm using the Flex MDI Explorer and instead of using flexmdi:MDICanvas id=mdiCanvas horizontalScrollPolicy=off

Re: [flexcoders] tree control child node color

2008-09-13 Thread Pan Troglodytes
First off, which menu do you mean at the website? I only saw a menu at the top, and all the nodes were all one color as far as I can tell. But if you just wanted to specific a lit of colors for different levels, I believe the depthColors style of Tree would be what you wanted. On Tue, Sep 2,

Re: [flexcoders] circleItemRenderer border color

2008-09-13 Thread Pan Troglodytes
You may have already figured this out, but just in case - you need to use the stroke style of the LineSeries: mx:series mx:LineSeries id=series yField=@open form=curve displayName=Open stroke={circleStroke} / /mx:series /mx:LineChart mx:Stroke id=circleStroke color=0x00FF00/ On Thu, Aug 28,

  1   2   3   4   >