RE: [flexcoders] ItemEditors and rowHeight
Here you go: http://livedocs.adobe.com/flex/3/html/help.html?content=celleditor_5.html HTH, ~randy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gregor Kiddie Sent: Thursday, January 29, 2009 9:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ItemEditors and rowHeight Looking through SearchCoders, it looks like this question has been asked repeatedly, and never with a good solution, but hey, I may as well ask again! I have an AdvancedDataGrid using the default renderer. When I edit a cell though, I want to show an ItemEditor that is taller than the row. I've tried numerous combinations of events and setting height properties to no good effect. So while I go away and delve into the ADG code to try and work out a solution, has anyone managed this successfully, and is willing to save me some head scratching time? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at blocked::http://www.inps.co.uk/ www.inps.co.uk The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk
RE: [flexcoders] Re: String Encoding Issue Over AMF
Are you using the latest Zend framework? Adobe contributed AMF to Zend, and there's a Zend_AMF component in V1.7 of the framework. This might solve your problem. HTH, ~randy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Daniel Freiman Sent: Wednesday, January 14, 2009 1:28 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: String Encoding Issue Over AMF I'm using Zend Framework. I can't find an comparable method. On Wed, Jan 14, 2009 at 1:58 PM, aphexyuri yuriv...@yahoo.co.uk wrote: Have you played around with $gateway-setCharsetHandler() in gateway.php? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Daniel Freiman freima...@... wrote: Either I'm missing something (which is highly possible) or that information isn't addressing the problem. Everything on the php side seems fine. And all the tests/functions applied to the string on the php side operate as expected. It's not until the string is sent over AMF to Flex that I have a problem. On Wed, Jan 14, 2009 at 12:20 PM, valdhor valdhorli...@...wrote: The problem is with PHP and how it handles multi-byte strings. A good overview can be found at http://www.phpwact.org/php/i18n/charsets Hopefully PHP 6 will end all this grief. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman FreimanCQ@ wrote: I'm transmitting Strings from php to Flex. The values are correct before I send them to Flex (I've traced them), but Flex isn't interpreting them properly (I get that square thing, or two incorrect characters). I've tried various encoding/decoding schemes (urlencode, etc) but none of them have worked. So far I've only tried alphanumeric characters and the trademark and registered symbols. The trademark is the only one that isn't working. Anyone have any idea how to fix this? - Daniel Freiman
RE: [flexcoders] Searching Multi Demensional arrays
Try this: Public function findPath(items:Array, mypath:String): Object { var mySort:Sort = new Sort(); var myItems:ArrayCollection = new ArrayCollection(items); var itemCursor:IViewCursor = myItems.createCursor(); mySort.fields = [new SortField(path)]; myItems.sort = mySort; myItems.refresh(); itemCursor.findAny({path:mypath}); return itemCursor.current; } HTH, ~randy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Aaron Hardy Sent: Monday, December 29, 2008 5:07 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Searching Multi Demensional arrays I think you're looking for something like this: public function findPath(items:Array, path:String):Object { for each (var item:Object in items) { if (item.path == path) { return item; } else if (children children.length 0) { var foundItem:Object = findPath(item.children, path); if (foundItem) { return foundItem; } } } } I didn't test out the code, but the concept is what is important. It's recursively calling the same function for each level of children (see how it calls findPath() within the function itself), so it digs down however deep it needs to. Good luck. Aaron Dan Vega wrote: I have an infinite number of objects child objects that looks something like this below. I know this if it was just one level I could probably accomplish what i need but I am not sure how to do this. All of the path items are always going to be unique. Is there a way to search (drilling down as far as needed) and say give me the object where path = xyz; (Array)#0 [0] (Object)#1 children = (Array)#2 [0] (Object)#3 children = (Array)#4 lastModified = 1230587039867 name = parent = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data path = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data\ [1] (Object)#5 lastModified = 1230580833728 name = another_one parent = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data path = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data\another_one [2] (Object)#6 children = (Array)#7 lastModified = 1230587312776 name = dan parent = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data path = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data\dan [3] (Object)#8 lastModified = 1230581177910 name = ggg parent = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data path = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data\ggg [4] (Object)#9 lastModified = 1230581240020 name = hjkl parent = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data path = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data\hjkl [5] (Object)#10 lastModified = 1230580116200 name = l parent = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data path = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data\l [6] (Object)#11 lastModified = 1230575547578 name = nnn parent = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data path = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data\nnn [7] (Object)#12 lastModified = 1230575859098 name = test parent = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data path = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data\test mx_internal_uid = B8E4886E-A00D-6D89-CBAA-84C60F791112 name = Home path = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\FFManager\src\data Thank You Dan Vega danv...@gmail.com http://www.danvega.org
RE: [flexcoders] Flex dates and time zones.
I guess I really don't understand what the problem is here?? I have a smalldatetime (or a datetime) in a MSSQL database. I setup a value object in AS to have the date field as a Date object. I go get the date from ColdFusion using RemoteObject. The cfc sets up a CF value object with the date as a CF Date object. And, voila, the MSSQL datetime becomes an AS Date object. I don't have to convert anything to a string, or any other kind of object. So, what's the problem here??? ~randy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dale Fraser Sent: Monday, December 15, 2008 9:51 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex dates and time zones. Why does Flex do this? If I get a date out of the db and want to deal with it as a date, surely this should be possible. How can the flash player determine it needs to change it to a different date. There must be some other option rather than converting to a string. Regards Dale Fraser http://learncf.com http://learncf.com/ http://flexcf.com http://flexcf.com/ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Paul Kukiel Sent: Tuesday, 16 December 2008 1:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex dates and time zones. Thanks Tracy, I knew I was going to get this answer. I already got this working with strings as a test sample looks like I have to convert the rest of the app. Surely others are feeling my pain with this issue. And Nate I look forward to seeing what you have come up with when its ready. Paul. On 15/12/2008, at 7:46 PM, Tracy Spratt wrote: Pass the date as a string. Tracy _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Paul Kukiel Sent: Monday, December 15, 2008 3:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex dates and time zones. I have a date in a server in Australia: 22/12/2008 12:00:00 AM I am using this label function for the grid to try and fix the time zone issue but my date always comes back to me as 21/12/2008 in the datagrid. I really just wan the exact date from the database regardless of where I am in the world. Any ideas? // Label Grid Date public static function labelGridDate(item:Object, column:DataGridColumn):String { var formatter:DateFormatter = new DateFormatter(); var myDate:Date = item[column.dataField]; formatter.formatString = DD MMM ; var offsetMilliseconds:Number = item[column.dataField].getTimezoneOffset() * 60 * 1000; item[column.dataField].setTime(item[column.dataField].getTime() + offsetMilliseconds); return formatter.format(item[column.dataField]); } Paul.
RE: [flexcoders] Fastest filterfunction for large ArrayColeccions ?
How large an array collection? I have an autocomplete (search-as-you-type) function working on an ArrayCollection of about 5000 records, and it's almost instantaneous. ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cegarza2 Sent: Wednesday, December 10, 2008 3:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Fastest filterfunction for large ArrayColeccions ? Is there any way to speed a filterfunction for autocomplete component with a large ArrayColection? Thanks in advance Carlos G.
RE: [flexcoders] Question about a component Kap Lab Diagrammer
You should be able to find out something here: http://lab.kapit.fr/display/kaplabhome/Home ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Weyert de Boer Sent: Thursday, November 20, 2008 10:37 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Question about a component Kap Lab Diagrammer Nope, but I have experiences with yFiles Flex and that's a real nice component package. http://www.yworks.com/en/products_yfilesflex_about.html
RE: [flexcoders] Re: format code in FB3
As a side note, the code formatter is the Enterprise IDE plugin is adequate but still needs some work. I tried it on several mxml files, and it gets confused, especially on the ActionScript section of the file. For example, if you have code like this: private function enterAI():MDIWindow { var view:NewAI = new NewAI(); view.sn = _sn; view.un = _un; view.secLevel = _secLevel; view.cn = _cn; view.canEdit = _secLevel = 11; view.hasAudit = false; view.showControls = false; return view; } It turns it into this: private function enterAI():MDIWindow { var view:NewAI = new NewAI(); view.sn = _sn; view.un = _un; view.secLevel = _secLevel; view.cn = _cn; view.canEdit = _secLevel = 11; view.hasAudit = false; view.showControls = false; return view; } Or, if you have code like this: private var menuXML:XMLList = menuitem label=Investigators data=M1/ /; It turns it into this: private var menuXML:XMLList = menuitem label=Investigators data=M1/ / ; It's a good start, but still has a ways to go. Just my 2-cents-worth. ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of luislejter Sent: Wednesday, November 05, 2008 1:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: format code in FB3 Talking as the author of the Enterprise IDE plugin from IDE Factory, I would like to clarify some points: Code formatting is only one feature among many offered by the plugin, there are 20 major features in total including improvements in code navigation, code generation, code documentation and general tools. There are many new features in the development pipeline as well. Eclipse plugin development is not trivial. If you are serious about learning, if you are attending Adobe MAX there will be a session on extending Flex Builder that should be worthwhile. I myself will present in 360 | MAX about my plugin and will be happy to talk about my own experiences extending Flex Builder and answer questions. That said the Enterprise IDE plugin will be very inexpensive, less than $100 for a year subscription with multiple updates per year with new features and bug fixes. It represents hundreds of hours of development time on my part, and frankly I am an experienced eclipse plugin developer. Ask yourself, what is more valuable to you, your time or spending less than the cost of a single hour of a Flex developer time for a year of improved productivity? Incidentally upgrading Flex Builder is hardly free either. I apologize for what may be construed as an advertisement on the list but I was not the first to mention my plugin in this thread. You and anyone else interested in the features offered can do their own cost-benefit analysis and draw their own conclusions. Best of luck, Luis Lejter http://www.idefactory.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Josh McDonald [EMAIL PROTECTED] wrote: Nuts! I've gotta figure out how to do Eclipse plugins On Wed, Nov 5, 2008 at 9:38 AM, Matt Chotin [EMAIL PROTECTED] wrote: It's something we certainly want to do but definitely not committed for FB4. On 11/4/08 3:27 PM, Josh McDonald [EMAIL PROTECTED] wrote: It's in Fx4 from what I hear ;-) On Wed, Nov 5, 2008 at 1:04 AM, matt wicks [EMAIL PROTECTED] wrote: If you use enterprise ide this will do it ... www.idefactory.com http://www.idefactory.com -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Tom Chiverton Sent: 04 November 2008 10:25 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] format code in FB3 On Tuesday 04 Nov 2008, vuthecuong wrote: in eclipse (develop java), I just press ctrl+shift+F to format code. So what is the equavalent one in FF3 IDE? I don't think that feature is in there yet. Have you checked bugs.adobe.com http://bugs.adobe.com ? -- Tom Chiverton Helping to authoritatively envisioneer slick dynamic world-class 24/365 communities This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to
[flexcoders] Re: AdvancedDataGrid not redrawing properly
Anyone?? This is really driving me crazy! --- In flexcoders@yahoogroups.com, Randy Martin [EMAIL PROTECTED] wrote: I have an AdvancedDataGrid in an application in one of the states. The first time I display it, everything is fine. If I subsequently enter another state and then redisplay the AdvancedDataGrid, it shows up without any borders or grid lines. As soon as I populate it (assign a data provider), the borders and grid lines reappear. Anyone have any idea what's going on here? TIA, ~randy
[flexcoders] AdvancedDataGrid not redrawing properly
I have an AdvancedDataGrid in an application in one of the states. The first time I display it, everything is fine. If I subsequently enter another state and then redisplay the AdvancedDataGrid, it shows up with any borders or grid lines. As soon as I populate it (assign a data provider), the borders and grid lines reappear. Anyone have any idea what's going on here? TIA, ~randy image001.gif
RE: [flexcoders] Extending Datagrid dynamically
So, what you want is: 10 11 12 etc. Joesickworkplay Bill workworkwork John playplaywork You need to check out the OLAPDataGrid. It's specifically designed to support this kind of data. In Excel, you'd call this a pivot table. ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of donvoltz Sent: Saturday, November 01, 2008 11:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Extending Datagrid dynamically Hi Everyone, can someone point me in the right direction for accomplishing the following. I have a value object that contains a username and an array of assignments for each day of the week vo public var username:String; public var assignments:Array (also a vo with date = 2008-10-02, assignment = 'Sick') this array contains a date and assignment for each day of a given month. These vo's are added to an arrayCollection which is bound to a datagrid What I am trying to accomplish is the following For each day of a specified month, I would like to generate a column with the header text being the date (ie march 10, 2008 would display 10) and the data in the column would be bound to the assignments array for the user who belongs to the row. I also want this datagrid to be regenerated when the user of the application selects a different month(the datagrid dataProvider is updated with new data from the server). I am lost with how I can add dynamic columns to the datagrid and bind these to an array of dates to present the appropriate assignment. Thanks in advance for any help. Don
RE: [flexcoders] Re: Html file in Flex application.
OK. I've posted this at least a couple of times before in answer to this same question. The simplest implementation of this (the iframe concept) is by Alistair Rutherford. You can check his IFrame flex component out at (he recently moved it from his blog to Google Code) : http://code.google.com/p/flex-iframe/ And, check out his blog for some really excellent components for mapping and such: http://www.netthreads.co.uk/ ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nathanpdaniel Sent: Tuesday, October 28, 2008 8:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Html file in Flex application. The link: http://blogs.adobe.com/aharui/2008/01/html_and_flex_1.html Everything you'd need to get started (according to the blog! :D) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Ralf Bokelberg [EMAIL PROTECTED] wrote: Unfortunately it is not that easy. The Flex/Flash TextField displays a small subset of html only, eg. a, p, b, i, u, li, font and br. All the other tags are ignored A common method to display a full fledged html page is to place a html iframe on top of the Flex application. Alex Harui showed a experimental approach of interpreting xhtml inside Flex. Try searching for Alex' blog. Cheers Ralf. On Tue, Oct 28, 2008 at 9:40 AM, kotha poornima [EMAIL PROTECTED] wrote: Hi all, Can i embed html file in my flex application? If it is possible please give me an idea how can i do the same. Thanks in Advance, Poornima.
RE: [flexcoders] Re: row color in advancedDataGrid
Here you go: http://flexpearls.blogspot.com/2008/02/row-background-color-in.html ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Sent: Tuesday, October 28, 2008 10:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: row color in advancedDataGrid Anyone with any ideas? Thanks, Mark --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark [EMAIL PROTECTED] wrote: I have an ADG with about 5 columns and have used AdvancedDataGridRendererProvider to add a SUM at the bottom of a few of the numberd columns that are the last 2 columns. I'd like to color that entire row but I'm having a hard time finding out how to do that. I've found some samples of coloring rows but not within the ADGRP. Has anyone been able to do this? Thanks Mark mx:rendererProviders mx:AdvancedDataGridRendererProvider columnIndex=4 columnSpan=0 depth=3 dataField=summary renderer=myComponents.SumRenderer/ mx:AdvancedDataGridRendererProvider columnIndex=3 columnSpan=0 depth=3 dataField=summary2 renderer=myComponents.SumRenderer2/ /mx:rendererProviders
[flexcoders] Dispatching The itemEditEnd event from within an item editor
I have a custom item editor for a cell in a DataGrid that consists of two ComboBoxes. Everything works perfectly, except I'd like a way to exit the item editor as soon as the user selects from the second combo box. That is, I'd like the item editor to dispatch the itemEditEnd event as if the use had removed the focus from the column being edited. I tried just having the 2nd combo box dispatch the event in response to its change event, but that didn't work. Anyone have any suggestions? TIA, ~randy
[flexcoders] Re: Still no one knows ? Please help.
The CheckBox has two styles that control the color of the actual checkmark: iconColor - the color of the checkmark iconDisabledColor - the color of the checkmark when the control is disabled Just set these to the colors you want. ~randy --- In flexcoders@yahoogroups.com, itdanny2002 [EMAIL PROTECTED] wrote: Does anyone knows how to change the color of bullet (radio) or checkmark in menu box ? Always black.
[flexcoders] Re: Dispatching The itemEditEnd event from within an item editor
Thanks, Tracy. And you're right. I'm only using an ItemEditor. There's no custom renderer. I really don't need a custom renderer because I'm able to pass back a combination of the two selected items in the itemEditEnd event handler. Are you saying that if I used a custom renderer, I could trigger the itemEditEnd event when the selection from the 2nd combo box is made? I'll look into that, but if you have a quick example, it would save me some time. TIA, ~randy --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: It sounds like you are using renderIsEditor=true, which causes the DG to use its own interactive event handling and item updating. For moderately complex interactive renderers, you might be better served by having the renderer handle that work itself. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Randy Martin Sent: Monday, October 20, 2008 7:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dispatching The itemEditEnd event from within an item editor I have a custom item editor for a cell in a DataGrid that consists of two ComboBoxes. Everything works perfectly, except I'd like a way to exit the item editor as soon as the user selects from the second combo box. That is, I'd like the item editor to dispatch the itemEditEnd event as if the use had removed the focus from the column being edited. I tried just having the 2nd combo box dispatch the event in response to its change event, but that didn't work. Anyone have any suggestions? TIA, ~randy
[flexcoders] Dispatching the itemEditEnd event from a custom item editor
I have a custom item editor for a cell in a DataGrid that consists of two ComboBoxes. Everything works perfectly, except I'd like a way to exit the item editor as soon as the user selects from the second combo box. That is, I'd like the item editor to dispatch the itemEditEnd event as if the use had removed the focus from the column being edited. I tried just having the 2nd combo box dispatch the event in response to its change event, but that didn't work. Anyone have any suggestions? TIA, ~randy
RE: [flexcoders] ComboBox in Component won't open to Saved Value
Here's the code for a BindableComboBox. Save it in a file called BindableComboBox.mxml (borrowed this code from Adobe, modified slightly): mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initComponent() mx:Script ![CDATA[ import mx.utils.ObjectUtil; import mx.controls.Alert; [Bindable] public var valueField:String = ; [Bindable] public var labelFields:Array = []; public function initComponent():void { this.labelFunction = renderLabelFunction; } public function renderLabelFunction(item:Object):String { var result:String = ; if (labelFields.length == 0) { if (labelField != null) { return item[labelField]; } else { return item.toString(); } } else { for (var i:int=0; i labelFields.length; i++) { if (i 0) { result += ; } result += item[labelFields[i]]; } } return result; } override public function set selectedItem(val:Object):void { if (this.valueField != null) { for (var i:int=0; i this.dataProvider.source.length; i++) { var item:Object = this.dataProvider.source[i]; if (item[valueField] == val) { this.selectedIndex = i; break; } } } else { super.selectedItem(val); } } public function get selectedItemValue():Object { if (this.valueField != null selectedItem != null) { return selectedItem[valueField]; } else { return text; } } ]] /mx:Script /mx:ComboBox Use it in your components as follows: Get the data back from the database (or webservice, or wherever) into an ArrayCollection that has the fields myID and myName for each item in the combo box. Then, assign the AC to the dataProvider of the BindableComboBox and use the component in your mxml code like this: mycoms:BindableComboBox id=myComboBox valueField=myID labelFields=[myName]/ I also have a search-as-you-type BindableComboBox that's a combination of this component with an auto-complete component I found on the web (not Adobe's) if you're interested. HTH, ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, October 08, 2008 10:05 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value ComboBox.selectedItem will only work if you assign a *reference to an item in the ComboBox dataProvider*. This is rarely possible and is not in your case. What you must do is loop over the items in the CobmoBox.dataProvider and compare the appropriate property's value to the value you want to match. When a match is found, use the loop indes to set the ComboBox's selectedIndex. This is simple enough to do in a one-off situation. If you need this often, then you might want to use an extended ComboBox. Making a generic one is a bit tricky, because the Combo Box dataProvider items can have any properties at all. I have an example on www.cflex.net http://www.cflex.net/ (it allows you to set the data field you want to match) and Ben forta has done one and there are others. Tracy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Pride Sent: Wednesday, October 08, 2008 10:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox in Component won't open to Saved Value Hi I have a ComboBox used as a Popup on a form component. It saves fine using the following function private function closeGenderPop(event:Event):void { ComboBox(event.target).selectedItem.label}; I want to have it display the stored value the next time it is opened. I tried this but no luck. private function openGenderPop(event:Event):void { genderPop.selectedIndex = 1; ComboBox(event.target).selectedItem.label; } Really appreciate the help Dan Pride
RE: [flexcoders] Re: Create Help System in Flex - how to display html in a canvas or component?
You can use an iframe to display html inside a flex app. Check out the IFrame component from here: http://ccgi.arutherford.plus.com/blog/wordpress/?p=133 Also, I'm toying around with using Adobe Captivate to generate flash help files and then display them in flex. You might want to check this out. However, the current version of Captivate generates AS2 code and is somewhat difficult to integrate with AS3 in flex. There are several posts about workarounds with this problem. Adobe is supposed to make Captivate generate AS3 code with the next update. ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, October 10, 2008 2:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Create Help System in Flex - how to display html in a canvas or component? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: Displaying full html in Flex (Flash Player) is not yet possible. What are your requirements? The simplest solution is to use a separate browser to display the html help pages. The Flex side needs to know where in the app the user is, and be able to determine the url to display. Using ExternalInterface you can exercise quite a bit of control over that window's behavior. Doing it all in Flex will be more difficult, primarily on the editing side. Dynamic display based on xml content is easy, but building a dynamic layout that looks like a help system might be a bit tricky. Directly editing xml files is not advised for non-developers, so you would need some king of wysiwyg editor... I would really like to see a Flex integration of something like RoboHelp. Who owns RoboHelp anyway? I think it's those people that bought RoboHelp.
[flexcoders] Re: Scrolling screws up display
Anyone?? This is really driving me crazy! --- In flexcoders@yahoogroups.com, Randy Martin [EMAIL PROTECTED] wrote: This is a strange problem that only seems to happen in Flex 3 (not 2). I have a form that pops up in a panel that needs to scroll vertically. If I use the wheel or click on the scrollbar arrows, the form scrolls correctly. But, if I click and drag the scrollbar thumb, the display goes haywire. By that I mean that only parts of the display scroll and the rest just sits there. If you move the thumb up and down enough, pretty soon the entire display is just a mass of jumbled pixels. Anyone have any idea what could be causing this? TIA, ~randy
RE: [flexcoders] Changing flex app background color
Learn to use a css file in your applications. Then you can change the colors by just changing the css file and recompiling the app. Try this: http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html# Look at how to style the application tag. You should be able to get exactly what you want. HTH, ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Haykel BEN JEMIA Sent: Tuesday, September 23, 2008 9:30 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Changing flex app background color try setting backgroundGradientAlphas and/or backgroundGradientColors on the mx:Application tag. On Wed, Sep 17, 2008 at 11:57 PM, whatabrain [EMAIL PROTECTED] wrote: 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 wmode=transparent when creating the app. 2) Setting backgroundAlpha=0.0 on the mx:Application tag. -- Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com
[flexcoders] Scrolling screws up display
This is a strange problem that only seems to happen in Flex 3 (not 2). I have a form that pops up in a panel that needs to scroll vertically. If I use the wheel or click on the scrollbar arrows, the form scrolls correctly. But, if I click and drag the scrollbar thumb, the display goes haywire. By that I mean that only parts of the display scroll and the rest just sits there. If you move the thumb up and down enough, pretty soon the entire display is just a mass of jumbled pixels. Anyone have any idea what could be causing this? TIA, ~randy
RE: [flexcoders] panel margin
Just put it in your application.css file: Panel { paddingTop = 0; paddingRight = 0; paddingBottom = 0; paddingLeft = 0; } And, viola, no padding on any panels. If you need some panels to have padding, you can add style classes to support that, or just use inline styles on the specific panels that need padding. ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, September 10, 2008 6:19 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] panel margin Yeah. Those kinds of things are a balancing act between fast simple results and easy complex results. In other words, defaults make it easy to slap together a demo, but do not help experienced developers building complex apps. We just has a thread on the scrollbar policy being on by default, which causes all kinds of aggravation in deeply nested apps. As with padding, I'd prefer the default to be off, and let me turn it on if I need it. Tracy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, September 10, 2008 6:30 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] panel margin Right you are, thanks- I eventually figured out it was a default padding in the application. If it was up to me, there would not be any default padding or margins on anything. Tracy Spratt wrote: That is probably padding in the container holding the panel. Tracy * From: * flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of [EMAIL PROTECTED] mailto:%2Ainfo1%40reenie.org *Sent:* Wednesday, September 10, 2008 1:15 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] panel margin Is there some kind of default margin on the flex panel? http://journeyblueh eaven.com/ index.php http://journeyblueheaven.com/index.php in the right hand section, the panel is just the right size, but there are right and left margins that create a scroll bar at the bottom of the right hand section. I can't seem to get rid of the margins. -- Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.6.19/1664 - Release Date: 9/10/2008 6:00 AM
RE: [flexcoders] Options on ActionScript 3.0 Editing in FLEX
OK. I've been reading this thread with some interest. After all, everyone needs a little humor in their daily life. J I'm amazed that we, as human beings, still let words anger us so much. So what if someone tells you to FO? Sticks and stones may break your bones, but words. If you lived in New York or New Jersey, you'd probably hear the f-word several hundred times a day in normal conversation. They'd just tell you to forget about it. So, Robert, my suggestion to you (and it's just a suggestion - I would never presume to tell you what to do) is to just let it go. If you have an issue with Josh, please take it off-list. After all, it is just between you and Josh. Also, just as a last little observation, Robert, thou dost protest too much, methinks. In the immortal words of the Eagles on their Hell Freezes Over comeback album, just Get Over It. Of course, that's just my opinion. I could be wrong - I've been wrong at least one other time that I can remember. J ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert Thompson Sent: Monday, September 01, 2008 3:37 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Options on ActionScript 3.0 Editing in FLEX By the way, the Enterprise version, which I'm still in a 30 day evaluation of, was just released in March (and again I just discovered it, and you somehow know most people on the list use it, I've done some searches on the group and see no evidence of that lofty claim). How is it you are speaking for everyone that I shouldn't post what I said below FDT Enterprise Edition and you write back a diplomatically polite, but obvious intended message. Just leave my posts alone if you don't like them. I share the excitement of a great new tool discovered, are you pompously speak for everyone and implicitly tell me to shut up by calling me a public service announcer. This is just you and Josh and a few others who appear to want to be the only people contributing anything here. Nothing is as clear as the message of Josh to tell me to F off. Yet you ignore that. Hypocrisy. -r On Sep 1, 2008, at 3:47 PM, Paul Andrews wrote: Robert loads of people already know about FDT, many people here and on flashcoders use it. Nobody here wants anyone acting like some public service announcer here on the forums. It's highly patronising to list. It'all going to end in tears. - Original Message - From: Robert Thompson mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, September 01, 2008 8:38 PM Subject: [flexcoders] Options on ActionScript 3.0 Editing in FLEX Just as a note on ActionScript 3.0 Editing in FLEX. Papervision3D just posted news of their contest, endorsed FDT Enterprise Edition as their preferred ActionScript Editor. From Papervision3D.org, quote, 2nd Place- VectorVision - Winner of http://fdt.powerflasher.com/ FDT Enterprise Edition (our preferred ActionScript editor) Papervision3D is a great organization who has dramatically improved flexcoding possibilities. FDT + Papervision3D = Great news for everyone. http://blog.papervision3d.org/ -r Note: As a recommendation I was given, I note that this is an appropriately verified post to inform [flexcoders] of important information. Please do not reply in a counter-productive or aggressive fashion to good news that provides value to [flexcoders] :-)
RE: [flexcoders] permission based ui
Actually, I do this all the time with a viewstack. The way I do it is I have the main application check the security and setup a security level parameter. Then, I pass this secLevel to the component that contains the viewstack. In the viewstack component, each view in the viewstack is its own component, so you can use the includeInLayout and visible properties of the component to show it or not show it based on the value of secLevel. Works like a charm. Main.mxml mx:states mx:State name=checkSecurity mx:AddChild ...show only a progress bar to the user while checking the security in ActionScript ...you setup the secLevel /mx:AddChild /mx:State mx:State name=mainApplication mx:AddChild comps:MainApp id=mainApp secLevel={this.secLevel}/ /mx:AddChild /mx:State /mx:states MainApp.mxml mx:ToggleButtonBar id=mainButtonBar dataProvider={vs}/ mx:ViewStack id=vs comps:FirstButton id=first/ comps:SecondButton id=second/ comps:ThirdButton id=third/ comps:Setup id=setup includeInLayout={(secLevel == 0)?true:false} visible={(secLevel == 0)?true:false}/ /mx:ViewStack And, voila, you only see the Setup button if you're secLevel is 0. HTH, ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, July 30, 2008 11:18 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] permission based ui Do not use the ViewStack as the dataProvider. Build the navigation system’s dataProvider as needed for the curent user, include the view index in each item. On click, assign the item.viewIndex property value to the viewStack.selectedI-tem. Tracy _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Wednesday, July 30, 2008 11:55 AM To: [EMAIL PROTECTED] Subject: [flexcoders] permission based ui hi, i have my main UI setup with a ToggleButtonBar whos dataprovider is a viewstack. I need to incorporate permissions into my application, some users won't have access to the 'Setup' section for example- is there an easy way to do this or do i need to subclass ToggleButtonBar? how do you all handle permissions in mxml layout? i have many examples of this, form sections that are permission based and such, I don't know the best way to handle it. thanks, derrick anderson No virus found in this outgoing message. Checked by AVG. Version: 7.5.523 / Virus Database: 270.5.8/1582 - Release Date: 7/30/2008 6:37 PM
RE: [flexcoders] Bake XML File into ActionScript
You can include an ActionScript file in it's own script block. Then in the .as file, you could just have the XML defined and nothing else. // put this in books.as -- or whatever filename you choose private var novel:XML = BOOKTITLEMy Book/TITLE/BOOK; ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script source=books.as/ ... rest of your code /mx:Application HTH, ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of edlueze Sent: Sunday, July 20, 2008 11:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Bake XML File into ActionScript What's the best way to compile an XML file directly into ActionScript? You can assign an XML literal to a variable as such: var novel:XML = BOOKTITLE-My Book/TITLE-/BOOK But it would be much better to have the XML in an externally managed file. I'd much prefer to do something like: var novel:XML = {include Books.xml;-}; But this doesn't seem to be allowed. I could load the XML file at runtime but then I'd have to deal with the asynchronous nature of the loading and I'd have to handle any runtime errors if there was a problem - yuck! If I was working in MXML I'd be able to do something very elegant such as using the compile-time tag mx:XML id=MyBooks source=books.-xml/ So how do I include XML into ActionScript in a way that is as elegant as it is for MXML? No virus found in this outgoing message. Checked by AVG. Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date: 7/19/2008 2:01 PM
RE: [flexcoders] Re: Bake XML File into ActionScript
I'd just read the XML file in using HttpService. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of edlueze Sent: Sunday, July 20, 2008 1:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Bake XML File into ActionScript Hi Randy - thanks for the feedback! I was hoping to find a way to preserve the XML file without contaminating it with the private var novel:XML = bit. That way I can create the XML file using my favorite XML generator (and use a validating XSD schema to make sure everything is correct). When the XML file looks good I can simply drop it into my Flex project - overriding the previous XML file - and everything should just compile. That approach would work if I was working in MXML using the mx:XML id=MyBooks source=books.-xml/ tag. I was hoping there was an equivalent way to do it when working purely with ActionScript .as files. Any ideas? --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Randy Martin [EMAIL PROTECTED] wrote: You can include an ActionScript file in it's own script block. Then in the .as file, you could just have the XML defined and nothing else. // put this in books.as -- or whatever filename you choose private var novel:XML = BOOKTITLE-My Book/TITLE-/BOOK; ?xml version=1.0 encoding=utf--8? mx:Application xmlns:mx=HYPERLINK http://www.adobe.com/2006/mxmlhttp://www.adobe.-com/2006/-mxml; layout=absolute- mx:Script source=books.-as/ ... rest of your code /mx:Application HTH, ~randy _ From: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On Behalf Of edlueze Sent: Sunday, July 20, 2008 11:02 AM To: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] Subject: [flexcoders] Bake XML File into ActionScript What's the best way to compile an XML file directly into ActionScript? You can assign an XML literal to a variable as such: var novel:XML = BOOKTITLE--My Book/TITLE--/BOOK But it would be much better to have the XML in an externally managed file. I'd much prefer to do something like: var novel:XML = {include Books.xml;--}; But this doesn't seem to be allowed. I could load the XML file at runtime but then I'd have to deal with the asynchronous nature of the loading and I'd have to handle any runtime errors if there was a problem - yuck! If I was working in MXML I'd be able to do something very elegant such as using the compile-time tag mx:XML id=MyBooks source=books.--xml/ So how do I include XML into ActionScript in a way that is as elegant as it is for MXML? No virus found in this outgoing message. Checked by AVG. Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date: 7/19/2008 2:01 PM No virus found in this outgoing message. Checked by AVG. Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date: 7/19/2008 2:01 PM
[flexcoders] Export Release Build
When I export release build in FB 3, if I leave Enable view source unchecked, I get the error message: Flex Builder could not publish the project source: the application file Main.mxml was not found. I click OK, and the project exports just fine. I shouldn't get this error if I don't enable source view, right?
[flexcoders] Re: Best way to secure a ColdFusion web service
I've never actually done this, but can't you encrypt the credentials in Flex, send them to the webservice, and decrypt them in the service? ~randy --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 25 Apr 2008, valdhor wrote: We don't use Flex to access our Web Services; We use PHP or Perl. To stop unauthorized access we use a combination of SSL as well as wssecurity Just to be clear, this doesn't 'stop' anyone writing their own client for your service. -- Tom Chiverton Helping to widespreadedly streamline intuitive markets on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Best way to secure a ColdFusion web service
Check out the AS3Crypto library at http://crypto.hurlant.com/ http://crypto.hurlant.com/ ~randy --- In flexcoders@yahoogroups.com, Randy Martin [EMAIL PROTECTED] wrote: I've never actually done this, but can't you encrypt the credentials in Flex, send them to the webservice, and decrypt them in the service? ~randy --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: On Friday 25 Apr 2008, valdhor wrote: We don't use Flex to access our Web Services; We use PHP or Perl. To stop unauthorized access we use a combination of SSL as well as wssecurity Just to be clear, this doesn't 'stop' anyone writing their own client for your service. -- Tom Chiverton Helping to widespreadedly streamline intuitive markets on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] i-frames on flex2
I've found that Alistair Rutherford's iFrame component is by far the most reliable and easiest to use. You can find it here HYPERLINK http://ccgi.arutherford.plus.com/blog/wordpress/?page_id=171http://ccgi.ar utherford.plus.com/blog/wordpress/?page_id=171 ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Tuesday, April 15, 2008 9:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] i-frames on flex2 HYPERLINK http://www.themidnightcoders.com/blog/2006/12/mixing-html-and-flex-using-if rame.html \nhttp://www.themidni-ghtcoders.-com/blog/-2006/12/mixing--html-and--flex-us ing--iframe.html On Tue, Apr 15, 2008 at 10:42 AM, Gustavo Duenas HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] m wrote: I heard about i-frames in order to load html pages inside flex, anyone knows a good tutorial about that? Regards Gustavo No virus found in this outgoing message. Checked by AVG. Version: 7.5.523 / Virus Database: 269.23.0/1382 - Release Date: 4/16/2008 5:34 PM
RE: [flexcoders] AIR SQL - Datatype issues
Try this: private var dbConn:SQLConnection; private var dbFile:File; private function init():void { dbFile = File.applicationStorageDirectory.resolvePath(contact.db); dbConn = new SQLConnection(); dbConn.addEventListener(SQLEvent.OPEN, createContactTable); dbConn.addEventListener(SQLErrorEvent.ERROR, sqlError); dbConn.open(dbFile); // create the table private function createContactTable():void { var dbStatement:SQLStatement = new SQLStatement(); dbStatement.sqlConnection = dbConn; var dbQuery:String = CREATE TABLE IF NOT EXISTS contact ( + contID INTEGER PRIMARY KEY AUTOINCREMENT, + firstName TEXT, + lastName TEXT, + DOB DATETIME + );; dbStatement.text = dbQuery; dbStatement.addEventListener(SQLEvent.RESULT, createdContact); dbStatement.addEventListener(SQLErrorEvent.ERROR, sqlError); dbStatement.execute(); } // put a contact in the table private function createdContact(event:SQLEvent):void { var dbStatement:SQLStatement = new SQLStatement(); dbStatement.sqlConnection = dbConn; var dbQuery:String = INSERT INTO contact (firstName, lastName, dob) + VALUES (:fn, :ln, :dob);; dbStatement.text = dbQuery; dbStatement.parameters[:fn] = John; dbStatement.parameters[:ln] = Doe; // set dob to 11/28/1973 -- remember, the month field is 0-based dbStatement.parameters[:dob] = new Date(1973, 10, 28); dbStatement.addEventListener(SQLEvent.RESULT, insertComplete); dbStatement.addEventListener(SQLErrorEvent.ERROR, sqlError); dbStatement.execute(); } That's it. SQLite has a datetime object just like a normal sql server. The above code is incomplete -- is doesn't have the error handler or the insertComplete handler. HTH, ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Aebig Sent: Monday, April 07, 2008 11:43 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AIR SQL - Datatype issues Hi Fidel, Actually, the version of SQLite that AIR uses has been customized to implement dates as julian dates and stores them as REAL. My issue arises in that I’m getting the dates originally from a MySQL DateTime column and still want to be able to use that form of formatting to query the local database with date ranges and ordering… It would be nice if there were better examples of using the AIR SQL engine… !k _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fidel Viegas Sent: Monday, April 07, 2008 9:52 AM To: [EMAIL PROTECTED] Subject: Re: [flexcoders] AIR SQL - Datatype issues On Mon, Apr 7, 2008 at 4:22 PM, Kevin Aebig HYPERLINK mailto:kevin%40keslabs.com[EMAIL PROTECTED] wrote: Hey all, I've looked at the documentation about 400 times now and can't seem to find myself an example of using a column of datatype Date within AIR SQL. I know that it's been customized to use Actionscript / JavaScript Date objects, but I can't get it to work properly for the life of me. Any examples or pointers? The database engine used in Air is SQLite. I am not that experienced with SQLite, but I suppose that there should be a DATE and TIME datatypes. I have seen people use Text and Real for storing date values. So, just do a search on the web for sqlite. All the best, Fidel.. HYPERLINK http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/msgI d=109106/stime=1207584342/nc1=4507179/nc2=3848644/nc3=5170406 No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.8/1362 - Release Date: 4/6/2008 11:12 AM
RE: [flexcoders] Re: Flex Beta 3 to Flex 3 Migration Problems
I second this. The problems I had all went away after I got rid of the config files for prior versions of FB. You might also try starting FB with the -clean option. In the flexbuilder.ini file (or the eclipse.ini file if you're using the FB plug-in), insert -clean as the first line and save the file. Restart flex builder. HTH, ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glenn Williams Sent: Tuesday, April 01, 2008 4:53 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flex Beta 3 to Flex 3 Migration Problems this is how I did it. create a new project in 3 final. then copy the code I’d written in 3 beta and assets into new project. the problem I had was with the files in the old project that aren’t code (configs n stuff) Glenn From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Tuesday, April 01, 2008 10:49 AM To: [EMAIL PROTECTED] Subject: [flexcoders] Re: Flex Beta 3 to Flex 3 Migration Problems My developers are also complaining that their 'and my' applications have broken since Beta 3 to the Final release. This has hit me unexpectedly as I did not test. On top of that I have deadlines to meet this week. Is there a doc i can refer to get a complete list of changes.. What's the best way to roll back to beta 3, at least so i can get these next presentations out the door. --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], a3leggeddog_-ca [EMAIL PROTECTED] wrote: This application is somewhat unusual in that we dynamically create components in accordance with a user defined XML file. We switched from BETA 3 Milestone 4 to the new released GA version of Flex. The anomolies that we are seeing are in multiple areas. The most evident are in the initial creation of widgets. We use an Accordion component and programatically introduce child panels with textboxes, comboboxes, etc. The comboboxes are tied to ArrayCollections dynamically derived from web service calls. Everything worked fine in BETA but when we switched, all hell broke loose. 1) The Headers for the 2nd Accordion panel (there are two total) is now off the screen 2) There now appears a vertical scroll bar, where there was none in the BETA version 3) When attempting to select the 2nd panel, via the header, it does not open the panel the first time. Disappears from view and we have to scroll down to it and click the header again, at which time it now selects the 2nd panel appopriately. 4) There are items in the comboboxes, but when I click tje button to expose the dropdown the program starts behaving erraticly. It will select another item, but the response becomes extremely slow and eventually memory usage goes way up, the fan comes on and the screen will eventually lock up 5) On the comboboxes which I have a typeahead programmed (after 3 characters the component automatically calls a web service to provide content via a database call). The content comes back, but the behavior is different than it was during BETA. It should display a dropdown list allowing the user to choose the corect content. It now selects the first item in the list and does not display the dropdown. The behavior that I am seeing is different across the board, from BETA to the new release version. It often ends up in some race condition where it eats up memory and eventually stops responding and needs to be force quit. No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.3/1354 - Release Date: 4/1/2008 5:38 AM image001.png
RE: [flexcoders] Re: Flex 3: Cloning WebService instance
You really need to take a look at the webservice introspection wizard in FB 3. The code it generates handles asynchronous calls to the webservice automatically. Click on the Data menu and select Import Web Service (WSDL)... Follow the directions in the wizard. Only SOAP 1.1 is supported by the wizard, so be sure to select the correct SOAP version when doing the import. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of handitan Sent: Monday, March 24, 2008 10:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 3: Cloning WebService instance With what I want to achieve, webservices that I am referring to are instances of the same webservices (one single url). Single WebService instance will not work on my application because my app sometimes need to call different/same operations concurrently. I do want to mention the issue I am facing if I am not using the cloning-approach. Please take a look at this code: class CustomWS { public getWS():WebService { var myWS:WebService = new WebService; myWS.wsdl = HYPERLINK http://BoogaBooga/coolFlex.asmx?wsdlhttp://BoogaBooga/-coolFlex.-asmx?wsdl ; myWS.loadWSDL(-); } public populateGridWS(-):void { var ws:WebService = getWS(); ws.populateGrid(-); } } As you can see each time getWS() is being called, wsdl needs to be loaded, which calling HTTP request. That's why I would like to clone the webservice instance (myWS) after the wsdl has been loaded so that I can reuse it. But if you do have other suggestions on how to resolve this in a better way, I am all ears :) --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Peeyush Tuli [EMAIL PROTECTED] wrote: Still not sure that cloning is the best option, although centralization of webservices is a good idea. When you say webservices, does it mean there is a different wsdl for each webservice? Or are they just plain multiple instances of the same webservice( one single url)? A webservice call is operation-centric. So if your flex client does not invoke same operations concurrently and there is a single wsdl to load, you could manage with a single webservice instance for the whole application. ~Peeyush On Fri, Mar 21, 2008 at 8:50 PM, handitan [EMAIL PROTECTED] wrote: Hi Peeyush, It's kind of long to explain it but in short, this is to help me centralize all my webservice call into one location. So instead of having mx:WebService / in every component, I am just calling webservice from a class that contains all the WebServices. i.e. class CustomWS { public getWS():WebService { //This is where the cloning takes place } public populateGridWS(-):void { var ws:WebService = getWS(); ws.populateGrid(-); } } Hope this is pretty clear. --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] flexcoders% 40yahoogroups.-com, Peeyush Tuli peeyush81@ wrote: Can you let us know the your requirement for doing this? ~Peeyush On Fri, Mar 21, 2008 at 4:01 AM, handitan handitan@ wrote: Howdy, I have been trying to clone a WebService instance with no result. Is it really possible to do it? I have looked on the web and Flex 3 help but I couldn't find the way. I already tried using ObjectUtil.copy(-) but it is not copying all the webservice's members. Thank you. No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1340 - Release Date: 3/23/2008 6:50 PM
RE: [flexcoders] again tool tips
Define myTT outside the function. One other thing, if you define myTT as an ImageToolTip, you can't return it from the function createTip because you defined createTip as returning CustomToolTip. So, either you have to define myTT as a CustomToolTip or you have to say that createTip returns an ImageToolTip. Like this: private var myTT:ImageToolTip; private function createTip(s:String):ImageToolTip { myTT = new ImageToolTip(); myTT.myImage = s; s = {data.image}; return myTT; } or private var myTT:CustomToolTip; private function createTip(s:String):CustomToolTip { myTT = new ImageToolTip(); myTT.myImage = s; s = {data.image}; return myTT; } HTH, ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Tuesday, May 20, 2008 11:38 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] again tool tips sorry if I bother you, but tell me this more in detail. Regards, Gustavo On Mar 20, 2008, at 5:44 PM, Tracy Spratt wrote: When you declare a variable inside a function it is only available within that function. You need to declare myTT in the instance scope, that is, not in a function, and then assign the value inside the function. Tracy _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Thursday, March 20, 2008 2:59 PM To: [EMAIL PROTECTED] Subject: [flexcoders] again tool tips Ok, I've just resolved the problem of the found or missing package. now I have this problem, I've been trying to set the tooltip but so far it says that It cannot acces the undefined property myTT, which is on the script Help me out, I know I've been missing something but I can't figured it out. ///this is the code of my repeater ?xml version=1.0 encoding=utf--8? mx:VBox xmlns:mx=HYPERLINK http://www.adobe.com/2006/mxmlhttp://www.adobe.-com/2006/-mxml; width=309 height=196 verticalScrollPolic-y=off mx:Script ![CDATA[ import mx.events.*; import myComponents.-*; private function createTip(s:-String):CustomTo-olTip{ var myTT:ImageToolTip = new ImageToolTip(-);// I though myTT was defined...help me!!:| myTT.myImage=-s; s={data.image}-; return myTT; } ]] /mx:Script mx:Style .imageStyle{ align:center; } /mx:Style mx:Text text={data.client} fontSize=16 fontWeight=bold fontStyle=italic color=#2E2A2A textAlign=center width=237/ mx:Image id=imag source={data.image} scaleContent= false autoLoad=true styleName=imageStyle toolTip= toolTipCreate=-event.toolTip=this.createTip(myTT.-text)/ // this is the part of the problem// //this is the message// Id 1120: Access of undefined property myTT. /mx:VBox No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1337 - Release Date: 3/20/2008 8:10 PM
RE: [flexcoders] Select all checkboxes in datagrid with a single click
You might want to check this: HYPERLINK http://deepuverma.wordpress.com/2008/01/10/datagrid-headerrenderer-checkbox -to-select-checkboxes-in-the-row/http://deepuverma.wordpress.com/2008/01/10 /datagrid-headerrenderer-checkbox-to-select-checkboxes-in-the-row/ ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of p_repetti Sent: Friday, March 21, 2008 6:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Select all checkboxes in datagrid with a single click Hello I have created a DataGrid component whose last column is rendered/edited with a checkbox. This checks whether the row data will be sent to the server or not. Rather than forcing the user to check all of the rows manually, I have a Select All button which commands the selection of all the checkboxes in that column. My problem is that I can't write the code to implement the selection. It is AS code most likely, but I could not find an example going through docs/forums/-whatever. How do I loop over the DataGridColumn object to get the CheckBox instances ? Can anyone point me to useful examples/references ? Thanks -- View this message in context: HYPERLINK http://www.nabble.com/Select-all-checkboxes-in-datagrid-with-a-single-click -tp16196734p16196734.htmlhttp://www.nabble.-com/Select--all-checkboxes--in- datagrid--with-a-single--click-tp16196734-p16196734.-html Sent from the FlexCoders mailing list archive at Nabble.com. No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1337 - Release Date: 3/20/2008 8:10 PM
RE: [flexcoders] HTML Wrapper
Edit the index.template.html file in the html-template directory of your project. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Friday, March 21, 2008 11:58 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] HTML Wrapper Happened to me �too, so I guess you do well having the SEO in a external archive, then when� the final application is done, just copy and paste, is the only way I think . Or just when you need the update, just copy/replace anything but the html wrapper. Regards Gustavo On Mar 21, 2008, at 12:46 PM, Don Kerr wrote: My html page in /bin contains metatags for search description and keywords. Each time I compile in Flex Builder 3, this html gets overwritten. I've been saving the metatags in a separate directory, then copy/pasting them into the new wrapper page. Is the solution to uncheck the generate HTML wrapper in the Compiler settings? Or is there a better way to manage this? I need the description/-keywords so my app gets pick up on google, etc. I haven't investigated search engine optimization stuff yet. Maybe there is a better way now.� Recommendations? Thanks, Don No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1337 - Release Date: 3/20/2008 8:10 PM
RE: [flexcoders] Flex Soap Object Arrays
I would be glad to help you, but I can't get anything back from the URL in your post? ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Telmo Dias Sent: Sunday, March 02, 2008 10:56 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex Soap Object Arrays Hi Randy, I've just tested it on the final version of FB3 and I still get the same. Can you please try to create it and show me how you do it ? Thanks a lot. Telmo Randy Martin wrote: Try using the WSDL wizard in FB3. It works a treat! ~randy _ From: HYPERLINK mailto:flexcoders@yahoogroups.com[EMAIL PROTECTED] [HYPERLINK mailto:flexcoders@yahoogroups.commailto:[EMAIL PROTECTED] On Behalf Of Telmo Dias Sent: Saturday, March 01, 2008 11:47 AM To: HYPERLINK mailto:flexcoders@yahoogroups.com[EMAIL PROTECTED] Subject: [flexcoders] Flex Soap Object Arrays Hi all, First of all , I'm new to flex. Already bought a few books but none describes this issue in detail. I'm having huge trouble accessing object arrays from SOAP. I'm using Flex Builder 3, Version: 3.0.190133, the last beta version. I used the Import Web Services wizard to import HYPERLINK http://ws.marcocova.com/SOAP/af4.php?wsdlhttp://ws.marcocova-.com/SOAP/-af 4.php?wsdl . My partner who writes the SOAP code, has tried several approaches. In the approaches before the current one, I couldn't even get a simple var, it would always come in as null. Now I can get simple vars like strings or numbers, but I'm unable to get Arrays. Below is the code I'm using. At this moment when I debug I'm getting the error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at WSDL8_AF4/processRe-sults()[F:-\Para_Novo_-CD\BACKUPS\-My Documents\Flex Builder 3\WSDL8_AF4\-src\WSDL8_-AF4.mxml:-32] at flash.events:-:EventDispatcher-/dispatchEventFu-nction() at flash.events:-:EventDispatcher-/dispatchEvent(-) at com.marcocova:-:ExampleService/-_getPeopleByFirs-tLastName_-populate_-result s()-[F:\Para_-Novo_CD\BACKUPS\-My Documents\Flex Builder 3\WSDL8_AF4\-src\com\marcocov-a\ExampleService-.as:147] at flash.events:-:EventDispatcher-/dispatchEventFu-nction() at flash.events:-:EventDispatcher-/dispatchEvent(-) at com.marcocova:-:BaseExampleServ-ice/processResul-t()[F:\Para_-Novo_CD\BACKUP S\-My Documents\Flex Builder 3\WSDL8_AF4\-src\com\marcocov-a\BaseExampleSer-vice.as:207] at mx.rpc::AsyncRespon-der/result(-)[E:\dev\-flex_3_beta3\-sdk\frameworks\-proj ects\-rpc\src\mx\-rpc\AsyncRespond-er.as:73] at mx.rpc::AsyncReques-t/acknowledge(-)[E:\dev\-flex_3_beta3\-sdk\frameworks\-p rojects\-rpc\src\mx\-rpc\AsyncRequest-.as:81] at DirectHTTPMessageRe-sponder/complete-Handler()-[E:\dev\flex_-3_beta3\sdk\-fr ameworks\-projects\-rpc\src\mx\-messaging\-channels\-DirectHTTPChanne-l.as:3 87] at flash.events:-:EventDispatcher-/dispatchEventFu-nction() at flash.events:-:EventDispatcher-/dispatchEvent(-) at flash.net::URLLoade-r/onComplete(-) Can someone who understands this, please help me? I've been around this issue for one week without results... Already checked the posts on the list, since 14/11/2007. Thanks in advance. Telmo Dias ?xml version=1.0 encoding=utf--8? mx:Application xmlns:mx=HYPERLINK http://www.adobe.com/2006/mxmlhttp://www.adobe.-com/2006/-mxml; layout=absolute initialize=-getResults(-) mx:Script ![CDATA[ import com.marcocova.-*; //classes resultant from the wizard import mx.collections.-ArrayCollection; import mx.utils.ArrayUtil; public function getResults()-:void{ var myService:ExampleSe-rvice = new ExampleService(-); //* Step 2: for the desired operation add a result handler (a function that you have already defined previously) myService.addgetPeo-pleByFirstLastNa-meEventListener(-processResults)-; //* Step 3: Call the operation as a method on the service. Pass the right values as arguments: myService.getPeople-ByFirstLastName(-'*','*'); } public function processResults(-res:GetPeopleByF-irstLastNameResu-ltEvent):-void{ trace(typeof res.result); //this outputs object for (var x in res.result){ trace(typeof x);//doesn't even trace once } var arrRes:ArrayCollect-ion = res.result; var arrPerson:Array = arrRes.toArray(-); var pers:Person = Person(arrPerson[-0]); trace(pers.firstNam-e); //nothing either } ]] /mx:Script /mx:Application -- Telmo Dias HYPERLINK mailto:telmo%40xyle.pt[EMAIL PROTECTED] XYLE [Xyledot Unipessoal Lda.] R. Dr. Jose Martinho Simoes, 81 3260-421 Figueiro dos Vinhos - Leiria - Portugal Website HYPERLINK http://www.xyle.ptwww.xyle.pt Tel/Phone +351236551671 Tlm/Cell +351918047464 -_-_-_-_-_ Nota de confidencialidade: Esta mensagem poderá conter informação priveligiada e confidencial destinando-se exclusivamente ao destinatário da mesma. Se não é o destinatário da presente comunicação, agradecemos que nos informe e elimine a mensagem sem que a mesma seja divulgada, distribuida ou copiada. Obrigado
RE: [flexcoders] Re: RTF vs RTE
Why not write Word XML directly? I write Excel XML directly from several apps, and create spreadsheets with merged columns, subtotals, totals, formulas, etc. directly with XML. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Sunday, March 02, 2008 10:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RTF vs RTE --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], aceoohay [EMAIL PROTECTED] wrote: Amy: Thanks for the post. No, actually I will be doing this in flex, not AIR. What I would like to do is to have a mini word processor that a user can edit and save RTF type files. I will define a tag such as [fieldName]- or the like where the user can specify fields that are in the db. To do the merge I will take the RTF file with tags, and process it on the backend and feed it back to a new window with application/-word metatag and viola word pops up with the document ready to print. At least that's how it should work in theory. Probably not what you want to hear, but you could probably do something like this: HYPERLINK http://support.microsoft.com/default.aspx?scid=kb%3bEN-US%3b270906http://s upport.-microsoft.-com/default.-aspx?scid=-kb%3bEN-US%-3b270906 This article HYPERLINK http://en.wikipedia.org/wiki/Rich_Text_Formathttp://en.wikipedia-.org/wiki /-Rich_Text_-Format has links at the bottom that point to some server-side RTF writing tools. HTH; Amy No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.21.3/1306 - Release Date: 3/1/2008 5:41 PM
RE: [flexcoders] Flex Soap Object Arrays
Try using the WSDL wizard in FB3. It works a treat! ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Telmo Dias Sent: Saturday, March 01, 2008 11:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Soap Object Arrays Hi all, First of all , I'm new to flex. Already bought a few books but none describes this issue in detail. I'm having huge trouble accessing object arrays from SOAP. I'm using Flex Builder 3, Version: 3.0.190133, the last beta version. I used the Import Web Services wizard to import HYPERLINK http://ws.marcocova.com/SOAP/af4.php?wsdlhttp://ws.marcocova-.com/SOAP/-af 4.php?wsdl . My partner who writes the SOAP code, has tried several approaches. In the approaches before the current one, I couldn't even get a simple var, it would always come in as null. Now I can get simple vars like strings or numbers, but I'm unable to get Arrays. Below is the code I'm using. At this moment when I debug I'm getting the error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at WSDL8_AF4/processRe-sults()[F:-\Para_Novo_-CD\BACKUPS\-My Documents\Flex Builder 3\WSDL8_AF4\-src\WSDL8_-AF4.mxml:-32] at flash.events:-:EventDispatcher-/dispatchEventFu-nction() at flash.events:-:EventDispatcher-/dispatchEvent(-) at com.marcocova:-:ExampleService/-_getPeopleByFirs-tLastName_-populate_-result s()-[F:\Para_-Novo_CD\BACKUPS\-My Documents\Flex Builder 3\WSDL8_AF4\-src\com\marcocov-a\ExampleService-.as:147] at flash.events:-:EventDispatcher-/dispatchEventFu-nction() at flash.events:-:EventDispatcher-/dispatchEvent(-) at com.marcocova:-:BaseExampleServ-ice/processResul-t()[F:\Para_-Novo_CD\BACKUP S\-My Documents\Flex Builder 3\WSDL8_AF4\-src\com\marcocov-a\BaseExampleSer-vice.as:207] at mx.rpc::AsyncRespon-der/result(-)[E:\dev\-flex_3_beta3\-sdk\frameworks\-proj ects\-rpc\src\mx\-rpc\AsyncRespond-er.as:73] at mx.rpc::AsyncReques-t/acknowledge(-)[E:\dev\-flex_3_beta3\-sdk\frameworks\-p rojects\-rpc\src\mx\-rpc\AsyncRequest-.as:81] at DirectHTTPMessageRe-sponder/complete-Handler()-[E:\dev\flex_-3_beta3\sdk\-fr ameworks\-projects\-rpc\src\mx\-messaging\-channels\-DirectHTTPChanne-l.as:3 87] at flash.events:-:EventDispatcher-/dispatchEventFu-nction() at flash.events:-:EventDispatcher-/dispatchEvent(-) at flash.net::URLLoade-r/onComplete(-) Can someone who understands this, please help me? I've been around this issue for one week without results... Already checked the posts on the list, since 14/11/2007. Thanks in advance. Telmo Dias ?xml version=1.0 encoding=utf--8? mx:Application xmlns:mx=HYPERLINK http://www.adobe.com/2006/mxmlhttp://www.adobe.-com/2006/-mxml; layout=absolute initialize=-getResults(-) mx:Script ![CDATA[ import com.marcocova.-*; //classes resultant from the wizard import mx.collections.-ArrayCollection; import mx.utils.ArrayUtil; public function getResults()-:void{ var myService:ExampleSe-rvice = new ExampleService(-); //* Step 2: for the desired operation add a result handler (a function that you have already defined previously) myService.addgetPeo-pleByFirstLastNa-meEventListener(-processResults)-; //* Step 3: Call the operation as a method on the service. Pass the right values as arguments: myService.getPeople-ByFirstLastName(-'*','*'); } public function processResults(-res:GetPeopleByF-irstLastNameResu-ltEvent):-void{ trace(typeof res.result); //this outputs object for (var x in res.result){ trace(typeof x);//doesn't even trace once } var arrRes:ArrayCollect-ion = res.result; var arrPerson:Array = arrRes.toArray(-); var pers:Person = Person(arrPerson[-0]); trace(pers.firstNam-e); //nothing either } ]] /mx:Script /mx:Application -- Telmo Dias HYPERLINK mailto:telmo%40xyle.pt[EMAIL PROTECTED] XYLE [Xyledot Unipessoal Lda.] R. Dr. Jose Martinho Simoes, 81 3260-421 Figueiro dos Vinhos - Leiria - Portugal Website www.xyle.pt Tel/Phone +351236551671 Tlm/Cell +351918047464 -_-_-_-_-_ Nota de confidencialidade: Esta mensagem poderá conter informação priveligiada e confidencial destinando-se exclusivamente ao destinatário da mesma. Se não é o destinatário da presente comunicação, agradecemos que nos informe e elimine a mensagem sem que a mesma seja divulgada, distribuida ou copiada. Obrigado. No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.21.2/1305 - Release Date: 2/29/2008 6:32 PM
RE: [flexcoders] Prohibiting Old Chart from Displaying while new Chart renders
Put a progress bar in a model popup window when you call the data provider routine. Add a listener for the result event from the data provider routine, and take the model popup down when you finish processing the result from your data provider. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brad Bueche Sent: Sunday, February 17, 2008 8:20 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Prohibiting Old Chart from Displaying while new Chart renders Well really I think the problem could be solved (1 way anyway) by just telling it not to move to the next view (viewstack) until my initDataDrovider function finishes. Is there a way to do this? I'm not used to things operating in parallel. I need the program to wait until the dataprovider function returns. brad -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Saturday, February 16, 2008 6:00 PM To: [EMAIL PROTECTED] Subject: Re: [flexcoders] Prohibiting Old Chart from Displaying while new Chart renders can you do some sort of mockup file, you can always try to call any of the validation methods and see if that works - Original Message From: Brad Bueche [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 16, 2008 3:12:13 PM Subject: [flexcoders] Prohibiting Old Chart from Displaying while new Chart renders I have a chart that, at year level, allows users to drill down into individual months. The problem is that if the user drills down into march, then comes back up to the year level (via viewstack bread-crumb trail button), and then drills down into October, for a spilt second the march data will still be on the screen. I have been knocking my head against the wall all day (on a weekend!) trying to prohibit the old data from continuing to show until the new data is rendered but I cant get anything to work. Any ideas? brad _ Looking for last minute shopping deals? HYPERLINK http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/c ategory.php?category=shoppingFind them fast with Yahoo! Search. No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.20.7/1283 - Release Date: 2/16/2008 2:16 PM
RE: [flexcoders] Referencing components from custom controls
I'm assuming that your main.mxml contains your mx:Application tag, so try this: package mycontrol.container-s { import mx.controls.-Alert; import flash.display.-DisplayObject; import flash.events.-Event; import flash.events.-MouseEvent; import flash.events.-TimerEvent; import flash.utils.-Timer; import mx.core.Application; . . . public function doSomething(-):void { Application.application.imgNewMessage.-visible=false; } } HTH, Randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nocturnal_world Sent: Friday, February 01, 2008 7:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Referencing components from custom controls Hello, I'm a noob in flex. I have no training on it but I try to learn it as much as I could. I think my problem is simple to you guys. I have this in my main.mxml code mx:Image x=204 y=7 source=images/-new.gif visible=false id=imgNewMessage-/ Now, if I reference it in an action script file like so... imgNewMessage.-visible=false; it works fine. But if I try to do that in a custom control, like this package mycontrol.container-s { import mx.controls.-Alert; import flash.display.-DisplayObject; import flash.events.-Event; import flash.events.-MouseEvent; import flash.events.-TimerEvent; import flash.utils.-Timer; . . . public function doSomething(-):void { imgNewMessage.-visible=false; } } I'm getting an error. Its like it does'nt know imgNewMessage. How can I reference it? I thought components are accessible globally. Hope you guys can help. Thanks in advance. No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.19.18/1254 - Release Date: 1/31/2008 8:30 PM
RE: [flexcoders] Re: Using a custom component inside of a state
Try this: mx:states mx:State name=Login/ mx:AddChild position=LastChild view:Login id=login/ /mx:AddChild /mx:State /mx:states ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of simonjpalmer Sent: Monday, January 21, 2008 8:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using a custom component inside of a state that doesn't look right, shouldn't you be adding your component as a child in the new state. I find the best way to code states is in the flex builder design tool, it is too easy to get the syntax wrong. Switch to your login state and add your custom control and you'll get exactly the code you need generated for you. --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], d_cypress [EMAIL PROTECTED] wrote: This is the code I am using: mx:states mx:State name=Login- view:Login id=login / /mx:State /mx:states This is the error I am receiving: In initializer for 'overrides': type view.Login is not assignable to target type Array or target element type I did find an example which does appear to address the issue but I'm not entirely clear on how I should go about resolving the issue. Example where a custom component is used: HYPERLINK http://livedocs.adobe.com/labs/flex3/html/help.html?content=using_states_8. htmlhttp://livedocs.-adobe.com/-labs/flex3/-html/help.-html?content=-using_ states_-8.html -Clayton No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.19.7/1234 - Release Date: 1/20/2008 2:15 PM
RE: [flexcoders] How to change the text in datagrid ?
You could just do the work in your SQL select statement: select (case when status = 1 then 'open' else 'close' end) as acctStatus from ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, January 18, 2008 1:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to change the text in datagrid ? You could use a switch() in a labelFunction(-). Tracy _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: Friday, January 18, 2008 2:32 PM To: [EMAIL PROTECTED] Subject: [flexcoders] How to change the text in datagrid ? Hi, I have a account list like this accout name status acc1 1 acc2 0 acc3 1 It is ok binding with datagrid. but I like it showed in datagrid like this accout name status acc1 open acc2 close acc3 open How to change 1 to open and 0 to close in datagrid. Thanks Mark acc3 1 No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.19.7/1232 - Release Date: 1/18/2008 7:32 PM
RE: [flexcoders] Re: Binding ValueObjects
I think what you should do is create a model in mxml from the value object and then bind the model to the visual display components and the visual display components to the model. How the data gets into the value object from your database, or wherever, is still the same. For example, // value object package valueobjects { [RemoteClass(alias=contacts.db.PersonBean)] [Bindable] public class PersonVO { public var personID:Number = 0; public var lName:String = ; public var fName:String = ; public var DOB:Date = null; public var Telephone:String = ; public var Address:String = ; public var City:String = ; public var State:String = ; public var Zip:String = ; public function PersonVO() { } } } Then, in your mxml code, pass in the key, find the data, and display it. Binding in this way allows you to change the data in either the display fields or the value object: mx:Script ![CDATA[ import mx.utils.ObjectUtil; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import valueobjects.*; private var _key:Object; public function get key():Object { return this._key; } public function set key(key:Object):void { this._key = key; } private function initComponent():void { this.detailObj = new PersonVO(); // get the requested item getItem(); } /** * Remote Server Calls and handlers **/ // get an instance of the item from the server public function getItem():void { this.dm.getById(this._key); } private function server_fault(event:FaultEvent):void { Alert.show(ObjectUtil.toString(event.fault)); } private function get_result(event:ResultEvent):void { var detailPerson:PersonVO = event.result as PersonVO; this.detailObj = detailPerson; } ]] /mx:Script mx:RemoteObject id=dm showBusyCursor=true destination=ColdFusion source=contacts.db.PersonGateway mx:method name=getById result=get_result(event) fault=server_fault(event) / /mx:RemoteObject !-- create a model, using the PersonVO.as Value Object class. With this mxml version of the model, you can bind the form fields back to the object. -- model:PersonVO id=detailObj model:personID{Number(Person_personID.text)}/model:personID model:lName{Person_lName.text as String}/model:lName model:fName{Person_fName.text as String}/model:fName model:DOB{Person_DOB.selectedDate as Date}/model:DOB model:Telephone{Person_Telephone.text as String}/model:Telephone model:Address{Person_Address.text as String}/model:Address model:City{Person_City.text as String}/model:City model:State{Person_State.text as String}/model:State model:Zip{Person_Zip.text as String}/model:Zip /model:PersonVO mx:Form width=100% height=100% mx:FormItem width=100% label=Person ID mx:TextInput id=Person_personID enabled=false text={this.detailObj.personID} width=120/ /mx:FormItem mx:FormItem width=100% label=Last Name mx:TextInput id=Person_lName text={this.detailObj.lName} width=200/ /mx:FormItem mx:FormItem width=100% label=First Name mx:TextInput id=Person_fName text={this.detailObj.fName} width=180/ /mx:FormItem mx:FormItem width=100% label=Date of Birth (MM/DD/) !-- make the date field editable so you can just enter the date of birty instead of having to scroll through the years -- mx:DateField id=Person_DOB editable=true yearNavigationEnabled=true selectedDate={this.detailObj.DOB} width=100/ /mx:FormItem mx:FormItem width=100% label=Telephone required=false mx:TextInput id=Person_Telephone text={this.detailObj.Telephone} width=110/ /mx:FormItem mx:FormItem width=100% label=Address mx:TextInput id=Person_Address text={this.detailObj.Address} width=180/ /mx:FormItem mx:FormItem width=100% label=City mx:TextInput id=Person_City text={this.detailObj.City} width=180/ /mx:FormItem mx:FormItem width=100% label=State mx:TextInput id=Person_State text={this.detailObj.State} width=180/ /mx:FormItem mx:FormItem width=100% label=Zip required=false mx:TextInput id=Person_Zip text={this.detailObj.Zip} width=180/ /mx:FormItem /mx:Form You can see a full working demo of this code on my blog at HYPERLINK http://www.martinized.us/http://www.martinized.us/ HTH, Randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, January 17, 2008 5:02 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Binding ValueObjects Ah - good it is Cairngorm. Initially bind the VO to the component. Well, actually I do bind it's
RE: [flexcoders] Re: Accessing objects within objects within objects... ???
Post your code. Maybe we can help. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anthony_morsey Sent: Saturday, January 12, 2008 9:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Accessing objects within objects within objects... ??? Its actually one level deeper. TabNavigator--Canvas--Canvas-Text I get a runtime error - TypeError: Error #1009: Cannot access a property or method of a null object reference. on the line that I ref that text object. --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Randy Martin [EMAIL PROTECTED] wrote: I'm assuming you mean that you have a TextInput on the canvas. So you have something like this: mx:TabNavigator id=tabNav mx:Panel id=tab1_panel- mx:Canvas id=myCanvas- mx:TextInput id=myText/- /mx:Canvas /mx:Panel /mx:TabNavigator So, you can get to the text input from anywhere in the component like this: this.myText.-text = some string; ~randy _ From: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On Behalf Of anthony_morsey Sent: Friday, January 11, 2008 10:22 AM To: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] Subject: [flexcoders] Accessing objects within objects within objects... ??? I have a the following object hierarchy: TabNavigator tab1_panel (first tab in series of 4) myCanvas (canvas in the first tab) myText (text control within the above canvas) How do I change the text value of myText in the above example? Before I added the second canvas above (myCanvas), I could do the following to change the text value: Object(tab1_--panel.getChildB-y-Name(myText--)).text = Tony; Thanks Tony No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.19.0/1218 - Release Date: 1/10/2008 1:32 PM No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.19.1/1220 - Release Date: 1/11/2008 6:09 PM
RE: [flexcoders] Accessing objects within objects within objects... ???
I'm assuming you mean that you have a TextInput on the canvas. So you have something like this: mx:TabNavigator id=tabNav mx:Panel id=tab1_panel mx:Canvas id=myCanvas mx:TextInput id=myText/ /mx:Canvas /mx:Panel /mx:TabNavigator So, you can get to the text input from anywhere in the component like this: this.myText.text = some string; ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anthony_morsey Sent: Friday, January 11, 2008 10:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Accessing objects within objects within objects... ??? I have a the following object hierarchy: TabNavigator tab1_panel (first tab in series of 4) myCanvas (canvas in the first tab) myText (text control within the above canvas) How do I change the text value of myText in the above example? Before I added the second canvas above (myCanvas), I could do the following to change the text value: Object(tab1_-panel.getChildBy-Name(myText-)).text = Tony; Thanks Tony No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.19.0/1218 - Release Date: 1/10/2008 1:32 PM
RE: [flexcoders] Re: Exit
You can implement a simple exit function for a flex app by putting this code in the head of index.template.html: script language=javascript type=text/javascript !-- function closeWin() { window.close(); } //-- /script Then, you can do this in your app: mx:Script ![CDATA[ import flash.external.ExternalInterface; private function exitApp():void { ExternalInterface.call(closeWin); } ]] /mx:Script And somewhere in the mxml: mx:Button id=btnExit label=Exit click=exitApp()/ Works like a charm. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alger Werft Sent: Friday, January 11, 2008 1:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Exit While I worked on the item, I was calling a JS function on window.onbeforeunl-oad event, which shall transfer the call to flex's logout function. But it did not helped me to resolve the issue. I did not come to know where I was wrong, in making a call or in accessing flex's code. I once used window.onunload for that. But I do not know if that's the best suited event for your needs, especially when it comes to crossbrowser issues. ** If we add any JS functions in index.template.-html and compile the code, All the flex classes can acces that JS function without importing anything, right? Please let me know about this. That is correct! Thanks Again, Savan - Original Message From: Alger Werft [EMAIL PROTECTED] To: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] Sent: Thursday, 10 January, 2008 4:51:50 PM Subject: [flexcoders] Re: Exit Hi Savan, yes, just include the JS Function in the head/ of your index.template. html Alger --- In [EMAIL PROTECTED] ups.com, flex.fusion flex.fusion@ ... wrote: Hi Alger, Can you please tell us where shall we have these _global_ JavaScript functions written? Shall there be separate JavaScripts being called from 'header or body' portion of index.template. html project file? Or there is someother way you wanted to convey, please guide about it. Thanks Regards, Savan --- In [EMAIL PROTECTED] ups.com, Alger Werft alger.werft@ wrote: You are trying to access the JavaScript object 'window', but you are in the ActionScript world, and there the window you are looking for does not exist. Write a _global_ JavaScript function that calls window.close( ). And from AS call that Function. JS function closeWindow( ) { window.close( ) } AS ExternalInterface. call(closeWindo w); Alger John wrote: Hi there, I am trying to create a close window routine that will be run when a user clicks the exit button using the following: !-- Routine to Close down the Courseware -- mx:Script ![CDATA[ private function closeWindow( ):void{ ExternalInterface. call(window. close); } ]] /mx:Script Now I am getting silly errors like Access of unidentified property window. Can someone please shed some light on this Did you know? You can CHAT without downloading messenger. Go to HYPERLINK http://in.messenger.yahoo.com/webmessengerpromo.php/http://in.messenger-.y ahoo.com/-webmessengerprom-o.php/ No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.19.0/1218 - Release Date: 1/10/2008 1:32 PM
RE: [flexcoders] Help with error
In my experience, that usually means that you have two files named the same, like myInput.mxml and myInput.as. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Sunday, December 30, 2007 8:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help with error What exactly that error means? A file found in a source-path can not have more than one externally visible definition Thanks No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.17.12/1202 - Release Date: 12/29/2007 1:27 PM
RE: [flexcoders] Re: Centering an Application
All you have to do is set the horizontalCenter=0 and verticalCenter=0 on the outermost component (except Canvas) in your application. For example, mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Canvas width=100% height=100% mx:TitleWindow width=700 height=450 horizontalCenter=0 verticalCenter=0 title=My Window /mx:TitleWindow /mx:Canvas mx:Application This will center the title window on your screen. HTH, Randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of javaguru_uk Sent: Friday, December 28, 2007 3:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Centering an Application --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Frederico Garcia [EMAIL PROTECTED] wrote: Have a VBox as the top level container (top=0;bottom=-0;left=0;-right=0). Insert one empty Canvas, then an HBox, then another empty Canvas. The two Canvas' having width and height of 100% and the HBox the same height as your Application Canvas. Now, inside the Hbox have one empty canvas, your Application Canvas and finally another empty canvas. The empty Canvas' with width=100% and height=100%; The outline tree would look like: Applicaton |-- VBox |-- Canvas top |-- HBox | |-- Canvas centerLeft | |-- Canvas main | |-- Canvas centerRight |-- Canvas bottom I'd only advise you to do this if you want alot of flexibility in your layout. (I did this for HYPERLINK http://www.sizemodels.comhttp://www.sizemode-ls.com) For the most cases it would be enough to have all your content inside a Canvas, and set it's verticalCenter = 0 and horizontalCenter = 0. Hi Garcia, Thanks a lot for the tip. Muito obrigado mesmo. I will give it a try. But that is a hell of a lot work for a simple solution. :D Fidel. No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.17.11/1200 - Release Date: 12/27/2007 1:34 PM
RE: [flexcoders] Re: how to Avoid - Compbo box fills up the first item when databinding is used
You can also set the selectedIndex to -1. That will not select anything. When I'm using data binding with the comboBox, and I'm using a value object, I usually set the initial values for the comboBoxes in the constructor for the value object class. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dallas Sent: Thursday, December 27, 2007 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: how to Avoid - Compbo box fills up the first item when databinding is used you can add the following attribute: prompt=Please select... That will be the first option in your combo. --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Alex Harui [EMAIL PROTECTED] wrote: What do you want to happen? -_-_-__ From: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On Behalf Of srikanth_reddy_-007 Sent: Wednesday, November 14, 2007 8:01 AM To: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] Subject: [flexcoders] how to Avoid - Compbo box fills up the first item when databinding is used About Combobox filling up the first item by default when we databinding I don't get what you mean to say ... I have the code like this mx:ComboBox id=txtFamilyName y=24 left=10 right=10 editable=true focusIn=fetchAutoC-ompleteData(-event, 'Family') dataProvider=-{modelLocator.-searchModel.-family} focusOut=foucusOut-Handler()-/ in fetchAutoCompleteDa-ta function i will connect to database and update modelLocator.-searchModel.-family variable which has a databinding to ComboBox dataprovider. then the combobox will get populated with the first item of modelLocator.-searchModel.-family array . How can i avoid this? and secondly the combobox grows its size to the max item fetched in the array. how can i avoid that too. Thanks, Srikanth No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.17.9/1198 - Release Date: 12/26/2007 5:26 PM
RE: [flexcoders] Re: centerPopUp in F3B2
Try this: var newPicWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(UIComponent(this.parentApplication), TitleWindow, true)); ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rueter007 Sent: Friday, December 21, 2007 4:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: centerPopUp in F3B2 not sure if this works but have you tried this.parentApplicat-ion? - venkat HYPERLINK http://www.venkatj.comhttp://www.venkatj.-com --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], hammer995 [EMAIL PROTECTED] wrote: I am trying to center a popup window on the application from an itemrenderer in a TileList. It looks like it centers it with the TileList but not with the application itself. I've found different places on the interweb but none of them work. They reference: DisplayObject(-Application.-application.-parentDocument)-, this.parent, etc...and they give me the same results. Here is my code: private function showPic():void { var author:String = data.author; //var newPicWindow:-TitleWindow = TitleWindow(-PopUpManager.-createPopUp(-this, bigPic, true)); var newPicWindow:-TitleWindow = TitleWindow(-PopUpManager.-createPopUp(-Application.-application.-mainPanel, bigPic, true)); newPicWindow.-data = data; if (author != null) { newPicWindow.-title=Photo Courtesy of + data.author; } newPicWindow.-setStyle(-borderAlpha-, 0.9); newPicWindow.-showCloseButton=-true; PopUpManager.-centerPopUp(-newPicWindow)-; } Thanks, Sonny No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.17.6/1192 - Release Date: 12/21/2007 1:17 PM
RE: [flexcoders] Binding data
Try this: mx:Button enabled={(variable1 amp;amp; variable2) ? true : false} / Because of the way XML is parsed, if you want to use the ampersand () in a data binding expression in MXML, you have to use the amp; equivalent instead of the ampersand. HTH, Randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Faria Sent: Friday, December 21, 2007 12:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding data I have this button and to set it enabled i have to check between 2 variables if both of them are true... it doesnt work in the following example... any clues? mx:Button enabled={variable1 == true variable2 == true} / No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.17.5/1191 - Release Date: 12/20/2007 2:14 PM
RE: [flexcoders] Re: Loading mask or overlay for datagrids while loading
Why not a popup with a progressBar? If there's nothing to report progress on, you can just use a Timer to increment the progress bar and have the event listener handler get rid of the popup when whatever you're doing is finished. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Monday, December 17, 2007 11:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Loading mask or overlay for datagrids while loading How about using PopUpManager to popup something over the datagrid? _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of brey_magenta Sent: Monday, December 17, 2007 12:08 AM To: [EMAIL PROTECTED] Subject: [flexcoders] Re: Loading mask or overlay for datagrids while loading Well, for example, using a mask? I know you can put a 'mask' over any visible object but I don't know how to make a mask which shows a animated loading swf/image. --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Alex Harui [EMAIL PROTECTED] wrote: There are so many options, I don't know where to start. You can use masks, overlays, popups, effects, transitions. -_-_-__ From: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On Behalf Of brey_magenta Sent: Wednesday, December 12, 2007 11:50 PM To: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] Subject: [flexcoders] Loading mask or overlay for datagrids while loading I've been wondering how to show a nice loading animation while a datagrid or other component is loading and fading it out when it's done loading. I've been looking everywhere for a nice solution but I haven't found a decent one so far. Is there an easy way? By using a mask or something? No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.17.4/1187 - Release Date: 12/16/2007 11:36 AM
RE: [flexcoders] Help with Printing (relates to Scaling Object, just before sending printjob)
You can have a function that starts the print job, gets the page width and height, and then the last thing it does is attach an event listener for an end-of-scaling event and fires off the scaling function. The scaling function finishes and dispatches the end-of-scaling event, which runs your event listener function. The event listener function adds the scaled object to the print job and sends the job to the printer. Like this: private var printJob:FlexPrintJob; private function doPrint():void { printJob:FlexPrintJob = new FlexPrintJob(); if (!printJob.start()) return; yourScalingComponent.addEventListener(scalingDone, finishPrint); doScaling(printJob.pageWidth, printJob.pageHeight); } private function doScaling(pw:Number, ph:Number):void { var scaleJob:MyScalingComponent = new MyScalingComponent(); scaleJob.pageWidth = pw; scaleJob.pageHeight = ph; scaleJob.scaleIt(); } private function finishPrint(event:scalingDone) { var scaledObj:ScaledObj = event.result as ScaledObj; printJob.addObject(scaledObj, FlexPrintJobScaleType.NONE); printJob.send(); In your scaling component, define an event mx:Metadata [Event(name=scalingDone, type=events.CustomEvent)] /mx:Metadate Then when the scaling is complete, dispatch the scalingDone event: this.dispatchEvent(scalingDone, scaledObj); The custom event looks like this (if you put it in a directory named events): package events { import flash.events.Event; public class CustomEvent extends Event { public var myObj:Object = null; public function CustomEvent(type:String, obj:Object) { super(type, true, true); this.myObj = obj; } } } HTH, ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Monday, December 17, 2007 12:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help with Printing (relates to Scaling Object, just before sending printjob) Greetings All! I have a major problem, where I have a function that properly scales an Object *just* before sending it to the printer. The issue is, the Object isn't scaling fast enough, so by the time it gets added to the PrintJob, it still isn't the proper scale - and looks completely wrong on the actual printout. Initially, I figured I could simply scale the Object first (in an entirely different function), then create some intentional pauses in the code (or use callLater in the right places), THEN run my PrintJob function code. BUT, my scaling functions rely on information brought back from the PrintJob - like PageWidth and PageHeight - which means, my Scaling Function must be called from within my PrintJob function. Bottom line, is that everything is happening too quickly, for the PrintJob to capture the properly scaled object. Is there a way for me to insert some intentional pauses, to slow things down, and give the object to be printed, time to properly scale, before getting sent to the PrintJob? Thank you in advance, for any help you can offer. Mike No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.17.4/1187 - Release Date: 12/16/2007 11:36 AM
[flexcoders] Re: Help with Printing (relates to Scaling Object, just before sending printjob)
In the code below, the event listerer function should have been: private function finishPrint(event:CustomEvent) Sorry, typing faster than I'm thinking. ~randy --- In flexcoders@yahoogroups.com, Randy Martin [EMAIL PROTECTED] wrote: You can have a function that starts the print job, gets the page width and height, and then the last thing it does is attach an event listener for an end-of-scaling event and fires off the scaling function. The scaling function finishes and dispatches the end-of-scaling event, which runs your event listener function. The event listener function adds the scaled object to the print job and sends the job to the printer. Like this: private var printJob:FlexPrintJob; private function doPrint():void { printJob:FlexPrintJob = new FlexPrintJob(); if (!printJob.start()) return; yourScalingComponent.addEventListener(scalingDone, finishPrint); doScaling(printJob.pageWidth, printJob.pageHeight); } private function doScaling(pw:Number, ph:Number):void { var scaleJob:MyScalingComponent = new MyScalingComponent(); scaleJob.pageWidth = pw; scaleJob.pageHeight = ph; scaleJob.scaleIt(); } private function finishPrint(event:scalingDone) { var scaledObj:ScaledObj = event.result as ScaledObj; printJob.addObject(scaledObj, FlexPrintJobScaleType.NONE); printJob.send(); In your scaling component, define an event mx:Metadata [Event(name=scalingDone, type=events.CustomEvent)] /mx:Metadate Then when the scaling is complete, dispatch the scalingDone event: this.dispatchEvent(scalingDone, scaledObj); The custom event looks like this (if you put it in a directory named events): package events { import flash.events.Event; public class CustomEvent extends Event { public var myObj:Object = null; public function CustomEvent(type:String, obj:Object) { super(type, true, true); this.myObj = obj; } } } HTH, ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Monday, December 17, 2007 12:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help with Printing (relates to Scaling Object, just before sending printjob) Greetings All! I have a major problem, where I have a function that properly scales an Object *just* before sending it to the printer. The issue is, the Object isn't scaling fast enough, so by the time it gets added to the PrintJob, it still isn't the proper scale - and looks completely wrong on the actual printout. Initially, I figured I could simply scale the Object first (in an entirely different function), then create some intentional pauses in the code (or use callLater in the right places), THEN run my PrintJob function code. BUT, my scaling functions rely on information brought back from the PrintJob - like PageWidth and PageHeight - which means, my Scaling Function must be called from within my PrintJob function. Bottom line, is that everything is happening too quickly, for the PrintJob to capture the properly scaled object. Is there a way for me to insert some intentional pauses, to slow things down, and give the object to be printed, time to properly scale, before getting sent to the PrintJob? Thank you in advance, for any help you can offer. Mike No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.17.4/1187 - Release Date: 12/16/2007 11:36 AM
RE: [flexcoders] What's the best way to bind ValueOject model data to a form and back again
I've just posted a little demo on my blog, http://www.martinized.us/, that should answer some of your questions. The data entry form contains a date field that allows both selection from the date chooser and direct entry with validation into the date field. There is also a fair amount of code that demonstrates data binding to value objects, entry fields, and back-end remote objects. HTH, Randy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Friday, December 14, 2007 11:04 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] What's the best way to bind ValueOject model data to a form and back again Use a DateField component for displaying/editing Date type data, in combination with a DateFormatter for displaying the right format in the DateField textfield. Not sure if the following will make sense, but here's something I've used: // in a Script block // currentNewsItem is a VO retrieved from the Model. [Bindable] private var currentNewsItem:NewsVO; mx:DateFormatter id=newsDateField_fmt formatString=DD/MM/ / mx:DateField id=newsDate_dfield text={newsDateField_fmt.format(currentNewsItem.newsDate)} formatString=DD/MM/ selectedDate={currentNewsItem.newsDate} / regards, Muzak On Dec 10, 2007, at 1:22 PM, Todd wrote: Hello All, I've been trying to wrap my mind around this. I have a ValueBoject model that has a date properties and number properties (one of many) that are bound to a TextInput fields on a form. What's the best way to handle two-way data validating that the text input has a valid date in it. More importantly, how do you bind a specifically formatted date from the Model. Say my model has a valid Date on it, and I want to have it displayed in a textBox as 12/10/2007. The user changes the text box, and then I want the model to have a valid Date object from the input text. The key here is that the format input by a user and the format displayed in the TextInput is different than the raw data that is bound to the model. What to do if I bind a new date that hasn't been set in the model yet and I want something like a - (Hyphen) to appear in the form. It seems like the default databinding functionality breaks down pretty quickly. What are some of the techniques people use to convert items on a VO object for display purposes in a form, take form input and format it for specific model data? Or, do I just need to not use default databinding of my model to form inputs and instead have a method, that takes the VO, and manually binds the data, doing the appropriate conversions as necessary. And then to go the other way, after the form has been filled in and is validated, covert to the model? Thanks for any suggestions. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.17.2/1185 - Release Date: 12/15/2007 12:00 PM -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] TextInput for percentage
Check out the TextInputMask.as and the MaskFormatter.as components generated by the FB Coldfusion Application Wizard. These might do what you want. Also, there's a masked text input component on the Adobe Flex exchange that would probably do what you want, too. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Wednesday, December 12, 2007 9:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput for percentage I'll take a look at flexlib, but just to clarify, I don't just want % in the field - when the value in the model is 100, I want 100%, and I want the user to be able to type 100 or 100%. Thanks. On Dec 11, 2007 7:01 PM, Adnan Doric HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hello, I would go for : Flexlib: PromptingTextInput.-prompt = % + PromptingTextInput.-restrict=0-9 + NumberValidator 0-100 Cheers, Adnan Richard Rodseth wrote: Any ideas on the best approach to implementing a text input for percentage values? I haven't found any built-in validators/formatte-rs. Basically I just want the field to display the % sign, allow it to be typed in, and strip it out when processing the value. Thanks. No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.17.1/1181 - Release Date: 12/11/2007 5:05 PM
[flexcoders] Re: AS3 classes as MXML to enclose other tags
This really isn't rocket science. Suppose you have an AS3 class defined like this: package controls { import mx.controls.Alert; public class MyAlerts extends Alert { [Embed(source=../images/error.gif)] private static var iconError:Class; public static function error(msg:String, closeHandler:Function=null):void { show(msg, Error, Alert.OK, null, closeHandler, iconError); } } } This defines a new Alert class called MyAlerts. You name the file MyAlerts.as and put it in the controls directory. Now you can do this: ?xml version=1.0 encoding=utf-8? mycontrols:MyAlerts xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml xmlns:mycontrols=controls.* mx:Script ![CDATA[ import controls.MyAlerts; public static function showMsg(msg:String):void { MyAlerts.error(msg); } ]] /mx:Script /mycontrols:MyAlerts Save this bit of code in MyErrorMsg.mxml. As far as Flex is concerned MyErrorMsg is another class that extends your MyAlerts class, so you can now do this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml xmlns:myerror=controls.* layout=absolute mx:Script ![CDATA[ import controls.MyErrorMsg; private function showErrorMessage():void { MyErrorMsg.showMsg(This is bad! Very bad!!); } ]] /mx:Script mx:VBox height=300 width=400 borderStyle=solid cornerRadius=5 horizontalAlign=center verticalAlign=middle backgroundColor=#ff mx:Button horizontalCenter=0 verticalCenter=0 label=Show Error click=showErrorMessage()/ /mx:VBox /mx:Application Get it now? Flex treats all .mxml files and .as files as separate classes, so when the base tag in an mxml file is your custom class, the mxml file is just creating another class by extending your custom class. You could have done this in actionscript instead of mxml for the MyErrorMsg class: package controls { import controls.MyAlerts; public function MyErrorMsg extends MyAlerts { public static function showMsg(msg:String):void { MyAlerts.error(msg); } } } In either case, the application mxml file would have been the same. HTH, Randy --- In flexcoders@yahoogroups.com, Chris Velevitch [EMAIL PROTECTED] wrote: On Dec 10, 2007 12:07 PM, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Add the -keep argument to the compiler options to see what goes on behind the scenes. This will give you your answer. I'm looking for something at a higher level before I go for a deep dive into the inner workings of the Flex compiler. Besides, the compiler output won't explain the concepts and philosophy behind it. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group m: 0415 469 095 www.flashdev.org.au
RE: [SPAM] [flexcoders] Re: Loading Web Service from WebSphere
My suggestion is that you use FB3 beta 2 and use the WSDL wizard to generate the classes necessary to use the webservice. I did this for two of our webservices, and I had to do only minor tweaks of the generated code to get it to work flawlessly. Pick from the menu in FB or Eclipse, Data | Import Web Service (WSDL) ..., then be sure you pick the SOAP 1.1 port in the wizard. The wizard does not support SOAP 1.2 yet. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dafox_82 Sent: Saturday, December 08, 2007 9:46 AM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Re: Loading Web Service from WebSphere Nobody with some helpful tips? --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], dafox_82 [EMAIL PROTECTED] wrote: I'm playing around with Flex and want to call a custom made Web Service in WebSphere. When I run my application, It seems that a lot of requests are done to the Web Service repeatably requesting the same XSD's (complex types). It looks like the application is in an infinite loop, constantly doing the same requests.. No call the the web service is made yet at this point. If I call the requested XSD manually in my browser, it is resolved without problems. And if I call another very simple web service, everything is working as expected. My Web Service definition looks like this: mx:WebService id=CALS wsdl=HYPERLINK http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExphttp://l ocalhost:-9080/CustomerMod-uleWeb/sca/-CustomerDataServ-iceExp\ ort/wsdl/CustomerDa-taServiceExport_-CustomerDataServ-iceHttp_Service.-wsdl HYPERLINK http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExport/whtt p://localhost:-9080/CustomerMod-uleWeb/sca/-CustomerDataServ-iceExport/-w\ sdl/CustomerDataSer-viceExport_-CustomerDataServ-iceHttp_Service.-wsdl endpointURI=-HYPERLINK http://localhost:9080/CustomerModuleWeb/sca/CustomerDataSerhttp://localhos t:-9080/CustomerMod-uleWeb/sca/-CustomerDataSer\ viceExport HYPERLINK http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExporthttp: //localhost:-9080/CustomerMod-uleWeb/sca/-CustomerDataServ-iceExport service=CustomerDa-taServiceExport_-CustomerDataServ-iceHttpService port=CustomerDataS-erviceExport_-CustomerDataServ-iceHttpPort useProxy=false showBusyCursor=-true fault=Alert.-show(event.-fault.faultStrin-g), 'Error' mx:operation name=findAll- mx:request customerRequest Customer CustNo16/-CustNo Group/Group /Customer /customerRequest /mx:request /mx:operation /mx:WebService I'm using Flex Builder 3, Beta (also tried Flex Builder 2, hotfix3) What is going wrong here??? No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.16.17/1177 - Release Date: 12/7/2007 1:11 PM
[flexcoders] Problems printing in Flex
I'm having all kinds of problems printing from Flex. I know it's supposed to be really easy -- just use the FlexPrintJob, etc. -- but I can't seem to get the PrintDataGrid to do what I want. I want the rows in the grid to be variable height and adjust to the data, so I set variableRowHeight = true on the grid component. This had absolutely no effect on the printout. I set wrapText = true and wrapHeaderText = true, and it tries to wrap the text, but just clips it off because the variableRowHeight is not working. Help, anyone! ~randy No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.16.13/1169 - Release Date: 12/3/2007 10:56 PM
RE: [flexcoders] Re: how do I freeze the users actions while data is loading
Consider using States. You can have the app in one state and the progress meter for your downloading in another. Whenever you're downloading data, just make the progress-meter state the currentState. When you're all done with the data processing, switch back to the other state. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: Friday, November 16, 2007 10:52 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: how do I freeze the users actions while data is loading this is cake in a framework like Cairngorm. Setup a command, event, etc. one event would be 'showLoading' which has a command that increments a variable by 1 and if this variable 0, shows the popup. Another event is called say 'hideLoading'. It decrements this variable, if this variable is 1, destroy the popup. DK On Nov 16, 2007 7:50 AM, Mark HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: I guess sometimes the easy answer is the one we overlook. I don't know why I didn't think about using some kind of wait message or progress bar in a pop-up. Thanks. I have one last question about this. When do I destroy the pop-up? I'd like it to stay on until all the data has been parsed, sorted then loaded into the dataGrid. I thought it would be on the dataGrid in UpdateComplete, but that fires off everytime the DG updates (doesn't it?). So when is the best time to do this? Thanks Again --- In HYPERLINK mailto:flexcoders%40yahoogroups.com; [EMAIL PROTECTED], Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 15 Nov 2007, Mark wrote: to blur the screen out during this time like when using a pop- up window? Why not pop up a model please wait box ? -- Tom Chiverton Helping to widespreadedly orchestrate unique supply-chains on: HYPERLINK http://thefalken.livejournal.com; \nhttp://thefalken.-livejournal.-com -*-*-*-*- This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit HYPERLINK http://www.halliwells.com; \nwww.halliwells.-com. -- Douglas Knudsen HYPERLINK http://www.cubicleman.comhttp://www.cubiclem-an.com this is my signature, like it? No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.15.33/1133 - Release Date: 11/15/2007 8:57 PM
[flexcoders] Re: About Combobox filling up the first item by default when we databinding
From the Flex docs for ComboBox: prompt property prompt:String http://127.0.0.1:2522/help/topic/com.adobe.flexbuilder.help/langref/Str\ ing.html [read-write] The prompt for the ComboBox control. A prompt is a String that is displayed in the TextInput portion of the ComboBox when selectedIndex = -1. It is usually a String like Select one If there is no prompt, the ComboBox control sets seletedIndex to 0 and displays the first item in the dataProvider. So, all you have to do is set prompt = in the tag and set selectedIndex = -1 in your focusIn function after you set the dataProvider. I do this all the time. Works like a charm. You can also set the prompt to something more meaningful, like Select a Family Name... mx:ComboBox id=txtFamilyName y=24 left=10 right=10 editable=true focusIn=fetchAutoCompleteData(event,'Family') dataProvider={modelLocator.searchModel.family} focusOut=focusOutHandler() prompt= / HTH, Randy --- In flexcoders@yahoogroups.com, srikanth_reddy_007 [EMAIL PROTECTED] wrote: I don't get what you mean to say ... I have the code like this mx:ComboBox id=txtFamilyName y=24 left=10 right=10 editable=true focusIn=fetchAutoCompleteData(event, 'Family') dataProvider={modelLocator.searchModel.family} focusOut=foucusOutHandler()/ in fetchAutoCompleteData function i will connect to database and update modelLocator.searchModel.family variable which has a databinding to ComboBox dataprovider. then the combobox will get populated with the first item of modelLocator.searchModel.family array . How can i avoid this? and secondly the combobox grows its size to the max item fetched in the array. how can i avoid that too. Thanks, Srikanth --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: On Wednesday 14 Nov 2007, srikanth_reddy_007 wrote: field. I don't want the first item to be populated by default? Does anybody help me in achieve this ? If only some sort of 'prompt' paramater was listed on the LiveDocs, eh ? body suggest me a way to bring truncated string with ... rather than dynamically growing the combo box. You want a labelFunction there, I reckon. -- Tom Chiverton Helping to authoritatively bully interdependent channels on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] Austin Flex User Group?
I would definitely be interested. There are about 5-6 other developers who work with me that would probably be interested, also. We're transitioning to Flex/Flash for a lot of our Intranet apps. We've been ColdFusion coders for years (since V2.0), and have just recently upgraded to CF8. So, let me know when you have more information. Thanks, Randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Sent: Wednesday, November 14, 2007 3:09 PM To: flexcoders@yahoogroups.com; [EMAIL PROTECTED] Subject: [flexcoders] Austin Flex User Group? Hi All, Just want to gauge the interest in an Austin Flex User Group (TX of course). I've got the ok from Adobe to go ahead with it, but have been dragging my butt thus far... Thanks, Brendan -- Brendan Meutzner HYPERLINK http://www.meutzner.com/blog/http://www.meutzner-.com/blog/ No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.15.31/1129 - Release Date: 11/13/2007 9:22 PM
[flexcoders] No debugging source code in FB3 beta 2
The fact that FB3 beta 2 does not come with all the source code is driving me crazy!! I can't run the debugger because invariably, somewhere during the step-through, it comes to a point where it can't find the source code in the framework. When is this problem going to be resolved? I keep having to go back to FB 2.01 with sections of the code to debug it. It's a real pain in the ass. ~randy No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.15.24/1117 - Release Date: 11/7/2007 10:52 PM
[flexcoders] Re: Problem with Webservice Introspection Wizard in FB 3 Beta 2
After searching the bug database, this is already a bug that has supposedly been fixed, but I guess the fix won't be available until the next beta release. According to the bug report, if you don't select the soap1.1 port, the Finish button is supposed to be disabled, but it's not. I can live with this until the next release by just making sure I always select the soap1.1 port in the wizard. ~randy --- In flexcoders@yahoogroups.com, Randy Martin [EMAIL PROTECTED] wrote: OK. I found the cause of the problem. The webservice has two soap ports -- a soap1.1 port and a soap1.2 port. If you use the soap1.2 port, the wizard does not generate the event classes. If you use the soap1.1 post, the event classes are generated. This is a bug in the webservice wizard, right? ~randy --- In flexcoders@yahoogroups.com, Randy Martin randy@ wrote: The wizard finishes, and I have a nice set of AS classes from the WSDL. However, when I try and use any of the classes, I get compile errors all over the place. Apparently, the wizard creates references to custom events in the main service class like this: /** * Dispatches when a call to the operation GetUserInfoEx completes with success * and returns some data * @eventType GetUserInfoExSoapOutResultEvent */ [Event(name=GetUserInfoExSoapOut_result, type=GetUserInfoExSoapOutResultEvent)] /** * Dispatches when a call to the operation FindUsers completes with success * and returns some data * @eventType FindUsersSoapOutResultEvent */ [Event(name=FindUsersSoapOut_result, type=FindUsersSoapOutResultEvent)] But, there no supporting classes for the event types are generated. So, I get errors when the main class tries to do stuff like: /** * @see IADUtils#addGetUserInfoEx() */ public function addgetUserInfoExEventListener (listener:Function):void { addEventListener (GetUserInfoExSoapOutResultEvent.GetUserInfoExSoapOut_RESULT ,listener); } /** * @private */ private function _GetUserInfoEx_populate_results (event:ResultEvent):void { var e:GetUserInfoExSoapOutResultEvent = new GetUserInfoExSoapOutResultEvent(); e.result = event.result as Object; getUserInfoEx_lastResult = e.result; dispatchEvent(e); } The addEventListener call and the new GetUserInfoExSoapOutResultEvent generate errors because the compiler doesn't know anything about the custom event types. Is this a bug in the wizard, or am I supposed to code those custom event classes myself? And, if I'm supposed to code the custom events myself, are they just normal result events, or is there some additional code I don't know about? There doesn't seem to be any good documentation (flex docs, tutorials, sample code, etc) on how to use the code generated by the wizard. Does anyone know of any examples? TIA, Randy No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.15.14/1100 - Release Date: 10/30/2007 6:26 PM
[flexcoders] Re: Need help with error in code from webservice wizard
Does anyone know anything about this? Can you point me in the right direction? --- In flexcoders@yahoogroups.com, Randy Martin [EMAIL PROTECTED] wrote: I generated code using the webservice wizard, and then wrote a simple mxml file to test the code. I get this error: 1061: Call to a possibly undefined method getClass through a reference with static type Class. It occurs in the following code: /** * Internal event handler to process a successful operation call from the server * The result is decoded using the schema and operation settings and then the * events get passed on to the actual facade that the user employs in the application * @private */ private function processResult (result:Object,wrappedData:Object):void { var token:AsyncToken = wrappedData.returnToken; var currentOperation:WSDLOperation = wrappedData.operation; var decoder:SOAPDecoder = new SOAPDecoder(); decoder.resultFormat=object; decoder.ignoreWhitespace = true; decoder.makeObjectsBindable=true; decoder.wsdlOperation = currentOperation; decoder.schemaManager = currentOperation.schemaManager; var body:Object = result.message.body; var stringResult:String = String(body); if (stringResult == null || stringResult == ) return; var soapResult:SOAPResult = decoder.decodeResponse(result.message.body); if (soapResult.isFault) { var faults:Array = soapResult.result as Array; for each (var soapFault:Fault in faults) { var soapFaultEvent:FaultEvent = FaultEvent.createEvent(soapFault,token,null); token.dispatchEvent(soapFaultEvent); } } else { result = decoder.decodeResponse(result.message.body).result; if (result is ArrayCollection) { //shoud upcast to specific type here var arrayTypedClass:Class = SchemaTypeRegistry.getClass(currentOperation.outputMessage.parts [0].type\ ); result = new arrayTypedClass(result.source); } var event:ResultEvent = ResultEvent.createEvent (result,token,null); token.dispatchEvent(event); } } The statement where the error occurs is highlighted above. The comment says I should upcast to a specific type here, but I don't know what that means. Which specific type? How do I determine what type to upcast to? Any help would be appreciated. TIA, Randy
[flexcoders] Re: Problem with Webservice Introspection Wizard in FB 3 Beta 2
OK. I found the cause of the problem. The webservice has two soap ports -- a soap1.1 port and a soap1.2 port. If you use the soap1.2 port, the wizard does not generate the event classes. If you use the soap1.1 post, the event classes are generated. This is a bug in the webservice wizard, right? ~randy --- In flexcoders@yahoogroups.com, Randy Martin [EMAIL PROTECTED] wrote: The wizard finishes, and I have a nice set of AS classes from the WSDL. However, when I try and use any of the classes, I get compile errors all over the place. Apparently, the wizard creates references to custom events in the main service class like this: /** * Dispatches when a call to the operation GetUserInfoEx completes with success * and returns some data * @eventType GetUserInfoExSoapOutResultEvent */ [Event(name=GetUserInfoExSoapOut_result, type=GetUserInfoExSoapOutResultEvent)] /** * Dispatches when a call to the operation FindUsers completes with success * and returns some data * @eventType FindUsersSoapOutResultEvent */ [Event(name=FindUsersSoapOut_result, type=FindUsersSoapOutResultEvent)] But, there no supporting classes for the event types are generated. So, I get errors when the main class tries to do stuff like: /** * @see IADUtils#addGetUserInfoEx() */ public function addgetUserInfoExEventListener (listener:Function):void { addEventListener (GetUserInfoExSoapOutResultEvent.GetUserInfoExSoapOut_RESULT ,listener); } /** * @private */ private function _GetUserInfoEx_populate_results (event:ResultEvent):void { var e:GetUserInfoExSoapOutResultEvent = new GetUserInfoExSoapOutResultEvent(); e.result = event.result as Object; getUserInfoEx_lastResult = e.result; dispatchEvent(e); } The addEventListener call and the new GetUserInfoExSoapOutResultEvent generate errors because the compiler doesn't know anything about the custom event types. Is this a bug in the wizard, or am I supposed to code those custom event classes myself? And, if I'm supposed to code the custom events myself, are they just normal result events, or is there some additional code I don't know about? There doesn't seem to be any good documentation (flex docs, tutorials, sample code, etc) on how to use the code generated by the wizard. Does anyone know of any examples? TIA, Randy No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.15.14/1100 - Release Date: 10/30/2007 6:26 PM
[flexcoders] Need help with error in code from webservice wizard
I generated code using the webservice wizard, and then wrote a simple mxml file to test the code. I get this error: 1061: Call to a possibly undefined method getClass through a reference with static type Class. It occurs in the following code: /** * Internal event handler to process a successful operation call from the server * The result is decoded using the schema and operation settings and then the * events get passed on to the actual facade that the user employs in the application * @private */ private function processResult(result:Object,wrappedData:Object):void { var token:AsyncToken = wrappedData.returnToken; var currentOperation:WSDLOperation = wrappedData.operation; var decoder:SOAPDecoder = new SOAPDecoder(); decoder.resultFormat=object; decoder.ignoreWhitespace = true; decoder.makeObjectsBindable=true; decoder.wsdlOperation = currentOperation; decoder.schemaManager = currentOperation.schemaManager; var body:Object = result.message.body; var stringResult:String = String(body); if (stringResult == null || stringResult == ) return; var soapResult:SOAPResult = decoder.decodeResponse(result.message.body); if (soapResult.isFault) { var faults:Array = soapResult.result as Array; for each (var soapFault:Fault in faults) { var soapFaultEvent:FaultEvent = FaultEvent.createEvent(soapFault,token,null); token.dispatchEvent(soapFaultEvent); } } else { result = decoder.decodeResponse(result.message.body).result; if (result is ArrayCollection) { //shoud upcast to specific type here var arrayTypedClass:Class = SchemaTypeRegistry.getClass(currentOperation.outputMessage.parts[0].type\ ); result = new arrayTypedClass(result.source); } var event:ResultEvent = ResultEvent.createEvent(result,token,null); token.dispatchEvent(event); } } The statement where the error occurs is highlighted above. The comment says I should upcast to a specific type here, but I don't know what that means. Which specific type? How do I determine what type to upcast to? Any help would be appreciated. TIA, Randy
RE: [flexcoders] Re: Flex Builder 3 and Coldfusion 8 with LCDS
There's an LCDS wizard in Flex Builder 3? I've been running FB3 for months, and have not seen or read anything about an LCDS wizard. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Wednesday, October 31, 2007 4:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex Builder 3 and Coldfusion 8 with LCDS On Friday 26 Oct 2007, [EMAIL PROTECTED] wrote: What wizard are you talking about? The one in Flex Builder. Free trial. -- Tom Chiverton Helping to greatly benchmark value-added supply-chains on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.15.14/1100 - Release Date: 10/30/2007 6:26 PM -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Problem with Webservice Introspection Wizard in FB 3 Beta 2
The wizard finishes, and I have a nice set of AS classes from the WSDL. However, when I try and use any of the classes, I get compile errors all over the place. Apparently, the wizard creates references to custom events in the main service class like this: /** * Dispatches when a call to the operation GetUserInfoEx completes with success * and returns some data * @eventType GetUserInfoExSoapOutResultEvent */ [Event(name=GetUserInfoExSoapOut_result, type=GetUserInfoExSoapOutResultEvent)] /** * Dispatches when a call to the operation FindUsers completes with success * and returns some data * @eventType FindUsersSoapOutResultEvent */ [Event(name=FindUsersSoapOut_result, type=FindUsersSoapOutResultEvent)] But, there no supporting classes for the event types are generated. So, I get errors when the main class tries to do stuff like: /** * @see IADUtils#addGetUserInfoEx() */ public function addgetUserInfoExEventListener(listener:Function):void { addEventListener(GetUserInfoExSoapOutResultEvent.GetUserInfoExSoapOut_RESULT ,listener); } /** * @private */ private function _GetUserInfoEx_populate_results(event:ResultEvent):void { var e:GetUserInfoExSoapOutResultEvent = new GetUserInfoExSoapOutResultEvent(); e.result = event.result as Object; getUserInfoEx_lastResult = e.result; dispatchEvent(e); } The addEventListener call and the new GetUserInfoExSoapOutResultEvent generate errors because the compiler doesn't know anything about the custom event types. Is this a bug in the wizard, or am I supposed to code those custom event classes myself? And, if I'm supposed to code the custom events myself, are they just normal result events, or is there some additional code I don't know about? There doesn't seem to be any good documentation (flex docs, tutorials, sample code, etc) on how to use the code generated by the wizard. Does anyone know of any examples? TIA, Randy No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.15.14/1100 - Release Date: 10/30/2007 6:26 PM
RE: [flexcoders] Re: Flex Builder 3 and Coldfusion 8 with LCDS
I'm talking about the LCDS that comes with CF8, the one you can opt to install when you're doing the upgrade from CF7 to CF8. What wizard are you talking about? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Thursday, October 25, 2007 7:37 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex Builder 3 and Coldfusion 8 with LCDS On Thursday 25 Oct 2007, [EMAIL PROTECTED] wrote: Does anyone have an answer to this? Please. :) Download the Builder trial and run the wizard ? -- Tom Chiverton Helping to quickly seize killer applications on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.15.10/1091 - Release Date: 10/24/2007 2:31 PM -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex Builder 3 and Coldfusion 8 with LCDS
Does anyone have an answer to this? Please. :) --- In flexcoders@yahoogroups.com, Randy Martin [EMAIL PROTECTED] wrote: Can anyone point me to a good tutorial or documentation on how to create a Flex 3 project using the built-in LCDS that comes with Coldfusion 8? Thanks, Randy No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.15.6/1086 - Release Date: 10/22/2007 7:57 PM
[flexcoders] PHP wizard with MS SQL Server 2005??
Will the PHP wizard work with MS SQL 2005? I've got Zend PHP running on Windows Server 2003, along with CF 8. Is there some way to get this to work with the PHP wizard in Flex Builder 3 beta 2? TIA, Randy
[flexcoders] Flex Builder 3 and Coldfusion 8 with LCDS
Can anyone point me to a good tutorial or documentation on how to create a Flex 3 project using the built-in LCDS that comes with Coldfusion 8? Thanks, Randy No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.15.6/1086 - Release Date: 10/22/2007 7:57 PM
[flexcoders] Re: ColdFusion CFCs Not Returning Data
I solved this problem by rearranging some of the code -- moving the call to remoteObject to a function that is called later in the app. ~randy --- In flexcoders@yahoogroups.com, Randy Martin [EMAIL PROTECTED] wrote: I never got any response to this email. If no one knows anything about this problem, can anyone suggest where I might look? TIA, ~randy --- In flexcoders@yahoogroups.com, Randy Martin randy@ wrote: OK. I've been pulling my hair out over this for about two weeks. I generated a master page and a detail page using the ColdFusion Application Wizard in FB2.01. The detail page has nine comboboxes, five date fields, one textarea, and one checkbox. When I select a record from the master datagrid and click the edit button (or just double-click the record in the master grid), a little more than half the time only the information in the comboboxes shows up. All other fields are the default fields for a new record. I know it's reading the data because the comboboxes are set to the correct selections for the record chosen. It seems to happen more often when there is a lot of text in the textarea. This is driving me nuts! And, it's very frustrating for the endusers who are testing the app. Has anyone seen this behavior before? I'm running CF 8 Standard with cumulative hotfix 1. The database is on SQL 2005. TIA, Randy No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date: 10/10/2007 5:11 PM
[flexcoders] Re: ComboBox populate list with remoteobject
Here's the code for the Adobe BindableComboBox.mxml that's generated by the ColdFusion Application Wizard. This will do what you want. ?xml version=1.0 encoding=utf-8? !-- \ // // Copyright (C) 2003-2006 Adobe Macromedia Software LLC and its licensors. // All Rights Reserved. The following is Source Code and is subject to all // restrictions on such code as contained in the End User License Agreement // accompanying this product. If you have received this file from a source // other than Adobe, then your use, modification, or distribution of this file // requires the prior written permission of Adobe. // // @author Dean Harmon // @author Mike Nimer \ -- mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml xmlns=* creationComplete=componentInit() mx:Script ![CDATA[ import mx.utils.ObjectUtil; import mx.controls.Alert; [Bindable] public var valueField:String = ; [Bindable] public var labelFields:Array = []; public function componentInit():void { this.labelFunction = renderLabelFunction; } public function renderLabelFunction(item:Object):String { var result:String = ; if (labelFields.length == 0) { if (labelField != null) { return item[labelField]; } else { return item.toString(); } } else { for(var i:int=0; i labelFields.length; i++) { if (i 0) { result += ; } result += item[labelFields[i]]; } } return result; } override public function set selectedItem(val:Object):void { //Alert.show(valueField +: +ObjectUtil.toString(val)); if (this.valueField != null) { for(var i:int=0; i this.dataProvider.source.length; i++) { var item:Object = this.dataProvider.source[i]; if (item[valueField] == val) { // if it matches, make it selected. this.selectedIndex = i; break; } } } else { super.selectedItem(val); } } public function get selectedItemValue():Object { if (this.valueField != null selectedItem != null) { return selectedItem[valueField]; } else { return text; } } ]] /mx:Script /mx:ComboBox ~randy --- In flexcoders@yahoogroups.com, T [EMAIL PROTECTED] wrote: Actually this is a good question, and I am in the same boat and also do not know the correct way to handle this. I have a value object in my data model that came from a table in a database via a RemoteObject call. The VO has an int field that is a foreign key reference to a record in the people table. I have a combobox that gets its list of people from the people table, including their person_id fields, displays the name field, but I need to bind the combo item to the person_id int field in the VO. This does not seem to be possible out of the box, and it looks like flex3 doesn't have it either. Does this mean I have to manually implement an itemchanged event handler for changes in the combo box, and manually set the selected combo item when the value object is first loaded? And even with this, if the model changes, the view would not see it happen. Is there some way to make this binding? T --- In flexcoders@yahoogroups.com, George Georgiou george1977@ wrote: Hi there, I got a remoteobject which loads data from an sql table. I got something like 5 fields for customers. I want to populate a combobox showing the name of the customer and having as a value the customer_id. After Googling it a bit, I have ended up with this: mx:ComboBox id=customer_name dataProvider={customerData} labelField=customer_name/ this works great! But what about the dataField? (at my suprise I have found out that although a labelField does exist - which is cool, a dataField attribute does not exist). How can I bind the customer_id into my combobox? Any ideas? thanks, George
[flexcoders] Re: ColdFusion CFCs Not Returning Data
I never got any response to this email. If no one knows anything about this problem, can anyone suggest where I might look? TIA, ~randy --- In flexcoders@yahoogroups.com, Randy Martin [EMAIL PROTECTED] wrote: OK. I've been pulling my hair out over this for about two weeks. I generated a master page and a detail page using the ColdFusion Application Wizard in FB2.01. The detail page has nine comboboxes, five date fields, one textarea, and one checkbox. When I select a record from the master datagrid and click the edit button (or just double-click the record in the master grid), a little more than half the time only the information in the comboboxes shows up. All other fields are the default fields for a new record. I know it's reading the data because the comboboxes are set to the correct selections for the record chosen. It seems to happen more often when there is a lot of text in the textarea. This is driving me nuts! And, it's very frustrating for the endusers who are testing the app. Has anyone seen this behavior before? I'm running CF 8 Standard with cumulative hotfix 1. The database is on SQL 2005. TIA, Randy No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date: 10/10/2007 5:11 PM
RE: [SPAM] RE: [flexcoders] list with combo editor
Check out the AutoComplete component from Adobe Exchange: HYPERLINK http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailloc=e n_usextid=1047291http://www.adobe.com/cfusion/exchange/index.cfm?event=ext ensionDetailloc=en_usextid=1047291 I've been successful in extending this component to do several variations of autocomplete comboboxes. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Saturday, October 13, 2007 12:14 AM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [flexcoders] list with combo editor I’m pretty sure folks have done various parts of this ui. I’ve seen questions about how to do the new blank row, and there’s plenty of questions about ComboBox renderers. I don’t have any examples for you, but hopefully others will jump, but you may have to wait until Monday. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Spellman Sent: Friday, October 12, 2007 6:11 PM To: [EMAIL PROTECTED] Subject: [flexcoders] list with combo editor Hi All, I’ve been struggling to understand how to make a custom component that will behave like something I have in an Access GUI I did. The control allows you to add people to a “selected people” list by choosing from a list of people. It needs to be a list or one column datagrid that is bound to a “SelectedPeople” collection of Person objects (or PersonID ints). It will always have one “blank” entry to use as a starting place to add another person. When the user clicks on a “new” or existing row in the list, they get a combobox which allows them to choose (or optionally type with autocompletion) to select the next person to be added to the list. When they choose one, that Person object will be added to the “SelectedPeople” collection, a new blank entry gets added to the list. Here’s a screenshot from my existing Access GUI: I’ve been experimenting with ItemEditors and lists in Flex, but it’s just eluding me how to do this. I’ve got something sort of working, but it’s not sweet: HYPERLINK http://thosmos.com/develop/bin/Tests.htmlhttp://thosmos.-com/develop/-bin/ Tests.-html (right click for source) What I’m stuck on is 1. How to get the object from the combobox datasource passed back and added/updated in the data source for the selectedPeople list and make that the selected item. It seems to want to replace just the display field of the currently selected item, rather than the item itself. 2. when the user clicks on an existing selection, how to make the combobox start with that person selected rather than starting from the beginning. I realize this may be a vague question, but any kind of details, insight or general advice on an approach to take would be great. T No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.14.9/1067 - Release Date: 10/12/2007 6:02 PM image002.jpg
RE: [SPAM] [flexcoders] Flex3 Beta 1 vs Beta 2 SWF file sizes - Debug code not removed?
In FB3 beta 2, only one swf gets built -- the debug version. When you're done developing, you export the production swf (without debug). Click on Project | Export Release Version... ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shaun Sent: Saturday, October 13, 2007 5:57 PM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Flex3 Beta 1 vs Beta 2 SWF file sizes - Debug code not removed? I've been doing some experimentation with RSLs for reducing file sizes and I ran into something interesting. When I build my code with FB3 Beta 1, Hotfix 2.0.1, my output file size is 897kb. When I build the EXACT same code with FB3 Beta 2, Hotfix 2.0.2, my output file size is 1319kb. This happens to be the same size as the -debug.swf I get from Beta 1, which makes me think that FB3 Beta 2 does not remove the debug code from the swf it exports. Has anyone else seen this issue? Is there some new setting I need to be using? A workaround? Thanks, Shaun -_ HYPERLINK http://www.capitalhcoder.com/capitalHcoder No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.14.9/1067 - Release Date: 10/12/2007 6:02 PM
RE: [flexcoders] CFEclipse and Flex Builder
If you're running the standalone version of FB2, then you need to go to the archives for CFEclipse and download v1.30. This version of CFEclipse will install correctly with standalone FB2. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sheriff Sent: Friday, October 05, 2007 9:11 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] CFEclipse and Flex Builder how are you installing it? i have both and they work fine - Original Message From: Tim Ashworth [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 5, 2007 8:52:06 AM Subject: [flexcoders] CFEclipse and Flex Builder Hi all, I've unsuccessfully tried to add CFEclipse to Flex Builder 2. After several uninstall and reinstalls I've given up. I want to develop in CF and Flex and would rather use one IDE. Am I being thick, or am I just barking up the wrong tree? Cheers Tim _ Tonight's top picks. What will you watch tonight? HYPERLINK http://us.rd.yahoo.com/tv/mail/tagline/tonightspicks/evt=48220/*http://tv.y ahoo.com/Preview the hottest shows on Yahoo! TV. No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.14.1/1050 - Release Date: 10/4/2007 5:03 PM
RE: [flexcoders] A simple graphics.lineTo question...should be simple.
You might take a look at this: HYPERLINK http://www.3gcomm.fr/Flex/PrimitiveExplorer/Flex2PrimitiveExplorer.htmlhtt p://www.3gcomm.fr/Flex/PrimitiveExplorer/Flex2PrimitiveExplorer.html ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of devworkit Sent: Wednesday, October 03, 2007 8:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] A simple graphics.lineTo question...should be simple. I am just starting to look at the drawing capabilities of Flex. I'm trying to get an example working from the Essential ActionScript 3.0 book but it does not work for me. It seems awfully simple. Here is what the book gives for the example to draw 4 different lines: var canvas:Shape = new Shape(); canvas.graphics.-lineStyle(-1, 0x00); canvas.graphics.-lineTo(100, 0); canvas.graphics.-lineStyle(-5, 0xFF); canvas.graphics.-lineTo(100, 100); canvas.graphics.-lineStyle(-10, 0x00FF00); canvas.graphics.-lineTo(0, 100); canvas.graphics.-lineStyle(-15, 0xFF); canvas.graphics.-lineTo(0, 0); addChild(canvas)-; I created a mxml application and placed the above code in a myInit() function and I call the myInit() function from the creationComplete event of the Application object. When I run the application, nothing happens. The book says it should show a simple box with different sized lines. Anything else I need to do? Thanks! No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.14.0/1048 - Release Date: 10/3/2007 8:22 PM
RE: [flexcoders] HTTPService Error event
Just out of curiosity, why aren't you using flash remoting? ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sheriff Sent: Sunday, September 30, 2007 3:52 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] HTTPService Error event why not just use a webService, and then only show an error if something is wrong.? - Original Message From: George Georgiou [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 30, 2007 3:43:55 PM Subject: Re: [flexcoders] HTTPService Error event Hi Scott, I have been through many Flex Tutorials but unfortunately our world lacks of tutorials for connectivity with ColdFusion. I am an experianced CF developer but unfortunately I cannot figure out how to proceed with data through Flex and CF. Indeed - your way is much easier to write and better to understand than the one that I have posted. I will keep that one :-) Thanks! But still... the 'fault' function in the HTTPService tag is always triggered! Even with your own way. How can I handle this? All I want is to be able to 'alert' the users that there is some kind of error (I know how to get the exact error message through the event handler) but I have no clue how to trigger this function if and only if there is some kind of problem in my CFM file. any ideas? Thanks, George On 9/30/07, Scott - FastLane HYPERLINK mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] com wrote: George - I have not seen this syntax for passing request params to an HTTPService. Of course that doesn't mean it is wrong :) But, here is how I would do it. Change button definition to mx:Button label=Add Employee click=callServer(-)/ then public function callServer() :void { var params:Object = new Object(); params.firstName = firstName.text; ... srv.send(params) ; } hth Scott George Georgiou wrote: Hi, I have this code. It works perfect but I would like to get alerted only when I have some kind of error in my test.cfm file. Instead, the 'errorAlert(-)' function always is triggered :( Any idea's on how to make this work only when I have problems in my test.cfm file? ?xml version=1.0 encoding=utf--8? mx:Application xmlns:mx=HYPERLINK http://www.adobe.com/2006/mxml; \nhttp://www.adobe. com/2006/ mxml layout=absolute mx:HTTPService id=srv url=HYPERLINK http://myserver.flex/test.cfm; \nhttp://myserver. flex/test. cfm fault=errorAlert(-) ; method=POST mx:request firstName{firstName.text}/firstName lastName{ lastName.text}/lastName salary{salary.text}/salary startDate{startDate.text}/startDate /mx:request /mx:HTTPService mx:Script ![CDATA[ import mx.controls. Alert; private function errorAlert() :void { Alert.show('-Error!'); } ]] /mx:Script mx:Form mx:FormItem label=First Name mx:TextInput id=firstName-/ /mx:FormItem mx:FormItem label=Last Name mx:TextInput id=lastName-/ /mx:FormItem mx:FormItem label=Salary mx:TextInput id=salary/ /mx:FormItem mx:FormItem label=Start Date mx:DateField id=startDate-/ /mx:FormItem mx:FormItem mx:Button label=Add Employee click= srv.send()/ /mx:FormItem /mx:Form /mx:Application _ HYPERLINK http://us.rd.yahoo.com/evt=51201/*http://autos.yahoo.com/new_cars.html;_ylc =X3oDMTE5NWVzZGVyBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDYXV0b3MtbmV3Y2FyCh eck out the hottest 2008 models today at Yahoo! Autos. No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.13.35/1039 - Release Date: 9/29/2007 9:46 PM
RE: [flexcoders] Element type mx:Lab must be followed by either attribute specifications,
First, there's no element type Lab in the mx namespace. Second, even if there was, there is no tag ending to your mx:Lab statement. Try this (assuming your Lab components are in a directory named lab): ?xml version=1.0 encoding=utf--8? mx:Application xmlns:mx=HYPERLINK http://www.adobe.com/2006/mxmlhttp://www.adobe.-com/2006/-mxml; xmlns:v=views.-* xmlns:Lab=lab.* layout=absolute- And in the code: Lab:componentName attribute=whatever /Lab:componentName ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of droponrcll Sent: Friday, September 28, 2007 11:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Element type mx:Lab must be followed by either attribute specifications, I've tried to add my own namespace to allow me to insert my own components, a process I've done several times before, and I get the error: Element type mx:Lab must be followed by either attribute specifications, or /. I am using FB 3 Milestone 3. The full MXML for the file is this: ?xml version=1.0 encoding=utf--8? mx:Application xmlns:mx=HYPERLINK http://www.adobe.com/2006/mxmlhttp://www.adobe.-com/2006/-mxml; xmlns:v=views.-* layout=absolute- mx:Script ![CDATA[ import mx.collections.-ArrayCollection; import vo.MediaElement; import mx.controls.-Alert; private var images:XML= thumbviewer image imgSrc=img.-jpg caption=An Image!/ movie swfSrc=swf.-swf caption=A swf!/ /thumbviewer private var imgArray:Array =new Array(); private function parseViewer(-):void { var loop:int = 0; for each (var me:XML in images.children(-)){ imgArray.push(-new MediaElement (me.imgSrc, me.swfSrc, me.caption))-; } Alert.show(imgArray-.length+ ' imgarray'); allImages = new ArrayCollection(-imgArray)-; } [Bindable] private var allImages:ArrayColl-ection; ]] /mx:Script mx:VBox horizontalAlign=-center verticalAlign=-top horizontalCenter=-0 v:LargeView id=fullsize imgSrc={allImages.-getItemAt(-0).imgSrc}-a/ mx:Button label=Change view click=fullsize.-swfSrc='movies/-swf.swf'-/ mx:Lab /mx:Application No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.13.33/1036 - Release Date: 9/28/2007 3:40 PM
RE: [flexcoders] adjusting horizontal space between menuitems in menuBar
A quick and dirty way to do it would be to just add spaces to the XML that provides the menubar items: private var menubarXML:XMLList = menuitem label= File data=file/ menuitem label= Edit data=edit/ menuitem label= Create data=create/ /; ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sgarrity1 Sent: Friday, September 28, 2007 3:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] adjusting horizontal space between menuitems in menuBar Hi, I've tried numerous approaches and searched a number of blogs for this. Is there a way to adjust the space between text menuitems in a MenuBar ? I would think one might be able to use horizontalGap or padding or margins but that does not seem to be available ? I know I could modify the actionscript but am just wondering if there is a cleaner/simpler way via a parameter or style that I have missed ? So rather than: File Edit Create I'd want: File Edit Create Thanks for any tips No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.13.33/1036 - Release Date: 9/28/2007 3:40 PM
RE: [flexcoders] pixel font [old] issue
You might take a look at this, too. HYPERLINK http://www.minifonts.com/tips.htmlhttp://www.minifonts.com/tips.html The second major topic on the page deals with using pixel fonts with Flash. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ary Sent: Sunday, September 23, 2007 2:03 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] pixel font [old] issue Thanks Jon! i wil try that... ary --- Jon Bradley HYPERLINK mailto:jbradley%40postcentral.com[EMAIL PROTECTED] wrote: Search archives. Another embedding fonts thread was discussed up about a week ago (Embed Flash Font was the subject). Text of my post is below, which works for all pixel fonts I've tested so far (provided you use the proper font size in the Flex CSS document). First step is to put a dynamic text field on the stage in Flash, set your font for the field and choose the character(s) you wish to embed. Make sure the text field is set to use Bitmap Text (whatever the drop down is). You do not have control over the characters after this step, so all your embedding is done in Flash (ie, no unicode control in Flex CSS). The use of font-weight: normal and fontAntiAliasType: normal are necessary, from what I recall. You have no control over this in Flex for pixel fonts. The following steps are: -- 1. Don't name the embedded font in the Flash 8 swf file the same as the system font. 2. Open the Flash 8 SWF back up into Flash 8 IDE (or CS3 IDE). When you do that, do a list variables - Debug List Variables. Make note of the 'exported' font name that Flash used for the font. That name is what you'll use in Flex. For example, on using a pixel font (Kroeger 05_56), I exported the Flash 8 SWF file, the embedded symbol name ended up as kroeger 05_56_8pt_st-. And in Flex, I used this in the CSS as follows: @font-face { src: url(../fonts/-Kroeger.swf) ; fontFamily: kroeger 05_56_8pt_st-; font-weight: normal; } And defining the usage of that font, recognizing that in this case it's a pixel font and doesn't use the advanced anti aliasing .assetInfoTitle { color:#66; fontFamily: kroeger 05_56_8pt_st-; font-weight: normal; fontSize: 8; fontAntiAliasType: normal; } Hopefully that will get you on your way. best, Jon On Sep 22, 2007, at 3:56 PM, Ary wrote: yes i try both already ...embeding .ttf files and make a dynamic text on swf file, i choose embeding dynamic text ,embedding ttf doesnt work at all, while embedding swf is working, but blurred text, i define normal,italic and bold in font face already...i even got fontantialiastype set to advanced rather than normal (i get it from a site, although it still blurred). -_-_-_-_-_-_ Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV. HYPERLINK http://tv.yahoo.com/http://tv.yahoo.-com/ No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.13.28/1023 - Release Date: 9/22/2007 1:27 PM
RE: [flexcoders] pixel font [old] issue
I've always had good results like this: In your application.css file (or in a mx:Style block), add these kinds of font statements: @font-face { src: url(fonts/MyriadWebPro.ttf) ; fontFamily: Myriad; unicodeRange: U+0021-U+007E; /* Normal Chars */ } @font-face { src: url(fonts/MyriadWebPro-Bold.ttf) ; fontFamily: Myriad; fontWeight: bold; unicodeRange: U+0021-U+007E; /* Normal Chars */ } @font-face { src: url(fonts/MyriadWebPro-Italic.ttf) ; fontFamily: Myriad; fontStyle: italic; unicodeRange: U+0021-U+007E; /* Normal Chars */ } @font-face { src: url(fonts/Myriad-BoldItalic.ttf) ; fontFamily: Myriad; fontWeight: bold; fontStyle: italic; unicodeRange: U+0021-U+007E; /* Normal Chars */ } You can change the unicodeRange to include whichever characters you need in your application (see HYPERLINK http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode-rang ewww.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode-range). Remember, if you don't need all the characters, then only include the one's you actually need. This will make the swf file smaller. Then, you can use these fonts in styles for different components. Like: DateChooser { fontFamily: Myriad; /* here's the font you declared in the @font-face statements */ fontSize: 12; fontWeight: normal; /* this is now MyriadWebPro */ headerColors: #84affe, #ff; fillColors: #0057fe, #ff, #209820, #ff; todayColor: #0057fe; rollOverColor: #84affe; selectionColor: #6cbb6c; borderColor: #66; backgroundColor: #ff; themeColor: #209820; dropShadowEnabled: true; shadowDirection: right; shadowDistance: 1; headerStyleName: mydateChooserHeaderStyle; weekDayStyleName: mydateChooserWeekDayStyle; } .mydateChooserHeaderStyle { fontWeight: bold; /* this becomes MyriadWebPro-Bold */ fontStyle: normal; textDecoration: none; } .mydateChooserWeekDayStyle { color: #0b333c; } You get the general idea. I use this all the time, and I've never had any trouble with blurry fonts. Hope this helps, Randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ary Sent: Friday, September 21, 2007 4:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] pixel font [old] issue Hi Guys, i already try everything that i could found on the internet to make it work, attaching direct truetypefont(-blurry), make an swf file first from flash and embed it on css(always get font 'fontname' with normal weight and regular style not found). could anyone pointing me into some direction please? :| and if possible with working example, when user dont have that certain bitmap font on their system thanks in advance ary -_-_-_-_-_-_ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. HYPERLINK http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7http://surveyli nk.-yahoo.com/-gmrs/yahoo_-panel_invite.-asp?a=7 No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.13.28/1021 - Release Date: 9/21/2007 2:02 PM
RE: [flexcoders] Re: Eeeeek! Development grinds to a halt due to stupid syntax problem
If it were me, I'd just change the name of the field in the SQL select statement, like: select [ADDRESS_LINE#2] as addr2, - . . from. Then use addr2 in your app. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of candysmate Sent: Saturday, September 22, 2007 12:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Ek! Development grinds to a halt due to stupid syntax problem --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Paul Andrews [EMAIL PROTECTED] wrote: Why do you have to use the database field names inside the flex application? What alternative approach would you suggest Paul? I use them to help me keep track of everything, as I'm using both a MS SQL database and an ODBC linked database to a proprietry format. I'm open to alternative method suggestions. No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.13.28/1021 - Release Date: 9/21/2007 2:02 PM
RE: [flexcoders] Re: Cannot get unselected Tab to be pure white color...
You can get rid of the border around the tabs, keep the border around the tab body, and make the unselected tabs white like this: TabNavigator { tabWidth: 80; tabHeight: 25; horizontalAlign: right; horizontalGap: 3; backgroundColor: #EE; tabStyleName: myTabs; selectedTabTextStyleName: mySelectedTabs; borderThickness: 1; borderColor: #33; } .myTabs { highlightAlphas: 1, 1; fillAlphas: 1, 1; fillColors: #FF, #FF; cornerRadius: 0; fontSize: 12; color: #CC; } .mySelectedTabs { color: #66; } Unfortunately, this makes the selected tab the same color as the TabNavigator backgroundColor. If you want to distinguish the selected tab from the others, you need to make the TabNavigator backgroundColor different than white, or in this case #EE. Hope this helps. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of williamkusumo Sent: Thursday, September 13, 2007 11:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cannot get unselected Tab to be pure white color... Another thing I am having trouble with is getting rid of the borders around the tab (the top part, NOT the tab body) Any idea what style I have to set? The documentation seems incomplete. Thanks! --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], williamkusumo [EMAIL PROTECTED] wrote: Hi! I am trying to get the unselected Tab in a TabNavigator to be pure white, but so far everything I tried always ended up with a gray-ish tab. Why is that?? Here's the CSS I have: .myTab { tabWidth:80; tabHeight:25; horizontalAlign:-right; horizontalGap:-3; backgroundColor:-#EE; tabStyleName:-myTabs; selectedTabTextStyl-eName:mySelecte-dTabs; } .myTabs { cornerRadius:-0; fontSize:12; color:#CC; fillColors:#-FF, #FF, #FF, #FF; fillAlphas:1, 1; highlightAlphas:-0, 0; } .mySelectedTabs { color:#66; } I tried adjusting the alphas as well, no luck, is there any other styles I need to be setting? Appreciate the help! No virus found in this outgoing message. Checked by AVG. Version: 7.5.485 / Virus Database: 269.13.18/1007 - Release Date: 9/13/2007 9:48 PM