[flexcoders] Re: Adding rows to dataGrid programatically

2006-11-02 Thread Michael Labriola
I am not sure this is going to answer your question, but you could clone one of the other rows and just change the contents. That way you would not need to know specifically what the root tag of the particular node is.. --Mike --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED]

[flexcoders] Re: TextArea in Grid - too big

2006-11-02 Thread Michael Labriola
Precia, Just need to ask the question, does it absolutely have to be a TextArea? The TextField class (and descendants) have an autoSize property and more control over some of these aspects. --Mike --- In flexcoders@yahoogroups.com, app.developer [EMAIL PROTECTED] wrote: When creating a

[flexcoders] Re: How do I expand a tree through Action Scripts

2006-11-02 Thread Michael Labriola
Hara, Take a look at the expandChildrenOf () method of the tree class. public function expandChildrenOf(item:Object, open:Boolean):void Opens or closes all the tree items below the specified item. Parameters item:Object — the starting item open:Boolean — toggles an open or close

[flexcoders] Re: Defining a dynamic UI

2007-05-29 Thread Michael Labriola
To add to what Tracy was saying.. Let's say you have a component in the comps directory called MyComp. It could be in MXML or in Actionscript, it doesn't matter. First you would need to import that component definition by saying import comps.MyComp; Then, at anytime, for instance in response

[flexcoders] Re: Problem with loading xml file using HTTPService or URLLoader

2007-05-29 Thread Michael Labriola
Maciek, You may want to read up on crossdomain files. You should be able to google this term and find information. Here is a link to explore, but there are probably easier to understand resources. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213 Mike --- In

[flexcoders] Re: ComboBox itemEditor example inside of DataGrid??

2006-10-16 Thread Michael Labriola
Mike, I apologize in advance if this is now what you are asking, but, have you looked at the editorDataField property? If this isn't what you are looking for, I can post an example of a ComboBox renderer in a DataGrid. --Mike --- In flexcoders@yahoogroups.com, Mike Anderson [EMAIL PROTECTED]

[flexcoders] Re: Multiline ComboBox

2006-10-16 Thread Michael Labriola
Michael, Problem is that ComboBase uses a textInput control to display the currently selected item. The TextInput is limited to displaying a single line of text. You could certianly change this, but, it seems as though it will require extending ComboBox, not just making an itemRenderer. --Mike

[flexcoders] Re: pop up a new window behind

2006-10-16 Thread Michael Labriola
The PopUpManager.createPopUp method calls addPopUp which, as part of the method seems to ensure that the new Popup is on top. After it is created, you could manually move it around using setChildIndex... a good place to look is at PopUpManager.bringToFront Hope that help a little, Mike

[flexcoders] Re: ComboBox itemEditor example inside of DataGrid??

2006-10-16 Thread Michael Labriola
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Labriola Sent: Monday, October 16, 2006 3:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ComboBox itemEditor example inside of DataGrid?? Mike, I apologize in advance if this is now what you are asking, but, have you

[flexcoders] Re: xml question

2006-10-16 Thread Michael Labriola
In your result handler, function that is called once the read is complete, you can access this data as follows: if ( event.result.record.category == 4 ){ } else{ } You can also include XML at compile time using the mx:XML tag, however, you should not do this if the contents of the XML may

[flexcoders] Re: load date for DateField from database in correct format

2006-10-16 Thread Michael Labriola
Frank, The problem is that the dateField is looking for a Flex Date object. Guessing from the conversion to XML, the x.result[0].arrivaldate[0] is an XML node which contains a String. This String needs to be made into a Flex Date Object. There are a few ways to do this: var myDate:Date = new

[flexcoders] Re: Is there a way to find an object if you know the name

2006-10-16 Thread Michael Labriola
..one more note.. You may want to also check out Referencing repeated child components in the help docs, which is specifically about components within a repeater. --Mike --- In flexcoders@yahoogroups.com, Marlon Moyer [EMAIL PROTECTED] wrote: sorry, I didn't phrase the question correctly. I

[flexcoders] Re: Is there a way to find an object if you know the name

2006-10-16 Thread Michael Labriola
Marlon, So long as you know the container where the child exists, you can say: container.getChildByName(name:String):DisplayObject or container.getChildIndex(child:DisplayObject):int Hope that helps, Mike --- In flexcoders@yahoogroups.com, Marlon Moyer [EMAIL PROTECTED] wrote: sorry,

[flexcoders] Re: ComboBox itemEditor example inside of DataGrid??

