We've seen lots of questions on modules recently. I just presented on
Modules at the 360Flex conference where I tried to answer some of these
questions. Slides and examples are at http://blogs.adobe.com/aharui
I could be wrong, but I think you are trying to specify data for a
component in xml. The only way I know to do this is to specify a
property of type XML then assign it and pick it apart. Here's a mini-
example:
Test.MXML
alexButton
xmlData
The DataGrid has a labelFunction property that it inherits from its
base classes, but it does not use it. Instead each column has a
labelFunction property that you want to set.
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
*
The code snippet worked fine for me if the intervals property is an
array of strings. Is it possible you are initializing intervals from a
web service call? If so, you have a timing problem in that the
selected index was set long before the data arrived (actually it
thought it had zero rows
In the original post, I see that things are collapsing horizontally,
and in two of the three pictures I see a horizontal divider. My guess
is that there is a timing issue where the width of the divided box
comes up 0 at the time of the layout, then pops back to the right size
later, but does
Smells like a timing issue. What are you loading? JPG? SWF? I think
you've replaced the example on your site with another thread's example
so I couldn't see what you're talking about.
If you load SWFs there is a timing issue where, once the SWF is loaded,
we wait one frame and then ask the
The main reason is isn't working is an issue of types. You are setting
the dataProvider to an array of XMLNodes.
So, go back and set the dataProvider on the result of the webservice,
then let's get the cells to display the right thing.
You have proven that it works if you set the dataProvider
Unfortunately, there's no built-in API for disabling a row.
There's no official API to get at individual rows either. You could
set an enabled property on a row using setPropertiesAt, then have a
custom cellRenderer look for it and disable itself.
Yahoo! Groups Links
* To visit your
You're not missing anything. There's a super-secret mouseDown
handler in the datagrid that is messing you up. Lots of folks have
tried various ways to workaround it and I think they've succeeded.
Last time we tried it, we subclassed the DataGrid and overrode its
onMouseDown method to see if
Yeah, looks like a bug. Don't see any obvious workarounds either.
One questions: Do you even want to allow de-selecting a row? It might
be possible to block that by overriding the onPress handlers in the
SelectableRows in the Tree.
Yahoo! Groups Links
* To visit your group on the web,
There are some idiosyncracies when objects appear and disappear under
the mouse. In general, by listening to all mouse events (down, up,
over, out) you can see a pattern that you can look for (you may see an
over instead of a down for example).
In other situations, this can be remedied by not
Did you try setStyle(headerHeight, 0);
That's supposed to hide the header.
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
* Your use of Yahoo! Groups is
Do you mean the tabs in the right half? They are done via actionscript-
based skins. We write code that checks some styles, calculates
gradients and rounds some corners. Panel headers are done the same way.
You can, however, use image-based skins if you want, but they may not
re-size
The renderer will always be drawn at x=0. I'd probably just add a
wrapper around my cell renderer and force it to x=2, or get its
contents to layout with the appropriate offset.
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
*
The TextInput is kind enough to do a toString() on anything passed to
its .text property, which is great for Number and other things, but
is the root of your problem.
My advice, subclass TextInput and put the null check on the text
setter.
-Alex
--- In flexcoders@yahoogroups.com, Tracy
Deepa is correct, but that affects your .text property.
Unfortunately, there's no official way to do it. I'd subclass
TextArea and override the layoutChildren method to get the inner text
field to layout at the desired position.
--- In flexcoders@yahoogroups.com, Deepa Subramaniam
[EMAIL
Are you setting those fields in an override of get dropdown()? If
the ComboBox gets resized or re-styled, it destroys the dropdown and
makes a new one.
--- In flexcoders@yahoogroups.com, DavidLand [EMAIL PROTECTED] wrote:
Im trying to get data tips for the list component embedded within the
Unfortunately, there are some known Flash Player bugs with img in
TextFields, so you may or may not be successful at working around
this.
--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:
On 5/30/05, rockmoyosa [EMAIL PROTECTED] wrote:
--- In
@yahoogroups.com, Andy Goodfellow [EMAIL PROTECTED]
wrote:
You can also use mx:Panel headerHeight=0/mx:Panel
-Andy
On 5/31/05, alex_harui [EMAIL PROTECTED] wrote:
Did you try setStyle(headerHeight, 0);
That's supposed to hide the header.
--
*Yahoo
The Tree needs a hierarchy of objects each of which implement
TreeDataProvider. That way, at each level in the tree we can ask the
current node for its children and other data.
Built-in Flash types like XMLNode don't support TreeDataProvider and
it is too hard to mix it in (and bad practice
The combobox measures every row in order to figure out how wide it
should be. The datagrid trusts the width information in the columns.
-Alex
--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
Yep, the DG will probably call getItemAt for every visible row
regardless of
Your sample didn't have a call to inputField.move(), which should
reposition the inputfield.
You may have to override drawFocus() or adjustFocusRect() to get the
focus ring to look right.
--- In flexcoders@yahoogroups.com, Alistair McLeod [EMAIL PROTECTED]
wrote:
Hi Paulo.
Since you're
**/
-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of alex_harui
Sent: Friday, June 03, 2005 4:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tree dataProviders backingObject
The Tree needs
Your sample didn't show a call to setValue(). The list calls
setValue with the object from the dataprovider. Your setValue call
would set the singleGroup variable. See cell renderer examples for
implementations of setValue
--- In flexcoders@yahoogroups.com, jeremybruck [EMAIL PROTECTED]
Flex4Flash did not ship in 1.5 or we hid it in a legacy directory, I
can't remember. You will still be better off by using the new CompC
workflow to just port your source to Flex.
--- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED]
wrote:
On 6/9/05, yhsphil [EMAIL PROTECTED]
Start commenting out portions of the app and see if you find a
subsection that is sucking up the memory.
Make sure you've optimized the number of layout containers used.
Should you be using a Grid instead of a network of VBox/HBox?
Are you using Repeaters? They can be memory hungry.
You'll probably have to provide more details about how the List is
being used, but in general, we don't promise that Flash V2 modules drop
into Flex.
One of the main issues is that Flex is entirely dynamic. It
instantiates all of the components on-the-fly. In Flash one can easily
place
Unfortunately, I can't think of a documented way to do this. I will
suggest looking in DataGridRow.as source in Flash MX 2004. It might
give you a clue how to do it, but we can't officially support it from
Macromedia.
--- In flexcoders@yahoogroups.com, Pradeep Chaudhary
[EMAIL PROTECTED]
One common problem is that the cellrenderer is only written to turn on
the checkbox and not to turn it off. Follow the setValue method in a
debugger to make sure.
--- In flexcoders@yahoogroups.com, Joe [EMAIL PROTECTED] wrote:
I have a data gris that is sortable. One of the colums has a check
A Tree consists of TreeRows and cell renderers. The TreeRow places
the open/close icon and the icon for the row and then its
cellRenderer. If a Checkbox is the cell renderer then you'll get see
the open/close then the folder/leaf icon then the checkbox then the
checkbox label.
Have you
FlashPaperLoader is not an out-of-the-box Flex Component. Where did
you get it, from the Macromedia site? You imply that it is an MXML
file so it must be an example somewhere. I'll bet Manish thinks
you're talking about mx:Loader.
My guess is that it only has a contentPath variable and
All nodes have a getParent() and getChildNodes() so you can walk up
and down the tree of nodes
--- In flexcoders@yahoogroups.com, loveewind [EMAIL PROTECTED] wrote:
This article is helpful for me,
the article referred CheckRowRenderer.as
but how to get all checked Node's label?
thanks!
The Pulse themes have fixed-size panel headers that don't respond to
headerHeight, because it is a graphic (simple MovieClip or JPG) and
therefore doesn't support the resizing API we use. In Halo, the
panel header is a programmatic skin. You can see similar
implementations in the SampleTheme
ImageButton is definitely worth a look.
I don't know what you mean by accepts, but Button doesn't use the
backgroundImage style. It's visuals can only be changed via skinning
and ImageButton attempts to simply the skinning process. If it
doesn't do what you want, read up on skinning.
-Alex
You can write a custom header renderer with a tooltip property
--- In flexcoders@yahoogroups.com, nick [EMAIL PROTECTED] wrote:
Hey everyone, new to the group :-)
Just gotta question regarding mouse over text for a datagrid column
header...how is it done? I dont see any properties attribute
An empty Application tag should come in at about 128Kb. Not sure why
you got 263Kb. You sure you didn't have any custom theme attributes
on the application tag?
At any rate, starting from 128K, you'll hit your 150K limit really
quick. However, I encourage you to consider the following:
1)
Most computer interactions use mouseUp instead of mouseDown. For
example, you can mouseDown on the reply button as you read this message
and it won't set up a reply until you mouseUp.
In Flex we use mouseOut instead of mouseDown/mouseMove to trigger drag
operations. In most other frameworks
I didn't see the code for modelLocator. It looks like it might be a
class, in which case it must specify a changeEvent for the activities
property otherwise when it changes, binding won't know it changed and
won't update the TileList.
--- In flexcoders@yahoogroups.com, Shahnavaz Alware [EMAIL
This is a fact-of-life of how security in loaded SWFs works.
Assets in subordinate SWFs are not available to the top-level SWF,
but the cursorManager only can work in the top-level SWF.
The easy workaround is to put a DividedBox in the top-level movie and
hide it.
The more sophisticated
You didn't explain what the problem is. Do you get a compile error?
What is the error? Does the code listening for the event not run?
Post a mini-example.
Your sample looks right to me.
--- In flexcoders@yahoogroups.com, m00n_de [EMAIL PROTECTED]
wrote:
hi, maybe someone could explain
Well, if you are in no-source-code hell, then you have to hack your
way out.
If you know the internal structure of the loaded SWF, you can try to
find the place the loadVars is done and try to grab a load event on
it, or set a timer and check to see if the loadVars is complete.
After that,
I wouldn't use mx.controls.Text as a headerrenderer. If you need
wordwrap, just set wordwrap=true on the DataGridListItemRenderer
--- In flexcoders@yahoogroups.com, sinacapho [EMAIL PROTECTED] wrote:
Hi,
I have writing a datagrid using the headerrenderer to make
some
controls , and
--- In flexcoders@yahoogroups.com, rob_mcmichael rob_mcmich...@... wrote:
Hi all,
I was wondering if someone could advise me on the best way to get HTML
content working in a sub application.
My sub application is loaded into a separate security and application sandbox
in AIR. However
43 matches
Mail list logo