[flexcoders] Building both with and without -use-network

2010-07-27 Thread whatabrain
I need to build two versions of a Flex app, one for the local filesystem and one to be used in a web site. I recently learned that the only way to do that is to enable and disable the -use-network compiler argument. I'm using Flex Builder 3. Is there any way to automate the building of both

[flexcoders] Firefox: Multi-select not working. Anyone have a work-around?

2009-04-03 Thread whatabrain
It's a well-known issue that you can't multi-select in AdvancedDataGrid in Firefox, if you have wmode=transparent. This site: http://www.johanvanmol.org/content/view/47/41/ gives a nice general work-around for Flash, but after spending hours wading through the AdvancedDataGrid code, I haven't

[flexcoders] Having trouble with qtp automation

2009-01-23 Thread whatabrain
My app contains a subclassed AdvancedDataGrid, with a few custom itemRenderers and headerRenderers. When I look at it using qtp, I can see the AdvancedDataGrid, but I can't reach into individual cells. The only object qtp detects there is Flash itself -- it doesn't even see the ADG. Between

[flexcoders] Re: Is there a licence for the Flex framwork?

2008-11-17 Thread whatabrain
] wrote: I mean, what are the business requirements that would lead someone to need to distribute the framework? On Fri, Nov 14, 2008 at 2:08 PM, whatabrain [EMAIL PROTECTED] wrote: When it's linked dynamically. There's an option to build the framework into something like

[flexcoders] Is there a licence for the Flex framwork?

2008-11-14 Thread whatabrain
I'm using dynamic linking, and distributing framework_3.0.0.477.swf with my web control. My company has been desperately searching around for a licence for this file, but can't find one. In fact, they can't even find a licence for the statically-linked version. I know it sounds silly, but some

[flexcoders] Re: Is there a licence for the Flex framwork?

2008-11-14 Thread whatabrain
On 11/14/08 8:28 AM, whatabrain [EMAIL PROTECTED] wrote: I'm using dynamic linking, and distributing framework_3.0.0.477.swf with my web control. My company has been desperately searching around for a licence for this file, but can't find one. In fact, they can't even find a licence

[flexcoders] Re: Is there a licence for the Flex framwork?

2008-11-14 Thread whatabrain
? On Fri, Nov 14, 2008 at 12:01 PM, whatabrain [EMAIL PROTECTED] wrote: If this is covered under the SDK licence, then distributing the framework gives Adobe the right to audit us. If that's the case, we may have to stop using Flex altogether. --- In flexcoders@yahoogroups.com, Matt

[flexcoders] Re: Replacing ADG dataProvider

2008-10-28 Thread whatabrain
--- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: How do you replace the dataProvider of an AdvancedDataGrid? I'm reorganizing the data, and, for efficiency, I'd like to do so in an ArrayCollection that's not linked to the ADG, and then replace the dataProvider. I've had

[flexcoders] Replacing ADG dataProvider

2008-10-27 Thread whatabrain
How do you replace the dataProvider of an AdvancedDataGrid? I'm reorganizing the data, and, for efficiency, I'd like to do so in an ArrayCollection that's not linked to the ADG, and then replace the dataProvider. I've had a lot of trouble getting this to work. First I tried the obvious (the

[flexcoders] Re: showDataTips on AdvancedDataGrid column gives tooltip to column header

2008-09-17 Thread whatabrain
which prevents this behavior. HTH, Ryan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Tuesday, September 16, 2008 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] showDataTips on AdvancedDataGrid

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-17 Thread whatabrain
I mean sortExpertMode=true. :) False is the default. --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Another detail -- putting the skin on the first subclass of ADG fixes the problem with verticalGridLines and alternatingItemColors, but it still breaks

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-17 Thread whatabrain
Oh, never mind that sortExpertMode bit. It looks like it was working fine. I just didn't realize that the only visual difference between true and false is the horizontal line before the 1. --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Another detail -- putting

[flexcoders] Changing flex app background color

2008-09-17 Thread whatabrain
How do I make the background color of my flex app match the color of the HTML page behind it? It seems that no matter what I do (short of setting background color on mx:Application), I get the default blue- gray background. I've tried the following: 1) Using the bgcolor parameter and

[flexcoders] Tooltips with word-wrap

2008-09-17 Thread whatabrain
I'm working with a very narrow app, so tooltips are sometimes wider than the app. How do I add word-wrap to tooltips?

[flexcoders] Re: Tooltips with word-wrap