2006-10-16 Thread Michael Labriola
, the reusability factor... Well, thanks again - I truly appreciate your help on this :) Mike -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Labriola Sent: Monday, October 16, 2006 4:47 PM To: flexcoders@yahoogroups.com

[flexcoders] Re: does FLEX2 support text direction right to left?

2006-10-17 Thread Michael Labriola
Unfortunately, no. This is an area where I have spent countless hours trying to work around. Flash player has absolutely no support for right to left natively. Further, while you can manually do *some* things to fix this, ultimately none of the text components (input, area, etc) allow editing in

[flexcoders] Re: writing and using classes

2006-10-17 Thread Michael Labriola
Frank, I think you might be approaching this from the wrong perspective. In particular, if you don't have object oriented programming experience, you may want to take a few minutes and read some of the many tutorials available online. As Flex is a pretty OO heavy environment, without this

[flexcoders] Re: Binding a List to an Array

2006-10-17 Thread Michael Labriola
Steve, Do me a favor and test something out. Make the items Array an ArrayCollection on your own. Here is the gist: When you pass an Array to either ComboBox or List it makes an ArrayCollection out of it for the purposes of binding. List does something slightly different in that it stops

[flexcoders] Re: TextInput control (displaying CurrencyFormatted data) question

2006-10-19 Thread Michael Labriola
Mike, I might need some more explanation, as I think I am missing something. I have a lot of textInputs that format on focus out. Is your concern that the data in the field is now 'formatted' so it will be useless for sending back to some server. Let me know and I will be glad to help more,

[flexcoders] Re: writing and using classes

2006-10-19 Thread Michael Labriola
@yahoogroups.com, Michael Labriola labriola@ wrote: Frank, I think you might be approaching this from the wrong perspective. In particular, if you don't have object oriented programming experience, you may want to take a few minutes and read some of the many tutorials available online

[flexcoders] Re: Validator Error Message Position

2006-10-19 Thread Michael Labriola
Not sure if this helps in your particular situation, however, the validation error messages are really nothing more than styled tooltips. You have some control over tips, such as their maximum width. Look in the Flex Help under Setting the width of ToolTips -Mike --- In

[flexcoders] Re: TextInput control (displaying CurrencyFormatted data) question

2006-10-20 Thread Michael Labriola
File. Will this cause an error, since a String Var is required, in order to keep the $ format? This is where I could use some guidance... Thanks in advance for your help, Mike -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael

[flexcoders] Re: E4X Help

2006-10-20 Thread Michael Labriola
Tangent, Remove the {} from around selected : var counties:XMLList = _myXml.state.(@label=selected).county; Mike --- In flexcoders@yahoogroups.com, Tan [EMAIL PROTECTED] wrote: I try writing two comboboxes to facilitate selection of the following XML, data state label=Texas

[flexcoders] Re: Undocumented AS2 - AS3 migration issues

2006-10-27 Thread Michael Labriola
Link just became LinkButton in 2.0 Best luck, Mike --- In flexcoders@yahoogroups.com, fuad_kamal [EMAIL PROTECTED] wrote: While I've been porting a huge application from Flex 1.5 to Flex 2.0, every now and then I come across things that just weren't mentioned anywhere in the migration

[flexcoders] Re: datagrid and dataField

2006-10-27 Thread Michael Labriola
You are correct. By default the dataField on DataGridColumn only goes to the root level of the structure you are passing. If you are feeling a little ambitious, you can subclass dataGridColumn and do something like this: protected function deriveComplexColumn( data:Object,

[flexcoders] Re: A web survey based on Flex

2006-10-28 Thread Michael Labriola
Overall it is not a bad way to proceed. The only place I might direct you some place different is where you save to the local drive if the server is unavailable. For this part, I would suggest you take a look at a concept called 'Local Shared Objects' Without knowing all of the details of your

[flexcoders] Re: Convert Object to a Value Object

2006-10-28 Thread Michael Labriola
2 more things to consider. Not sure of your particular setup, but, you may want to look at the [Managed] metadata tag. Setup dependent, it may be what you are looking for. Second, and more generally, casts fail when the system cannot convert one type to another. So, take a look at your objects.

[flexcoders] Re: datagrid and dataField

2006-10-28 Thread Michael Labriola
; } // function from Michael Labriola from Flexcoders mail list protected function deriveComplexColumn( data:Object, complexFieldName:String ):Object { var dataPtr:Object = data; var complexName:Array = complexFieldName.split( '.', 10

[flexcoders] Re: Data in ViewStack Component

