[flexcoders] Modules at 360Flex conference

2007-03-07 Thread alex_harui
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

[flexcoders] Re: Custom Component Help

2005-05-17 Thread alex_harui
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

[flexcoders] Re: DataGrid.labelFunction

2005-05-17 Thread alex_harui
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/ *

[flexcoders] Re: combobox selectedIndex

2005-05-17 Thread alex_harui
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

[flexcoders] Re: Serious corruption in Flex-generated SWF

2005-05-18 Thread alex_harui
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

[flexcoders] Re: Image not being resized in mx:Image tag

2005-05-18 Thread alex_harui
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

[flexcoders] Re: cell render problem

2005-05-18 Thread alex_harui
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

[flexcoders] Re: Disabling individual list items

2005-05-26 Thread alex_harui
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

[flexcoders] Re: Custom ComboBoxCellRenderer Issue

2005-05-27 Thread alex_harui
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

[flexcoders] Re: Tree change event

2005-05-27 Thread alex_harui
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,

[flexcoders] Re: Panel Mouse Down Problem

2005-05-27 Thread alex_harui
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

[flexcoders] Re: flex swc theme flash

2005-05-31 Thread alex_harui
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

[flexcoders] Re: Flex Style Explorer

2005-05-31 Thread alex_harui
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

[flexcoders] Re: Cell margins

2005-05-31 Thread alex_harui
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/ *

[flexcoders] Re: Hiding 'Null'...

2005-05-31 Thread alex_harui
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

[flexcoders] Re: margintop in textarea?

2005-05-31 Thread alex_harui
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

[flexcoders] Re: showDataTips for the List within a ComboBox

2005-05-31 Thread alex_harui
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

[flexcoders] Re: Bug? image (html) in textarea

2005-05-31 Thread alex_harui
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

[flexcoders] Re: flex swc theme flash

2005-06-01 Thread alex_harui
@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

[flexcoders] Re: Tree dataProviders backingObject

2005-06-03 Thread alex_harui
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

[flexcoders] Re: Contract between DataProvider and ComboBox or DataGrid

2005-06-06 Thread alex_harui
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

[flexcoders] Re: horizontal numeric stepper

2005-06-06 Thread alex_harui
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

[flexcoders] Re: Tree dataProviders backingObject

2005-06-06 Thread alex_harui
**/ -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

[flexcoders] Re: TileList Databinding -- showing undefined

2005-06-10 Thread alex_harui
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]

[flexcoders] Re: How to use flash swc file in flex

2005-06-10 Thread alex_harui
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]

[flexcoders] Re: Memory Useage with Flex

2005-06-10 Thread alex_harui
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.

[flexcoders] Re: Flash V2 Components and Flex Compatibility

2005-06-13 Thread alex_harui
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

[flexcoders] Re: Inline editing on double click in datagrid

2005-06-13 Thread alex_harui
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]

[flexcoders] Re: Sort data grid that has a check box cell renderer

2005-06-24 Thread alex_harui
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

[flexcoders] Re: how to add cellRender CheckBox to Tree?

2005-06-28 Thread alex_harui
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

[flexcoders] Re: FlashPaperLoader.mxml - contentPath property

2005-06-29 Thread alex_harui
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

[flexcoders] Re: how to add cellRender CheckBox to Tree?

2005-06-29 Thread alex_harui
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!

[flexcoders] Re: Skinning

2005-06-29 Thread alex_harui
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

[flexcoders] Re: Background image in button.

2005-07-08 Thread alex_harui
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

[flexcoders] Re: mouse over text for a datagrid column

2005-07-12 Thread alex_harui
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

[flexcoders] Re: Filesize generated swf's

2005-07-12 Thread alex_harui
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)

[flexcoders] Re: drag and drop

2005-07-12 Thread alex_harui
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

[flexcoders] Re: TileList withh CellRendere.

2005-07-12 Thread alex_harui
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

[flexcoders] Re: cursor manager bug

2005-07-18 Thread alex_harui
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

[flexcoders] Re: dispatching event from custom swc file

2005-07-18 Thread alex_harui
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

[flexcoders] Re: Help with loading of some SWF content in an mx:Image tag

2005-07-18 Thread alex_harui
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,

[flexcoders] Re: DataGrid sorting problem on variableRowHeight with headerrenderer

2008-11-07 Thread alex_harui
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

[flexcoders] Re: HTML content in Sub Applications

2009-03-18 Thread alex_harui
--- 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