2008-09-17 Thread whatabrain
@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: I'm working with a very narrow app, so tooltips are sometimes wider than the app. How do I add word-wrap to tooltips?

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread whatabrain
/mx:headerRenderer /mx:AdvancedDataGridColumn /mx:columns /mx:AdvancedDataGrid /mx:Application On Mon, Sep 15, 2008 at 4:48 PM, whatabrain [EMAIL PROTECTED] wrote: Thanks! That fixed most of my problems, and could fix my sort arrow problem when I get

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread whatabrain
another skin you could replace to get rid of that if it's a problem. On Tue, Sep 16, 2008 at 1:10 PM, whatabrain [EMAIL PROTECTED] wrote: That's a little closer than what I was trying (adding a Shape to the list of children), but it still has one problem: The column separator pixels break

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread whatabrain
, 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. However, overriding the skin also overrode lots of ADG settings, like verticalGridLines, alternatingItemColors

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread whatabrain
, 2008 at 3:24 PM, whatabrain [EMAIL PROTECTED] wrote: While trying to answer your question, I found out what was causing the problem, but I'm still not sure why. I have a class called StandardTreeGrid, which subclasses ADG. It's in StandardTreeGrid that I override things like

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread whatabrain
Another detail -- putting the skin on the first subclass of ADG fixes the problem with verticalGridLines and alternatingItemColors, but it still breaks sortExpertMode=false. --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Yes, that's what I meant. And it looks

[flexcoders] showDataTips on AdvancedDataGrid column gives tooltip to column header

2008-09-16 Thread whatabrain
I have a column defined like this: mx:AdvancedDataGridColumn dataField=dataName showDataTips=true dataTipField=tipData headerText=myText/ When the grid renders, the header is correctly labeled myText, and the items under the header have their proper tooltips that reference tipData. However,

[flexcoders] Styling AdvancedDataGrid's header

2008-09-15 Thread whatabrain
I'm having trouble getting my AdvancedDataGrid's header to look like I want, and I can't seem to find any reference for what styles are allowed in the headerStyleName class. Worse, I've found that some styles (like headerColors) can only appear in the table body's style. Here are the things

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-15 Thread whatabrain
mx:AdvancedDataGridHeaderRenderer horizontalAlign=right/ /mx:Component /mx:headerRenderer /mx:AdvancedDataGridColumn /mx:columns /mx:AdvancedDataGrid /mx:Application On Mon, Sep 15, 2008 at 1:12 PM, whatabrain [EMAIL PROTECTED] wrote: I'm having trouble getting my

[flexcoders] Re: Hiding a row in an AdvancedDataGrid

2008-09-08 Thread whatabrain
It turns out that filtering out the parent node hides all the children too, so I guess this isn't what I want after all. --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: Calling refresh() did nothing. Note

[flexcoders] ArrayCollection.refresh breaks scrollbar in ADG

2008-09-08 Thread whatabrain
1) I call disableAutoUpdate() on an ADG's dataProvider (an ArrayCollection added as mx:HierarchicalData). 2) I add a thousand items to the grid. 3a) If I now call items.enableAutoUpdate(), things work fine, but the refresh takes a really long time, because a thousand events are fired. There's

[flexcoders] Re: Hiding a row in an AdvancedDataGrid

2008-09-05 Thread whatabrain
and a dataProvider item. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Thursday, September 04, 2008 8:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hiding a row in an AdvancedDataGrid

[flexcoders] Re: Hiding a row in an AdvancedDataGrid

2008-09-05 Thread whatabrain
--- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: When I try this, the filter function isn't called for top-level items. It's called for all child nodes in the dataProvider, but not for the parent node. Any idea why this might be, or do you need a code sample

[flexcoders] Re: Hiding a row in an AdvancedDataGrid

2008-09-05 Thread whatabrain
. --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: and both are called after the filter is defined Are you calling ArrayCollection.refresh() after you finish adding the parent and children objects? -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote

[flexcoders] Re: Hiding a row in an AdvancedDataGrid

2008-09-05 Thread whatabrain
that as the DataProvider. But, give refresh a try first. -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: No, I never call refresh(). Here's the sequence: 1) Set the filter function. 2) Add a parent object [filter function is not called] 3) Add a child object [filter

[flexcoders] Help with runtime shared libraries

2008-09-04 Thread whatabrain
I made the flex framework into an RSL, and I put both the swf and swz versions in servername.com/subdir/. This is the same location where the Flex app itself is located. Then I load the page, using the latest version of Flash 9. I get the following error: Error #2032: Steam Error. URL:

