RE: [flexcoders] Flex crashing @ compilation time
40 applications is a whole lotta applications to compile, and I believe the project is going to compile all of them. Maybe you could create different projects with the applications and use a library project for shared code? Less would need to be re-compiled each time. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of The Crow Sent: Tuesday, November 28, 2006 3:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex crashing @ compilation time Hello. I've been using Flex 2 for 3 months now. There's around 40 mxml applications plus component, and actionscript files in the project and the compilation (building) time has considerably increased with time...taking up to 5-10 minutes at times. I've upgraded to Java 1.5.0.09 and changed the settings in the FlexBuilder configuration file and still no significant improvements have been noticed. Could anyone help me out with this issue. Deleting the Bin folder and re-compiling the whole project as well did not solve the problem. PC Specs: Pentium 4 HT (3.0 MHz, 1GB DDR2 Memory, Integrated graphic card) Thanks for your cooperation. Regards, Anoop
[flexcoders] Using a resize event 1 time only
I have a VBox with a resize effect, how do I stop the resize events after my component resizes the first time. Thanks, patrick
[flexcoders] lockedColumnCount lockedRowCount
Hi to all, it's possibile to write a total into my lockeRowCount? also I wish that my dataProvider start from rowCount 3 into a DataGrid Thanks for your help Devis mx:DataGrid dataProvider={conto} width=100% height=100% hideEffect={ZoomRotateHide} showEffect={ZoomRotateShow} lockedColumnCount=2 lockedRowCount=2 mx:columns
[flexcoders] Cairngorm ServiceLocater Problem
Dear all, I am new to Cairngorm and for now i am writing a program using flex and i have decided to use Cairngorm. I have created subsection for each cairngorm state (business,Commands,Event). I have created sub folder in business for handling different service . But when i run the application . It prompt and say that The ServiceLocater can only instantied once . What i can do? is that i need to put all the service in the business folder ? thx capho
[flexcoders] Re: Problem with DataGrid (bug or not)
Here is another example of this problem. ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:local=* height=100% width=100% mx:Script ![CDATA[ [Bindable] public var myDP:Array = [ {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55}, {Name: John Doe, Photo: john_doe.jpg, Phone: 555-55-55} ] ]] /mx:Script mx:DataGrid id=myDG dataProvider={myDP} width=500 height=355 mx:columns mx:DataGridColumn dataField=Name/ mx:DataGridColumn dataField=Photo/ mx:DataGridColumn dataField=Phone itemRenderer=mx.controls.Label/ /mx:columns /mx:DataGrid /mx:Application The problem happends when the hight of the grid is multipe of the hight of the row. In this example hight of the grid is 355. Hight of the header is 25 hight of the row is 22 So we have (355-25)/22 = 15 Exactly 15 rows. And we see 16's row show up outside of the grid. If we put hight of the grid 356 (not multiple of row hight), extra row is not shown. Thank you. --- In flexcoders@yahoogroups.com, valery_j [EMAIL PROTECTED] wrote: I have a problem with ItemRenderer in Datagrid. The following code was taken from the help and modifed slightly /- ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ [Bindable] public var initDG:Array = [ {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover: 'folder.png'}, {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover: 'folder.png'}, {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover: 'folder.png'}, {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover: 'folder.png'}, {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover: 'folder.png'}, {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover: 'folder.png'}, {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover: 'folder.png'}, {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover: 'folder.png'}, {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover: 'folder.png'}, {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover: 'folder.png'}, {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover: 'folder.png'}, {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover: 'folder.png'}, {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Cover: 'file.png'}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover:
[flexcoders] Re: displaying an array result as a pop up dialog
Hi, your can try popupManager sample code lists below: import mx.managers.PopUpManager; public function onSendResult(result:Array):void{ var str:String = result.toString(); string_res.htmlText= str; PopUpManager.addPopUp(str,this,false); PopUpManager.bringToFront(str); } or you can just simply put Alert.show(str) cheers Troy --- In flexcoders@yahoogroups.com, munene_uk [EMAIL PROTECTED] wrote: I have built a simple mail application that allows the user to send a message to multiple users. once the message is successfully sent it returns a message i.e the message has been sent to the following recipients [EMAIL PROTECTED], [EMAIL PROTECTED] e.t.c the issue is that this data is returned as an array on this function in which i am using a textbox to display the results, however i would like to use an alert box to display the results instead. public function onSendResult(result:Array):void{ var str:String = result.toString(); string_res.htmlText= str; } how would i go about doing this?
[flexcoders] Re: rotation of vertical axis title
Hi, I also met the same requirment. unfortunately, the answer is no. And I use the another way to instead: 1 set show vertical axis title to false 2 create a HBox containing both a TextField and the chart 3 set the position of the drawing TextField to vertical 4 refine the position. Anyone who get the right solution , plz do let me know, appreicate. cheers Troy --- In flexcoders@yahoogroups.com, Pan Troglodytes [EMAIL PROTECTED] wrote: I think the answer is no, but I'll ask it anyway - is there a way to rotate the vertical axis title so it reads from top to bottom, instead of the current bottom to top? Second, if there is no way, who chose the opposite of the normal way to be the default? ;) -- Jason
[flexcoders] Re: creating line chart using action script
You may new a linechart firstly. var lineChart:LineChart = new LineChart(); set the properties here; this.addChild(lineChart); --- In flexcoders@yahoogroups.com, arpan srivastava [EMAIL PROTECTED] wrote: Hi , I need to draw a linechart using only actionscript. I have done following: private var cat:CategoryAxis; private var lineS:LineSeries; this.dataProvider = _myDataProvider; cat = new CategoryAxis(); cat.categoryField = interval; cat.dataProvider = chartDataProvider; this.horizontalAxis = cat; lineS = new LineSeries(); lineS.yField = data; lineS.dataProvider = _myDataProvider; this.series = new Array(lineS); this.height=400; this.width=400; this.showDataTips=true; Now where should I write this code. I have written it in initllize () function, but it is not working. My class is extending LineChart
[flexcoders] Image Slide Show(Quick One)
Hi All, Well I want to know some simple approach for creating an image slide show. I have an XML file containing all path and source of the images. I don't want to give any more functionality except that images should changes every 5sec. Can some one suggest a quick and easy approach on this one Thanks, Kumar
Re: [flexcoders] Text instance does not calculate its height properly when in scrollable Box
Hi Sergey, I'm not sure what you mean by 'cut by mask'. Is the text being obscured? When I tried your example code it performed as expected without issues. Cheers, Lach On 27/11/2006, at 10:25 PM, Sergey Kovalyov wrote: Hi All! When Text instance is in scrollable Box and user scrolls vertical scrollbar to the bottommost position, bottom edge of the Text remains invisible (cut by mask). How to fix it? Look at the example below that reproduces this behavior:
[flexcoders] ListBase.as getting called after Drop to Datagrid--Preventing the Drop???
I'm trying to drag-and-drop from a tree to a datagrid. I've followed the examples to try to achieve this, but whenever I drag over the datagrid, it refuses to accept the drop. The datagrid acts like the dropEnabled flag is set to false. I've traced the code and despite the fact that I have a custom dragEnter handler, it still executes the handler found in ListBase.as which cancels out my handler. Does anyone know what would cause this? Thanks! My Handler is as follows: private function onDragEnter( event:DragEvent ) : void { DragManager.acceptDragDrop(UIComponent(event.currentTarget)); }
[flexcoders] Re: Hands-on charts
Tom, I tried to take an excerpt of some existing code so there may be more imports, etc. that are needed. Hopefully this is the effect you were looking for... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:local=* mx:Script ![CDATA[ import mx.containers.HBox; import mx.containers.Panel; import mx.controls.Label; import mx.controls.Spacer; import mx.controls.sliderClasses.Slider; import mx.events.IndexChangedEvent; import mx.events.SliderEvent; import mx.controls.HSlider; public var oldValue:int = 0; public var criteria:Array = new Array(); public var criteriaValues:Array = new Array(); public function addSlider():void { var hbox:HBox = new HBox(); vbox.addChild(hbox); var hslider:HSlider = new HSlider(); hslider.id = new String(criteria.length); hslider.width = 400; hslider.height = 20; hslider.maximum = 100; hslider.liveDragging = true; hslider.setStyle(trackColors, [0x99, 0x99]); hslider.addEventListener(SliderEvent.CHANGE, slideControl); var sliderDO:DisplayObject = vbox.addChild(hslider); criteria.push(sliderDO); var hsliderValue:Label = new Label(); hsliderValue.id = new String(criteria.length); hsliderValue.htmlText = font size='18'0/font; var hsliderValueDO:DisplayObject = hbox.addChild(hsliderValue); criteriaValues.push(hsliderValueDO); var spacer:Spacer = new Spacer(); spacer.height = 50; vbox.addChild(spacer); } public function slideControl(event:SliderEvent):void { var currentSlider:int = new Number(event.target.id); // Redraw the box for the slider on each change/move vbox.graphics.beginFill(0x99, 1.0); vbox.graphics.drawRect(event.target.x, event.target.y, event.target.width, 20); vbox.graphics.beginFill(0xffcc00, 1.0); vbox.graphics.drawRect(event.target.x, event.target.y, event.value * .01 * event.target.width, 20); // Set display value for currently selected slider var sliderValue:String = new String(event.value).substr(0,2); criteriaValues[currentSlider].htmlText = font size='18' + new String(event.value).substr(0,2) + /font; } ]] /mx:Script mx:VBox id=vbox height=50% width=100% mx:Button label=Add Slider click=addSlider() / mx:Spacer height=50 / /mx:VBox /mx:Application From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Tom Fitzpatrick Sent: Monday, November 27, 2006 6:34 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Hands-on charts Flex charts work beautifully responding to dynamic changes in data. Using the current components, is there any way to use Flex charts to change data? As a conceptual model, I'm thinking of the way parametric equalizers work in some audio programs, where it's possible to drag nodes on a line graph vertically or horizontally to change the parametric data. - Tom
Re: [flexcoders] Binding to a custom method: possible?
Hi Ben, Your problem is probably that you have not told Flex when it needs to fire the binding. The binding mechanism works by broadcasting events from the setter methods of bindable properties. If there is no direct setter involved, then Flex does not automatically know to refresh the data to the binding destination. The best way I know around this issue is to specify the event type you want to associate with a change to your calculated value, and then fire that event when ever any of the arguments to that method change. [Bindable(enabledParamsChanged)] private function isEnabled():Boolean { if (A) … if (B) … etc } Then you need to say something like private function set valueOfA (arg) { // Change A here dispatchEvent(new Event(enabledParamsChanged)); } private function set valueOfB (arg) { // Change B here dispatchEvent(new Event(enabledParamsChanged)); } Now Flex knows to fire your isEnabled binding when the arguments to the calculation are altered. Cheers, Lach On 29/11/2006, at 1:13 AM, ben.clinkinbeard wrote: There was a similar question asked here recently but my needs are different so I am starting a new thread. My needs are as follows: I have a ComboBox whose enabled state needs to be determined by several factors, thus the need for a custom method. The problem is that this doesn't seem to work, no matter how I try it. Am I missing something or is this just not possible (meaning I have to set a property and bind to that)? Fake sample code below: [Bindable] private function isEnabled():Boolean { if(conditionA) { if(conditionB) { return true; } else { return false; } } } mx:ComboBox id=cb enabled={isEnabled()}/ Thanks, Ben
Re: [flexcoders] Flex crashing @ compilation time
Try uchecking Build Automatically under Window - Preferences - General - Workspace Rich On 11/29/06, Matt Chotin [EMAIL PROTECTED] wrote: 40 applications is a whole lotta applications to compile, and I believe the project is going to compile all of them. Maybe you could create different projects with the applications and use a library project for shared code? Less would need to be re-compiled each time. Matt -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *The Crow *Sent:* Tuesday, November 28, 2006 3:13 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Flex crashing @ compilation time Hello. I've been using Flex 2 for 3 months now. There's around 40 mxml applications plus component, and actionscript files in the project and the compilation (building) time has considerably increased with time...taking up to 5-10 minutes at times. I've upgraded to Java 1.5.0.09 and changed the settings in the FlexBuilder configuration file and still no significant improvements have been noticed. Could anyone help me out with this issue. Deleting the Bin folder and re-compiling the whole project as well did not solve the problem. PC Specs: Pentium 4 HT (3.0 MHz, 1GB DDR2 Memory, Integrated graphic card) Thanks for your cooperation. Regards, Anoop -- Rich Tretola mx:EverythingFlex/ http://www.EverythingFlex.com
Re: [flexcoders] displaying an array result as a pop up dialog
Sounds like you want to say: Alert.show(your message here) That will give you a simple pop-up with your confirmation text. If you want to use a custom component for your pop-up, investigate the PopupManager class. Cheers, Lach On 28/11/2006, at 10:41 PM, munene_uk wrote: I have built a simple mail application that allows the user to send a message to multiple users. once the message is successfully sent it returns a message i.e the message has been sent to the following recipients [EMAIL PROTECTED], [EMAIL PROTECTED] e.t.c the issue is that this data is returned as an array on this function in which i am using a textbox to display the results, however i would like to use an alert box to display the results instead. public function onSendResult(result:Array):void{ var str:String = result.toString(); string_res.htmlText= str; } how would i go about doing this?
[flexcoders] Where is my vertical scroll bar?
Hello good people, I'm placing titlewindows on main application canvas in a way that exceeds the application canvas vertical boundaries. I expect a vertical scrollbar to be automatically displayed, but that does not happen. Anybody knows why? What can I do to make it happen? Thanks in advance, Avinoam.
Re: [flexcoders] accordion, load ALL
thanks for your quick anser, but i just need to load one of my child tab not all... so isn't there a way to say accordion, load your xth tab ? thanks - Original Message From: Karl Johnson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 28, 2006 7:19:20 PM Subject: RE: [flexcoders] accordion, load ALL Well the *easy* answer is to set creationPolicy= all on the accordion. But use this carefully, because there are performance impacts on doing this. Karl From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Yiðit Boyar Sent: Tuesday, November 28, 2006 5:04 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] accordion, load ALL i have an acoordion box, and when sth is clicked inside one canvas, another is opened and a function in the component included in the opened tab is called. but in the first click, because the canvas objects are not preloaded, i cannot call the function... how can i say the accordion component to load all of it's content not only the first tab? Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. !-- #ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0; } #ygrp-tpmsgs{ font-family:Arial; clear:both; } #ygrp-vitnav{ padding-top:10px; font-family:Verdana; font-size:77%; margin:0; } #ygrp-vitnav a{ padding:0 1px; } #ygrp-actbar{ clear:both; margin:25px 0; white-space:nowrap; color:#666; text-align:right; } #ygrp-actbar .left{ float:left; white-space:nowrap; } .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana; font-size:77%; padding:15px 0; } #ygrp-ft{ font-family:verdana; font-size:77%; border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px; } #ygrp-vital{ background-color:#e0ecee; margin-bottom:20px; padding:2px 0 8px 8px; } #ygrp-vital #vithd{ font-size:77%; font-family:Verdana; font-weight:bold; color:#333; text-transform:uppercase; } #ygrp-vital ul{ padding:0; margin:2px 0; } #ygrp-vital ul li{ list-style-type:none; clear:both; border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold; color:#ff7900; float:right; width:2em; text-align:right; padding-right:.5em; } #ygrp-vital ul li .cat{ font-weight:bold; } #ygrp-vital a { text-decoration:none; } #ygrp-vital a:hover{ text-decoration:underline; } #ygrp-sponsor #hd{ color:#999; font-size:77%; } #ygrp-sponsor #ov{ padding:6px 13px; background-color:#e0ecee; margin-bottom:20px; } #ygrp-sponsor #ov ul{ padding:0 0 0 8px; margin:0; } #ygrp-sponsor #ov li{ list-style-type:square; padding:6px 0; font-size:77%; } #ygrp-sponsor #ov li a{ text-decoration:none; font-size:130%; } #ygrp-sponsor #nc { background-color:#eee; margin-bottom:20px; padding:0 8px; } #ygrp-sponsor .ad{ padding:8px 0; } #ygrp-sponsor .ad #hd1{ font-family:Arial; font-weight:bold; color:#628c2a; font-size:100%; line-height:122%; } #ygrp-sponsor .ad a{ text-decoration:none; } #ygrp-sponsor .ad a:hover{ text-decoration:underline; } #ygrp-sponsor .ad p{ margin:0; } o {font-size:0;} .MsoNormal { margin:0 0 0 0; } #ygrp-text tt{ font-size:120%; } blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
RE: [flexcoders] Text instance does not calculate its height properly when in scrollable Box
Unfortunately there seems to be a bug with text fields / labels and htmlText. The text component seems to not take into account line breaks/font sizing or something causing it to measure the component inaccurately. I'm yet to find a work-around. Lach, to replicate the bug highlight the text at the bottom of the text component, you will see the text scroll more beyond the scrollbars. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lachlan Cotter Sent: 29 November 2006 12:50 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Text instance does not calculate its height properly when in scrollable Box Hi Sergey, I'm not sure what you mean by 'cut by mask'. Is the text being obscured? When I tried your example code it performed as expected without issues. Cheers, Lach On 27/11/2006, at 10:25 PM, Sergey Kovalyov wrote: Hi All! When Text instance is in scrollable Box and user scrolls vertical scrollbar to the bottommost position, bottom edge of the Text remains invisible (cut by mask). How to fix it? Look at the example below that reproduces this behavior:
[flexcoders] debug version issue
Hi there, Some sites that require flash player 9 don't work with my debug version of the flash player. Take for instance the new Kuler app from adobe. (http://kuler.adobe.com) It says i need to install Flash Player 9. But I have the debug version 9,0,18,60 installed. And sites like myspace won't load any flash content at all and provides me no warning. Adobe, what's up? Is there a newer version of the debug flash player? Thanks, Mark
Re: [flexcoders] Cairngorm ServiceLocater Problem
Capho, ServiceLocator is an implementation of the Singleton pattern which, in a nutshell, means that only one instance of the class should be created. Your code is somehow breaking this rule. Set a breakpoint in ServiceLocator.new() and ServiceLocator.getInstance() and run your app in debug mode. You should be able to find out where/when your code is attempting to create instances. Hope this helps, Douglas - Douglas McCarroll CairngormDocs.org Webmaster http://www.CairngormDocs.org Flex Developer http://www.brightworks.com 617.459.3840 - sinacapho wrote: Dear all, I am new to Cairngorm and for now i am writing a program using flex and i have decided to use Cairngorm. I have created subsection for each cairngorm state (business,Commands,Event). I have created sub folder in business for handling different service . But when i run the application . It prompt and say that The ServiceLocater can only instantied once . What i can do? is that i need to put all the service in the business folder ? thx capho
[flexcoders] to form or not to form that is my question
can somone enlighten me on the benefit to using forms and form items instead of simply using text input boxes thanks
Re: [flexcoders] application structure and proper practice
Hi, That is an architecture question so it depends on how you have decided delegate responsibilities in your application. As a general guide however: your pop-up windows are views and should be separated from (have no knowledge of) the service calls which are an interface to the application layer. A typical way to achieve this is to broadcast events from your view describing user interactions (e.g. user submits form) passing the object to which the form is bound as the event 'payload'. Listen for these events with your controller and use your event handler to call the webservice or respond as appropriate. Your view needn't know anything about the webservice. Hope that helps. Cheers, Lach On 29/11/2006, at 4:42 AM, bghoward3 wrote: i am in the middle of developing an application with several popup windows that a user can populate and send to a db, i am wondering what the best practice is here in regards to my webservice calls. is it best to keep all of my REQUESTES TIED TO THE WEBSERVICE STORED IN THE PARENT DOCUMENT AND USE FUNCTIONS to interact with the service or should i initate new webservice calls within the pop up window? thanks for any direction on the correct practice to follow
Re: [flexcoders] application structure and proper practice
Hi, That is an architecture question so it depends on how you have decided delegate responsibilities in your application. As a general guide however: your pop-up windows are views and should be separated from (have no knowledge of) the service calls which are an interface to the application layer. A typical way to achieve this is to broadcast events from your view describing user interactions (e.g. user submits form) passing the object to which the form is bound as the event 'payload'. Listen for these events with your controller and use your event handler to call the webservice or respond as appropriate. Your view needn't know anything about the webservice. Hope that helps. Cheers, Lach On 29/11/2006, at 4:42 AM, bghoward3 wrote: i am in the middle of developing an application with several popup windows that a user can populate and send to a db, i am wondering what the best practice is here in regards to my webservice calls. is it best to keep all of my REQUESTES TIED TO THE WEBSERVICE STORED IN THE PARENT DOCUMENT AND USE FUNCTIONS to interact with the service or should i initate new webservice calls within the pop up window? thanks for any direction on the correct practice to follow
[flexcoders] Re: change properties in itemRenderer at runtime ?
Hi Arpan, You need to use the properties property of ClassFactory. This is basically an object whose properties get assigned to your factory class's public properties with matching names. For example, if your gridItemRenderer class has public properties called someString, someNumber and otherObject, you would do this: var myFactory:ClassFactory = new ClassFactory(gridItemRenderer) var myObj:Object = new Object(); myObj.someString:String = hi there; myObj.someNumber:Number = 7873; myObj.otherObject:CustomType = myOtherCustomObject; myFactory.properties = myObj; lineChartColumn.itemRenderer = myFactory; You can also use this approach to set up bindings inside the factory class, so that its values are bound to external properties. This approach is demonstrated here: http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers-with-classfactory/ HTH, Ben --- In flexcoders@yahoogroups.com, arpan srivastava [EMAIL PROTECTED] wrote: Hi, I have created an itemRenderer for the datagrid. I have lots of properties in the itemRenderer that can be set at rumtime by the user. How to set those properties in my itemRenderer. This is what I did: lineChartColumn.itemRenderer = new ClassFactory(gridItemRenderer); Now in gridItemRenderer.as I have properties to set e.g. colors. So if user changes the properties how can i set those properties in gridItemRenderer.as ?
[flexcoders] {data} current index
Hi, I have an application that uses a custom component as a renderItem in a TileList, retrieving a list of data from XML as the dataProvider. How can I retrieve the current index of the item within my custom component? I can retrieve the data using {data}, but how would I retrieve the index of the item as it is being added in the actual TileList?
[flexcoders] Styling in Flex is officially ridiculous
OK. I am usually very hesitant to criticize Adobe because of the immense respect I have for their employees and the amazing technology they create. I have built my career around their products. That being said, the styling capabilities in Flex are downright silly. I have suffered silently through some small, yet extremely annoying nuances, but this one takes the cake: You can't style a Button to not have a border!!! Developer: Hey button, go ahead and skip your border drawing routine. Button: Eff that! I love my borders and I ain't getting rid of them for anyone! WTF. I can understand not supporting some styling features people would like, but not supporting one that is just turning something off? What gives? I realize I could probably subclass Button and override the drawing but that is uber-overkill for something that should be a simple attribute. If someone from Adobe can offer a valid reason for why this isn't supported I would love to hear it. I would also be very interested to know if styling is an area that is being focused on for significant upgrades in future versions. Thanks, Ben
Re: [flexcoders] to form or not to form that is my question
I was wondering the same - everything seems to work just fine without using form and formItems. I found that the form component seem to make it more difficult to create and size the layout objects. I am not using either and have no problems using just textInput and labels instead. Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 bghoward3 wrote: can somone enlighten me on the benefit to using forms and form items instead of simply using text input boxes thanks
[flexcoders] Best practices for displaying large texts
Hey, I'm trying to figure out the best (or at least optimal) way to display a large text (e.g. a news article) with several paragraphs using Flex 2. Would a Text control be the right one to use? Or is there another technique that would render better? Is there any way to justify text on -both- sides? Thanks in advance, Pablo Gustavo Apanasionek
RE: [flexcoders] debug version issue
Yes mate: 9.0.r28 http://www.adobe.com/support/flashplayer/downloads.html -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark McCray Sent: 29 November 2006 14:55 To: flexcoders@yahoogroups.com Subject: [flexcoders] debug version issue Hi there, Some sites that require flash player 9 don't work with my debug version of the flash player. Take for instance the new Kuler app from adobe. (http://kuler. http://kuler.adobe.com adobe.com) It says i need to install Flash Player 9. But I have the debug version 9,0,18,60 installed. And sites like myspace won't load any flash content at all and provides me no warning. Adobe, what's up? Is there a newer version of the debug flash player? Thanks, Mark
Re: [flexcoders] FDS and AMFPHP
On Monday 27 November 2006 19:25, Philippe wrote: Is it possible to use Flex Data Services 2 with AMFPHP ? I thought AMFPHP only did remoteing, not full blown FDS. I could be wrong though. -- Tom Chiverton Helping to completely incubate visionary e-commerce 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 Law Society. 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 * 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] Styling in Flex is officially ridiculous
Well, Before your loose it... try myButton.setStyle(upSkin, null); OR Button { upSkin:ClassReference(null); } OR mx:Button upSkin={null}/ Peace, Mike On 11/29/06, ben.clinkinbeard [EMAIL PROTECTED] wrote: OK. I am usually very hesitant to criticize Adobe because of the immense respect I have for their employees and the amazing technology they create. I have built my career around their products. That being said, the styling capabilities in Flex are downright silly. I have suffered silently through some small, yet extremely annoying nuances, but this one takes the cake: You can't style a Button to not have a border!!! Developer: Hey button, go ahead and skip your border drawing routine. Button: Eff that! I love my borders and I ain't getting rid of them for anyone! WTF. I can understand not supporting some styling features people would like, but not supporting one that is just turning something off? What gives? I realize I could probably subclass Button and override the drawing but that is uber-overkill for something that should be a simple attribute. If someone from Adobe can offer a valid reason for why this isn't supported I would love to hear it. I would also be very interested to know if styling is an area that is being focused on for significant upgrades in future versions. Thanks, Ben -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
RE: [flexcoders] To Adobe - new release improvements??
The performance is on par with 2.0, we didn't make any major improvements, sorry. Nor are project path issues addressed. Number of bugs fixed between SDK and Flex Builder is over 500 though. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Wabyick Sent: Tuesday, November 28, 2006 9:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] To Adobe - new release improvements?? Hey Adobe guys, Is it possible for you to address some of the major (or non-major) improvements in the coming Flex release? In particular, I am keen to know if there were significant improvements made to Flexbuilder itself. Stuff like increased compiler performance, ease of use with relative paths, etc would be of interest to me. A close second would be roughly the number of bugs fixed in the actually Flex UI framework. As my project continues to grow, I am definitely getting antsy for a new release! Thanks, -Daniel
Re: [flexcoders] Cairngorm ServiceLocater Problem
On Wednesday 29 November 2006 08:53, sinacapho wrote: application . It prompt and say that The ServiceLocater can only instantied once . What i can do? is that i need to put all the service in the business folder ? Post a couple of examples of your use of the ServiceLocator, and we'll see. -- Tom Chiverton Helping to seamlessly synergize frictionless platforms 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 Law Society. 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 * 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] Is it possible to upload an xml file from local filesystem into a variable
Hi, I'm trying to replace a .Net web client which zips and xml file and transfers it a server for analysis via a SOAP webservice. I wanted to remove dependancy on .Net standalone client and use flex app as replacment. I can't seem to find a way of loading the local xml file into a var for compression and base64 encoding to webservice. Can this be done or are there security restrictions on this? Many thanks Murdo
RE: [flexcoders] Styling in Flex is officially ridiculous
I can't answer any of that for Adobe, but here is some input. Granted, I agree that it should be a default css property that can be easilty changed... It actually can be done without a ton of work. The easiest way to do that is to copy modify the halo ButtonSkin class, and use it as a custom skin on your button. Just modify the updateDisplayList function so that it draws the gradient rectangles on top of each other, without the pixel offset for the border, when calling the drawRoundRect functions. Search for the string // button fill in that class, and you will see the areas that need to be updated. You don't need to subclass the button at all. You can find the halo skins as a reference at C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\source\mx\skins\halo I have more info on skinning flex apps at https://www.cynergysystems.com/blogs/page/andrewtrice?entry=making_flex_ less_flex_like Hope that helps, -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, November 29, 2006 10:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Styling in Flex is officially ridiculous OK. I am usually very hesitant to criticize Adobe because of the immense respect I have for their employees and the amazing technology they create. I have built my career around their products. That being said, the styling capabilities in Flex are downright silly. I have suffered silently through some small, yet extremely annoying nuances, but this one takes the cake: You can't style a Button to not have a border!!! Developer: Hey button, go ahead and skip your border drawing routine. Button: Eff that! I love my borders and I ain't getting rid of them for anyone! WTF. I can understand not supporting some styling features people would like, but not supporting one that is just turning something off? What gives? I realize I could probably subclass Button and override the drawing but that is uber-overkill for something that should be a simple attribute. If someone from Adobe can offer a valid reason for why this isn't supported I would love to hear it. I would also be very interested to know if styling is an area that is being focused on for significant upgrades in future versions. Thanks, Ben
RE: [flexcoders] Styling in Flex is officially ridiculous
I'm not sure that approach really works... The buttons don't show up at all. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Wednesday, November 29, 2006 11:05 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Styling in Flex is officially ridiculous Well, Before your loose it... try myButton.setStyle(upSkin, null); OR Button { upSkin:ClassReference(null); } OR mx:Button upSkin={null}/ Peace, Mike On 11/29/06, ben.clinkinbeard [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: OK. I am usually very hesitant to criticize Adobe because of the immense respect I have for their employees and the amazing technology they create. I have built my career around their products. That being said, the styling capabilities in Flex are downright silly. I have suffered silently through some small, yet extremely annoying nuances, but this one takes the cake: You can't style a Button to not have a border!!! Developer: Hey button, go ahead and skip your border drawing routine. Button: Eff that! I love my borders and I ain't getting rid of them for anyone! WTF. I can understand not supporting some styling features people would like, but not supporting one that is just turning something off? What gives? I realize I could probably subclass Button and override the drawing but that is uber-overkill for something that should be a simple attribute. If someone from Adobe can offer a valid reason for why this isn't supported I would love to hear it. I would also be very interested to know if styling is an area that is being focused on for significant upgrades in future versions. Thanks, Ben -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] To Adobe - new release improvements??
Any link to what has been fixed? Matt Chotin wrote: The performance is on par with 2.0, we didn’t make any major improvements, sorry. Nor are project path issues addressed. Number of bugs fixed between SDK and Flex Builder is over 500 though. Matt *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Wabyick *Sent:* Tuesday, November 28, 2006 9:35 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] To Adobe - new release improvements?? Hey Adobe guys, Is it possible for you to address some of the major (or non-major) improvements in the coming Flex release? In particular, I am keen to know if there were significant improvements made to Flexbuilder itself. Stuff like increased compiler performance, ease of use with relative paths, etc would be of interest to me. A close second would be roughly the number of bugs fixed in the actually Flex UI framework. As my project continues to grow, I am definitely getting antsy for a new release! Thanks, -Daniel -- 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] Re: Hands-on charts
Mark - Thanks - I'll take a look at that. - Tom mark_g_wales wrote: Tom, I tried to take an excerpt of some existing code so there may be more imports, etc. that are needed. Hopefully this is the effect you were looking for... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml xmlns:local=* mx:Script ![CDATA[ import mx.containers.HBox; import mx.containers.Panel; import mx.controls.Label; import mx.controls.Spacer; import mx.controls.sliderClasses.Slider; import mx.events.IndexChangedEvent; import mx.events.SliderEvent; import mx.controls.HSlider; public var oldValue:int = 0; public var criteria:Array = new Array(); public var criteriaValues:Array = new Array(); public function addSlider():void { var hbox:HBox = new HBox(); vbox.addChild(hbox); var hslider:HSlider = new HSlider(); hslider.id = new String(criteria.length); hslider.width = 400; hslider.height = 20; hslider.maximum = 100; hslider.liveDragging = true; hslider.setStyle(trackColors, [0x99, 0x99]); hslider.addEventListener(SliderEvent.CHANGE, slideControl); var sliderDO:DisplayObject = vbox.addChild(hslider); criteria.push(sliderDO); var hsliderValue:Label = new Label(); hsliderValue.id = new String(criteria.length); hsliderValue.htmlText = font size='18'0/font; var hsliderValueDO:DisplayObject = hbox.addChild(hsliderValue); criteriaValues.push(hsliderValueDO); var spacer:Spacer = new Spacer(); spacer.height = 50; vbox.addChild(spacer); } public function slideControl(event:SliderEvent):void { var currentSlider:int = new Number(event.target.id); // Redraw the box for the slider on each change/move vbox.graphics.beginFill(0x99, 1.0); vbox.graphics.drawRect(event.target.x, event.target.y, event.target.width, 20); vbox.graphics.beginFill(0xffcc00, 1.0); vbox.graphics.drawRect(event.target.x, event.target.y, event.value * .01 * event.target.width, 20); // Set display value for currently selected slider var sliderValue:String = new String(event.value).substr(0,2); criteriaValues[currentSlider].htmlText = font size='18' + new String(event.value).substr(0,2) + /font; } ]] /mx:Script mx:VBox id=vbox height=50% width=100% mx:Button label=Add Slider click=addSlider() / mx:Spacer height=50 / /mx:VBox /mx:Application From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Tom Fitzpatrick Sent: Monday, November 27, 2006 6:34 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Hands-on charts Flex charts work beautifully responding to dynamic changes in data. Using the current components, is there any way to use Flex charts to change data? As a conceptual model, I'm thinking of the way parametric equalizers work in some audio programs, where it's possible to drag nodes on a line graph vertically or horizontally to change the parametric data. - Tom
[flexcoders] Re: Binding to a custom method: possible?
Thanks to everyone who replied, I think there is probably enough info here to get a solution implemented. Unfortunately I have been pulled onto other tasks so I have not had a chance to test these methods, but I am confident they'll lead me to success. Thanks again! Ben --- In flexcoders@yahoogroups.com, Lachlan Cotter [EMAIL PROTECTED] wrote: Hi Ben, Your problem is probably that you have not told Flex when it needs to fire the binding. The binding mechanism works by broadcasting events from the setter methods of bindable properties. If there is no direct setter involved, then Flex does not automatically know to refresh the data to the binding destination. The best way I know around this issue is to specify the event type you want to associate with a change to your calculated value, and then fire that event when ever any of the arguments to that method change. [Bindable(enabledParamsChanged)] private function isEnabled():Boolean { if (A) if (B) etc } Then you need to say something like private function set valueOfA (arg) { // Change A here dispatchEvent(new Event(enabledParamsChanged)); } private function set valueOfB (arg) { // Change B here dispatchEvent(new Event(enabledParamsChanged)); } Now Flex knows to fire your isEnabled binding when the arguments to the calculation are altered. Cheers, Lach On 29/11/2006, at 1:13 AM, ben.clinkinbeard wrote: There was a similar question asked here recently but my needs are different so I am starting a new thread. My needs are as follows: I have a ComboBox whose enabled state needs to be determined by several factors, thus the need for a custom method. The problem is that this doesn't seem to work, no matter how I try it. Am I missing something or is this just not possible (meaning I have to set a property and bind to that)? Fake sample code below: [Bindable] private function isEnabled():Boolean { if(conditionA) { if(conditionB) { return true; } else { return false; } } } mx:ComboBox id=cb enabled={isEnabled()}/ Thanks, Ben
Re: [flexcoders] mx.automation
Indeed it was my mistake, still had source from one of the beta's in my flexbuilder. Greetz Erik On 11/27/06, Steve Kellogg @ Project SOC [EMAIL PROTECTED] wrote: BUSTED -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Matt Chotin *Sent:* Sunday, November 26, 2006 4:28 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] mx.automation Yeah, that shouldn't really be possible. The automation stuff is I think due to a bug, but you're using a build that others on this list aren't, ahem :-) Matt -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Tom Chiverton Sent: Friday, November 24, 2006 8:36 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] mx.automation On Friday 24 November 2006 10:52, EECOLOR wrote: The source code that comes with the Flex framework is not the same as the compiled frameworks swc file. That's odd - have you filled a bug / wish list ? -- Tom Chiverton Helping to conveniently deliver dynamic synergies 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 Law Society. 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
RE: [flexcoders] To Adobe - new release improvements??
Not yet, when we release there will be lots of info. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adam Reynolds Sent: Wednesday, November 29, 2006 8:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] To Adobe - new release improvements?? Any link to what has been fixed? Matt Chotin wrote: The performance is on par with 2.0, we didn't make any major improvements, sorry. Nor are project path issues addressed. Number of bugs fixed between SDK and Flex Builder is over 500 though. Matt *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Wabyick *Sent:* Tuesday, November 28, 2006 9:35 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] To Adobe - new release improvements?? Hey Adobe guys, Is it possible for you to address some of the major (or non-major) improvements in the coming Flex release? In particular, I am keen to know if there were significant improvements made to Flexbuilder itself. Stuff like increased compiler performance, ease of use with relative paths, etc would be of interest to me. A close second would be roughly the number of bugs fixed in the actually Flex UI framework. As my project continues to grow, I am definitely getting antsy for a new release! Thanks, -Daniel -- 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
Re: [flexcoders] Styling in Flex is officially ridiculous
Oh yeah... If he is talking about the actual button border, that is the skin and he needs to create a new skin. The button does not have borders, it has skins. It dosn't even share the same characteristics of a Container that has a border. These are not the same things. So, Ben, what do you mean when you say the Button's border? Or, what do you want... Peace, Mike On 11/29/06, Michael Schmalle [EMAIL PROTECTED] wrote: Andy, It answers his question and it does work. If the label is present, you click on the label and the Button functions correctly. I don't know what he is aiming for here but, if you 'don't' have a border, there is no other hit area specified for the component. So, how are you going to get mouse events from a component that dosn't have a hit area? Bottom line is, this approach does work if you plan to use a label, other than this, why would you want a button without a label and border if you want to click on it? Peace, Mike On 11/29/06, Andrew Trice [EMAIL PROTECTED] wrote: I'm not sure that approach really works… The buttons don't show up at all. -Andy _ *Andrew Trice* Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY -- *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] *On Behalf Of *Michael Schmalle *Sent:* Wednesday, November 29, 2006 11:05 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Styling in Flex is officially ridiculous Well, Before your loose it... try myButton.setStyle(upSkin, null); OR Button { upSkin:ClassReference(null); } OR mx:Button upSkin={null}/ Peace, Mike On 11/29/06, *ben.clinkinbeard* [EMAIL PROTECTED] wrote: OK. I am usually very hesitant to criticize Adobe because of the immense respect I have for their employees and the amazing technology they create. I have built my career around their products. That being said, the styling capabilities in Flex are downright silly. I have suffered silently through some small, yet extremely annoying nuances, but this one takes the cake: You can't style a Button to not have a border!!! Developer: Hey button, go ahead and skip your border drawing routine. Button: Eff that! I love my borders and I ain't getting rid of them for anyone! WTF. I can understand not supporting some styling features people would like, but not supporting one that is just turning something off? What gives? I realize I could probably subclass Button and override the drawing but that is uber-overkill for something that should be a simple attribute. If someone from Adobe can offer a valid reason for why this isn't supported I would love to hear it. I would also be very interested to know if styling is an area that is being focused on for significant upgrades in future versions. Thanks, Ben -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Styling in Flex is officially ridiculous
Andy, It answers his question and it does work. If the label is present, you click on the label and the Button functions correctly. I don't know what he is aiming for here but, if you 'don't' have a border, there is no other hit area specified for the component. So, how are you going to get mouse events from a component that dosn't have a hit area? Bottom line is, this approach does work if you plan to use a label, other than this, why would you want a button without a label and border if you want to click on it? Peace, Mike On 11/29/06, Andrew Trice [EMAIL PROTECTED] wrote: I'm not sure that approach really works… The buttons don't show up at all. -Andy _ *Andrew Trice* Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Michael Schmalle *Sent:* Wednesday, November 29, 2006 11:05 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Styling in Flex is officially ridiculous Well, Before your loose it... try myButton.setStyle(upSkin, null); OR Button { upSkin:ClassReference(null); } OR mx:Button upSkin={null}/ Peace, Mike On 11/29/06, *ben.clinkinbeard* [EMAIL PROTECTED] wrote: OK. I am usually very hesitant to criticize Adobe because of the immense respect I have for their employees and the amazing technology they create. I have built my career around their products. That being said, the styling capabilities in Flex are downright silly. I have suffered silently through some small, yet extremely annoying nuances, but this one takes the cake: You can't style a Button to not have a border!!! Developer: Hey button, go ahead and skip your border drawing routine. Button: Eff that! I love my borders and I ain't getting rid of them for anyone! WTF. I can understand not supporting some styling features people would like, but not supporting one that is just turning something off? What gives? I realize I could probably subclass Button and override the drawing but that is uber-overkill for something that should be a simple attribute. If someone from Adobe can offer a valid reason for why this isn't supported I would love to hear it. I would also be very interested to know if styling is an area that is being focused on for significant upgrades in future versions. Thanks, Ben -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: totaling items in datagrid
Thanks Ben, I already use similar code with a labelFunction to do sub-totals within the grid and it works very well. However, that code will only do calculations on a single row and not on an entire column. The code I wrote for totaling a column works as well but not on a new form where the model has no data yet. I would also like to run the code after the data model is populated (run the function last after all other code has run). How can I iterate through a dataGrid when it holds the data and my model or the array doesn't have any data yet? --- In flexcoders@yahoogroups.com, bsdensmore [EMAIL PROTECTED] wrote: a labelfunction will do the calculations as you tab through the fields or as change rows on the grid. I use this to do some calculations and it works great. private function calcAdjAmount(item:Object,column:DataGridColumn):String { var adjustedAmt:Number; var emptyField:String = ; if (item['Num_Cases_Claimed'] != null) { adjustedAmt = item['Num_Cases_Claimed'] * Number(removeFormatting.format(item['Net_Promo_Amt'])); return basicCurrencyFormat.format(adjustedAmt.toString()); } else { return emptyField; } } Ben --- In flexcoders@yahoogroups.com, nall_daniel daniel.nall.ctr@ wrote: No one has an answer to this? Or suggestions? --- In flexcoders@yahoogroups.com, nall_daniel daniel.nall.ctr@ wrote: I am using the CF/Flex Application Wizard to generate a basic form based application. I have a Master datagrid that list all the purchase requests a user has submitted and a Detail form for editing a request or submitting a new request. The detail form has a datagrid as a subform. I pass the mx:model the wizard created of the subform's data to this function: [Bindable] public var purchaseTotal:Number; private function grandTotal(myArray:Array):void { purchaseTotal = 0; var length:int = myArray.length; for (var i:int = 0; i length; i++) { purchaseTotal += Number(myArray[i].Quantity * myArray[i].UnitCost) } } I assign purchaseTotal variable to the text property of a label and run the function on the subform's datagrid.itemFocusOut event. Now when a user is editing a purchase request, the grand total updates when the user changes either the Quantity or the UnitCost. Couple of problems with what I'm doing: 1. No grand total in the label until the user tabs or clicks through the datagrid subform. How can I get my function to run after the mx:model is created and populated with data? 2. New requests never show a grand total. Where's the model's data? My apologies for being so long winded but I wanted to make sure what I was doing is clear. Cheers, Dan
Re: [flexcoders] debug version issue
yeah but that's not the intel or universal binary version, and I'm on intel. Adobe? On Nov 29, 2006, at 10:06 AM, Steve Cox wrote: Yes mate: 9.0.r28 http://www.adobe.com/support/flashplayer/downloads.html -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark McCray Sent: 29 November 2006 14:55 To: flexcoders@yahoogroups.com Subject: [flexcoders] debug version issue Hi there, Some sites that require flash player 9 don't work with my debug version of the flash player. Take for instance the new Kuler app from adobe. (http://kuler.adobe.com) It says i need to install Flash Player 9. But I have the debug version 9,0,18,60 installed. And sites like myspace won't load any flash content at all and provides me no warning. Adobe, what's up? Is there a newer version of the debug flash player? Thanks, Mark
[flexcoders] Messaging and serialization
I have a flex app that is unable to de-serialize a JMS message correctly. The message I'm sending is a Java object, but when Flex de-serializes the message, aggregate objects on the message are null, only String values there populated. Do I have to set up an action script class and use the RemoteClass tag to get it to de-serialize the message correctly? Allen Riddle Sofware Development x3217
Re: [flexcoders] ColdFusion and Flex Integration - up to 10x gain, avoid cf object creation
I suppose it gives you the performance of struct and the advantadges of typed/mapped objects The properties of a CFC are NOT typed, thats the problem. We can type the argument of a CF function, but not the property of a CFC... This means that using properies is sensitive to errors. Greetz Erik
Re: [flexcoders] charting trial banner
On Monday 27 November 2006 21:17, Yiðit Boyar wrote: how can i get rid of the charting trial banner over my charts ? (my FB is not trial anymore) Did you purchase FB with charting, or just FB ? -- Tom Chiverton Helping to confidentially industrialize error-free schemas 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 Law Society. 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 * 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] Styling in Flex is officially ridiculous
That's how I interpreted it: that he is actually talking about the button's border. Ben, is that what you were talking about? If so, the skin method is the way to go. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Wednesday, November 29, 2006 11:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Styling in Flex is officially ridiculous Oh yeah... If he is talking about the actual button border, that is the skin and he needs to create a new skin. The button does not have borders, it has skins. It dosn't even share the same characteristics of a Container that has a border. These are not the same things. So, Ben, what do you mean when you say the Button's border? Or, what do you want... Peace, Mike On 11/29/06, Michael Schmalle [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Andy, It answers his question and it does work. If the label is present, you click on the label and the Button functions correctly. I don't know what he is aiming for here but, if you 'don't' have a border, there is no other hit area specified for the component. So, how are you going to get mouse events from a component that dosn't have a hit area? Bottom line is, this approach does work if you plan to use a label, other than this, why would you want a button without a label and border if you want to click on it? Peace, Mike On 11/29/06, Andrew Trice [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm not sure that approach really works... The buttons don't show up at all. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Office: 866-CYNERGY From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ups.com http://ups.com ] On Behalf Of Michael Schmalle Sent: Wednesday, November 29, 2006 11:05 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Styling in Flex is officially ridiculous Well, Before your loose it... try myButton.setStyle(upSkin, null); OR Button { upSkin:ClassReference(null); } OR mx:Button upSkin={null}/ Peace, Mike On 11/29/06, ben.clinkinbeard [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: OK. I am usually very hesitant to criticize Adobe because of the immense respect I have for their employees and the amazing technology they create. I have built my career around their products. That being said, the styling capabilities in Flex are downright silly. I have suffered silently through some small, yet extremely annoying nuances, but this one takes the cake: You can't style a Button to not have a border!!! Developer: Hey button, go ahead and skip your border drawing routine. Button: Eff that! I love my borders and I ain't getting rid of them for anyone! WTF. I can understand not supporting some styling features people would like, but not supporting one that is just turning something off? What gives? I realize I could probably subclass Button and override the drawing but that is uber-overkill for something that should be a simple attribute. If someone from Adobe can offer a valid reason for why this isn't supported I would love to hear it. I would also be very interested to know if styling is an area that is being focused on for significant upgrades in future versions. Thanks, Ben -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] installing FDS
I would like to use the FDS, but I am unclear on the installation process. My production server is Win 2000, running IIS and Coldfusion7. I know I need JRun? J2EE? to run the fds, but thats about it. I have heard that people are using Tomcat to run the fds, but I don't want to mess with my production server without knowing how installing Tomcat would effect say the IIS server, etc. I am not a server admin by any means, so ever time I install something on the server, its with white knuckles. Russ
Re: [flexcoders] Re: Hands-on charts
Ely - Inching forward some more... I implemented your tracking code (very clever) but it's still unclear how to use the Point data to rebuild the dataProvider. What is the hook that lets the function know which item in the dataProvider array is associated with the point data? - Tom Ely Greenfield wrote: Yup. To do mouse tracking, you generally need a mouse down, mouse move, and mouse up handler. Almost all of my code that does mouse tracking looks like this: someComponent mouseDown=startTracking(event); / private function startTracking(e:MouseEvent):void { // listen to the systemManager so we get mouse move/up events even when the mouse moves outside the component. // listen on capture so we can cancel move/rollover events going to other components. systemManager.addEventListener(MouseEvent.MOUSE_MOVE,track,true); systemManager.addEventListener(MouseEvent.MOUSE_UP,endTracking,true); track(e); } private function track(e:MouseEvent):void { // update your data/UI here. } private function endTracking(e:MouseEvent):void { track(e); // remove the event listeners until we need to track again. systemManager.removeEventListener(MouseEvent.MOUSE_MOVE,track,true); systemManager.removeEventListener(MouseEvent.MOUSE_UP,endTracking,true); } *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Tom Fitzpatrick *Sent:* Tuesday, November 28, 2006 9:37 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Hands-on charts I'm trying out your suggested approach and ran into a conceptual problem. I can get the mouse coordinates and convert them to data on the mouseDown event - but then how do I track the mouse movement, since that uses a different event (mouseMove), and the function I'm working with is already tied to the mouseDown? The movement tracking seems necessary to get the new coordinates. - Tom Ely Greenfield wrote: It depends on just how much data you're trying to show in the chart, but chances are good that it will be very responsive. Ely. -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *tom24569 *Sent:* Monday, November 27, 2006 12:08 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Re: Hands-on charts Would this happen fast enough that the chart would seem to be responding to the mouse movement? - Tom --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Hi Tom. There's no interative modelling built in, but this should be pretty easy to do: 1) listen for itemMouseDown events. 2) track the mouse position 3) convert the mouse position into data coordinates using the chart.localToData() function. 4) write the new data coordinates into your dataProvider Ely. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Tom Fitzpatrick Sent: Monday, November 27, 2006 6:34 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Hands-on charts Flex charts work beautifully responding to dynamic changes in data. Using the current components, is there any way to use Flex charts to change data? As a conceptual model, I'm thinking of the way parametric equalizers work in some audio programs, where it's possible to drag nodes on a line graph vertically or horizontally to change the parametric data. - Tom
[flexcoders] First problem: Error #2006 with the MenuBar
Hello, I have a problem with the MenuBar. We have implemented the MenuBar, which was filled dynamically with XML data. Sporadically it will appear following fault, if we mousover the root layer. RangeError: Error #2006: Der angegebene Index liegt außerhalb des zulässigen Bereichs. at flash.display::DisplayObjectContainer/addChildAt() at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal: :rawChildren_addChildAt() at mx.managers::SystemManager/addChild() at mx.managers::PopUpManager$/addPopUp() at mx.controls::Menu/show() at mx.controls::MenuBar/::showMenu() at mx.controls::MenuBar/::mouseOverHandler() Here a abrid ged version of our XML to create the MenuBar: Menuebar ... menu label=Artikel menu label=Artikel anlegen data=new_article / menu label=Artikel bearbeiten data=edit_article / menu label=Verpackung menu label=Verpackung anlegen data=new_package / menu label=Verpackung bearbeiten data=edit_package / /menu menu label=Materialgruppe menu label=Materialgruppe anlegen data=new_materialgroup / menu label=Materialgruppe bearbeiten data=edit_materialgroup / /menu /menu ... /Menuebar It is a well-formed XML. Thanks for your help. Matze
[flexcoders] Defining the scope property of a destination
Hi, I'm currently running some tests with coldfusion and java adapters and i'm wondering what is the difference between request and application when defining the scope property of a destination in FDS. Thank you all ! Michael
[flexcoders] Redux...Populating with Many-to-Many Relationship Data via RO?
Hi all (again), I guess using an existing post to create a new one simply by changing the subject wasn't a good idea. It got stuck under a completely unrelated thread; So, sorry for the double post, but at least now I will know that this isn't buried and ignored by accident...Here's my original post: I'm pretty sure that any answers for this one will help a lot of people, since the basis of it crosses many complex business applications. I have existing CF apps (Purchase Requests, Travel Requests, Request Approvals, etc.) that contain many-to-many relationships, such as PR Number Charge Strings Item/Costs, wherein the PR contains one or more charge strings, and each charge string can have one or more items. I am prototyping Flex versions, but I have come across a little (ha) bit of a situation where I am not sure of the best method to proceed. I have a actionscript form for creating a _new_ request, allowing the user to add charge strings and associated items dynamically (stripped version included below in case someone needs/wants to see how I did this). Textually, a request being updated might look like this: Request 1001 Charge String 1: CS: (combobox) Item 1: Type (combobox) Cost (Number)...etc. Item 2: Type (combobox) Cost (Number)...etc. Item 3: Type (combobox) Cost (Number)...etc. Charge String 2: (combobox) Item 1: Type (combobox) Cost (Number)...etc. Item 2: Type (combobox) Cost (Number)...etc. Charge String 3: (combobox) Item 1: Type (combobox) Cost (Number)...etc. Note that Charge Strings and Items have unique IDs and there is a relation between items and charge strings as well as items and the request. However, a request also has to be available for updates, since they can remain in draft status before being submitted for approvals. The situation is this: Because of the possible many-to-many relationship between charge strings and related items within a request, I'm not quite sure of the best method of populating the form for updates. Additionally, the user may add, remove or update items or an existing charge string, and add new charge strings with new items In CF, I only have to make 1 query to get the primary data I need, and I can do a nested loop to create the form easily by checking for a change in the charge string to know when to display the CS combobox and when to display it's associated items. On update, we archive the old charge string and item data and insert new rows into SQL Server, rather than trying to determine which charge strings and/or items were updated. This is for processing speed and the ability to recreate a request at any point in time (using version numbers), the latter being necessary for auditing the approval/rejection history of a request. I am not sure if looping is the best method to use in Flex -- particularly since the containers are dynamic out of necessity -- nor am I positive about the manner in which I should do this, in particular the data population/combobox selected items. (Btw, I started doing this with components, but actionscript was faster for me to get it to work...I'll end up going back to that just for code reuse but I like to see things work first :-) - charge string with estimated cost items code module (improvements or hints appreciated as well) - ?xml version=1.0 ? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=addCS(); mx:Script ![CDATA[ import mx.controls.Alert; import mx.controls.TextInput; import mx.containers.HBox; import mx.controls.ComboBox; import flash.events.Event; import flash.events.MouseEvent; import mx.collections.ArrayCollection; import mx.utils.ArrayUtil; //sample data for charge string combobox; would normally come from an RO call [Bindable] public var CSCollection:ArrayCollection = new ArrayCollection([{csUID: 1000, label: CS1000},{csUID: 1001, label: CS1001},{csUID: 1002, label: CS1002}]); //sample data for estimate type combobox; would normally come from an RO call [Bindable] public var ETCollection:ArrayCollection = new ArrayCollection([{etUID: 1000, label: 'Airfare'},{etUID: 1001, label: 'Meals'},{etUID: 1002, label: 'Other'}]); public function addCS():void { var newVBox:VBox = new VBox(); newVBox.setStyle( borderColor, #00 ); newVBox.setStyle( borderStyle, solid ); newVBox.setStyle(paddingBottom, 5); newVBox.setStyle(paddingRight, 5); newVBox.setStyle(paddingLeft, 5); newVBox.setStyle(paddingTop, 5); newVBox.percentWidth = 100; var newCS:ComboBox = new ComboBox(); newCS.percentWidth = 100; newCS.dataProvider = CSCollection; var csCloseBtn:Button = new Button(); var csAddEstBtn:Button = new Button(); csCloseBtn.label = Delete this Charge String and Associated Estimates; csCloseBtn.addEventListener(MouseEvent.CLICK,csCloseBtnClickListener); csAddEstBtn.label = Add Another Estimate to this Charge String;
Eclipse Optimizations. WAS RE: [flexcoders] Flex crashing @ compilation time
Hey Matt (et al), Does Adobe have any specific suggestions for setting up Eclipse to prevent the SLUGGISH EDITTING that many of us are seeing? I sometimes have to stop typing for 5-10 seconds to wait for Eclipse to CATCH UP to what I've typed. I'm not trying to say that I'm typing so amazingly fast that you should be impressed (I'm probably an average typist for a coder): I'm saying that eclipse is literally falling 5/10/15 characters behind, and I have to just sit there and wait until it decides to print what I've typed. It FEELS like a memory management/garbage collection issue to me. This seems more pronounced if a larger source file (2000 lines+) is open, but sometimes appears in SHORT component files (30 lines?) Any specific suggestions from you guys would really be appreciated. Thanks in Advance, Steve _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Tuesday, November 28, 2006 11:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex crashing @ compilation time 40 applications is a whole lotta applications to compile, and I believe the project is going to compile all of them. Maybe you could create different projects with the applications and use a library project for shared code? Less would need to be re-compiled each time. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of The Crow Sent: Tuesday, November 28, 2006 3:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex crashing @ compilation time Hello. I've been using Flex 2 for 3 months now. There's around 40 mxml applications plus component, and actionscript files in the project and the compilation (building) time has considerably increased with time...taking up to 5-10 minutes at times. I've upgraded to Java 1.5.0.09 and changed the settings in the FlexBuilder configuration file and still no significant improvements have been noticed. Could anyone help me out with this issue. Deleting the Bin folder and re-compiling the whole project as well did not solve the problem. PC Specs: Pentium 4 HT (3.0 MHz, 1GB DDR2 Memory, Integrated graphic card) Thanks for your cooperation. Regards, Anoop
Re: [flexcoders] Eclipse + Flex2Plugin + Subversion + Ant + Webserver Quickstart
On Wednesday 29 November 2006 00:48, Aldo Bucchi wrote: So, eating my own dogfood, my 2 cents on the 80/20 project: We've completed several Flex 2 projects, and some in 1.5 too, so here goes: * iterative releases ( not monolythic ) A must. We throw screen shots at the users as soon as we can, and towards the tail of development, a working stable-ish 'beta' site. We'll also chat to them to make sure their looking at them :-) * 4-20 services(rpc or fds), 2-4 flexdevs, 1-2 backend devs * 10-50 screens We have similar sized projects (screens, services), with about half the team size. Initial planning, requirements etc. are gathered as a team, and then we tend to split into backend (ColdFusion) and front end teams (Flex, minimal HTML), with a defined (and evolving) API document to join them together. In this case, the front end GUI leads, because they can see that returning 'A,B,C' from one service call is going to be better than calling 3 services because A, B and C are always needed at the same time- even though the back end may see them as totally unconnected. * Cairngorm by the book. Ditto, fairly much, we try not to use ViewLocator anymore for instance, as per the recommendation, but this can mean components get broken in two - a include'd .as file for actions, and a main .mxml for the objects in the component. Bloat in the FrontController (lots of AddCommand's) or Model (lots of properties) is a problem, but not so bad you can't just partition it up with some comments. * Flex Builder, eclipse, subversion ( could be others, but subclipse and familiarity make this a comfortable choice for many ) We deploy on Linux, with Linux workstations, but still use Eclipse and Subversion with the command line Flex SDK and the community ActionScript and MXML bits. One of these days I'll get the in-Eclipse Ant task working too. * Tomcat/JRun/Jetty for local testing ( could be an app server as well, but these are usually lighter and thus swifter when run side by side with eclipse ) Our backends are ColdFusion, so each developer has a CF server and we share a remote database. Flex is then compiled locally and just copied to the web root. * FDS or just RPC ( both be run from within a webserver ) We're OK with just RPC and background/user-driven refresh calls. I *think* we have just the one FDS licence for a single app. so we wont waste it unless we have to. Ok, how would you recommend setting up dev stations for that project? workflow? where does flex meet the backend? when? where do we unit test the different environments? how do we package and when? etc... We're using a trimmed version of Agile - a quick email from each team member once a day saying what they did, are doing, and what's in the way. This keeps us mostly synchronised. During the day we'll announce new SVN rev's as they're committed - r2302 adds the additional data you wanted to the return of BarService.getFoo(). The API doc is just a table with the method signatures and return types in - that's in SVN too so front end people can write to something the backend doesn't do yet, and fudge it in the ServiceDelegate or write a fake server object if needed and hopefully not have to change much when the real one comes along. This prevents hold ups from that side, though it seems the back end is finished quicker than the Flex side of things so far - this may change as we deliver more products. During the tail of the dev. process we may be cutting release tags a few times a week and pushing to the beta site, eventually all the bugs are closed off, we copy the latest tag to a branch, compile the branch, and deploy to the live site. We don't unit test our MXML GUI's because I've not had a chance to play with the tools that claim to do it. Developers write test cases for AS and CFML code as they go - most of the time it's not worth the whole test unit confabble, so you just get a single CFML or MXML page that exercises the public methods. This will catch most coding or logic errors, and allows us to retest things after refactoring. Again, I fully support top-down mocks. It's like being able to simulate 3d full sized houses before building them. risk killer and keeps the user happy! Yup. I'd love to try mocking a GUI with Flex Builder right in front of a user with the next project. Might be a bit much, because they'll start asking for them just because they see the icon. Maybe screen-sharing just the design area as we talk would be good - sort of like the white boarding we do in the dev. team at the mo. Woa, that was a long post :-) -- Tom Chiverton Helping to conveniently incubate internet supply-chains 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
RE: Eclipse Optimizations. WAS RE: [flexcoders] Flex crashing @ compilation time
I've modified the Flexbuilder.ini file to increase memory usage. It speeds it up a good bit, but has also caused the occasional crash of FB. More detail at: http://eclipsezone.com/eclipse/forums/t61618.html Be sure reference FlexBuilder.ini instead of Eclipse.ini. C:\Program Files\Adobe\Flex Builder 2\FlexBuilder.ini _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Kellogg @ Project SOC Sent: Wednesday, November 29, 2006 12:33 PM To: flexcoders@yahoogroups.com Subject: Eclipse Optimizations. WAS RE: [flexcoders] Flex crashing @ compilation time Hey Matt (et al), Does Adobe have any specific suggestions for setting up Eclipse to prevent the SLUGGISH EDITTING that many of us are seeing? I sometimes have to stop typing for 5-10 seconds to wait for Eclipse to CATCH UP to what I've typed. I'm not trying to say that I'm typing so amazingly fast that you should be impressed (I'm probably an average typist for a coder): I'm saying that eclipse is literally falling 5/10/15 characters behind, and I have to just sit there and wait until it decides to print what I've typed. It FEELS like a memory management/garbage collection issue to me. This seems more pronounced if a larger source file (2000 lines+) is open, but sometimes appears in SHORT component files (30 lines?) Any specific suggestions from you guys would really be appreciated. Thanks in Advance, Steve From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Tuesday, November 28, 2006 11:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex crashing @ compilation time 40 applications is a whole lotta applications to compile, and I believe the project is going to compile all of them. Maybe you could create different projects with the applications and use a library project for shared code? Less would need to be re-compiled each time. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of The Crow Sent: Tuesday, November 28, 2006 3:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex crashing @ compilation time Hello. I've been using Flex 2 for 3 months now. There's around 40 mxml applications plus component, and actionscript files in the project and the compilation (building) time has considerably increased with time...taking up to 5-10 minutes at times. I've upgraded to Java 1.5.0.09 and changed the settings in the FlexBuilder configuration file and still no significant improvements have been noticed. Could anyone help me out with this issue. Deleting the Bin folder and re-compiling the whole project as well did not solve the problem. PC Specs: Pentium 4 HT (3.0 MHz, 1GB DDR2 Memory, Integrated graphic card) Thanks for your cooperation. Regards, Anoop
[flexcoders] Problem with DataGrid ItemRenderer
We have a datagrid that is using an item renderer that consists of an HBox implementing IDropInListItemRenderer with a few components in it. One of these components is a Text component used so some text can be wrapped. The problem is there are a few cases were the datagrid does not seem to size the cell properly to the item renderer. The easiest case to demonstrate is sorting the datagrid. The datagrid renders fine when first loaded but if a column is sorted the row heights no longer are variable, they are all the same height. Is there something else that needs to be in the item renderer? Here's some simplified code that demonstrates the problem (run it, then sort the columns to see the issue): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var dataSet:ArrayCollection = new ArrayCollection([{item:1, text:Some text}, {item:2, text:Some really long text that should wrap.}]); ]] /mx:Script mx:DataGrid dataProvider={dataSet} variableRowHeight=true width=200 mx:columns mx:DataGridColumn dataField=item/ mx:DataGridColumn dataField=text itemRenderer=MyRenderer/ /mx:columns /mx:DataGrid /mx:Application ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; implements=mx.controls.listClasses.IDropInListItemRenderer mx:Text id=myText width=100%/ mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridListData; import mx.controls.listClasses.BaseListData; import mx.events.FlexEvent; [Bindable(dataChange)] private var _listData:BaseListData; public function get listData():BaseListData { return _listData; } public function set listData (value:BaseListData):void { _listData = value; dispatchEvent(new FlexEvent (FlexEvent.DATA_CHANGE)); } override protected function updateDisplayList (w:Number, h:Number):void { super.updateDisplayList(w, h); if (data != null ) { var ld:DataGridListData = DataGridListData(_listData); myText.text = ld.label; } } ]] /mx:Script /mx:HBox
Re: [flexcoders] Re: Having trouble with swf app and proxies
On Tuesday 28 November 2006 02:51, Ben Marchbanks wrote: Can you elaborate on exactly how we might overcome the proxy issue ? Rather than the Flex loaded from http://your.host/foo.swf (try to) talk to http://another.host:80/flex2gateway have it talk to http//your.host:80/proxyTo/another.host/flex2gateway How you now map the incoming traffic from that URL to the real URL depends on your web server etc., but I'd use mod_proxy in Apache. -- Tom Chiverton Helping to challengingly compete interdependent features 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 Law Society. 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 * 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] HistoryManager causing intermittent security errors
I have been having the same issue. I just added the initialize call to HistoryManager. Do you have any additional info since you posted this? Rich On 10/23/06, Paul Spitzer [EMAIL PROTECTED] wrote: I'm getting intermittent security errors the moment my application starts loading. Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: evolve cannot access http://evolve/admin/Administrator.swf. I'm pretty convinced that it is caused by the HistoryManager. My application loads other Flex Applications. In order to ensure that history management works properly I'm initializing the HistoryManager in my shell Application class... mx:Application ... initialize=HistoryManager.initialize(systemManager) Without this code history management fails to function as the sub applications end up calling the HistoryManager.initialize with a different SystemManager. With the code above history management works properly but I get the intermittent security errors. Anyone know how I can remedy this? Thanks -- 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 -- Rich Tretola mx:EverythingFlex/ http://www.EverythingFlex.com
RE: [flexcoders] accordion, load ALL
You could probably use createComponentsFromDescriptors() to do this. But can you explain why you want to populate a child tab that the user can't yet see? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Yiðit Boyar Sent: Wednesday, November 29, 2006 6:46 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] accordion, load ALL thanks for your quick anser, but i just need to load one of my child tab not all... so isn't there a way to say accordion, load your xth tab ? thanks - Original Message From: Karl Johnson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 28, 2006 7:19:20 PM Subject: RE: [flexcoders] accordion, load ALL Well the *easy* answer is to set creationPolicy= all on the accordion. But use this carefully, because there are performance impacts on doing this. Karl From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Yiðit Boyar Sent: Tuesday, November 28, 2006 5:04 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] accordion, load ALL i have an acoordion box, and when sth is clicked inside one canvas, another is opened and a function in the component included in the opened tab is called. but in the first click, because the canvas objects are not preloaded, i cannot call the function... how can i say the accordion component to load all of it's content not only the first tab? Cheap Talk? Check out http://us.rd.yahoo.com/mail_us/taglines/postman8/*http:/us.rd.yahoo.com/evt=39663/*http:/voice.yahoo.com Yahoo! Messenger's low PC-to-Phone call rates. Everyone is raving about the all-new Yahoo! Mail beta. http://us.rd.yahoo.com/evt=45083/*http:/advision.webevents.yahoo.com/mailbeta
[flexcoders] Re: totaling items in datagrid
Okay, I made a little progress on this. Instead of passing the mx:model (which is an array) to my Grand Total function I'm now passing the actual dataProvider which is an arrayCollection. Now, new forms show the grand total as well as previously existing forms being edited. That's where the data is held, not the model. One last thing to do, How can I get my grand total function to run last after the arrayCollection is populated? Dan --- In flexcoders@yahoogroups.com, nall_daniel [EMAIL PROTECTED] wrote: Thanks Ben, I already use similar code with a labelFunction to do sub-totals within the grid and it works very well. However, that code will only do calculations on a single row and not on an entire column. The code I wrote for totaling a column works as well but not on a new form where the model has no data yet. I would also like to run the code after the data model is populated (run the function last after all other code has run). How can I iterate through a dataGrid when it holds the data and my model or the array doesn't have any data yet? --- In flexcoders@yahoogroups.com, bsdensmore bsdensmore@ wrote: a labelfunction will do the calculations as you tab through the fields or as change rows on the grid. I use this to do some calculations and it works great. private function calcAdjAmount(item:Object,column:DataGridColumn):String { var adjustedAmt:Number; var emptyField:String = ; if (item['Num_Cases_Claimed'] != null) { adjustedAmt = item['Num_Cases_Claimed'] * Number(removeFormatting.format(item['Net_Promo_Amt'])); return basicCurrencyFormat.format(adjustedAmt.toString()); } else { return emptyField; } } Ben --- In flexcoders@yahoogroups.com, nall_daniel daniel.nall.ctr@ wrote: No one has an answer to this? Or suggestions? --- In flexcoders@yahoogroups.com, nall_daniel daniel.nall.ctr@ wrote: I am using the CF/Flex Application Wizard to generate a basic form based application. I have a Master datagrid that list all the purchase requests a user has submitted and a Detail form for editing a request or submitting a new request. The detail form has a datagrid as a subform. I pass the mx:model the wizard created of the subform's data to this function: [Bindable] public var purchaseTotal:Number; private function grandTotal(myArray:Array):void { purchaseTotal = 0; var length:int = myArray.length; for (var i:int = 0; i length; i++) { purchaseTotal += Number(myArray[i].Quantity * myArray[i].UnitCost) } } I assign purchaseTotal variable to the text property of a label and run the function on the subform's datagrid.itemFocusOut event. Now when a user is editing a purchase request, the grand total updates when the user changes either the Quantity or the UnitCost. Couple of problems with what I'm doing: 1. No grand total in the label until the user tabs or clicks through the datagrid subform. How can I get my function to run after the mx:model is created and populated with data? 2. New requests never show a grand total. Where's the model's data? My apologies for being so long winded but I wanted to make sure what I was doing is clear. Cheers, Dan
[flexcoders] Different font height on Mac and Win.
Create for example TextInput with fontFamily=TimesNewRoman, fontSize=14. If you run the function TextInput.measureText ( ).ascent on Mac the result will never be 14. On Windows - all good. It's problem with measureText function. Try to run this is simple application on Mac and on Win and you will see what I'm speeking about. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ public function showHeight():void { height1.text = String (textInput1.measureText(textInput1.text).ascent); height2.text = String (textInput2.measureText(textInput1.text).ascent); } ]] /mx:Script mx:VBox width=100% height=100% horizontalAlign=center mx:HBox mx:TextInput id=textInput1 text=Test fontSize=10/ mx:Spacer width=30/ mx:Label text=Text height/ mx:TextInput id=height1/ /mx:HBox mx:HBox mx:TextInput id=textInput2 text=Test fontFamily=TimesNewRoman fontSize=10/ mx:Spacer width=30/ mx:Label text=Text height/ mx:TextInput id=height2/ /mx:HBox mx:Button label=Get height click=showHeight()/ /mx:VBox /mx:Application Anybody know how can fix this?
RE: [flexcoders] installing FDS
Probably wise to practice installing on your local machine first. Not that installing tomcat will have any effect on a running server. --Kelly _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Russell Sprague Sent: Wednesday, November 29, 2006 8:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] installing FDS I would like to use the FDS, but I am unclear on the installation process. My production server is Win 2000, running IIS and Coldfusion7. I know I need JRun? J2EE? to run the fds, but thats about it. I have heard that people are using Tomcat to run the fds, but I don't want to mess with my production server without knowing how installing Tomcat would effect say the IIS server, etc. I am not a server admin by any means, so ever time I install something on the server, its with white knuckles. Russ
RE: Eclipse Optimizations. WAS RE: [flexcoders] Flex crashing @ compilation time
. I'll get to that now. I'll report the result here. THANKS ANDREW! Steve _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Trice Sent: Wednesday, November 29, 2006 11:16 AM To: flexcoders@yahoogroups.com Subject: RE: Eclipse Optimizations. WAS RE: [flexcoders] Flex crashing @ compilation time I've modified the Flexbuilder.ini file to increase memory usage. It speeds it up a good bit, but has also caused the occasional crash of FB. More detail at: http://eclipsezone. http://eclipsezone.com/eclipse/forums/t61618.html com/eclipse/forums/t61618.html Be sure reference FlexBuilder.ini instead of Eclipse.ini. C:\Program Files\Adobe\Flex Builder 2\FlexBuilder.ini _ Andrew Trice Cynergy Systems, Inc. http://www.cynergys http://www.cynergysystems.com ystems.com Blog: http://www.cynergys http://www.cynergysystems.com/blogs/page/andrewtrice ystems.com/blogs/page/andrewtrice Email: andrew.trice@ mailto:[EMAIL PROTECTED] cynergysystems.com Office: 866-CYNERGY _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Kellogg @ Project SOC Sent: Wednesday, November 29, 2006 12:33 PM To: flexcoders@yahoogroups.com Subject: Eclipse Optimizations. WAS RE: [flexcoders] Flex crashing @ compilation time Hey Matt (et al), Does Adobe have any specific suggestions for setting up Eclipse to prevent the SLUGGISH EDITTING that many of us are seeing? I sometimes have to stop typing for 5-10 seconds to wait for Eclipse to CATCH UP to what I've typed. I'm not trying to say that I'm typing so amazingly fast that you should be impressed (I'm probably an average typist for a coder): I'm saying that eclipse is literally falling 5/10/15 characters behind, and I have to just sit there and wait until it decides to print what I've typed. It FEELS like a memory management/garbage collection issue to me. This seems more pronounced if a larger source file (2000 lines+) is open, but sometimes appears in SHORT component files (30 lines?) Any specific suggestions from you guys would really be appreciated. Thanks in Advance, Steve _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Tuesday, November 28, 2006 11:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex crashing @ compilation time 40 applications is a whole lotta applications to compile, and I believe the project is going to compile all of them. Maybe you could create different projects with the applications and use a library project for shared code? Less would need to be re-compiled each time. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of The Crow Sent: Tuesday, November 28, 2006 3:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex crashing @ compilation time Hello. I've been using Flex 2 for 3 months now. There's around 40 mxml applications plus component, and actionscript files in the project and the compilation (building) time has considerably increased with time...taking up to 5-10 minutes at times. I've upgraded to Java 1.5.0.09 and changed the settings in the FlexBuilder configuration file and still no significant improvements have been noticed. Could anyone help me out with this issue. Deleting the Bin folder and re-compiling the whole project as well did not solve the problem. PC Specs: Pentium 4 HT (3.0 MHz, 1GB DDR2 Memory, Integrated graphic card) Thanks for your cooperation. Regards, Anoop
RE: [flexcoders] Problems with a DateField as an itemRenderer/editor
Have you set rendererIsEditor to true and the editorDataField=selectedDate? --- Louie Penaflor [EMAIL PROTECTED] wrote: You are correct. It is itemEditEnd. I was just in a rush. As for the issue, the date is populating right. It's when I select a date from the calendar. When you select a date, I dispatch the DataGridEvent itemEditEnd. This even should have Event.currentTarget.editedItemRenderer and event.target.itemEditorInstance, which are both returning null. This points out to me that when you click or the DateField that opens up the calendar, it's not focusing into the datagrid as an editor. I'm wondering how I can invoke this manually? Does that make sense? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of leds usop Sent: Tuesday, November 28, 2006 11:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Problems with a DateField as an itemRenderer/editor Is onItemEnd a custom event listener? or do you mean onItemEditEnd? I dont recall having an 'onItemEnd' associated with Datagrid listener in any way.. please correct me if im wrong. When you use a datefield as item renderer or item editor a list control (or any drop-in item renderer/item editor), make sure that the data provider of that list control has a field of type Date (or the expected data type of the drop-in item renderer you used). Since Data Grid is derived from List base, this means it applies to it as well. Have you considered that? --- Louie Penaflor [EMAIL PROTECTED] mailto:lpenaflor%40woccu.org wrote: I'm having an issue with DataGridEvent (onItemEnd) and the DateField class. Basically, I've developed a framework that uses onItemEnd from the datagrid. I have components like the combobox for example... onChange calls onItemEnd which takes the data of the combobox and puts it in the dataField of the datagrid, then makes a service call to update to the database. I've gotten this to work great with many components but the dateField I'm having a horrible time with. when I dispatchEvent (onitemend) for example, I use event.currentTarget.editedItemRenderer to get the value from event.target.itemEditorInstance. Which both don't exist when I dispatchEvent from the calendar select date (onClose) event handler. This works when I have the dateField as an Editor only and using the default renderer. This is an issue becuase it creates another click for the user. I think the root of my problem is that when you click on the datefield to open the calendar, it doesn't invoke it as an editor in the datagrid. Is there a way to force this? Any help would be appreciated. Thanks in advance. Louie Penaflor Web Software Developer World Council of Credit Unions, Inc. Ph: (608)231-7932 This is a transmission from World Council of Credit Unions, Inc. and contains information that is confidential. If you are not the intended addressee or authorized to receive for the addressee, then any disclosure, copying, distribution, or use of the contents of this message is prohibited. If you have received this transmission in error, please destroy it and notify the sender immediately at the transmitting e-mail address. If you are the intended recipient, please be advised that this e-mail transmission is not encrypted or otherwise protected from potential misappropriation or misuse. World Council of Credit Unions, Inc. expressly disclaims any and all liability for harm resulting from the misappropriation, interception or misuse of the information contained in this transmission. __ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com http://new.mail.yahoo.com Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
RE: [flexcoders] Messaging and serialization
Hi Allen, Before going this far, can you try turning on Debug level logging in /WEB-INF/flex/services-config.xml and ensure that only the Endpoint.* pattern is enabled for the logging target filters? I'd then clear out the logs, re-run the test, and examine the AMF representation of the Object as it was serialized. Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Riddle Sent: Wednesday, November 29, 2006 11:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Messaging and serialization I have a flex app that is unable to de-serialize a JMS message correctly. The message I'm sending is a Java object, but when Flex de-serializes the message, aggregate objects on the message are null, only String values there populated. Do I have to set up an action script class and use the RemoteClass tag to get it to de-serialize the message correctly? Allen Riddle Sofware Development x3217
Re: [flexcoders] many-to-many managed association in Hibernate destination
Jeff Vroom wrote: 4) If you turn on debug logging in the server for the “Endpoint.*” logging category, you’ll see the object graph which is sent to the client after your fill. I am curious if the time is being spent loading the data from the database or sending data to the client, or a combination of both. Okay, I've figured out how to do this part. Results here: http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/debug_log_01.txt If you can also turn on debug logging of the SQL that hibernate is using that would help figure out if we are just fetching too many objects or what. It looks as though I do this by adding a line to HibernateManager.java... public void createSessionFactory(Configuration hibernateConfig, boolean useTransactions) throws ExceptionInInitializerError { try { New Line - hibernateConfig.setProperty(hibernate.show_sql, true) sessionFactory = hibernateConfig.buildSessionFactory(); Yes? BTW, in case someone finds this someday with Google, here are some resources: FDS Logging: http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1112.html http://weblogs.macromedia.com/dharfleet/archives/2006/08/debugging_flex.cfm http://tech.groups.yahoo.com/group/flexcoders/message/56192 Hibernate Logging: http://www.javalobby.org/java/forums/t44119.html -- 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] installing FDS
http://www.brightworks.com/technology/adobe_flex/with_java.html might be helpful too. I'm about to delve into this to enhance/upgrade a Flex 1.5 project. I used JRun for it, seems like hardly anyone does though! My lack of J2EE know-how has kept me from jumping into Tomcat so fartime to change that. Anyone have a good pointer to LDAP/JAAS use in Tomcat? I keep finding stuff...but nothing simple enough for a noob. DK On 11/29/06, Kelly [EMAIL PROTECTED] wrote: Probably wise to practice installing on your local machine first. Not that installing tomcat will have any effect on a running server. --Kelly -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Russell Sprague *Sent:* Wednesday, November 29, 2006 8:33 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] installing FDS I would like to use the FDS, but I am unclear on the installation process. My production server is Win 2000, running IIS and Coldfusion7. I know I need JRun? J2EE? to run the fds, but thats about it. I have heard that people are using Tomcat to run the fds, but I don't want to mess with my production server without knowing how installing Tomcat would effect say the IIS server, etc. I am not a server admin by any means, so ever time I install something on the server, its with white knuckles. Russ -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
RE: [flexcoders] Re: Hands-on charts
That depends on what you're trying to do specifically. The easy answer would be to say that this only works when the user specifically clicks down and drags on an item in the chart. In that case, I'd modify my example below by: 1) listen to the chart's itemMouseDown event instead of mouseDown 2) change the type of the event object in the mouse down handler to ChartMouseEvent 3) in the event object, there will be a hitData property. That should tell you which item in your dataProvider you should be updating. 4) store off a reference to that item. 5) in your track function, use localToData to convert mouse coordinates to data coordinates 6) in track function, write those data coordinates back into the item you stored off. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick Sent: Wednesday, November 29, 2006 9:31 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Hands-on charts Ely - Inching forward some more... I implemented your tracking code (very clever) but it's still unclear how to use the Point data to rebuild the dataProvider. What is the hook that lets the function know which item in the dataProvider array is associated with the point data? - Tom Ely Greenfield wrote: Yup. To do mouse tracking, you generally need a mouse down, mouse move, and mouse up handler. Almost all of my code that does mouse tracking looks like this: someComponent mouseDown=startTracking(event); / private function startTracking(e:MouseEvent):void { // listen to the systemManager so we get mouse move/up events even when the mouse moves outside the component. // listen on capture so we can cancel move/rollover events going to other components. systemManager.addEventListener(MouseEvent.MOUSE_MOVE,track,true); systemManager.addEventListener(MouseEvent.MOUSE_UP,endTracking,true); track(e); } private function track(e:MouseEvent):void { // update your data/UI here. } private function endTracking(e:MouseEvent):void { track(e); // remove the event listeners until we need to track again. systemManager.removeEventListener(MouseEvent.MOUSE_MOVE,track,true); systemManager.removeEventListener(MouseEvent.MOUSE_UP,endTracking,true); } -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of *Tom Fitzpatrick *Sent:* Tuesday, November 28, 2006 9:37 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Hands-on charts I'm trying out your suggested approach and ran into a conceptual problem. I can get the mouse coordinates and convert them to data on the mouseDown event - but then how do I track the mouse movement, since that uses a different event (mouseMove), and the function I'm working with is already tied to the mouseDown? The movement tracking seems necessary to get the new coordinates. - Tom Ely Greenfield wrote: It depends on just how much data you're trying to show in the chart, but chances are good that it will be very responsive. Ely. -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *tom24569 *Sent:* Monday, November 27, 2006 12:08 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Re: Hands-on charts Would this happen fast enough that the chart would seem to be responding to the mouse movement? - Tom --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Hi Tom. There's no interative modelling built in, but this should be pretty easy to do: 1) listen for itemMouseDown events. 2) track the mouse position 3) convert the mouse position into data coordinates using the chart.localToData() function. 4) write the new data coordinates into your dataProvider Ely. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Tom Fitzpatrick Sent: Monday, November 27, 2006 6:34 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com
[flexcoders] Message Services can't handle enums
Can flex handle deserializing Java 5 enums? Allen Riddle Sofware Development x3217
RE: [flexcoders] Problem with Flex ColdFusion
Hi Israel, You need to put the following in your root folder (I am assuming you have got jrun server Install). [C:\JRun4\]servers\cfusion\cfusion-ear\cfusion-war\ The thing in brackets {} can be replaced by the location on your computer. Hope this will help. Philip From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Israel Sent: 28 November 2006 16:20 To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with Flex ColdFusion Hi, I install a ColdFusion MX 7 Updater 2 in my ColdFusion Server but don't work it my server has a Windows Server 2003 Enterprise and we are developing an aplication in Flex 2 and we are using ColdFusion for connect to data base but Flex 2 need a ColdFusion MX 7 Updater 2 to install Flex Data Services Adapter - enabling the use of Flex Data Management Services with ColdFusion components (CFCs). In Adobe web site (http://www.adobe.com/support/documentation/en/coldfusion/mx702/cf702_ http://www.adobe.com/support/documentation/en/coldfusion/mx702/cf702_ install.html) are an instrucctions about install this updater, I follow this instructions and install this updater correctly, check the existence of this files: cf_root\lib/cfusion.jar cf_root\lib/im.jar cf_root\lib/wsdl4j-1.5.1.jar cf_webroot/CFIDE/adminapi/Application.cfm cf_webroot/CFIDE/administrator/Application.cfm This instalation create a Flex folder in WEB-INF folder, this WEB-INF folder is in CFusionMX7 directory in Inetpub. And everything is OK but in Flex Builder 2, when I attempt to create a new project and appear a wizard window and I select a project with Cold Fusion Remoting Sevice, in second step I got to select a Root folder and send me an error window tell me that I got an Invalid server root. Server root must contain a WEB-INF/flex folder and I check and this folder it existSo can anybody help me This e-mail has been scanned for all viruses by Star. This e-mail has been scanned for all viruses by Star.
RE: [eDoxs PSpam]RE: [flexcoders] Messaging and serialization
Ya, I will do that. But it appears that the problem is only occurring on Java 5 enums. My message I'm sending has an aggregate type that is an enum. Can flex not handle the deserialization of enums? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Farland Sent: Wednesday, November 29, 2006 1:20 PM To: flexcoders@yahoogroups.com Subject: [eDoxs PSpam]RE: [flexcoders] Messaging and serialization Hi Allen, Before going this far, can you try turning on Debug level logging in /WEB-INF/flex/services-config.xml and ensure that only the Endpoint.* pattern is enabled for the logging target filters? I'd then clear out the logs, re-run the test, and examine the AMF representation of the Object as it was serialized. Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Riddle Sent: Wednesday, November 29, 2006 11:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Messaging and serialization I have a flex app that is unable to de-serialize a JMS message correctly. The message I'm sending is a Java object, but when Flex de-serializes the message, aggregate objects on the message are null, only String values there populated. Do I have to set up an action script class and use the RemoteClass tag to get it to de-serialize the message correctly? Allen Riddle Sofware Development x3217
[flexcoders] Conditionally Change the Text Color on a Datagrid Row
Does anyone have any thoughts on changing the text color conditionally on an entire row of a datagrid? I've previously done it by creating an individual item renderer for each DataGridColumn, but I am looking for this ability on many grids with many columns... Thanks Sam
RE: [flexcoders] installing FDS
I'm in the same boat: we're too small to have a server administrator, but not too small to need server administration! I have not installed FDS, but I have/am running Tomcat (For the Flex 1.5 server) on the same box as IIS 6, without any problems or interactions whatsoever. In order to be able to run Flex 1.5 apps through the IIS server (on the default port 80), I had to use the jakarta isapi redirctor. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Russell Sprague Sent: Wednesday, November 29, 2006 11:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] installing FDS I would like to use the FDS, but I am unclear on the installation process. My production server is Win 2000, running IIS and Coldfusion7. I know I need JRun? J2EE? to run the fds, but thats about it. I have heard that people are using Tomcat to run the fds, but I don't want to mess with my production server without knowing how installing Tomcat would effect say the IIS server, etc. I am not a server admin by any means, so ever time I install something on the server, its with white knuckles. Russ
RE: [flexcoders] Is it possible to upload an xml file from local filesystem into a variable
The Flash Player security sandbox restrictions pretty much prevent access to any local/client resources, including the file system. There are ways around this but they require signficant work. Is a projector like Zinc an option? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Murdo Sent: Wednesday, November 29, 2006 10:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is it possible to upload an xml file from local filesystem into a variable Hi, I'm trying to replace a .Net web client which zips and xml file and transfers it a server for analysis via a SOAP webservice. I wanted to remove dependancy on .Net standalone client and use flex app as replacment. I can't seem to find a way of loading the local xml file into a var for compression and base64 encoding to webservice. Can this be done or are there security restrictions on this? Many thanks Murdo
[flexcoders] Re: totaling items in datagrid
to call your function after the array is populated call it right after you populate it when the event results. The event results are nto called till the query is finished and the data is pulled so it makes for a great time to run code like your function. It will also call your function again each time the list is updated. you probably have something similar to... private function getMasterQuery_result(event:ResultEvent):void { //query has run array collection is populated some array collection = event.result as ArrayCollection; ... //call your function here grandTotal(... }
Re: [flexcoders] accordion, load ALL
can you explain why you want to populate a child tab that the user can't yet see? Man, I knew you were going to say something! haha Gordon, you should have a filter on you email that can regexp creationPolicy=all and have it send out an auto email, something like when people go out on vacation. ;-) Peace, Mike On 11/29/06, Gordon Smith [EMAIL PROTECTED] wrote: You could probably use createComponentsFromDescriptors() to do this. But can you explain why you want to populate a child tab that the user can't yet see? - Gordon -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Yiðit Boyar *Sent:* Wednesday, November 29, 2006 6:46 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] accordion, load ALL thanks for your quick anser, but i just need to load one of my child tab not all... so isn't there a way to say accordion, load your xth tab ? thanks - Original Message From: Karl Johnson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 28, 2006 7:19:20 PM Subject: RE: [flexcoders] accordion, load ALL Well the *easy* answer is to set creationPolicy= all on the accordion. But use this carefully, because there are performance impacts on doing this. Karl -- *From:* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] *On Behalf Of *Yiðit Boyar *Sent:* Tuesday, November 28, 2006 5:04 PM *To:* [EMAIL PROTECTED] ups.com *Subject:* [flexcoders] accordion, load ALL i have an acoordion box, and when sth is clicked inside one canvas, another is opened and a function in the component included in the opened tab is called. but in the first click, because the canvas objects are not preloaded, i cannot call the function... how can i say the accordion component to load all of it's content not only the first tab? -- Cheap Talk? Check outhttp://us.rd.yahoo.com/mail_us/taglines/postman8/*http:/us.rd.yahoo.com/evt=39663/*http:/voice.yahoo.comYahoo! Messenger's low PC-to-Phone call rates. -- Everyone is raving about the all-new Yahoo! Mail beta.http://us.rd.yahoo.com/evt=45083/*http:/advision.webevents.yahoo.com/mailbeta -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
RE: [flexcoders] To Adobe - new release improvements??
Hi, It may be worth adding however that we are of course working on significant Flex Builder improments (and SDK and FDS) that will show up in releases after Flex 2.0.1. I wouldn't want you to think we are resting where we are. Regards, David Adobe From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Wednesday, November 29, 2006 1:17 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] To Adobe - new release improvements?? The performance is on par with 2.0, we didn't make any major improvements, sorry. Nor are project path issues addressed. Number of bugs fixed between SDK and Flex Builder is over 500 though. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Wabyick Sent: Tuesday, November 28, 2006 9:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] To Adobe - new release improvements?? Hey Adobe guys, Is it possible for you to address some of the major (or non-major) improvements in the coming Flex release? In particular, I am keen to know if there were significant improvements made to Flexbuilder itself. Stuff like increased compiler performance, ease of use with relative paths, etc would be of interest to me. A close second would be roughly the number of bugs fixed in the actually Flex UI framework. As my project continues to grow, I am definitely getting antsy for a new release! Thanks, -Daniel
RE: [eDoxs PSpam]RE: [flexcoders] Messaging and serialization
Here is the output: both Typed Object 4 5 are Java 5 enums, and they are not deserializing to anything. [Flex] Serializing AMF/RTMP push Version: 3 (Command method=receive (0) trxId=null) (Typed Object #0 'flex.messaging.messages.AsyncMessage') destination = insightNotifierDesitnation headers = (Object #1) JMSXDeliveryCount = 1 correlationId = null messageId = ID:37-11648295333041 timestamp = 1.164829533304E12 clientId = 21004143-990F-AEB2-3756-FE259714C6D8 timeToLive = 0.0 body = (Typed Object #2 'com.sunbridgecapital.model.WebMessage') to = null modId = 0 subjectRefId = null recordId = 70 userId = 48 userCreationTimestamp = Wed Nov 29 13:45:35 CST 2006 message = Your application has been approved and is Termbuilder ready statusType = null from = null subject = (Typed Object #4 'com.sunbridgecapital.model.WebMessageSubjectType') status = (Typed Object #5 'com.sunbridgecapital.model.ModelState') id = 2033 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Farland Sent: Wednesday, November 29, 2006 1:20 PM To: flexcoders@yahoogroups.com Subject: [eDoxs PSpam]RE: [flexcoders] Messaging and serialization Hi Allen, Before going this far, can you try turning on Debug level logging in /WEB-INF/flex/services-config.xml and ensure that only the Endpoint.* pattern is enabled for the logging target filters? I'd then clear out the logs, re-run the test, and examine the AMF representation of the Object as it was serialized. Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Riddle Sent: Wednesday, November 29, 2006 11:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Messaging and serialization I have a flex app that is unable to de-serialize a JMS message correctly. The message I'm sending is a Java object, but when Flex de-serializes the message, aggregate objects on the message are null, only String values there populated. Do I have to set up an action script class and use the RemoteClass tag to get it to de-serialize the message correctly? Allen Riddle Sofware Development x3217
RE: [flexcoders] Conditionally Change the Text Color on a Datagrid Row
Here is one: http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectI D=487 http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=Fileobject ID=487 There is an alternate solution out there too, but I can't find it right now. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sam Shrefler Sent: Wednesday, November 29, 2006 3:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Conditionally Change the Text Color on a Datagrid Row Does anyone have any thoughts on changing the text color conditionally on an entire row of a datagrid? I've previously done it by creating an individual item renderer for each DataGridColumn, but I am looking for this ability on many grids with many columns... Thanks Sam
[flexcoders] Chart :Clipping segment from a line serie
I have noticed that if one of the point of a segment is not within the min/max of the chart area,the whole segment is not displayed.I would have expect to see a segment between the point within the min/max and the intersection between the segment and the axis. Is there an option to make it happen ? Thank you for your help. Regards-CLaude
[flexcoders] Second problem: how to delete a component out of the storage
Hello, My second question is how to delete a component out of storage. We have some own components (basically forms), which will be created and shown by an construct e.g. var myComponent : T_Component = new T_Component ; this.addChild(myComponent) Some of our forms will be created in an popup. On every call of the popup, we lost 5 mb or more, all childs on the windows will be removed by formname.removeAllChild(); What cann we do, that the garbage collector will dispose this objects. Is there a way to show all objects with references (NOT NULL)? I have read in the Flex Help, that this.removeChild(myComponent) not delete the form and/or object out of the storage. Rather the object must be destroyed. It is sufficient to call delete(myComponent) about remove this object out of the storage as the case may be that the garbage-collector remove this object at any time? Or how can I destroy a component correctly. What happens with the widgets on this component e.g. input fields or datagrids? Are they also being deleted? Thanks for your help, too. Matze
[flexcoders] Re: Styling in Flex is officially ridiculous
Yes, I meant the button's border. The default button is a gradient background with a border around it. I just wanted a gradient. No border. What I ended up doing was to create a PNG that had a gradient using the colors I wanted, created a Button subclass (in MXML) called GreenButton, set styleName to greenButton, and then defined greenButton inside a Style tag. In the greenButton style I set the upSkin property to use my PNG and provided 9-slice values and also set the text color. This approach allows me to reuse GreenButton and set the label and width (among other things) inline. The drawbacks, however, are that I will need to create separate images for downSkin, disabledSkin, etc. for each and every custom button I need, like RedButton, etc. So all in all it is a fairly simple and tolerable workaround, it just peeves me that I can't say borderStyle: none. In my opinion, if a component has a border you should be able to turn it off. Its just an if statement. Ben --- In flexcoders@yahoogroups.com, Andrew Trice [EMAIL PROTECTED] wrote: That's how I interpreted it: that he is actually talking about the button's border. Ben, is that what you were talking about? If so, the skin method is the way to go. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Wednesday, November 29, 2006 11:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Styling in Flex is officially ridiculous Oh yeah... If he is talking about the actual button border, that is the skin and he needs to create a new skin. The button does not have borders, it has skins. It dosn't even share the same characteristics of a Container that has a border. These are not the same things. So, Ben, what do you mean when you say the Button's border? Or, what do you want... Peace, Mike On 11/29/06, Michael Schmalle [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Andy, It answers his question and it does work. If the label is present, you click on the label and the Button functions correctly. I don't know what he is aiming for here but, if you 'don't' have a border, there is no other hit area specified for the component. So, how are you going to get mouse events from a component that dosn't have a hit area? Bottom line is, this approach does work if you plan to use a label, other than this, why would you want a button without a label and border if you want to click on it? Peace, Mike On 11/29/06, Andrew Trice [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm not sure that approach really works... The buttons don't show up at all. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Office: 866-CYNERGY From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ups.com http://ups.com ] On Behalf Of Michael Schmalle Sent: Wednesday, November 29, 2006 11:05 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Styling in Flex is officially ridiculous Well, Before your loose it... try myButton.setStyle(upSkin, null); OR Button { upSkin:ClassReference(null); } OR mx:Button upSkin={null}/ Peace, Mike On 11/29/06, ben.clinkinbeard [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: OK. I am usually very hesitant to criticize Adobe because of the immense respect I have for their employees and the amazing technology they create. I have built my career around their products. That being said, the styling capabilities in Flex are downright silly. I have suffered silently through some small, yet extremely annoying nuances, but this one takes the cake: You can't style a Button to not have a border!!! Developer: Hey button, go ahead and skip your border drawing routine. Button: Eff that! I love my borders and I ain't getting rid of them for anyone! WTF. I can understand not supporting some styling features people would like, but not supporting one that is just turning something off? What gives? I realize I could probably subclass Button and override the drawing but that is uber-overkill for something that should be a simple attribute. If someone from Adobe can offer a valid reason for why this isn't supported I would love to hear it. I would also be very interested to know if styling is an area that is being
RE: [flexcoders] Conditionally Change the Text Color on a Datagrid Row
Here is another: http://www.mikenimer.com/index.cfm?mode=catcatid=B6F726D0-4E22-1671-576 5E6C3FE1D2862 Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sam Shrefler Sent: Wednesday, November 29, 2006 3:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Conditionally Change the Text Color on a Datagrid Row Does anyone have any thoughts on changing the text color conditionally on an entire row of a datagrid? I've previously done it by creating an individual item renderer for each DataGridColumn, but I am looking for this ability on many grids with many columns... Thanks Sam
Re: [flexcoders] Re: Hands-on charts
Ely - Do you mean ChartItemEvent? I can't find ChartMouseEvent documented. ChartItemEvent gives me the HitData and access to the item, but I seem to lose the mouse tracking in the process. - Tom Ely Greenfield wrote: That depends on what you're trying to do specifically. The easy answer would be to say that this only works when the user specifically clicks down and drags on an item in the chart. In that case, I'd modify my example below by: 1) listen to the chart's itemMouseDown event instead of mouseDown 2) change the type of the event object in the mouse down handler to ChartMouseEvent 3) in the event object, there will be a hitData property. That should tell you which item in your dataProvider you should be updating. 4) store off a reference to that item. 5) in your track function, use localToData to convert mouse coordinates to data coordinates 6) in track function, write those data coordinates back into the item you stored off. Ely. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Tom Fitzpatrick *Sent:* Wednesday, November 29, 2006 9:31 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Hands-on charts Ely - Inching forward some more... I implemented your tracking code (very clever) but it's still unclear how to use the Point data to rebuild the dataProvider. What is the hook that lets the function know which item in the dataProvider array is associated with the point data? - Tom Ely Greenfield wrote: Yup. To do mouse tracking, you generally need a mouse down, mouse move, and mouse up handler. Almost all of my code that does mouse tracking looks like this: someComponent mouseDown=startTracking(event); / private function startTracking(e:MouseEvent):void { // listen to the systemManager so we get mouse move/up events even when the mouse moves outside the component. // listen on capture so we can cancel move/rollover events going to other components. systemManager.addEventListener(MouseEvent.MOUSE_MOVE,track,true); systemManager.addEventListener(MouseEvent.MOUSE_UP,endTracking,true); track(e); } private function track(e:MouseEvent):void { // update your data/UI here. } private function endTracking(e:MouseEvent):void { track(e); // remove the event listeners until we need to track again. systemManager.removeEventListener(MouseEvent.MOUSE_MOVE,track,true); systemManager.removeEventListener(MouseEvent.MOUSE_UP,endTracking,true); } -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Tom Fitzpatrick *Sent:* Tuesday, November 28, 2006 9:37 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Hands-on charts I'm trying out your suggested approach and ran into a conceptual problem. I can get the mouse coordinates and convert them to data on the mouseDown event - but then how do I track the mouse movement, since that uses a different event (mouseMove), and the function I'm working with is already tied to the mouseDown? The movement tracking seems necessary to get the new coordinates. - Tom Ely Greenfield wrote: It depends on just how much data you're trying to show in the chart, but chances are good that it will be very responsive. Ely. -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *tom24569 *Sent:* Monday, November 27, 2006 12:08 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Re: Hands-on charts Would this happen fast enough that the chart would seem to be responding to the mouse movement? - Tom --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Hi Tom. There's no interative modelling built in, but this should be pretty easy to do: 1) listen for itemMouseDown events. 2) track the mouse position 3) convert the mouse position into data coordinates using the chart.localToData() function. 4) write the new data coordinates into your dataProvider Ely. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
Re: [flexcoders] charting trial banner
Related question: I bought FB with charting, and developing using fb I don't get the banner. And I know that if you compile flex on the fly on CF you are supposed to get the banner. But what about the people who don't want to use FB and want to generate code from CF, and have bought charting? Is there no way to rid yourself of the banner then? I haven't seen anything on entering the serial number at the server level. just wondering... Tom Tom Chiverton wrote: On Monday 27 November 2006 21:17, Yiðit Boyar wrote: how can i get rid of the charting trial banner over my charts ? (my FB is not trial anymore) Did you purchase FB with charting, or just FB ? -- 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] Change alpha properties when setting enabled property
Could someone tell me how to modify the alpha settings when setting a component to enabled=false? Thanks! Sam
RE: [flexcoders] Different font height on Mac and Win.
What is the result on the Mac? Do you get the same result on Mac and Win if you embed the font? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rozhkovalexey Sent: Wednesday, November 29, 2006 5:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Different font height on Mac and Win. Create for example TextInput with fontFamily=TimesNewRoman, fontSize=14. If you run the function TextInput.measureText ( ).ascent on Mac the result will never be 14. On Windows - all good. It's problem with measureText function. Try to run this is simple application on Mac and on Win and you will see what I'm speeking about. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ public function showHeight():void { height1.text = String (textInput1.measureText(textInput1.text).ascent); height2.text = String (textInput2.measureText(textInput1.text).ascent); } ]] /mx:Script mx:VBox width=100% height=100% horizontalAlign=center mx:HBox mx:TextInput id=textInput1 text=Test fontSize=10/ mx:Spacer width=30/ mx:Label text=Text height/ mx:TextInput id=height1/ /mx:HBox mx:HBox mx:TextInput id=textInput2 text=Test fontFamily=TimesNewRoman fontSize=10/ mx:Spacer width=30/ mx:Label text=Text height/ mx:TextInput id=height2/ /mx:HBox mx:Button label=Get height click=showHeight()/ /mx:VBox /mx:Application Anybody know how can fix this?
[flexcoders] Re: need help about setup webservice in FDS
I have had an identical issue that I'm unable to resolve. Here are the 4 samples I've tried in my proxyConfig.xml file: destination id=DefaultHTTP properties dynamic-urlhttp://URLGOHERE/WS.asmx?WSDL/dynamic-url /properties /destination destination id=Sample0 properties dynamic-urlhttp://URLGOHERE/WS.asmx?WSDL/dynamic-url /properties /destination destination id=Sample1 properties wsdlhttp://URLGOHERE/WS.asmx?WSDL/wsdl soap*/soap /properties adapter ref=soap-proxy/ /destination destination id=Sample2 adapter=soap-proxy properties wsdlhttp://URLGOHERE/WS.asmx?WSDL/wsdl soaphttp://URLGOHERE/WS.asmx?WSDL/soap /properties /destination destination id=Sample3 adapter=soap-proxy properties wsdlhttp://URLGOHERE/WS.asmx?WSDL/wsdl soaphttp://URLGOHERE/WS.asmx?WSDL/soap /properties channels channel ref=my-amf/ /channels /destination I've tried with the soap-proxy as default=true and the general state. When I call the URL direct from a web service it does work. As soon as I try to do the named proxy approach, it fails. What am I missing??? I bet it's obvious :( Jamie --- In flexcoders@yahoogroups.com, nmsflex [EMAIL PROTECTED] wrote: i have .net web service api example http://190.100.1.102/ws/Service.asmx wsdl address: http://190.100.1.102/ws/Service.asmx?WSDL is anyone can show me how to set up webservice in fds to access my .net web service api if configure flex-proxy-service.xml by adding destination id=myWS adapter=soap-proxy properties wsdlhttp://190.100.1.102/ws/Service.asmx?WSDL/wsdl soaphttp://190.100.1.102/ws/Service.asmx/soap /properties channels channel ref=my-amf/ /channels /destination but i still get error when i run my app Error: can not send and can not load success wsdl Thanks
RE: [flexcoders] Is it possible to upload an xml file from local filesystem into a variable
I have loaded some local XML files using the HTTPService. Limitation: you need to know the path of the file. It's like entering a local file URL into your browser. Maybe this is not supposed to work, or maybe this is not what you are trying to do...but I post it anyway...just in case. mx:HTTPService id=xmlProjectData resultFormat=e4x url=file:///c:/Project13.xml file:///c:\Project13.xml useProxy=false/ _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, November 29, 2006 11:54 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Is it possible to upload an xml file from local filesystem into a variable The Flash Player security sandbox restrictions pretty much prevent access to any local/client resources, including the file system. There are ways around this but they require signficant work. Is a projector like Zinc an option? Tracy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Murdo Sent: Wednesday, November 29, 2006 10:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is it possible to upload an xml file from local filesystem into a variable Hi, I'm trying to replace a .Net web client which zips and xml file and transfers it a server for analysis via a SOAP webservice. I wanted to remove dependancy on .Net standalone client and use flex app as replacment. I can't seem to find a way of loading the local xml file into a var for compression and base64 encoding to webservice. Can this be done or are there security restrictions on this? Many thanks Murdo
RE: [flexcoders] Change alpha properties when setting enabled property
override public fuction set enabled(value:Boolean) : void { super.enabled = value; this.setStyle(alpha, ( value ? 1 : .5)); } Enjoy! -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sam Shrefler Sent: Wednesday, November 29, 2006 3:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Change alpha properties when setting enabled property Could someone tell me how to modify the alpha settings when setting a component to enabled=false? Thanks! Sam
RE: [flexcoders] Flex crashing @ compilation time
That seems like a crazy amount of compilation time for 40 files. Something is wrong. BTW, have you tried creating some library projects and linking to them, instead of having just one source tree? However, you said that Flex is actually crashing during the compile.. is it? Or is it just slow? -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of The Crow Sent: Tuesday, November 28, 2006 3:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex crashing @ compilation time Hello. I've been using Flex 2 for 3 months now. There's around 40 mxml applications plus component, and actionscript files in the project and the compilation (building) time has considerably increased with time...taking up to 5-10 minutes at times. I've upgraded to Java 1.5.0.09 and changed the settings in the FlexBuilder configuration file and still no significant improvements have been noticed. Could anyone help me out with this issue. Deleting the Bin folder and re-compiling the whole project as well did not solve the problem. PC Specs: Pentium 4 HT (3.0 MHz, 1GB DDR2 Memory, Integrated graphic card) Thanks for your cooperation. Regards, Anoop
[flexcoders] Re: totaling items in datagrid
Got it. The CF/Flex wizard will generate an ArrayCollection variable to hold the data for a datagrid sub-form. It will also generate a function get_result() that gets all the data for the entire form. I placed a call to my grand total function as the last line in get_result() and voila! Now the grand total appears immediately after the dataGrid fills with data and changes whenever the grid changes. Gotta love this stuff Dan --- In flexcoders@yahoogroups.com, nall_daniel [EMAIL PROTECTED] wrote: Okay, I made a little progress on this. Instead of passing the mx:model (which is an array) to my Grand Total function I'm now passing the actual dataProvider which is an arrayCollection. Now, new forms show the grand total as well as previously existing forms being edited. That's where the data is held, not the model. One last thing to do, How can I get my grand total function to run last after the arrayCollection is populated? Dan --- In flexcoders@yahoogroups.com, nall_daniel daniel.nall.ctr@ wrote: Thanks Ben, I already use similar code with a labelFunction to do sub-totals within the grid and it works very well. However, that code will only do calculations on a single row and not on an entire column. The code I wrote for totaling a column works as well but not on a new form where the model has no data yet. I would also like to run the code after the data model is populated (run the function last after all other code has run). How can I iterate through a dataGrid when it holds the data and my model or the array doesn't have any data yet? --- In flexcoders@yahoogroups.com, bsdensmore bsdensmore@ wrote: a labelfunction will do the calculations as you tab through the fields or as change rows on the grid. I use this to do some calculations and it works great. private function calcAdjAmount(item:Object,column:DataGridColumn):String { var adjustedAmt:Number; var emptyField:String = ; if (item['Num_Cases_Claimed'] != null) { adjustedAmt = item['Num_Cases_Claimed'] * Number(removeFormatting.format(item['Net_Promo_Amt'])); return basicCurrencyFormat.format(adjustedAmt.toString()); } else { return emptyField; } } Ben --- In flexcoders@yahoogroups.com, nall_daniel daniel.nall.ctr@ wrote: No one has an answer to this? Or suggestions? --- In flexcoders@yahoogroups.com, nall_daniel daniel.nall.ctr@ wrote: I am using the CF/Flex Application Wizard to generate a basic form based application. I have a Master datagrid that list all the purchase requests a user has submitted and a Detail form for editing a request or submitting a new request. The detail form has a datagrid as a subform. I pass the mx:model the wizard created of the subform's data to this function: [Bindable] public var purchaseTotal:Number; private function grandTotal(myArray:Array):void { purchaseTotal = 0; var length:int = myArray.length; for (var i:int = 0; i length; i++) { purchaseTotal += Number(myArray[i].Quantity * myArray[i].UnitCost) } } I assign purchaseTotal variable to the text property of a label and run the function on the subform's datagrid.itemFocusOut event. Now when a user is editing a purchase request, the grand total updates when the user changes either the Quantity or the UnitCost. Couple of problems with what I'm doing: 1. No grand total in the label until the user tabs or clicks through the datagrid subform. How can I get my function to run after the mx:model is created and populated with data? 2. New requests never show a grand total. Where's the model's data? My apologies for being so long winded but I wanted to make sure what I was doing is clear. Cheers, Dan
RE: [flexcoders] Change alpha properties when setting enabled property
Sorry... let me elaborate more. The previous example would be used inside of the component that is being enabled/disabled. To do this outside of a component, you need to do it in actionscript: myComponent.enabled=fase; myComponent.setStyle(alpha, .5); _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Trice Sent: Wednesday, November 29, 2006 4:19 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Change alpha properties when setting enabled property override public fuction set enabled(value:Boolean) : void { super.enabled = value; this.setStyle(alpha, ( value ? 1 : .5)); } Enjoy! -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sam Shrefler Sent: Wednesday, November 29, 2006 3:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Change alpha properties when setting enabled property Could someone tell me how to modify the alpha settings when setting a component to enabled=false? Thanks! Sam
[flexcoders] Re: to form or not to form that is my question
that is my main issue as well layout seems to be a hassle please someone in the know add somthing here, my development is stalled until i have a clear understanding of why to use or not use thanks --- In flexcoders@yahoogroups.com, Ben Marchbanks [EMAIL PROTECTED] wrote: I was wondering the same - everything seems to work just fine without using form and formItems. I found that the form component seem to make it more difficult to create and size the layout objects. I am not using either and have no problems using just textInput and labels instead. Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 bghoward3 wrote: can somone enlighten me on the benefit to using forms and form items instead of simply using text input boxes thanks
Re: [flexcoders] Re: Styling in Flex is officially ridiculous
Ben, This issue could only peeve you if it was actually an issue. The Button does not have a border. Thus, the border API does not apply to a Button. This is the reason they say upSkin, it's a skin. You could easily copy and paste the ButtonSkin class and put another style in the says borderEnabled. In the skin rendering method, call that style and put the drawing api section that contains the 'border' in an if statement. This way you just set ONE style and vola, no border! Peace, Mike On 11/29/06, ben.clinkinbeard [EMAIL PROTECTED] wrote: Yes, I meant the button's border. The default button is a gradient background with a border around it. I just wanted a gradient. No border. What I ended up doing was to create a PNG that had a gradient using the colors I wanted, created a Button subclass (in MXML) called GreenButton, set styleName to greenButton, and then defined greenButton inside a Style tag. In the greenButton style I set the upSkin property to use my PNG and provided 9-slice values and also set the text color. This approach allows me to reuse GreenButton and set the label and width (among other things) inline. The drawbacks, however, are that I will need to create separate images for downSkin, disabledSkin, etc. for each and every custom button I need, like RedButton, etc. So all in all it is a fairly simple and tolerable workaround, it just peeves me that I can't say borderStyle: none. In my opinion, if a component has a border you should be able to turn it off. Its just an if statement. Ben --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Andrew Trice [EMAIL PROTECTED] wrote: That's how I interpreted it: that he is actually talking about the button's border. Ben, is that what you were talking about? If so, the skin method is the way to go. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Michael Schmalle Sent: Wednesday, November 29, 2006 11:50 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Styling in Flex is officially ridiculous Oh yeah... If he is talking about the actual button border, that is the skin and he needs to create a new skin. The button does not have borders, it has skins. It dosn't even share the same characteristics of a Container that has a border. These are not the same things. So, Ben, what do you mean when you say the Button's border? Or, what do you want... Peace, Mike On 11/29/06, Michael Schmalle [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Andy, It answers his question and it does work. If the label is present, you click on the label and the Button functions correctly. I don't know what he is aiming for here but, if you 'don't' have a border, there is no other hit area specified for the component. So, how are you going to get mouse events from a component that dosn't have a hit area? Bottom line is, this approach does work if you plan to use a label, other than this, why would you want a button without a label and border if you want to click on it? Peace, Mike On 11/29/06, Andrew Trice [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm not sure that approach really works... The buttons don't show up at all. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Office: 866-CYNERGY From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ups.com http://ups.com ] On Behalf Of Michael Schmalle Sent: Wednesday, November 29, 2006 11:05 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Styling in Flex is officially ridiculous Well, Before your loose it... try myButton.setStyle(upSkin, null); OR Button { upSkin:ClassReference(null); } OR mx:Button upSkin={null}/ Peace, Mike On 11/29/06, ben.clinkinbeard [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: OK. I am usually very hesitant to criticize Adobe because of the immense respect I have for their employees and the amazing technology they create. I have built my career around their products. That being said, the styling capabilities in Flex are downright silly. I have suffered silently through some small, yet extremely annoying nuances, but this one takes the cake: You can't style a Button to not have a border!!! Developer: Hey
RE: [flexcoders] Problems with a DateField as an itemRenderer/editor
Yes I have done that. On another note, I even checked out a sample in the docs about putting a datefield in a datagrid. I still couldn't get the datagridevent to work properly. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of leds usop Sent: Wednesday, November 29, 2006 12:11 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Problems with a DateField as an itemRenderer/editor Have you set rendererIsEditor to true and the editorDataField=selectedDate? --- Louie Penaflor [EMAIL PROTECTED] mailto:lpenaflor%40woccu.org wrote: You are correct. It is itemEditEnd. I was just in a rush. As for the issue, the date is populating right. It's when I select a date from the calendar. When you select a date, I dispatch the DataGridEvent itemEditEnd. This even should have Event.currentTarget.editedItemRenderer and event.target.itemEditorInstance, which are both returning null. This points out to me that when you click or the DateField that opens up the calendar, it's not focusing into the datagrid as an editor. I'm wondering how I can invoke this manually? Does that make sense? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of leds usop Sent: Tuesday, November 28, 2006 11:50 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Problems with a DateField as an itemRenderer/editor Is onItemEnd a custom event listener? or do you mean onItemEditEnd? I dont recall having an 'onItemEnd' associated with Datagrid listener in any way.. please correct me if im wrong. When you use a datefield as item renderer or item editor a list control (or any drop-in item renderer/item editor), make sure that the data provider of that list control has a field of type Date (or the expected data type of the drop-in item renderer you used). Since Data Grid is derived from List base, this means it applies to it as well. Have you considered that? --- Louie Penaflor [EMAIL PROTECTED] mailto:lpenaflor%40woccu.org mailto:lpenaflor%40woccu.org wrote: I'm having an issue with DataGridEvent (onItemEnd) and the DateField class. Basically, I've developed a framework that uses onItemEnd from the datagrid. I have components like the combobox for example... onChange calls onItemEnd which takes the data of the combobox and puts it in the dataField of the datagrid, then makes a service call to update to the database. I've gotten this to work great with many components but the dateField I'm having a horrible time with. when I dispatchEvent (onitemend) for example, I use event.currentTarget.editedItemRenderer to get the value from event.target.itemEditorInstance. Which both don't exist when I dispatchEvent from the calendar select date (onClose) event handler. This works when I have the dateField as an Editor only and using the default renderer. This is an issue becuase it creates another click for the user. I think the root of my problem is that when you click on the datefield to open the calendar, it doesn't invoke it as an editor in the datagrid. Is there a way to force this? Any help would be appreciated. Thanks in advance. Louie Penaflor Web Software Developer World Council of Credit Unions, Inc. Ph: (608)231-7932 This is a transmission from World Council of Credit Unions, Inc. and contains information that is confidential. If you are not the intended addressee or authorized to receive for the addressee, then any disclosure, copying, distribution, or use of the contents of this message is prohibited. If you have received this transmission in error, please destroy it and notify the sender immediately at the transmitting e-mail address. If you are the intended recipient, please be advised that this e-mail transmission is not encrypted or otherwise protected from potential misappropriation or misuse. World Council of Credit Unions, Inc. expressly disclaims any and all liability for harm resulting from the misappropriation, interception or misuse of the information contained in this transmission. __ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com http://new.mail.yahoo.com http://new.mail.yahoo.com http://new.mail.yahoo.com __ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com http://new.mail.yahoo.com
RE: [flexcoders] Problem with Flex ColdFusion
Hi Israel, You need to put the following in your root folder (I am assuming you have got jrun server Install). [C:\JRun4\]servers\cfusion\cfusion-ear\cfusion-war\ The thing in brackets {} can be replaced by the location on your computer. Hope this will help. Philip From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Israel Sent: 28 November 2006 16:20 To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with Flex ColdFusion Hi, I install a ColdFusion MX 7 Updater 2 in my ColdFusion Server but don't work it my server has a Windows Server 2003 Enterprise and we are developing an aplication in Flex 2 and we are using ColdFusion for connect to data base but Flex 2 need a ColdFusion MX 7 Updater 2 to install Flex Data Services Adapter - enabling the use of Flex Data Management Services with ColdFusion components (CFCs). In Adobe web site (http://www.adobe.com/support/documentation/en/coldfusion/mx702/cf702_ http://www.adobe.com/support/documentation/en/coldfusion/mx702/cf702_ install.html) are an instrucctions about install this updater, I follow this instructions and install this updater correctly, check the existence of this files: cf_root\lib/cfusion.jar cf_root\lib/im.jar cf_root\lib/wsdl4j-1.5.1.jar cf_webroot/CFIDE/adminapi/Application.cfm cf_webroot/CFIDE/administrator/Application.cfm This instalation create a Flex folder in WEB-INF folder, this WEB-INF folder is in CFusionMX7 directory in Inetpub. And everything is OK but in Flex Builder 2, when I attempt to create a new project and appear a wizard window and I select a project with Cold Fusion Remoting Sevice, in second step I got to select a Root folder and send me an error window tell me that I got an Invalid server root. Server root must contain a WEB-INF/flex folder and I check and this folder it existSo can anybody help me This e-mail has been scanned for all viruses by Star. This e-mail has been scanned for all viruses by Star.
RE: [flexcoders] Chart :Clipping segment from a line serie
By default, series filter out datapoints not in the min/max range. If you set the filterData property to false, they'll render all points. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet Sent: Wednesday, November 29, 2006 12:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Chart :Clipping segment from a line serie I have noticed that if one of the point of a segment is not within the min/max of the chart area,the whole segment is not displayed.I would have expect to see a segment between the point within the min/max and the intersection between the segment and the axis. Is there an option to make it happen ? Thank you for your help. Regards-CLaude