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
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 !--
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
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
, 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
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
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/
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?
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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.
, 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.
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
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
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
--- 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
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
{
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
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/
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
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
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
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
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
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
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?
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
. 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
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;
@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
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
. 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
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
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
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
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
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
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
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:
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;
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@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
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
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.
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
--- 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
.
--- 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
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
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
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
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
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
/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
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
, 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
, 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
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
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,
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
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
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
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
I'm working with a very narrow app, so tooltips are sometimes wider
than the app.
How do I add word-wrap to tooltips?
@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?
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
--- 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
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
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
?
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
]
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
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
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
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
85 matches
Mail list logo