[flexcoders] Re: Horrible performance problems...Need some ideas on improving

2008-09-04 Thread whatabrain
This way might work too. It uses less code, and is a little more transparent to upgrades of the Flex framework: private var _blockValidateNow:Boolean = false; override protected function updateDisplayOfItemRenderer (r:IListItemRenderer):void { _blockValidateNow = true;

[flexcoders] Re: Horrible performance problems...Need some ideas on improving

2008-09-04 Thread whatabrain
One of your problems might be that you're using a grouping grid. I tested an ADG with 5,000 rows, and the grouping version took a huge amount of time to render, while the non-grouping version took just four seconds. --- In flexcoders@yahoogroups.com, Adrian Williams [EMAIL PROTECTED] wrote:

[flexcoders] Re: Help with runtime shared libraries

2008-09-04 Thread whatabrain
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Thursday, September 04, 2008 2:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help with runtime shared libraries I made the flex framework into an RSL, and I put both the swf and swz versions

[flexcoders] Re: Horrible performance problems...Need some ideas on improving

2008-09-04 Thread whatabrain
have similar results, then the user groups them together in a common group and will want to be able to see these groups as a subset of the whole dataset. Adrian whatabrain wrote: One of your problems might be that you're using a grouping grid. I tested an ADG with 5,000 rows

[flexcoders] Hiding a row in an AdvancedDataGrid

2008-09-04 Thread whatabrain
How do you hide a row in an AdvancedDataGrid? I can't find any method that lets you get a row by index or item.

[flexcoders] Detecting new flash version without a new browser instance

2008-09-03 Thread whatabrain
The flash installer (playerProductInstall.swf) tries to reload the container page in a new Explorer window when the installation is complete. Today, I found out why they do this, and I was wondering if anyone knows of a work-around... My first idea was this: If a new version is required, pop

[flexcoders] playerProductInstall doesn't show up in tiny window. Can I change that?

2008-08-27 Thread whatabrain
I've created a flex app that's 154x150. If the user doesn't have the right version of Flash, playerProductInstall.swf gets loaded. The problem is, if the Adobe Flash Player Update popup doesn't fit in the client area, it isn't drawn at all. You just get a blank area. I've determined that the

[flexcoders] Re: My itemRenderer is cancelling wordWrap setting on AdvancedDataGridColumn

2008-08-13 Thread whatabrain
. See past threads for how to do that. Also, that makes a heavy weight renderer. My recommendation is to copy DataGridItemRenderer and remove the datatip code. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain

[flexcoders] Getting the clicked column index in AdvancedDataGrid (including invisible)

2008-08-13 Thread whatabrain
I have an AdvancedDataGrid, where the first column has visible=false. When I click on the second column, the event calls it column 0, even though it should be column 1. How do I get the actual column index? I need this because in my application, it's not completely obvious at any given time

[flexcoders] Re: Getting the clicked column index in AdvancedDataGrid (including invisible)

2008-08-13 Thread whatabrain
Oh yeah. I just remembered my real problem, which looks like a bug in flex. ListEvent.columnIndex ignores invisible columns. So if column 0 is invisible, then column 1 will have an index of 0. However, AdvancedDataGrid.columns knows about invisible columns. Is there any way to fix this, other

[flexcoders] Re: My itemRenderer is cancelling wordWrap... (derailed discussion)

2008-08-13 Thread whatabrain
item usually selects it. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Which os? Flex is multi-platform. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Wednesday, August 13, 2008 8

[flexcoders] Re: My itemRenderer is cancelling wordWrap setting on AdvancedDataGridColumn

2008-08-13 Thread whatabrain
for how to do that. Also, that makes a heavy weight renderer. My recommendation is to copy DataGridItemRenderer and remove the datatip code. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Tuesday

[flexcoders] My itemRenderer is cancelling wordWrap setting on AdvancedDataGridColumn

2008-08-12 Thread whatabrain
I want an AdvancedDataGridColumn to have word wrap, soI set the wordWrap attribute to true. The column contains an itemRenderer, which renders an mx:Label, which contains the actual text. But that text doesn't wrap. mx:AdvancedDataGridColumn wordWrap=true mx:itemRenderer mx:Component mx:Label

[flexcoders] How do I show only part of an image?

2008-08-05 Thread whatabrain
Let's say I have a 64x64 image, but I only want to display one 16x16 section of it. How would I do this? I tried playing with img.transform.pixelBounds.offset(), but it didn't do anything. mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;

[flexcoders] Re: How do I show only part of an image?

2008-08-05 Thread whatabrain
@yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: are you able to use the mask? --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: Let's say I have a 64x64 image, but I only want to display one 16x16 section of it. How would I do this? I tried playing

[flexcoders] Is there a way to bind the open property of a node in AdvancedDataGrid?

2008-08-04 Thread whatabrain
I would to change a boolean variable somewhere, and have AdvancedDataGrid expand or collapse a node as a side-effect. Is there a way to do this?

[flexcoders] Flex class inherritance problem

2008-08-04 Thread whatabrain
I create ClassA that extended Object. Inside, I declared some static variables. No problem. Then I create ClassB that extends ClassA, and I give it some static variables. I get the following error: 1119: Access of possibly undefined property staticEventDispatcher through a reference with

[flexcoders] Re: Flex class inherritance problem

2008-08-04 Thread whatabrain
. The question Shouldn't a grandchild of Object have the same properties as a child of Object? is unlikely to get you anything resembling useful help. -Josh On Tue, Aug 5, 2008 at 8:05 AM, whatabrain [EMAIL PROTECTED] wrote: I create ClassA that extended Object. Inside, I declared some static

[flexcoders] Re: How to temporarily stop a dataProvider from updating UI

2008-08-01 Thread whatabrain
PROTECTED] *On Behalf Of *whatabrain *Sent:* Thursday, July 31, 2008 3:23 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] How to temporarily stop a dataProvider from updating UI I've found that adding a lot of rows (1000+) to an AdvancedDataGrid can be quite slow