2006-10-29 Thread Michael Labriola
Can you explain more about what you are trying to do? I see that you have 3 arrayCollections. Only 1 of them seems to be used in the code, and, in that one, you are only using the length property. Please provide details about what you are trying to accomplish. Thanks, --Mike --- In

[flexcoders] Re: Data in ViewStack Component

2006-10-29 Thread Michael Labriola
the epCollection to be a dataprovider. With simpel words what i'm trying to do is to make epCollection result to work in a diffrent MXML file. Is is a better explenation? --- In flexcoders@yahoogroups.com, Michael Labriola labriola@ wrote: Can you explain more about what you are trying

[flexcoders] Re: Convert Object to a Value Object

2006-10-29 Thread Michael Labriola
nicely done --- In flexcoders@yahoogroups.com, Darron J. Schall [EMAIL PROTECTED] wrote: Interesting, Yahoo garbled most of the content of that message. Here's what I actually sent: For those having trouble converting generic objects into class instances (Value Objects), I've created

[flexcoders] Re: Changing mx:Application's width during runtime

2006-10-29 Thread Michael Labriola
I know this is not actually the answer to the question, however, is it necessary to specifically set the width and height to literals, or could they just be set to 100%? --Mike --- In flexcoders@yahoogroups.com, pilby1 [EMAIL PROTECTED] wrote: When I run my application where mx:Application's

[flexcoders] Re: Use a Popup as itemEditor in Datagrids

2006-10-30 Thread Michael Labriola
My first thought: I would probably write a simple component that serves as an itemRenderer. From within that component I would be to launch a modal popup window from the itemEditBeginning event. Ensure that you pass the row and the dataGridColumn (much like a labelFunction) to the new popup.

[flexcoders] Re: Accordion initialization problem

2006-10-30 Thread Michael Labriola
In flex, children are generally not created until they are actually needed, which generally translates to: when they are displayed on the screen. This keeps startup time and memory use down as, on average, most users do not navigate to every corner of an app. As suggested, you could set the

[flexcoders] Re: JUST SAY NO to creationPolicy=all !

2006-10-30 Thread Michael Labriola
Thank you. Thank you. Thank you. --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: rant Several times a week someone complains that they can't seem to set data into controls on the second, third, etc. pane of a ViewStack, Accordion, or TabNavigator because

[flexcoders] Re: A web survey based on Flex

2006-10-30 Thread Michael Labriola
to help walk you through it. --Mike --- In flexcoders@yahoogroups.com, advantexllc [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Michael Labriola labriola@ wrote: Overall it is not a bad way to proceed. The only place I might direct you some place different is where

[flexcoders] Re: filterFunction between ViewStack MXML components

2006-10-30 Thread Michael Labriola
If I understand your question correctly (and I am not sure that I do), I would personally put your filter function in the file that currently calls the HTTPService and gets the result. Unless you are using one of the, or your own, common frameworks, most people seem to put this in their main

[flexcoders] Re: ViewStack.addChild() / createChild()

2006-10-30 Thread Michael Labriola
Libby, Like this: var newClass:DisplayObject = new MyClassToAdd(); var newChild:DisplayObject = viewStack.addChild(newClass); --Mike --- In flexcoders@yahoogroups.com, Libby [EMAIL PROTECTED] wrote: Hello In 1.5 I was adding complex components to a viewstack by doing

[flexcoders] Re: e4x expression passed as string

2006-10-30 Thread Michael Labriola
Diego, Here is a starting point. There are probably bugs, it is bloated, and it is not completely tested, however, it is a starting point. A final version of this, along with some actual example code, error handling and other dynamic tools will eventually be available in a devnet article.

[flexcoders] Re: Filtering a Datagrid

2006-10-31 Thread Michael Labriola
Rick, Check out the filter capabilities of the list collections. Basically, the dataProvider of the datagrid can be filtered as you requested. --Mike --- In flexcoders@yahoogroups.com, Rick Root [EMAIL PROTECTED] wrote: Let's say I've got a datagrid containing a persons gifts to the

[flexcoders] Re: filterFunction between ViewStack MXML components

2006-10-31 Thread Michael Labriola
/mx:VBox /mx:Canvas --- In flexcoders@yahoogroups.com, Michael Labriola labriola@ wrote: If I understand your question correctly (and I am not sure that I do), I would personally put your filter function in the file that currently calls the HTTPService and gets the result. Unless you

[flexcoders] Re: Custom datagridcolumns

2006-10-31 Thread Michael Labriola
Rick, Just one more comment on your labelFunction versus subclass of DataGridColumn. There are times to subclass, but, what you are doing here really seems like a good argument for a labelFunction. You don't have to build a function for every column, so, if you rewrote your labelFunction like

[flexcoders] Re: Training from the Source - Can't find my error

2006-10-31 Thread Michael Labriola
Glad you are enjoying it. We have occasionally seen the same thing. The flex compiler seems to get confused with the inline renderer and the valueObject. This line is the cause: outerDocument.removeItem(valueObjects.ShoppingCartItem(data)); You can literally go an modify this line by adding a

[flexcoders] Re: filterFunction between ViewStack MXML components

2006-10-31 Thread Michael Labriola
and those two are located in MovieView.mxml --- In flexcoders@yahoogroups.com, Michael Labriola labriola@ wrote: In your result handler, call the refresh method after you set the filterFunction. --Mike --- In flexcoders@yahoogroups.com, pioplacz icep87@ wrote: Yes, i want

[flexcoders] Re: e4x expression passed as string

2006-10-31 Thread Michael Labriola
Oct 2006 16:47:11 +1300, Michael Labriola [EMAIL PROTECTED] wrote: Diego, Here is a starting point. There are probably bugs, it is bloated, and it is not completely tested, however, it is a starting point. A final version of this, along with some actual example code, error

[flexcoders] Re: Isn´t there any release of Adobe Apollo yet? Alpha maybe....

2006-10-31 Thread Michael Labriola
1) HTML as a DisplayObject 2) Getting rid of the browser where people believe the back button is there only source of navigation 3) Generating desktop apps with all of the framework we have written for flex :) --Mike Just wondering, since I'm working on it... what features of Apollo are