[flexcoders] Re: How to temporarily stop a dataProvider from updating UI

2008-08-01 Thread whatabrain
Huh. I just noticed that when I comment out the line that calls enableAutoUpdate(), auto-update still happens. This tells me I'm doing something wrong. Any ideas? --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Replacing the dataProvider isn't the best option for my

[flexcoders] Re: How to temporarily stop a dataProvider from updating UI

2008-08-01 Thread whatabrain
of the AdvancedDataGrid's current scroll area. If I then collapse and expand the root, I see all the rows. If I do enable auto-update later on the child, the rows get drawn, but it takes even longer than without this trick (14 seconds instead of 8). --- In flexcoders@yahoogroups.com, whatabrain

[flexcoders] Re: How to temporarily stop a dataProvider from updating UI

2008-08-01 Thread whatabrain
is created until I collapse and expand the parent node. --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Sorry for cluttering the group... I found one more detail. If, instead of disabling auto-update on the root node, I do it on the first (and currently only) child node

[flexcoders] Re: How to temporarily stop a dataProvider from updating UI

2008-08-01 Thread whatabrain
the appropriate change event, but I'm not sure all of those code paths have been exercised. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Friday, August 01, 2008 1:29 PM To: flexcoders@yahoogroups.com Subject

[flexcoders] Re: Detecting a click on an empty part of AdvancedDataGrid

2008-07-31 Thread whatabrain
--- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: I have an AdvancedDataGrid which has a few rows, and lots of empty space. When I click on the empty space, I want all the rows to be deselected. How do I detect that I've clicked in an empty space? I tried using

[flexcoders] Re: Detecting a click on an empty part of AdvancedDataGrid

2008-07-31 Thread whatabrain
Also, when I change focus to another window and then back to the flex app, mouseFocusChange stops firing. It never fires again after that. --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Thanks. That's very close to what I want. However, this method disables multiple

[flexcoders] Re: Detecting a click on an empty part of AdvancedDataGrid - SOLUTION

2008-07-31 Thread whatabrain
{ if (m_processingItemClick) m_processingItemClick = false; else grid.selectedIndex = -1; } --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Also, when I change focus to another window and then back to the flex app, mouseFocusChange stops firing. It never fires again after

[flexcoders] Adding parameters to a control's definition

2008-07-31 Thread whatabrain
If I extend a control, how do I allow new parameters in the instance's mxml definition? For example, how would I make this possible: my::MyCustomDataGrid myCustomEvent=doStuff(event) myCustomParam=true/

[flexcoders] How to temporarily stop a dataProvider from updating UI

2008-07-31 Thread whatabrain
I've found that adding a lot of rows (1000+) to an AdvancedDataGrid can be quite slow, if the rows happen to be visible (in an open node of the tree). I don't know why this is the case, especially since it's not the case in a regular DataGrid, but I'd like to work around it. So how can I tell

[flexcoders] Re: Programmatically select items in AdvancedDataGrid

2008-07-30 Thread whatabrain
, whatabrain junk1@ wrote: Another old question, I'm sure, but I can't find an answer anywhere on the web. How do I cause a row to be selected in an AdvancedDataGrid? Basically, when a top-level element is clicked, I want all of its child elements to be selected.

[flexcoders] Re: Programmatically select items in AdvancedDataGrid

2008-07-30 Thread whatabrain
mySelection:Array = [2,4,6]; adg.selectedINdices = mySelection; hth julio --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: Sorry. I missed a detail... I tried to do: grid.selectedItems.push(o). It did not cause the item to be selected. --- In flexcoders

[flexcoders] Re: Programmatically select items in AdvancedDataGrid

2008-07-30 Thread whatabrain
Oops. I used grid.selectedItems[x] instead of grid.selectedItems[idx]. I don't know why x exists. So the conclusion is: Overwriting selectedItems works. Pushing elements onto selectedItems does not. --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: I tried your

[flexcoders] Detecting a click on an empty part of AdvancedDataGrid

2008-07-30 Thread whatabrain
I have an AdvancedDataGrid which has a few rows, and lots of empty space. When I click on the empty space, I want all the rows to be deselected. How do I detect that I've clicked in an empty space? I tried using grid.getObjectsUnderPoint() in the click event, but the results aren't very

[flexcoders] Programmatically select items in AdvancedDataGrid

2008-07-29 Thread whatabrain
Another old question, I'm sure, but I can't find an answer anywhere on the web. How do I cause a row to be selected in an AdvancedDataGrid? Basically, when a top-level element is clicked, I want all of its child elements to be selected.

[flexcoders] Figuring out which item within a column was clicked in AdvancedDataGrid

2008-07-28 Thread whatabrain
Let's say I have a single column which contains an image and some text. Then I get a click event from the AdvancedDataGrid. How do I tell whether the image was clicked, rather than the text? mx:rendererProviders mx:AdvancedDataGridRendererProvider columnIndex=0 columnSpan=0 depth=1

[flexcoders] AdvancedDataGrid: Making certain rows unselectable

2008-07-28 Thread whatabrain
I would like to make an AdvancedDataGrid where the rows with a depth of 0 (or a particular RendererProvider, if you prefer), have no select color. That is, you can click on them and activate click events, but they never turn blue. How do I do this? Thanks

[flexcoders] AdvancedDataGrid layout problem

2008-07-25 Thread whatabrain
I'm having trouble laying out my AdvancedDataGrid. I would like to have a tree with a depth of 1 (a root node only contains leaf nodes). The rootnode is just the expand/collapse icon, followed by a name. The leaf nodes have several columns, the first few of which are very narrow. Basically, I

[flexcoders] Figuring out what was clicked in AdvancedDataGrid

2008-07-25 Thread whatabrain
How can you tell which item in the dataProvider was clicked in an AdvancedDataGrid, when using HierarchicalData as the dataProvider? I tried using the typical DataGrid method, of saving off the item index in itemRollOver, and using it to determine the index of the clicked item. However, with

[flexcoders] Re: Figuring out what was clicked in AdvancedDataGrid

2008-07-25 Thread whatabrain
should give you the indices you need to retrieve a itemRenderer or a datapovider's object 2008/7/25 whatabrain [EMAIL PROTECTED]: How can you tell which item in the dataProvider was clicked in an AdvancedDataGrid, when using HierarchicalData as the dataProvider? I tried using

[flexcoders] Re: AdvancedDataGrid layout problem

2008-07-25 Thread whatabrain
indented too far. So how do I make the group name span all five columns, giving it enough space to display? --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: I'm having trouble laying out my AdvancedDataGrid. I would

[flexcoders] Wierd AdvancedDataGrid efficiency problem

2008-07-25 Thread whatabrain
My grid uses a HierarchicalData dataProvider, which points to a subclass of ArrayCollection. The dataProvider is declared Bindable. The data is an ArrayCollection of arrays. I create a single top-level node, and then create 5000 child nodes. If the top-level node is collapsed, it takes about 4

[flexcoders] Re: Why is my swf so big?

2008-07-24 Thread whatabrain
is not included in the Flash 9 runtime. It has to be downloaded by some app into that user's browser, then other apps can use it. -Alex -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *whatabrain *Sent:* Tuesday, July 22