[flexcoders] Re: Installing FDS As Win2003 WebService

2006-11-01 Thread Michael Labriola
Check out fireDaemon, it is handy for this type of situation: http://www.firedaemon.com/ It will let you run the command line integrated jrun fds as a service. --Mike --- In flexcoders@yahoogroups.com, Shannon Hicks [EMAIL PROTECTED] wrote: But there's no version of JRun that is free, and

[flexcoders] Re: Tree not updating with correct XML

2006-11-01 Thread Michael Labriola
Aaron, Need to clarify something: When you say : The XML is changes, do you mean that the XML data retrieved from http://Path/To/XML.aspx changes or that you change the XMl after loading at the client? I don't want to answer the wrong question, but the mx:XML tag includes data at compile

[flexcoders] Re: using a linkbar with a viewstack... how can you indicate current selection

2006-11-01 Thread Michael Labriola
Hank, If you are setting the dataProvider of the linkBar to the viewStack, the LinkBar will indicate the selectedChild of the viewStack as a disabled button on the bar. The linkbar responds to the viewStack. When you say you are setting the selectedIndex to 0, do you mean you are setting it on

[flexcoders] Re: getting authenticating error

2008-03-26 Thread Michael Labriola
Parag, Send me the code offline and I will help you debug. I am not sure I understand the issue currently. Mike --- In flexcoders@yahoogroups.com, Parag Metha [EMAIL PROTECTED] wrote: Hi All, I have written multiple login testcases using dpunit and using sequence as per sample

[flexcoders] Re: New to flex, wonder why one works and the other doesn't...

2008-06-01 Thread Michael Labriola
Guys, sorry, but that's not quite right. UIComponents can contain other UIComponents without being a container. It is a common use case. Take a look at the simple example Adobe includes with their docs: http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.h tm?href=1742.html

[flexcoders] Re: Air App - Check connection

2008-06-01 Thread Michael Labriola
Indra, Look in the AIR help files for the presence API. I think this article also covers it, but not sure how up to date it is: http://www.adobe.com/devnet/air/flex/articles/flickr_floater_06.html HTH, Labriola --- In flexcoders@yahoogroups.com, Indra Prastha [EMAIL PROTECTED] wrote: Hi

[flexcoders] Re: book errata

2008-06-02 Thread Michael Labriola
If you find anything specific and it is not yet on the peachpit site, feel free to email me directly off-list. --- In flexcoders@yahoogroups.com, Joseph Balderson [EMAIL PROTECTED] wrote: Check the peachpit website. _ __

[flexcoders] Re: New to flex, wonder why one works and the other doesn't...

2008-06-02 Thread Michael Labriola
Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm? cid=4674 Michael Labriola wrote: Guys, sorry, but that's not quite right. UIComponents can contain other UIComponents without being a container. It is a common use

[flexcoders] Re: One custom component referring to another

2008-06-27 Thread Michael Labriola
Jason, In an ideal world, component A would throw events up. Those events would be caught in the application (in this case) and call corresponding methods in component B. You really, really don't want to start coupling these components together by calling the internals of one from the other