[flexcoders] Self-resizing flex apps

2008-07-22 Thread whatabrain
Let's say I want to have a flex app expand to include new content. One way to do this is to make a call to JavaScript to resize the container. Is there a way to do it entirely within the app?

[flexcoders] How do I make a flex app transparent?

2008-07-22 Thread whatabrain
Is there a way to make a flex app transparent, and have its events pass through to underlying javascript? For example, there's a flex app that takes up the entire window. There are a couple controls in one corner, but otherwise, you can see through the app to the html page below. The html page

[flexcoders] Re: How do I make a flex app transparent?

2008-07-22 Thread whatabrain
I found the answer. Set the wmode parameter to transparent. Now I just need to figure out how to play with the z-order. The underlying javascript is always on top. --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Is there a way to make a flex app transparent, and have

[flexcoders] Why is my swf so big?

2008-07-22 Thread whatabrain
Probably an old question, but I didn't find anything useful by searching the group. I'm using the trial version of Flex Builder 3 Standard. I create a new Flex project, and, without writing any code, export a release build. The swf file size is 147KB. Then I create a project that contains

[flexcoders] Is Flex compiled with only one locale?

2008-07-18 Thread whatabrain
I noticed that in FlexBuilder, one of the project options is Additional compiler arguments. The default value in the field is - locale en_US. Does that imply that a Flex app can only work with one locale? What if you have a single Flex app that you distribute to several different countries?

[flexcoders] Flex 3 with earlier versions of Flash

2008-07-18 Thread whatabrain
Does Flex 3 require Flash 9? Can I make it work with Flash 7? What if I throw AdvancedDataGrid into the mix? Does that change which version of Flash is required? Thanks

[flexcoders] Re: Is Flex compiled with only one locale?

2008-07-18 Thread whatabrain
the framework resources as well for the locales that you care about. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Friday, July 18, 2008 11:29 AM To: flexcoders

[flexcoders] Re: Trouble with hand cursor over mx:Text

2008-07-16 Thread whatabrain
, Jul 16, 2008 at 9:12 AM, whatabrain [EMAIL PROTECTED] wrote: The only way I'm able to show the hand cursor over an mx:Text element is if I both define the cursor in the style, and include an anchor tag in an embedded mx:htmlText. If I omit either of those things, it doesn't work. How

[flexcoders] Using subclassed flex controls in mxml

2008-07-16 Thread whatabrain
Let's say I subclass a control, like DataGrid: package myStuff { public class CustomGrid extends CDataGrid {} } How do I instantiate it in an mxml file? I tried these but they didn't work: mx:CustomGrid/ myStuff:CustomGrid/ Thanks for all your help! This group is making my

[flexcoders] How do I instantiate a subclassed flex control in mxml?

2008-07-16 Thread whatabrain
Let's say I subclass a standard flex control: package myStuff { public class CustomGrid extends DataGrid {} } How do I instantiate it in mxml? I tried the following, but none of them worked: mx:CustomGrid/ myStuff:CustomGrid/ mx:myStuff.CustomGrid/

[flexcoders] Extra space appearing between my mx:Text elements

2008-07-15 Thread whatabrain
I create the following objects inside an mx:TitleWindow: mx:HBox mx:Text condenseWhite=true text=hi/ mx:Text condenseWhite=true text=there/ /mx:HBox The display has 20px or so of space between the two text elements. How can I get rid of this space? Should I be using something

[flexcoders] Invisible elements taking up space

2008-07-15 Thread whatabrain
When I hide an object using the visibility attribute, it still takes up space in the document. I know that in css, you can use the display style to fix this. How do you do it in flex? mx:VBox mx:HBox mx:Text text=hi/ /mx:HBox mx:HBox visible=false !--

[flexcoders] Re: Extra space appearing between my mx:Text elements

2008-07-15 Thread whatabrain
Thanks! --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: mx:HBox horizontalGap=0 mx:Text condenseWhite=true text=hi/ mx:Text condenseWhite=true text=there/ /mx:HBox

[flexcoders] Trouble with hand cursor over mx:Text

2008-07-15 Thread whatabrain
The only way I'm able to show the hand cursor over an mx:Text element is if I both define the cursor in the style, and include an anchor tag in an embedded mx:htmlText. If I omit either of those things, it doesn't work. How can I make the hand cursor appear over an ordinary mx:Text? Here's the