[flexcoders] I don't understand why I'm getting this compiler error
I'm getting a compiler message saying Event type 'events.CustomEvent' is unavailable, and I don't understand why. I'm hoping a second eye might catch the problem. My custom event class is called CustomEvent.as: (the dao.Person class is just a dummy class that stores a firstName, middleName, and lastName, and I was going to see if the data in this object will be available in my 'testEvent' handler). package actionscript { import dao.Person; import flash.events.Event; public class CustomEvent extends Event { public var person:Person; public function CustomEvent(person:Person, type:String) { super(type); this.person = person; } public override function clone():Event { return new CustomEvent(person, type); } } } I'm trying to dispatch the above custom event from a test component called TestComponent.mxml: ?xml version=1.0 encoding=utf-8? mx:TextInput xmlns:mx=http://www.adobe.com/2006/mxml; mx:Metadata [Event(name=testEvent, type=events.CustomEvent)] /mx:Metadata mx:Script ![CDATA[ import actionscript.CustomEvent; import dao.Person; public function fireAway():void { var p:Person = new Person (John, Missing, Doe); var e:CustomEvent = new CustomEvent (p, testEvent); this.dispatchEvent(e); } ]] /mx:Script /mx:TextInput And finally, here is my MXML application that's supposed to test all this and is called CustomEventsTest.mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:c=components.* mx:Script ![CDATA[ import actionscript.CustomEvent; import components.TestComponent; private function clickHandler():void { testComponent.fireAway(); } private function testEventHandler (event:CustomEvent):void { trace(It got here to testEventHandler.); } ]] /mx:Script mx:VBox !-- * -- c:TestComponent id=testComponent backgroundColor=yellow testEvent=testEventHandler(event)/ !-- * -- mx:Button id=btnFireEvent label=Fire Event click=clickHandler()/ /mx:VBox /mx:Application The compiler error message is complaining about the c:TestComponent between the two lines of asterisks. Can anyone see why the compiler is telling me why CustomEvent is unavailable? Thanks in advance for your time.
Re: [flexcoders] I don't understand why I'm getting this compiler error
Hi, I think you are given wrong event type in this metadata tag, mx:Metadata [Event(name=testEvent, type=events.CustomEvent)] /mx:Metadata rather it should be complete package structure as, mx:Metadata [Event(name=testEvent, type=actionscript.CustomEvent)] /mx:Metadata Regards, *Pravin* 2009/2/20 elevight i...@pilby.us I'm getting a compiler message saying Event type 'events.CustomEvent' is unavailable, and I don't understand why. I'm hoping a second eye might catch the problem. My custom event class is called CustomEvent.as: (the dao.Person class is just a dummy class that stores a firstName, middleName, and lastName, and I was going to see if the data in this object will be available in my 'testEvent' handler). package actionscript { import dao.Person; import flash.events.Event; public class CustomEvent extends Event { public var person:Person; public function CustomEvent(person:Person, type:String) { super(type); this.person = person; } public override function clone():Event { return new CustomEvent(person, type); } } } I'm trying to dispatch the above custom event from a test component called TestComponent.mxml: ?xml version=1.0 encoding=utf-8? mx:TextInput xmlns:mx=http://www.adobe.com/2006/mxml; mx:Metadata [Event(name=testEvent, type=events.CustomEvent)] /mx:Metadata mx:Script ![CDATA[ import actionscript.CustomEvent; import dao.Person; public function fireAway():void { var p:Person = new Person (John, Missing, Doe); var e:CustomEvent = new CustomEvent (p, testEvent); this.dispatchEvent(e); } ]] /mx:Script /mx:TextInput And finally, here is my MXML application that's supposed to test all this and is called CustomEventsTest.mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:c=components.* mx:Script ![CDATA[ import actionscript.CustomEvent; import components.TestComponent; private function clickHandler():void { testComponent.fireAway(); } private function testEventHandler (event:CustomEvent):void { trace(It got here to testEventHandler.); } ]] /mx:Script mx:VBox !-- * -- c:TestComponent id=testComponent backgroundColor=yellow testEvent=testEventHandler(event)/ !-- * -- mx:Button id=btnFireEvent label=Fire Event click=clickHandler()/ /mx:VBox /mx:Application The compiler error message is complaining about the c:TestComponent between the two lines of asterisks. Can anyone see why the compiler is telling me why CustomEvent is unavailable? Thanks in advance for your time.
[flexcoders] FlexBuilder 3 problem -- dynamic help stops working
Hi, list, I'm having a problem with FlexBuilder 3 Dynamic Help . It was working well until a couple of days ago. The dynamic help isn't working anymore and I keep getting these error messages : - An internal error occured during : Indexing help ... - invalid format The Help Contents is also partially broken, it goes into an infinite loop of indexing when I do a search Is there anyway to check and maybe fix the help system ? Thanks, -- Anggie Bratadinata | www.masputih.com | Indonesia
[flexcoders] ITEmRenderer in Actionscript
Hi All, Any idea how the following code using Action script.. Code: mx:DataGridColumn headerText=Online dataField=online mx:itemRenderer mx:Component mx:CheckBox id=chkBox/ /mx:Component /mx:itemRenderer /mx:DataGridColumn As it is in actionscript I dont want to create seperate component... everything i want to write in single file. something like... ActionScript Code: var dgc:DataGridColumn=new DataGridColumn(); var chkBox:CheckBox=new CheckBox(); Here how to add chkBox to dgc using Itemrenderer??? any idea?? Is its possible??? Can anyone help me... Any suggestions would be appreciated!!! Thanks in Advance, Poornima
[flexcoders] Re: Why cant I use mouseOver() in Image class, but using mx:Image tag, I can?
Hi Nate, Thanks, it works But I have one problem, How can I show seperate details for each of the images? rememver I have one cell that includes several images side by side drawn from the loop bellow, and each one need to popup different data on a tooltip. private var tooltipData:String; override public function set data(value:Object):void { if (value != null) { removeAllChildren(); for (var i:int = 0; i value.hair.length; i++){ var img:Image = new Image(); img.source = value.hair[i].image; tooltipData = image - +i; img.percentWidth=value.hair[i].width; img.maintainAspectRatio=false; img.addEventListener(ToolTipEvent.TOOL_TIP_CREATE, tooltipDetailCreate); addChild(img); } } } private function tooltipDetailCreate(event:ToolTipEvent):void { var tt:PanelToolTip = new PanelToolTip(); tt.width = 190; tt.height = 100; tt.bodyText = tooltipData; event.toolTip = tt; } and my PanelToolTip: ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; implements=mx.core.IToolTip width=200 alpha=.8 borderThickness=2 backgroundColor=white dropShadowEnabled=true borderColor=black borderStyle=solid shadowDistance=10 shadowDirection=right mx:Script ![CDATA[ [Bindable] public var bodyText:String = ; public var _text:String; public function get text():String { return _text; } public function set text(value:String):void { } ]] /mx:Script mx:Text text={bodyText} percentWidth=100/ /mx:Panel The result I'm getting now is that I see a tooltip for each of the images but with the same data (tooltipData = the last iteration of the loop). How can I set a different data for each of the images. Thanks a lot for the help :) Jo --- In flexcoders@yahoogroups.com, Nathaniel Skiba nate.sk...@... wrote: toolTipCreate is an event, so when using AS, you have to use the addEventListener function. The following should help: img.addEventListener(ToolTipEvent.TOOL_TIP_CREATE, myHandlerFunction); Just remember that you have to import ToolTipEvent, and myHandlerFunction has to be a function that takes one argument which is a ToolTipEvent. ~Nate
[flexcoders] Re: Why cant I use mouseOver() in Image class, but using mx:Image tag, I can?
I think that I need to create a new panel for each image, let say if I have 3 images in one cell and the event is fired, now I get one panel for all with the same data and its not good for me, i need 3 panels with different data, How do I do it?? Can it be done? Thanks again Jo --- In flexcoders@yahoogroups.com, yossi.baram yossi.ba...@... wrote: Hi Nate, Thanks, it works But I have one problem, How can I show seperate details for each of the images? rememver I have one cell that includes several images side by side drawn from the loop bellow, and each one need to popup different data on a tooltip. private var tooltipData:String; override public function set data(value:Object):void { if (value != null) { removeAllChildren(); for (var i:int = 0; i value.hair.length; i++){ var img:Image = new Image(); img.source = value.hair[i].image; tooltipData = image - +i; img.percentWidth=value.hair[i].width; img.maintainAspectRatio=false; img.addEventListener(ToolTipEvent.TOOL_TIP_CREATE, tooltipDetailCreate); addChild(img); } } } private function tooltipDetailCreate(event:ToolTipEvent):void { var tt:PanelToolTip = new PanelToolTip(); tt.width = 190; tt.height = 100; tt.bodyText = tooltipData; event.toolTip = tt; } and my PanelToolTip: ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; implements=mx.core.IToolTip width=200 alpha=.8 borderThickness=2 backgroundColor=white dropShadowEnabled=true borderColor=black borderStyle=solid shadowDistance=10 shadowDirection=right mx:Script ![CDATA[ [Bindable] public var bodyText:String = ; public var _text:String; public function get text():String { return _text; } public function set text(value:String):void { } ]] /mx:Script mx:Text text={bodyText} percentWidth=100/ /mx:Panel The result I'm getting now is that I see a tooltip for each of the images but with the same data (tooltipData = the last iteration of the loop). How can I set a different data for each of the images. Thanks a lot for the help :) Jo --- In flexcoders@yahoogroups.com, Nathaniel Skiba nate.skiba@ wrote: toolTipCreate is an event, so when using AS, you have to use the addEventListener function. The following should help: img.addEventListener(ToolTipEvent.TOOL_TIP_CREATE, myHandlerFunction); Just remember that you have to import ToolTipEvent, and myHandlerFunction has to be a function that takes one argument which is a ToolTipEvent. ~Nate
[flexcoders] Re: Why cant I use mouseOver() in Image class, but using mx:Image tag, I can?
well, i managed doing that :) Using one panel, I use the currentTarget object of the evevnt allows me to retrieve the dataPorvider elements private function tooltipDetailCreate(event:ToolTipEvent):void { var tt:PanelToolTip = new PanelToolTip(); var innerImage:Object = event.currentTarget; tt.width = 190; tt.height = 100; tt.bodyText = image source: + innerImage.source; event.toolTip = tt; } It looks great. Now I have (of course) one more question. Every image need to have a unique Key/Value elements in a hashMap. I know Java but rather new in Flex, How can I set a hashMap into my ArrayCollection dp? and what is the attribute I need to set in my panel in order to see it in my tooltip? Thanks again Jo --- In flexcoders@yahoogroups.com, yossi.baram yossi.ba...@... wrote: I think that I need to create a new panel for each image, let say if I have 3 images in one cell and the event is fired, now I get one panel for all with the same data and its not good for me, i need 3 panels with different data, How do I do it?? Can it be done? Thanks again Jo --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Hi Nate, Thanks, it works But I have one problem, How can I show seperate details for each of the images? rememver I have one cell that includes several images side by side drawn from the loop bellow, and each one need to popup different data on a tooltip. private var tooltipData:String; override public function set data(value:Object):void { if (value != null) { removeAllChildren(); for (var i:int = 0; i value.hair.length; i++){ var img:Image = new Image(); img.source = value.hair[i].image; tooltipData = image - +i; img.percentWidth=value.hair[i].width; img.maintainAspectRatio=false; img.addEventListener(ToolTipEvent.TOOL_TIP_CREATE, tooltipDetailCreate); addChild(img); } } } private function tooltipDetailCreate(event:ToolTipEvent):void { var tt:PanelToolTip = new PanelToolTip(); tt.width = 190; tt.height = 100; tt.bodyText = tooltipData; event.toolTip = tt; } and my PanelToolTip: ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; implements=mx.core.IToolTip width=200 alpha=.8 borderThickness=2 backgroundColor=white dropShadowEnabled=true borderColor=black borderStyle=solid shadowDistance=10 shadowDirection=right mx:Script ![CDATA[ [Bindable] public var bodyText:String = ; public var _text:String; public function get text():String { return _text; } public function set text(value:String):void { } ]] /mx:Script mx:Text text={bodyText} percentWidth=100/ /mx:Panel The result I'm getting now is that I see a tooltip for each of the images but with the same data (tooltipData = the last iteration of the loop). How can I set a different data for each of the images. Thanks a lot for the help :) Jo --- In flexcoders@yahoogroups.com, Nathaniel Skiba nate.skiba@ wrote: toolTipCreate is an event, so when using AS, you have to use the addEventListener function. The following should help: img.addEventListener(ToolTipEvent.TOOL_TIP_CREATE, myHandlerFunction); Just remember that you have to import ToolTipEvent, and myHandlerFunction has to be a function that takes one argument which is a ToolTipEvent. ~Nate
[flexcoders] Slice / Scale 9 Flex Skins don't scale
Dear all, we have some Flex Skins made in Flash exported as swc, as described in this article: http://devote.your.life.auricom.com/?p=70. We have Bitmaps in the Skins and the Bitmaps don't scale in Flex. We import the skins as artwork in Flex. It seems that we have encountered a bug which is described here: http://bugs.adobe.com/jira/browse/SDK-15575. Does anybody knows a solution or a workaround in order to get bitmapped skins to scale in Flex? Any help is highly appreciated! Thanks in advance Reto
[flexcoders] Problem accessing data of an XML file
Hello, I have an XML file with points inside : root Point x0343/x0 y0350/y0 x1343/x1 y1359/y1 /Point Point x0344/x0 y0349/y0 x1344/x1 y1359/y1 /Point /root I use these instructions : mx:Model id=pointModel source=Data/Pts.xml/ mx:ArrayCollection id=EIMPoints source={pointModel.Point}/ How to access to the point values in an actionscript function to draw the points ? Thank you, Christophe,
[flexcoders] Datagrid personalization
Hi, i create a class that extends datadrid package actionscriptcomponent { import mx.controls.DataGrid; public class CustomDataGrid extends DataGrid { private var _nrows:uint = 6; private var _ncolumns:uint = 7; private var rowsChanged:Boolean = false; private var columnsChanged:Boolean = false; public function CustomDataGrid() { super(); } public function set nrows(value:uint):void { if(nrows != value){ _nrows = value; rowsChanged = true; invalidateProperties(); } } public function get nrows():uint { return _nrows; } public function set ncolumns(value:uint):void { if(ncolumns != value){ _ncolumns = value; columnsChanged = true; invalidateProperties(); } } public function get ncolumns():uint { return _ncolumns; } override protected function commitProperties():void { if(rowsChanged) rowCount = nrows; if(columnsChanged) columnCount = ncolumns; } } } the i would lsiten for change for rows and columns numeber... for example, my default grid have 6 rows and 7 columns... then at run time i would have a grid that have 8 rows and 10 columns... is it the right way? Thanks a lot Regards Lorenzo
Re: [flexcoders] Problem accessing data of an XML file
- Original Message - From: christophe_jacquelin christophe_jacque...@yahoo.fr To: flexcoders@yahoogroups.com Sent: Friday, February 20, 2009 11:01 AM Subject: [flexcoders] Problem accessing data of an XML file Hello, I have an XML file with points inside : root Point x0343/x0 y0350/y0 x1343/x1 y1359/y1 /Point Point x0344/x0 y0349/y0 x1344/x1 y1359/y1 /Point /root I use these instructions : mx:Model id=pointModel source=Data/Pts.xml/ mx:ArrayCollection id=EIMPoints source={pointModel.Point}/ How to access to the point values in an actionscript function to draw the points ? This should help: http://www.trilemetry.com/clients/f3gse/partIII/partIIIa/workingWithData_e4x.cfm# Truly speaking your XML doesn't describe points, it describes point pairs, possibly line segments.. Paul Thank you, Christophe,
Re: [flexcoders] Re: Why cant I use mouseOver() in Image class, but using mx:Image tag, I can?
Ah, so that's what you were wanting to do. AFAIK, the tool tip for the class can't be substituted. What you should probably do instead is to turn off the tooltips, use the mouse over (or roll over) event, and when you detect mouse over, use the PopUpManager to show your custom component. ~Nate
Re: [flexcoders] ITEmRenderer in Actionscript
var dgc:DataGridColumn=new DataGridColumn(); dgc.itemRenderer = new ClassFactory(CheckBox); ~ Nate kotha poornima wrote: Hi All, Any idea how the following code using Action script.. Code: mx:DataGridColumn headerText=Online dataField=online mx:itemRenderer mx:Component mx:CheckBox id=chkBox/ /mx:Component /mx:itemRenderer /mx:DataGridColumn As it is in actionscript I dont want to create seperate component... everything i want to write in single file. something like... ActionScript Code: var dgc:DataGridColumn=new DataGridColumn(); var chkBox:CheckBox=new CheckBox(); Here how to add chkBox to dgc using Itemrenderer??? any idea?? Is its possible??? Can anyone help me... Any suggestions would be appreciated!!! Thanks in Advance, Poornima
Re: [flexcoders] ItemRenderer in Actionscript
You can't directly because there is no way to create a component on the fly in actionscript. Create the component (mx:label) as a stand alone file; either with MXML or ActionScript. Then create the DataGridColumn in AS, something like this: var DGC : DataGridColumn = new DataGridColumn() DGC.headerText = 'col1' DGC.datafield='col1' DGC.itemRenderer = myothercomponent From a re-usability stand point I'd try to avoid the use of outerDocument. Binding in an itemRenderer can cause performance issues so you may want to override the dataChange event to change the text. kotha poornima wrote: Hi All, mx:DataGridColumn headerText=col1 dataField=col1 mx:itemRenderer mx:Component mx:Label text={outerDocument.showUpper(data.Name)} fontSize=10 verticalCenter=true paddingTop=5 /mx:Label /mx:Component /mx:itemRenderer /mx:DataGridColumn I want the same functionality as above in Actionscript code. How can i do that. Please help me out of this. Thanks in Advance, Poornima -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
RE: [flexcoders] Slice / Scale 9 Flex Skins don't scale
Read the below link, it may give an insight as to why your scaling isn't working. http://opensource.adobe.com/wiki/display/flexsdk/Scale9+in+FXG also you could try the below http://www.adobe.com/devnet/fireworks/articles/9-slice_scaling.html http://kb.adobe.com/selfservice/viewContent.do?externalId=kb406044slice Id=2 I'd also recommend trying CS4 (if you haven't already) as I was creating custom components in CS3 flash for flex but I was always getting unexplained errors. Something along the line of 'publish - test - works fine' , 'add line of code - publish - test - fails', 'remove line of code - publish - test - fails!' Tested same code in CS4 at it always works. So maybe worth a try (the errors I got suggested it was to do with the way the SWC was generated, so whenever I need a swc from flash I'd recommend CS4) HTH Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Reto M. Kiefer Sent: 20 February 2009 10:52 To: flexcoders Subject: [flexcoders] Slice / Scale 9 Flex Skins don't scale Dear all, we have some Flex Skins made in Flash exported as swc, as described in this article: http://devote.your.life.auricom.com/?p=70. We have Bitmaps in the Skins and the Bitmaps don't scale in Flex. We import the skins as artwork in Flex. It seems that we have encountered a bug which is described here: http://bugs.adobe.com/jira/browse/SDK-15575. Does anybody knows a solution or a workaround in order to get bitmapped skins to scale in Flex? Any help is highly appreciated! Thanks in advance Reto Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
[flexcoders] AdvancedDataGridColumnGroup Dynamically Speaking...
Here is the code...I am getting 3 columns for each set instead of 2 coloumns with a grouped header...Obviously I am missing something...A nudge in the right direction would be helpful... var length : int = Storesdp.length; for( var i : int = 0; i length; i++ ){ oColumnDef_amt = new AdvancedDataGridColumn(i+_amt); oColumnDef_amt.headerText = Amount oColumnDef_amt.dataField = S+Storesdp.getItemAt(i).data+_amt; oColumnDef_amt.width = 100; oColumnDef_amt.sortable = true; oColumnDef_amt.visible = true; oColumnDef_amt.editable = false; oColumnDef_amt.wordWrap = false; oColumnDef_amt.labelFunction = amtLabelFunction; oColumnDef_amt.setStyle(textAlign,right); colArray.push(oColumnDef_amt); oColumnDef_cnt = new AdvancedDataGridColumn(i+_cnt); oColumnDef_cnt.headerText = Count; oColumnDef_cnt.dataField = S+Storesdp.getItemAt(i).data+_cnt; oColumnDef_cnt.width = 50; oColumnDef_cnt.sortable = true; oColumnDef_cnt.visible = true; oColumnDef_cnt.editable = false; oColumnDef_cnt.wordWrap = false; //oColumnDef.labelFunction = amtLabelFunction; oColumnDef_cnt.setStyle(textAlign,right); colArray.push(oColumnDef_cnt); var columnGroup:AdvancedDataGridColumnGroup=new AdvancedDataGridColumnGroup(String(i)); columnGroup.headerText=Storesdp.getItemAt(i).label; //columnGroup.children.push( columnGroup.children.push(oColumnDef_amt); columnGroup.children.push(oColumnDef_cnt); colArray.push(columnGroup); } _columns = colArray; adg.columns = _columns;
[flexcoders] AdvancedDataGridColumnGroup dynamically speaking
I am having some issues creating AdvancedDataGridColumnGroup (ing) in Actionscript... Here is what I have tried... var length : int = Storesdp.length; for( var i : int = 0; i length; i++ ) { oColumnDef_amt = new AdvancedDataGridColumn(i+_amt); oColumnDef_amt.headerText = Amount oColumnDef_amt.dataField = S+Storesdp.getItemAt(i).data+_amt; oColumnDef_amt.width = 100; oColumnDef_amt.sortable = true; oColumnDef_amt.visible = true; oColumnDef_amt.editable = false; oColumnDef_amt.wordWrap = false; oColumnDef_amt.labelFunction = amtLabelFunction; oColumnDef_amt.setStyle(textAlign,right); colArray.push(oColumnDef_amt); oColumnDef_cnt = new AdvancedDataGridColumn(i+_cnt); oColumnDef_cnt.headerText = Count; oColumnDef_cnt.dataField = S+Storesdp.getItemAt(i).data+_cnt; oColumnDef_cnt.width = 50; oColumnDef_cnt.sortable = true; oColumnDef_cnt.visible = true; oColumnDef_cnt.editable = false; oColumnDef_cnt.wordWrap = false; //oColumnDef.labelFunction = amtLabelFunction; oColumnDef_cnt.setStyle(textAlign,right); colArray.push(oColumnDef_cnt); var columnGroup:AdvancedDataGridColumnGroup=new AdvancedDataGridColumnGroup(String(i)); columnGroup.headerText=Storesdp.getItemAt(i).label; columnGroup.children.push(oColumnDef_amt); columnGroup.children.push(oColumnDef_cnt); colArray.push(columnGroup); } _columns = colArray; adg.columns = _columns; I am getting 3 columns for each loop, my Column Group appears as its own column...It seems like I am close to having this solved but missing some important pieceA nudge in the right direction is welcomed... -- View this message in context: http://www.nabble.com/AdvancedDataGridColumnGroup-dynamically-speaking-tp22111914p22111914.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Custom functions in SQLite using AIR
Hello, Is there a way to define custom aggregation functions in SQLite using AIR? From the documentation, I noticed that AIR supports SUM, MIN, MAX, AVG, COUNT, and TOTAL: http://www.adobe.com/go/learn_air_aslr_en?localDatabaseSQLSupport.html SQLite lets you define your own functions in C: http://www.sqlite.org/c3ref/create_function.html Thanks, -george
[flexcoders] Drawing on skinned component
Hello, I'm trying to draw something on a component skinned using a Flash skin, but nothing is drawn (or better said, I don't see anything because the drawing is done beneath the skin). My code looks something like public class TestButton extends Button { public function TestButton() { super(); } override protected function updateDisplayList(w:Number, h:Number):void { super.updateDisplayList(w, h); var g:Graphics = graphics; g.moveTo(0, unscaledHeight / 2); g.lineStyle(1, 0x00); g.lineTo(unscaledWidth, unscaledHeight / 2); } } I have tried using a Sprite as the topmost child and drawing on it, but apparently there's always something above my Sprite and I still can't see what I draw. I've googled and searched the group archives for a similar problem, but either I'm not using the right search terms or nobody had such a problem before because I can't seem to find anything of help. So, does anybody have some pointers as to what might one do to draw on such a component? Thank you!
[flexcoders] Complex Header doubt AdvancedDataGrid
Hi, I have a requirement to display data in a AdvancedDataGrid with a complexheader structure as follows : Example : |Place | Occupation | (How to show this column header as a part of Grid??) |Country|State |Field| Sub-field| |India |AP |Software | Web | |India |Punjab |Medicine | Doctor | Thus basically the grid columns are themselves grouped at a higherlevel. I am unable to show the top level column header (Place,Occupation). Could someone please tell me how can this be achieved in flex? Thanks.
[flexcoders] Best database for Flex
Hello, What is the best database for Flex: mySql or SQLServer ? Is it possible to use an Microsoft Access database with Flex ? Thank you, Christophe,
Re: [flexcoders] Best database for Flex
There is no silver bullet The database choice need to be done knowing the requirements, without that, you will get just personal preferences. Regards, PS On Fri, Feb 20, 2009 at 10:06 AM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, What is the best database for Flex: mySql or SQLServer ? Is it possible to use an Microsoft Access database with Flex ? Thank you, Christophe, -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */
re: [flexcoders] Best database for Flex
Flex is database independant. There is no data classes with Flex, unless you are working with AIR. With Flex you connection to your data using either ColdFusion RemoteObjects or Web Services with any (CF, PHP, .NET, etc) so it is more based on what each language can use (which is all of them) and your confort with programming with each. I am a CF developer and I use CFCs to manage my data with my Flex application. Deciding on a database is should be more based on the size of your project and your confort level with each. MySQL, MSSQL, and Oracle can all handle high transactions and heavy loads for most small, medium, and large web application. Access is never a great choice due to limited connections and file size. Access is cute, but not a good choice for an application that is going to grow. From: christophe_jacquelin christophe_jacque...@yahoo.fr Sent: Friday, February 20, 2009 5:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Best database for Flex Hello, What is the best database for Flex: mySql or SQLServer ? Is it possible to use an Microsoft Access database with Flex ? Thank you, Christophe,
Re: [flexcoders] Class Image
processing.. do you mean manipulation? I think the bitmap class is what you need to check out also this is a good start: http://www.insideria.com/2008/03/image-manipulation-in-flex.html hth From: christophe_jacquelin christophe_jacque...@yahoo.fr To: flexcoders@yahoogroups.com Sent: Thursday, February 19, 2009 11:59:03 AM Subject: [flexcoders] Class Image Hello, I am searching the code for an image class for doing image processing. Do you have examples ? Thank you, Christophe, __._,_..___ Messages in this topic (1) Reply (via web post) | Start a new topic Messages -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com MARKETPLACE From kitchen basics to easy recipes - join the Group from Kraft Foods Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe Recent Activity * 46 New MembersVisit Your Group Yahoo! Finance It's Now Personal Guides, news, advice more. Search Ads Get new customers. List your web site in Yahoo! Search. All-Bran Day 10 Club on Yahoo! Groups Feel better with fiber. .
[flexcoders] Re: Best database for Flex
Flex generates a Flash movie (SWF) file that runs in the browser (client side). It's therefore a presentation layer for your application. It calls your Java, PHP, ASP.NET, CFML, etc., server side code to do such things as fetching database records, authenticating/authorizing a user, etc. Your server side code generates data in a format that Flex can understand (for example, valid XML). Flex then consumes that and is able to display it in a datagrid or other control. In this regard, then, Flex is database-agnostic -- it doesn't care where the data it uses comes from. But as others pointed out, you'd want to avoid using MS Access for building web apps; the other databases provide their pluses/minuses. If you need something free, then MySQL/PostGre are good choices. If you're a Microsoft shop, then maybe SQL Server. And of course Oracle is a solid choice for enterprise apps as well. Hope this helps. - Alex C --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, What is the best database for Flex: mySql or SQLServer ? Is it possible to use an Microsoft Access database with Flex ? Thank you, Christophe,
[flexcoders] Re: Flex server language
--- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote: I prefer CF because it is what I know. Since it comes from Adobe it's integration w/ Flex is top notch. After 2 days of trying, I gave up trying to get PHP to work on my dev machine; so I'm amused by the claim it can be setup w/ minimal fuss. I wonder how 10 minutes to find and install WAMP stacks up against the time to order Coldfusion, get it, and install it...?
[flexcoders] tiling a container
Has anyone ever created an algorithm that can work out the max size of a square tile for X number of tiles inside a container of dynamic size. So if I create a container that is 100 * 100 and it contains 2 tiles (non overlapping) then the max size of the tile is 50*50. If I take the same container but I want 3 or 4 tiles then the max size is still 50 * 50. If the container was 50 * 100 then for 3 tiles the max size would be 33.33 *33.33, for 5 tiles it would have a max tile size of 25 * 25 and so on. I've created a function that does this already but it's not exactly optimal and I was wondering if anyone has done this or knows of a resource I could look at to figure out the best way. Cheers Kenneth. realise . Kenneth Sutherland Technical Developer Realise Ltd Quay House, 142 Commercial Street, Leith, Edinburgh EH6 6LB Tel 0131 476 7432 www.realise.com http://www.realise.com/ Check out some of our recent flex work: * Focus on funds UK http://www.focusonfunds.co.uk/ * Focus on funds Europe http://europe.standardlifeinvestments.com/distributor/products_and_serv ices/going_further_focus_on_funds/index.html * Fund selector http://uk.standardlifeinvestments.com/ifa/adviser_support/index.html * Video view http://uk.standardlifeinvestments.com/ifa/market_views/video_view_and_m p3s/index.html Realise are sponsors of the Marketing Society Scotland. Realise Limited is registered in Scotland, SC172507. Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
[flexcoders] save image on desktop in air
hello frnds, could we save an image or all things(which is on our application) snap on desktop with allow option to users as SaveAS . thx in advanced. abhishekche...@gmail.com
Re: [flexcoders] Drawing on skinned component
I have tried using a Sprite as the topmost child and drawing on it I think that's the way to do it. To make sure that your sprite is always on top, just add addChild(yourSprite) at the end of the updateDisplayList function. If the sprite is not on the display list, it's going to be added to it, and if it's already there, it's going to be pushed on top of all the other sprites. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Fri, 2/20/09, civilu007 civilu.gro...@gmail.com wrote: From: civilu007 civilu.gro...@gmail.com Subject: [flexcoders] Drawing on skinned component To: flexcoders@yahoogroups.com Date: Friday, February 20, 2009, 8:53 AM Hello, I'm trying to draw something on a component skinned using a Flash skin, but nothing is drawn (or better said, I don't see anything because the drawing is done beneath the skin). My code looks something like public class TestButton extends Button { public function TestButton() { super(); } override protected function updateDisplayList( w:Number, h:Number):void { super.updateDisplay List(w, h); var g:Graphics = graphics; g.moveTo(0, unscaledHeight / 2); g.lineStyle( 1, 0x00); g.lineTo(unscaledWi dth, unscaledHeight / 2); } } I have tried using a Sprite as the topmost child and drawing on it, but apparently there's always something above my Sprite and I still can't see what I draw. I've googled and searched the group archives for a similar problem, but either I'm not using the right search terms or nobody had such a problem before because I can't seem to find anything of help. So, does anybody have some pointers as to what might one do to draw on such a component? Thank you!
RE: [flexcoders] Best database for Flex
Two answers: 1. Flex has nothing to do with it. You don't call a DB from Flex - you call a server script that calls a DB. 2. SQLLite through AIR or MySQL through assql (http://code.google.com/p/assql/wiki/Examples#MySqlService_Example) Answer #2 is more of a geeky nature than an actual answer though. /Johan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of christophe_jacquelin Sent: den 20 februari 2009 14:07 To: flexcoders@yahoogroups.com Subject: [flexcoders] Best database for Flex Hello, What is the best database for Flex: mySql or SQLServer ? Is it possible to use an Microsoft Access database with Flex ? Thank you, Christophe,
RE: [flexcoders] save image on desktop in air
All you have to do is draw the Application into a BitmapData, put the BitmapData through a JPEG/PNGEncoder and save the resulting ByteArray via File/FileStream. You can certainly let the user descide where the file should be saved. /Johan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of abhishekchess1 Sent: den 20 februari 2009 15:16 To: flexcoders@yahoogroups.com Subject: [flexcoders] save image on desktop in air hello frnds, could we save an image or all things(which is on our application) snap on desktop with allow option to users as SaveAS . thx in advanced. abhishekche...@gmail.com mailto:abhishekchess1%40gmail.com
[flexcoders] Running Flex from HTA
I am looking for a solution of starting either a Flex or Air application from a regular win32 executable. I haven't tried AIR yet, but with Flex I have two options: Open Browser with a link to html page (standard with Flex) or with HTA file. If I do html page then I am getting sandbox violation, if HTA, then it starts fine, but after application starts loading I am getting a script error: parent.BrowserHistory is null or not an object. line 14 I have tried different IE versions, as well as different OSs. Any idea?
[flexcoders] Re: Complex Header doubt AdvancedDataGrid
Check this out: http://www.onflex.org/ted/2007/06/flex-3-wednesday-components-and- sdk.php --- In flexcoders@yahoogroups.com, shishirpra...@... shishirpra...@... wrote: Hi, I have a requirement to display data in a AdvancedDataGrid with a complexheader structure as follows : Example : |Place | Occupation | (How to show this column header as a part of Grid??) |Country|State |Field| Sub-field| |India |AP |Software | Web | |India |Punjab |Medicine | Doctor | Thus basically the grid columns are themselves grouped at a higherlevel. I am unable to show the top level column header (Place,Occupation). Could someone please tell me how can this be achieved in flex? Thanks.
Re: [flexcoders] Drawing on skinned component
Thank you for your answer Laurent. I was doing something similar, but more complicated: calling addChild(sprite) in createChildren() and then setting the index of the sprite to numChildren - 1 in updateDisplayList. Apparently the answer is to wrap the sprite in a UIComponent and adding that using addChild() (idea taken from http://casario.blogs.com/mmworld/2008/01/adding-a-sprite.html). I think the problem was that setting the position and size of the sprite using its x, y, width and height properties didn't work as expected. And, although I was setting the sprite to be as large as its parent, it had no effect (from the docs: Except for TextField and Video objects, a display object with no content (such as an empty sprite) has a width of 0, even if you try to set width to a different value.). Now, using move() and setActualSize() on the wrapper UIComponent does the trick. It works even without adding the sprite and drawing directly on the wrapper. However, this raises another question: it seems that resizing the UIComponent containing the Sprite, also resizes the Sprite; why wasn't the Sprite resized when adding it directly to the component? Alex On Fri, Feb 20, 2009 at 4:20 PM, Laurent Cozic pogopix...@yahoo.com wrote: I have tried using a Sprite as the topmost child and drawing on it I think that's the way to do it. To make sure that your sprite is always on top, just add addChild(yourSprite) at the end of the updateDisplayList function. If the sprite is not on the display list, it's going to be added to it, and if it's already there, it's going to be pushed on top of all the other sprites.
[flexcoders] Accordion problem - rowCount/scrollbar
Is there a way to essentially disable the rowCount property of an accordion and just have it show as much content (including partial rows) in the vertical space that is available? I'm finding that if I set a rowCount which takes up less space than the expanded section has available I get an annoying thin gray bounding box and the scroll bar only extends down that far. I have dead space below that before the collapsed accordion headers are displayed. If I set my rowCount to be large enough to take up more space than there is my scrollbar is screwed up - there's no slider or up/down arrow visible. Does this make sense? I really want to specify no rowCount and have it show as much as possible based on the height available. (I need to fix the height of the overall accordion component to fit the design layout.)
[flexcoders] Re: Module Issue.... Resolved!
I figured out what I was missing.. I had to go into the project properties and add the modules to load ... Eric W Dunn Adaption Technologies 281-465-3326 ed...@adpt-tech.com
[flexcoders] Optimizing Allocated Memory versus Used Memory in Flex/Air Applications
I've searched Google on this topic for a few hours with no success so I wanted to throw this out for the list to comment on. I'm working on an Air application that loads 20+ large png files. For some extreme cases we are seeing our application spike up to 800-1200m of operating system memory usage causing it to crash. I think we've resolved the issue by trial an error. However, in trying to track down the culprit I was disappointed by the information I had available from the Flex tooling. Using System.totalMemory and the Flex Builder memory optimizer, I often see a maximum memory usage of around 50m. However, the operating system (OS X or Windows will often show the same adl process using 400m or greater). From reading various articles on memory management and GC of Flash I'm assuming the difference is allocated memory versus actual in use memory. I'm further theorizing that image loading is using external OS resources or something to that effect. Is there any way to get more information from the Flash runtime about the OS level memory usage and what objects/classes are causing issues. It is kind of hard to track down a memory leak when you don't have visibility into the causes.
[flexcoders] Pointers like in C
Hello, Did the type Pointer exist in Flex/ActionScript like in C. int *ptr; Thank you, Christophe,
[flexcoders] Multiple filters on datagrid
I have four comboboxes populated from arrays. I have a datagrid populated by an ArrayCollection. I can filter the ArrayCollection from each combo box individually, but I need to filter by multiple selections. For example, I may want to filter by UserID and Carrier and Origin. The obvious solution is to run a conditional that appends a variable and use the variable in the filter conditional. if(cboUserID.text != ){ filterVar = 'item.USER_ID == cboUserID.text'; } if(cboCarrier.text != ){ filterVar = filterVar + 'item.Carrier == cboCarrier.text'; } public function processFilters(item: Object):Boolean { if (filterVar.toString()) { return true;} { return false; } The problem is that the processFilters function won't accept the filterVar as a string. Is it a matter of using a different datatype or do I need to escape characters or is this not possible? Is there a better way to do this? Thanks, Mike Baker m_ba...@goodyear.com
[flexcoders] Re: Need advise on how to display multiple SWF apps
Have you checked out the example dashboard application? http://examples.adobe.com/flex3/devnet/dashboard/main.html --- In flexcoders@yahoogroups.com, todd.bruner todd.bru...@... wrote: I have developed a small flex charting app that displays a graph based on xml returned from a web service. Works great. Now I want to display many of these charts in a single interface. The idea is to have 3 or so of these charts in a horizontal line say C1, C2, C3. At a time interval or a click event from the user, I'd like to shift C1 off screen to the left, Shift C2 to C1's former location, C3 to C2's former location and finally add C4 to C3's former location. (and the reverse if the user clicks the to the right). I'm open to doing this with JavaScript/HTML or inside another FLEX application. I thought I saw a demo (with source) once that had something similar where each picture in a gallery was a flash movie and you could walk through the gallery. Unfortunately, my googling has not turned that up again. Can anyone point me to an example that I could extrapolate from? I'm new to flex programming so I apologize if this something I should just know how to do. (pointers on where to learn that, appreciated as well.) Thanks in advance for any help or pointers. Todd
Re: [flexcoders] Pointers like in C
No, there's no pointers. All the objects are passed to functions by reference, except for the basic types (Number, String, etc.) which are passed by value. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Fri, 2/20/09, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: From: christophe_jacquelin christophe_jacque...@yahoo.fr Subject: [flexcoders] Pointers like in C To: flexcoders@yahoogroups.com Date: Friday, February 20, 2009, 4:07 PM Hello, Did the type Pointer exist in Flex/ActionScript like in C. int *ptr; Thank you, Christophe,
[flexcoders] Localization without SDK modification?
Is it possible to use Flex localization without creating additional folders in ...\Flex Builder 3 Plug-in\sdks\3.1.0\frameworks\locale ? I'm asking for the sake of version control - I would like to add localization capabilities to my Flex app but don't want to check the Flex SDK in or depend on manual actions (every new developer shouldn't be required to run 'copylocale' prior to compiling the project). I have tried to add the generated SWCs to my libs directory but that didn't work. Any solutions? Thanks, Borek
Re: [flexcoders] Re: Flex server language
It's easy to get things done / setup if you already know what you're doing. But, lets compare apples to apples here. It seems logical to me that someone wanting to install CF would start at Adobe.com , and from there could easily find and download the installers. I chose, Products ColdFusion, and download Free Trial. Login and I can either download the developer edition or the trial edition; with various options for language and/or OS. The CF install process is relatively painless across operating systems and across web servers. I have no doubt Adobe (Macromedia / Allaire) has devoted time to making that easy over the years. I doubt the download / install can be done in 10 minutes, but it is a relatively painless process. On the other hand, if I go to PHP.com (oops, I mean PHP.net ) I click the download link in the nav bar it gives me 6 options for Windows Binaries, I have 6 options of 5.2.8 for Windows. I have no idea which one is the I need; but none of them are labeled WAMP installer. What would make me, as a PHP newbie, go looking for an installer from a 3rd party? What if I don't want to install Apache or MySQL? Amy wrote: --- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote: I prefer CF because it is what I know. Since it comes from Adobe it's integration w/ Flex is top notch. After 2 days of trying, I gave up trying to get PHP to work on my dev machine; so I'm amused by the claim it can be setup w/ minimal fuss. I wonder how 10 minutes to find and install WAMP stacks up against the time to order Coldfusion, get it, and install it...? -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Relative Layout Question
Hi all, I have a question about using creative relatively-sized layouts: The default behavior http://livedocs.adobe.com/flex/3/langref/mx/containers/Panel.html of many containers is to use adopt a height just large enough to fit all of it's children content. Manually specifying a relative height (e.g. 25%) for the container will work, but only if the content is small enough. Otherwise the height is increased to fit the content. e.g. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical width=600 height=600 mx:Panel height=75% mx:Text text=This panel should take up 75% of the application's height / /mx:Panel mx:Panel height=25% mx:Accordion mx:Form mx:Text text=Item 1 / mx:Text text=Item 2 / mx:Text text=Item 3 / mx:Text text=Item 4 / /mx:Form mx:Form mx:Text text=etc / /mx:Form /mx:Accordion /mx:Panel /mx:Application Instead of taking up 25% of the application height the bottom panel will expand to fit the accordion (which in turn has a height equal to the amount of space used up by it's larged child). Is there anyway I can force the panel to only expand to 25% of the main application's height? I can set an absolute height the panel's children which will assure a maximum height, but I would like to be able to use a relative height. Any ideas? Any suggestions would be greatly appreciated. Thanks! Keith
[flexcoders] Re: (Again ) Capabilities.language or how to get keyboard Locale in Air/Flex
That's what I thought.. but it always has an array containing only en_US although I have four different keyboard layouts and none of them is en_US ! the only place where en_US is mentioned is in the project properties... I will assume it is a bug og Air framework then. --- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote: Capabilities.languages should give you the preferred languages of the user running the app, not for the compilation. http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#languages If it is playing up, you can always get it via Javascript: http://www.ebessette.com/d/ClientSideLocale 2009/2/20 alex myth_dran...@...: Well , I know Capabilities.language or Capabilities.languages gives me only the language locale the my project was compiled with But if I have to know where user comes from when he runs my application , mainly if he is from Canada or US. One way it to check the keyboard layout for en-US or en-Ca ,fr-CA how can I get it ? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: AdvancedDataGridColumnGroup dynamically speaking
If I understand your problem correctly you just need column groups. http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_09.html --- In flexcoders@yahoogroups.com, wpageiii bi...@... wrote: I am having some issues creating AdvancedDataGridColumnGroup (ing) in Actionscript... Here is what I have tried... var length : int = Storesdp.length; for( var i : int = 0; i length; i++ ) { oColumnDef_amt = new AdvancedDataGridColumn(i+_amt); oColumnDef_amt.headerText = Amount oColumnDef_amt.dataField = S+Storesdp.getItemAt(i).data+_amt; oColumnDef_amt.width = 100; oColumnDef_amt.sortable = true; oColumnDef_amt.visible = true; oColumnDef_amt.editable = false; oColumnDef_amt.wordWrap = false; oColumnDef_amt.labelFunction = amtLabelFunction; oColumnDef_amt.setStyle(textAlign,right); colArray.push(oColumnDef_amt); oColumnDef_cnt = new AdvancedDataGridColumn(i+_cnt); oColumnDef_cnt.headerText = Count; oColumnDef_cnt.dataField = S+Storesdp.getItemAt(i).data+_cnt; oColumnDef_cnt.width = 50; oColumnDef_cnt.sortable = true; oColumnDef_cnt.visible = true; oColumnDef_cnt.editable = false; oColumnDef_cnt.wordWrap = false; //oColumnDef.labelFunction = amtLabelFunction; oColumnDef_cnt.setStyle(textAlign,right); colArray.push(oColumnDef_cnt); var columnGroup:AdvancedDataGridColumnGroup=new AdvancedDataGridColumnGroup(String(i)); columnGroup.headerText=Storesdp.getItemAt(i).label; columnGroup.children.push(oColumnDef_amt); columnGroup.children.push(oColumnDef_cnt); colArray.push(columnGroup); } _columns = colArray; adg.columns = _columns; I am getting 3 columns for each loop, my Column Group appears as its own column...It seems like I am close to having this solved but missing some important pieceA nudge in the right direction is welcomed... -- View this message in context: http://www.nabble.com/AdvancedDataGridColumnGroup-dynamically-speaking-tp22111914p22111914.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: AdvancedDataGridColumnGroup dynamically speaking
You have to set ADG.groupedColumns and not columns when grouping. --- In flexcoders@yahoogroups.com, wpageiii bi...@... wrote: I am having some issues creating AdvancedDataGridColumnGroup (ing) in Actionscript... Here is what I have tried... var length : int = Storesdp.length; for( var i : int = 0; i length; i++ ) { oColumnDef_amt = new AdvancedDataGridColumn(i+_amt); oColumnDef_amt.headerText = Amount oColumnDef_amt.dataField = S+Storesdp.getItemAt(i).data+_amt; oColumnDef_amt.width = 100; oColumnDef_amt.sortable = true; oColumnDef_amt.visible = true; oColumnDef_amt.editable = false; oColumnDef_amt.wordWrap = false; oColumnDef_amt.labelFunction = amtLabelFunction; oColumnDef_amt.setStyle(textAlign,right); colArray.push(oColumnDef_amt); oColumnDef_cnt = new AdvancedDataGridColumn(i+_cnt); oColumnDef_cnt.headerText = Count; oColumnDef_cnt.dataField = S+Storesdp.getItemAt(i).data+_cnt; oColumnDef_cnt.width = 50; oColumnDef_cnt.sortable = true; oColumnDef_cnt.visible = true; oColumnDef_cnt.editable = false; oColumnDef_cnt.wordWrap = false; //oColumnDef.labelFunction = amtLabelFunction; oColumnDef_cnt.setStyle(textAlign,right); colArray.push(oColumnDef_cnt); var columnGroup:AdvancedDataGridColumnGroup=new AdvancedDataGridColumnGroup(String(i)); columnGroup.headerText=Storesdp.getItemAt(i).label; columnGroup.children.push(oColumnDef_amt); columnGroup.children.push(oColumnDef_cnt); colArray.push(columnGroup); } _columns = colArray; adg.columns = _columns; I am getting 3 columns for each loop, my Column Group appears as its own column...It seems like I am close to having this solved but missing some important pieceA nudge in the right direction is welcomed... -- View this message in context: http://www.nabble.com/AdvancedDataGridColumnGroup-dynamically-speaking-tp22111914p22111914.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Re: Flex server language
Although I prefer open source software, it's true that most of the time it's harder to use an open source version that a paid for equivalent. Coldfusion is easier to setup than PHP, Photoshop or Word are more user friendly than Gimp or OpenOffice and so on. Open source software is free but you're kind of expected to make more efforts to use it - i.e. read the doc, search Google. Once you are used to it though, it's just as good as the paid equivalents. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Fri, 2/20/09, Jeffry Houser j...@farcryfly.com wrote: From: Jeffry Houser j...@farcryfly.com Subject: Re: [flexcoders] Re: Flex server language To: flexcoders@yahoogroups.com Date: Friday, February 20, 2009, 4:29 PM It's easy to get things done / setup if you already know what you're doing. But, lets compare apples to apples here. It seems logical to me that someone wanting to install CF would start at Adobe.com , and from there could easily find and download the installers. I chose, Products ColdFusion, and download Free Trial. Login and I can either download the developer edition or the trial edition; with various options for language and/or OS. The CF install process is relatively painless across operating systems and across web servers. I have no doubt Adobe (Macromedia / Allaire) has devoted time to making that easy over the years. I doubt the download / install can be done in 10 minutes, but it is a relatively painless process. On the other hand, if I go to PHP.com (oops, I mean PHP.net ) I click the download link in the nav bar it gives me 6 options for Windows Binaries, I have 6 options of 5.2.8 for Windows. I have no idea which one is the I need; but none of them are labeled WAMP installer. What would make me, as a PHP newbie, go looking for an installer from a 3rd party? What if I don't want to install Apache or MySQL? Amy wrote: --- In flexcod...@yahoogro ups.com, Jeffry Houser j...@... wrote: I prefer CF because it is what I know. Since it comes from Adobe it's integration w/ Flex is top notch. After 2 days of trying, I gave up trying to get PHP to work on my dev machine; so I'm amused by the claim it can be setup w/ minimal fuss. I wonder how 10 minutes to find and install WAMP stacks up against the time to order Coldfusion, get it, and install it...? -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl. com/684b5h http://www.twitter. com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras .com?c=104 -- http://www.theflexs how.com http://www.jeffryho user.com -- Part of the DotComIt Brain Trust
[flexcoders] Question for Cairngorm with Flex Module?
Hi, I build a Flex Module with cairngorm ,I load the module in main application and I need to load it many times. it works fine when I load the module at first time but I get error when I load it again. The error message is : Only one ServiceLocator instance can be instantiated Do you have a idea to fix this.Thanks for help. Mark
[flexcoders] Gumbo / Flex 4 release date estimate?
I know there is never an official announcement about release dates from Adobe until right before it happens... I have searched the archives because I know it was mentioned before, but anyone have a good idea/guess when Flexbuilder 4 will be released? Even just your best (somewhat informed) idea of what quarter of 2009 it will be? Budgeting for software for the year is always tough when it comes to stuff like this - we just want to know when to put money aside for this. Thanks! Jason Merrill
RE: [flexcoders] Problem accessing data of an XML file
But first, do not use mx:Model, it will not work with e4x expressions. Instead, use mx:XML. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Paul Andrews Sent: Friday, February 20, 2009 6:34 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Problem accessing data of an XML file - Original Message - From: christophe_jacquelin christophe_jacque...@yahoo.fr mailto:christophe_jacquelin%40yahoo.fr To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Friday, February 20, 2009 11:01 AM Subject: [flexcoders] Problem accessing data of an XML file Hello, I have an XML file with points inside : root Point x0343/x0 y0350/y0 x1343/x1 y1359/y1 /Point Point x0344/x0 y0349/y0 x1344/x1 y1359/y1 /Point /root I use these instructions : mx:Model id=pointModel source=Data/Pts.xml/ mx:ArrayCollection id=EIMPoints source={pointModel.Point}/ How to access to the point values in an actionscript function to draw the points ? This should help: http://www.trilemetry.com/clients/f3gse/partIII/partIIIa/workingWithData _e4x.cfm# http://www.trilemetry.com/clients/f3gse/partIII/partIIIa/workingWithDat a_e4x.cfm Truly speaking your XML doesn't describe points, it describes point pairs, possibly line segments.. Paul Thank you, Christophe,
Re: [flexcoders] Gumbo / Flex 4 release date estimate?
Q4 2009 On 2/20/09 9:05 AM, Jason jason.merr...@bankofamerica.com wrote: I know there is never an official announcement about release dates from Adobe until right before it happens... I have searched the archives because I know it was mentioned before, but anyone have a good idea/guess when Flexbuilder 4 will be released? Even just your best (somewhat informed) idea of what quarter of 2009 it will be? Budgeting for software for the year is always tough when it comes to stuff like this - we just want to know when to put money aside for this. Thanks! Jason Merrill
RE: [flexcoders] Running Flex from HTA
Generate the wrapper withut the history management. It is a checkbox on the Project, Compiler dialog. Obviously, history managmeent makes no sense with an hta. In case anyone is following this, in this context, the tla hta means HML Application, which is a way to run html in an IE browser without the security restrictions of a browser. hta has other meanings in other contexts. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Friday, February 20, 2009 9:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Running Flex from HTA I am looking for a solution of starting either a Flex or Air application from a regular win32 executable. I haven't tried AIR yet, but with Flex I have two options: Open Browser with a link to html page (standard with Flex) or with HTA file. If I do html page then I am getting sandbox violation, if HTA, then it starts fine, but after application starts loading I am getting a script error: parent.BrowserHistory is null or not an object. line 14 I have tried different IE versions, as well as different OSs. Any idea?
RE: [flexcoders] Accordion problem - rowCount/scrollbar
I don't think I have ever set rowCount with Accordion, and have never seen the problem you describe. What happens if you do not set it? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of lanekelly5 Sent: Friday, February 20, 2009 10:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Accordion problem - rowCount/scrollbar Is there a way to essentially disable the rowCount property of an accordion and just have it show as much content (including partial rows) in the vertical space that is available? I'm finding that if I set a rowCount which takes up less space than the expanded section has available I get an annoying thin gray bounding box and the scroll bar only extends down that far. I have dead space below that before the collapsed accordion headers are displayed. If I set my rowCount to be large enough to take up more space than there is my scrollbar is screwed up - there's no slider or up/down arrow visible. Does this make sense? I really want to specify no rowCount and have it show as much as possible based on the height available. (I need to fix the height of the overall accordion component to fit the design layout.)
RE: [flexcoders] Multiple filters on datagrid
Why not just do all the logic in the filter fuction? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of m_ba...@goodyear.com Sent: Friday, February 20, 2009 11:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Multiple filters on datagrid I have four comboboxes populated from arrays. I have a datagrid populated by an ArrayCollection. I can filter the ArrayCollection from each combo box individually, but I need to filter by multiple selections. For example, I may want to filter by UserID and Carrier and Origin. The obvious solution is to run a conditional that appends a variable and use the variable in the filter conditional. if(cboUserID.text != ){ filterVar = 'item.USER_ID == cboUserID.text'; } if(cboCarrier.text != ){ filterVar = filterVar + 'item.Carrier == cboCarrier.text'; } public function processFilters(item: Object):Boolean { if (filterVar.toString()) { return true;} { return false; } The problem is that the processFilters function won't accept the filterVar as a string. Is it a matter of using a different datatype or do I need to escape characters or is this not possible? Is there a better way to do this? Thanks, Mike Baker m_ba...@goodyear.com
[flexcoders] Using Modules and Remote Objects
My flex 3 application, deployed on JBoss with BlazeDS, uses a Remote Object to get data from a class in a jar file. The application worked fine while all the code was deployed as a single Application mxml file. I then moved some of the code to a Module mxml file, which I navigated thru a Tab Navigator/VBox/Module Loader combination from inside the main application file. If the mx:RemoteObject tag was included in the Module mxml file, upon running the application nothing would display under the tab loading that module. If I removed the mx:RemoteObject tag, the module does load and display. Of course, I cannot do anything useful because I am unable to access the remote object and fetch data. If I include the mx:RemoteObject tag in the main application module, nothing displays. So how do you set up applications which use RemoteObjects and modules? Any help is much appreciated. Have a nice day!
Re: [flexcoders] Localization without SDK modification?
Hello, The frameworks/flex-config.xml file contains this entry, which tells the compiler to look for a directory for the locale: path-elementlocale/{locale}/path-element First, you can remove this entry or create an empty frameworks/locale/Your_Locale directory to make the compiler happy. I prefer to make the empty directory instead of modifying this file because the goal is to not modify the SDK. Next, add the directory containing the SWCs, wherever they are, to the library path. e.g. My directory structure: ls -R localestest.mxml ./locales: aa_AA ./locales/aa_AA: MyProjectSDK ./locales/aa_AA/MyProject: social_interactions.properties ./locales/aa_AA/SDK: (These were created with copylocale.) airframework_rb.swcframework_rb.swcrpc_rb.swc Command: mxmlc -locale=aa_AA -source-path=locales/{locale}/MyProject -library-path+=locales/{locale}/SDK test.mxml Code snippet: Label text={ResourceManager.getInstance().getString('social_interactions', 'greeting')} / - Rob On 2/20/09 8:24 AM, Borek bore...@yahoo.co.uk wrote: Is it possible to use Flex localization without creating additional folders in ...\Flex Builder 3 Plug-in\sdks\3.1.0\frameworks\locale ? I'm asking for the sake of version control - I would like to add localization capabilities to my Flex app but don't want to check the Flex SDK in or depend on manual actions (every new developer shouldn't be required to run 'copylocale' prior to compiling the project). I have tried to add the generated SWCs to my libs directory but that didn't work. Any solutions? Thanks, Borek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Running Flex from HTA
I see, thanks. --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Generate the wrapper withut the history management. It is a checkbox on the Project, Compiler dialog. Obviously, history managmeent makes no sense with an hta. In case anyone is following this, in this context, the tla hta means HML Application, which is a way to run html in an IE browser without the security restrictions of a browser. hta has other meanings in other contexts. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Friday, February 20, 2009 9:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Running Flex from HTA I am looking for a solution of starting either a Flex or Air application from a regular win32 executable. I haven't tried AIR yet, but with Flex I have two options: Open Browser with a link to html page (standard with Flex) or with HTA file. If I do html page then I am getting sandbox violation, if HTA, then it starts fine, but after application starts loading I am getting a script error: parent.BrowserHistory is null or not an object. line 14 I have tried different IE versions, as well as different OSs. Any idea?
[flexcoders] Re: Localization without SDK modification?
Hi Rob, thanks for your hints. It's all perfectly understandable except this: create an empty frameworks/locale/Your_Locale directory to make the compiler happy. You mean to create the empty directory inside the installed Flex Builder SDK? That would still mean manually modifying the SDK, though just by adding an empty directory. Thanks, Borek --- In flexcoders@yahoogroups.com, Robert Vollmar rvoll...@... wrote: Hello, The frameworks/flex-config.xml file contains this entry, which tells the compiler to look for a directory for the locale: path-elementlocale/{locale}/path-element First, you can remove this entry or create an empty frameworks/locale/Your_Locale directory to make the compiler happy. I prefer to make the empty directory instead of modifying this file because the goal is to not modify the SDK. Next, add the directory containing the SWCs, wherever they are, to the library path. e.g. My directory structure: ls -R localestest.mxml ./locales: aa_AA ./locales/aa_AA: MyProjectSDK ./locales/aa_AA/MyProject: social_interactions.properties ./locales/aa_AA/SDK: (These were created with copylocale.) airframework_rb.swcframework_rb.swcrpc_rb.swc Command: mxmlc -locale=aa_AA -source-path=locales/{locale}/MyProject -library-path+=locales/{locale}/SDK test.mxml Code snippet: Label text={ResourceManager.getInstance().getString('social_interactions', 'greeting')} / - Rob On 2/20/09 8:24 AM, Borek bore...@... wrote: Is it possible to use Flex localization without creating additional folders in ...\Flex Builder 3 Plug-in\sdks\3.1.0\frameworks\locale ? I'm asking for the sake of version control - I would like to add localization capabilities to my Flex app but don't want to check the Flex SDK in or depend on manual actions (every new developer shouldn't be required to run 'copylocale' prior to compiling the project). I have tried to add the generated SWCs to my libs directory but that didn't work. Any solutions? Thanks, Borek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Gumbo / Flex 4 release date estimate?
Thanks Matt! --- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote: Q4 2009 On 2/20/09 9:05 AM, Jason jason.merr...@... wrote:
RE: [flexcoders] Relative Layout Question
Well, first, you are specifying that the two panels take up a total of 100% of the app height, so what you describe is what you are asking for. You can use an expression in binding braces. Try this, see if it does what you want: mx:Panel height={this.height/4} Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Keith Hughitt Sent: Friday, February 20, 2009 11:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Relative Layout Question Hi all, I have a question about using creative relatively-sized layouts: The default behavior http://livedocs.adobe.com/flex/3/langref/mx/containers/Panel.html of many containers is to use adopt a height just large enough to fit all of it's children content. Manually specifying a relative height (e.g. 25%) for the container will work, but only if the content is small enough. Otherwise the height is increased to fit the content. e.g. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical width=600 height=600 mx:Panel height=75% mx:Text text=This panel should take up 75% of the application's height / /mx:Panel mx:Panel height=25% mx:Accordion mx:Form mx:Text text=Item 1 / mx:Text text=Item 2 / mx:Text text=Item 3 / mx:Text text=Item 4 / /mx:Form mx:Form mx:Text text=etc / /mx:Form /mx:Accordion /mx:Panel /mx:Application Instead of taking up 25% of the application height the bottom panel will expand to fit the accordion (which in turn has a height equal to the amount of space used up by it's larged child). Is there anyway I can force the panel to only expand to 25% of the main application's height? I can set an absolute height the panel's children which will assure a maximum height, but I would like to be able to use a relative height. Any ideas? Any suggestions would be greatly appreciated. Thanks! Keith
Re: [flexcoders] Re: Localization without SDK modification?
That's true. It's the lowest-impact change I'm aware of. On 2/20/09 9:53 AM, Borek bore...@yahoo.co.uk wrote: Hi Rob, thanks for your hints. It's all perfectly understandable except this: create an empty frameworks/locale/Your_Locale directory to make the compiler happy. You mean to create the empty directory inside the installed Flex Builder SDK? That would still mean manually modifying the SDK, though just by adding an empty directory. Thanks, Borek --- In flexcoders@yahoogroups.com, Robert Vollmar rvoll...@... wrote: Hello, The frameworks/flex-config.xml file contains this entry, which tells the compiler to look for a directory for the locale: path-elementlocale/{locale}/path-element First, you can remove this entry or create an empty frameworks/locale/Your_Locale directory to make the compiler happy. I prefer to make the empty directory instead of modifying this file because the goal is to not modify the SDK. Next, add the directory containing the SWCs, wherever they are, to the library path. e.g. My directory structure: ls -R localestest.mxml ./locales: aa_AA ./locales/aa_AA: MyProjectSDK ./locales/aa_AA/MyProject: social_interactions.properties ./locales/aa_AA/SDK: (These were created with copylocale.) airframework_rb.swcframework_rb.swcrpc_rb.swc Command: mxmlc -locale=aa_AA -source-path=locales/{locale}/MyProject -library-path+=locales/{locale}/SDK test.mxml Code snippet: Label text={ResourceManager.getInstance().getString('social_interactions', 'greeting')} / - Rob On 2/20/09 8:24 AM, Borek bore...@... wrote: Is it possible to use Flex localization without creating additional folders in ...\Flex Builder 3 Plug-in\sdks\3.1.0\frameworks\locale ? I'm asking for the sake of version control - I would like to add localization capabilities to my Flex app but don't want to check the Flex SDK in or depend on manual actions (every new developer shouldn't be required to run 'copylocale' prior to compiling the project). I have tried to add the generated SWCs to my libs directory but that didn't work. Any solutions? Thanks, Borek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Accordion problem - rowCount/scrollbar
Ack! I stand corrected - had to go back and look at my code - it is the TileList that has the rowCount behavior that I don't like. I have An accordion where each panel is a canvas that contains a TileList. So it's the TileList that I need to have look differently. I think the default rowCount is 4 for a TileList. I'd rather have it show X pixels worth of info instead. Sorry for the confusion. --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: I don't think I have ever set rowCount with Accordion, and have never seen the problem you describe. What happens if you do not set it? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of lanekelly5 Sent: Friday, February 20, 2009 10:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Accordion problem - rowCount/scrollbar Is there a way to essentially disable the rowCount property of an accordion and just have it show as much content (including partial rows) in the vertical space that is available? I'm finding that if I set a rowCount which takes up less space than the expanded section has available I get an annoying thin gray bounding box and the scroll bar only extends down that far. I have dead space below that before the collapsed accordion headers are displayed. If I set my rowCount to be large enough to take up more space than there is my scrollbar is screwed up - there's no slider or up/down arrow visible. Does this make sense? I really want to specify no rowCount and have it show as much as possible based on the height available. (I need to fix the height of the overall accordion component to fit the design layout.)
[flexcoders] Re: Accordion problem - rowCount/scrollbar
Got it figured out. The height propery of the TileList works fine in my case. --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: I don't think I have ever set rowCount with Accordion, and have never seen the problem you describe. What happens if you do not set it? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of lanekelly5 Sent: Friday, February 20, 2009 10:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Accordion problem - rowCount/scrollbar Is there a way to essentially disable the rowCount property of an accordion and just have it show as much content (including partial rows) in the vertical space that is available? I'm finding that if I set a rowCount which takes up less space than the expanded section has available I get an annoying thin gray bounding box and the scroll bar only extends down that far. I have dead space below that before the collapsed accordion headers are displayed. If I set my rowCount to be large enough to take up more space than there is my scrollbar is screwed up - there's no slider or up/down arrow visible. Does this make sense? I really want to specify no rowCount and have it show as much as possible based on the height available. (I need to fix the height of the overall accordion component to fit the design layout.)
[flexcoders] Wicked Memory Leaks and Massive Loitering Objects
Hi all, My forehead is becoming flatter by the minute as I bang my head against the wall on this one In my dashboard application, I have a tab navigator with a canvas that defines each tab. A single tab/canvas has numerous panels and each panel has a swfloader swf file. When a user clicks on a different tab, I'm trying to unload all the components on the tab (canvas.removeAll()) before making the switch...in an effort to free up the memoryI've made sure to go thru and add appropriate listener removals but when I run the app, I end up like an ant standing in front of Hoover dam, yelling Bring it on!!. After clicking the third tab, memory is maxed and FF crashes So, I've run this sucker through the flex profilertaken snapshots and compared to find loitering objects...holy crapthere are PAGES of loitering objects...with the top two offenders being 62,000 String instances taking up 3,233,462 (30.01%) of memory and 439 Class instances taking up 3,308,623 (30.71%) of memory. Upon investigation, every freakin string that is returned from my web service calls and used in the panels is saved in memory... The rest of the top ten list are: UITextField, Function, Object, Array, Button, QName, WSDLMessagePart and UIComponent. (wtf is QName???) I've poured thru what I can find on the net about getting rid of all this junk...and haven't found much. I'm seriously hoping for some help because we cannot go public beta with this until I get the memory problems ironed out. I found some information that is perplexing... 1.) The removeAll() doesn't actually unload anything from memory?? It only removes it from the container?? What!?! 2.) I scrapped the removeAll() and tried instead to use the delete() function, cycling thru all the panels on the canvas and doing a delete panel. That pukes on me with the error 1189: Attempt to delete the fixed property mdiwindow. Only dynamically defined properties can be deleted. 3.) It seems that renderer's like to hang out for a while and enjoy the show...with no clear way to get rid of them (kinda like my Uncle Jesse) So, folks, all help here would certainly be appreciatedhow in the world do I get this stuff cleared out? Should I be trying to unload the swf's or will that results in the same thing as the removeAll()...gone...but not really? Looking forward to getting this resolved, Adrian
[flexcoders] AdvancedDataGrid - exclude nodes in navigation
Is there a simple way to use the AdvancedDataGrid with hierarchical data from XML, while excluding all but certain node types from the navigation hierarchy? For example, with the following XML, I don't want the name node showing up as a folder in the nav tree. Obviously, if name were an attribute rather than an element this wouldn't be a problem. group nameGroup 1/name group nameGroup 1a/name /group /group I didn't think GroupingCollection was appropriate, since the data is already hierarchical and groups can be recursively nested.
[flexcoders] PHP data capture issue
i have a data grid in my application and am pulling data from a MYSQL DB using php. is there a way to store all that data into an array and pass it to a function or is it possible to just store the data directly coming from php into an array
[flexcoders] Re: AdvancedDataGridColumnGroup dynamically speaking
Yes, you are correct I was not doing that properly... I have modified the code so now my columns are correct...But for any grouped column the data is not displaying...For an ungrouped column the data shows...I am assuming the issue is in the dataField property of my GroupedColumn...But not sure how to fix it... Here is the new code... rawArray = JSON.decode(rawData) as Array; Storesdp = new ArrayCollection(rawArray); var colArray:Array = new Array(); var oColumnDef:AdvancedDataGridColumn; var oColumnDef_amt:AdvancedDataGridColumn; var oColumnDef_cnt:AdvancedDataGridColumn; var columnGroups:ArrayCollection = new ArrayCollection(); oColumnDef = new AdvancedDataGridColumn(); oColumnDef.headerText = Operations Report; oColumnDef.dataField = ld; oColumnDef.width = 135; oColumnDef.sortable = true; oColumnDef.visible = true; oColumnDef.editable = false; oColumnDef.wordWrap = false; columnGroups.addItem(oColumnDef); var length : int = Storesdp.length; for( var i : int = 0; i length; i++ ) { var columns:ArrayCollection = new ArrayCollection(); oColumnDef_amt = new AdvancedDataGridColumn(); oColumnDef_amt.headerText = Amount oColumnDef_amt.dataField = S+Storesdp.getItemAt(i).data+_amt; oColumnDef_amt.width = 80; oColumnDef_amt.sortable = true; oColumnDef_amt.visible = true; oColumnDef_amt.editable = false; oColumnDef_amt.wordWrap = false; oColumnDef_amt.labelFunction = amtLabelFunction; oColumnDef_amt.setStyle(textAlign,right); columns.addItem(oColumnDef_amt); oColumnDef_cnt = new AdvancedDataGridColumn(); oColumnDef_cnt.headerText = Count; oColumnDef_cnt.dataField =S+Storesdp.getItemAt(i).data+_cnt; oColumnDef_cnt.width = 60; oColumnDef_cnt.sortable = true; oColumnDef_cnt.visible = true; oColumnDef_cnt.editable = false; oColumnDef_cnt.wordWrap = false; oColumnDef_cnt.setStyle(textAlign,right); columns.addItem(oColumnDef_cnt); var columnGroup:AdvancedDataGridColumnGroup=new AdvancedDataGridColumnGroup(String(i)); columnGroup.headerText=Storesdp.getItemAt(i).label; columnGroup.children = columns.source; columnGroups.addItem(columnGroup); } adg.groupedColumns = columnGroups.source
[flexcoders] Re: Relative Layout Question
This should do the trick ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; verticalGap=0 paddingTop=0 paddingBottom=0 width=600 height=600 mx:Panel height=75% mx:Text text=This panel should take up 75% of the application's height / /mx:Panel mx:Panel id=my25panel height=25% layout=absolute title={100/(this.height/my25panel.height)} mx:Accordion mx:Form mx:Text text=Item 1 / mx:Text text=Item 2 / mx:Text text=Item 3 / mx:Text text=Item 4 / /mx:Form mx:Form mx:Text text=Item 1 / mx:Text text=Item 2 / mx:Text text=Item 3 / mx:Text text=Item 4 / /mx:Form mx:Form mx:Text text=Item 1 / mx:Text text=Item 2 / mx:Text text=Item 3 / mx:Text text=Item 4 / /mx:Form mx:Form mx:Text text=etc / /mx:Form /mx:Accordion /mx:Panel /mx:Application Or you could always try something like this ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical verticalGap=0 paddingTop=0 paddingBottom=0 height=600 mx:Script ![CDATA[ import mx.events.FlexEvent; private function setHeight(e:FlexEvent,number:Number):void { e.target.height = (this.height*number) } ]] /mx:Script mx:Panel creationComplete=setHeight(event,0.75) width=100% mx:Text text=This panel should take up 75% of the application's height / /mx:Panel mx:Panel id=mlo width=100% title={100/(this.height/mlo.height)} creationComplete=setHeight(event,0.25) mx:Accordion mx:Form mx:Text text=Item 1 / mx:Text text=Item 2 / mx:Text text=Item 3 / mx:Text text=Item 4 / /mx:Form mx:Form mx:Text text=Item 1 / mx:Text text=Item 2 / mx:Text text=Item 3 / mx:Text text=Item 4 / /mx:Form mx:Form mx:Text text=Item 1 / mx:Text text=Item 2 / mx:Text text=Item 3 / mx:Text text=Item 4 / /mx:Form mx:Form mx:Text text=Item 1 / mx:Text text=Item 2 / mx:Text text=Item 3 / mx:Text text=Item 4 / /mx:Form mx:Form mx:Text text=etc / /mx:Form /mx:Accordion /mx:Panel /mx:Application --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Well, first, you are specifying that the two panels take up a total of 100% of the app height, so what you describe is what you are asking for. You can use an expression in binding braces. Try this, see if it does what you want: mx:Panel height={this.height/4} Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Keith Hughitt Sent: Friday, February 20, 2009 11:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Relative Layout Question Hi all, I have a question about using creative relatively-sized layouts: The default behavior http://livedocs.adobe.com/flex/3/langref/mx/containers/Panel.html of many containers is to use adopt a height just large enough to fit all of it's children content. Manually specifying a relative height (e.g. 25%) for the container will work, but only if the content is small enough. Otherwise the height is increased to fit the content. e.g. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical width=600 height=600 mx:Panel height=75% mx:Text text=This panel should take up 75% of the application's height / /mx:Panel mx:Panel height=25% mx:Accordion mx:Form mx:Text text=Item 1 / mx:Text text=Item 2 / mx:Text text=Item 3 / mx:Text text=Item 4 / /mx:Form mx:Form mx:Text text=etc / /mx:Form /mx:Accordion /mx:Panel /mx:Application Instead of taking up 25% of the application height the bottom panel will expand to fit the accordion (which in turn has a height equal to the amount of space used up by it's larged child). Is there anyway I can force the panel to only expand to 25% of the main
RE: [flexcoders] Wicked Memory Leaks and Massive Loitering Objects
I like your humour Adrian! The loitering objects can be caused by many things. During my track down on leaks, I found out that most of the time, it was forgetting to set a property to null, not removing listeners as I expected, etc. Without seeing code, it's difficult to help you out properly. However, here are some things to ponder: * Allow for null values on all properties. When the null values are received, do a clean up and release all references. This is especially useful when you have bindings going on. * If you can't easily remove a listener, make it week by setting the last parameters of AddEventListeners() to true. * If you are using a Dictionary, allow for weak references: new Dictionary(true). * Item renderers do not release their reference to the data. You can built a helper function that can do this for you. (See attached file) * Alex Harui made a nice tutorial if you're not too familiar with the profiler ( http://blogs.adobe.com/aharui/2008/09/using_the_flex_builder_3x_prof.htm l) And be patient, at the end, you'll be able (unless there's a bug) to remove all bad references using the profiler. Yves CleanUp.as Description: CleanUp.as
[flexcoders] Error message in debug console?
Hi, I get the following message in debug console,do you know what this means? *** Security Sandbox Violation *** SecurityDomain 'file:///D:/WORKSPACE/Flex Builder 3/Reflex4/bin-debug/TabNavigatorDemo.html' tried to access incompatible context 'file:///D:/WORKSPACE/Flex Builder 3/Reflex4/bin-debug/TabNavigatorDemo.swf' *** Security Sandbox Violation *** Thanks for help Mark
[flexcoders] Re: event passing when source/destination are on different parent bubbling chains?
You need a loggedIn property somewhere in your model. It is initially set to false and when the user successfully logs in your controller code sets it to true. Any views that need to react to the log in have that property bound to a set method which fires off whatever code is appropriate when the value changes. --- In flexcoders@yahoogroups.com, Mic chigwel...@... wrote: Hi Ryan, we are running Cairngorm with UM extensions. Theoretically I need to dispatch a UM event with callback where that callback is to a component other than the dispatching component. And because source and destination are so far apart conventional bubbling is not an option. Scenario: Because site visitors can be visitors or clients, the login component is just one child of several of a parent component. When a site visitor attempts to log on, Cairngorm/UM handles event propagation and handling, including saving server results in modelLocator VO etc. But if the login is successful, other components need to react - their functions must be called. One such component is a child of a child that is a peer of the login component. Even if I could grab a reference to the destination component function, and send it with the UM event from the source component, this feels like ugly hardcoding. Waving a magic wand I would be able to dispatch an event from anywhere and listen for it anywhere, without the limitation of only being able to bubble up the parent chain. This seems totally logical to me as obviously it is illogical to have to design one's gui architecture based on who needs to talk to who. Thanks for listening :-) Mic. --- In flexcoders@yahoogroups.com, Ryan Graham Ryan.Graham@ wrote: In an app that has many parent and child components, how does one communicate across bubbling chains? I need to go up from a buried child component source to its parent, across to another of the parent's children, and down that chain to a child destination. Can this be done in Flex, or do I create my own event subscription component where anybody from anywhere can subscribe with a self.reference? Sounds like you're describing the controller's function in MVC architecture. Usually an event is triggered by some sort of user interaction in hopes of changing the state of the application in some way. If you store the state in some sort of centralized model somewhere, the controller can react to user events, update the model's state properties accordingly, and let any part of the view that is bound to the model update itself on property change. Is that the setup you are running right now? Are you passing data with this event that other components need? HTH, Ryan This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
RE: [flexcoders] Error message in debug console?
Myabe you broke your html wrapper? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markflex2007 Sent: Friday, February 20, 2009 1:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error message in debug console? Hi, I get the following message in debug console,do you know what this means? *** Security Sandbox Violation *** SecurityDomain 'file:///D:/WORKSPACE/Flex file:///D:\WORKSPACE\Flex Builder 3/Reflex4/bin-debug/TabNavigatorDemo.html' tried to access incompatible context 'file:///D:/WORKSPACE/Flex file:///D:\WORKSPACE\Flex Builder 3/Reflex4/bin-debug/TabNavigatorDemo.swf' *** Security Sandbox Violation *** Thanks for help Mark
[flexcoders] Re: Custom functions in SQLite using AIR
There is no way to do this currently, but, a *great* feature request. Please visit www.adobe.com/go/wish and make the request. jw --- In flexcoders@yahoogroups.com, fan...@... fan...@... wrote: Hello, Is there a way to define custom aggregation functions in SQLite using AIR? From the documentation, I noticed that AIR supports SUM, MIN, MAX, AVG, COUNT, and TOTAL: http://www.adobe.com/go/learn_air_aslr_en?localDatabaseSQLSupport.html SQLite lets you define your own functions in C: http://www.sqlite.org/c3ref/create_function.html Thanks, -george
[flexcoders] Re: design question: editing / saving complex valueobjects
--- In flexcoders@yahoogroups.com, Maciek Sakrejda msakre...@... wrote: I could, but display (since the CalendarEditor component expects data from a Calendar) is still an issue, no? Perhaps I should just be doing what the DataGrid does when outfitted with an itemEditor and just assume that I should operate on the data directly. I can re-request the unaltered object from the server if the users cancels the edit. What if you change the architecture slightly, so that you have a manager that has a working memory collection and a for display collection? It can validate whatever gets added into the working memory part and then either add it to the displayable part or discard it. I'd do something like having the displayable part being a ListCollectionView that gets a filtered subset of the working memory part (based on something like an isValis flag for each calendar entry). The view shouldn't be involved in this kind of calculation.
[flexcoders] Re: PHP data capture issue
remote object? result=myfunction(event) private function myfunction(resulte:resultEvent):void { yourArrc = new arrayCollection(ArrayUtil.toArray(resulte.result)) or mydg.dataprovider = resulte.result (and no variable on dataprovider) } dg id=mydg dataprovider={yourArrc} / --- In flexcoders@yahoogroups.com, adeelafsar adeelaf...@... wrote: i have a data grid in my application and am pulling data from a MYSQL DB using php. is there a way to store all that data into an array and pass it to a function or is it possible to just store the data directly coming from php into an array
[flexcoders] Re: Repeaters and Referencing Component IDs
I'd have to test it to know for sure, but I was just theorizing on why you were not able to access the id array for the image. I could further theorize that the image tag, being a child of the repeated container, is treated differently by Repeater than the container, but that is theorizing to support a theory that I do not even know is correct. Uh, OK. :) thanks anyway. Anyone else?
[flexcoders] Re: Error message in debug console?
Thanks. But I never change the html code. the html code is generated with flex builder. Mark
[flexcoders] Re: Relative Layout Question
Thank you both for the suggestions. You can use an expression in binding braces. Try this, see if it does what you want: mx:Panel height={this.height/4} This could work if I computed the desired height during initialization and set it, however, this would mean that I would need to update it each time the window was resized. Perhaps if it's possible I could bind the height to a variable, initialize the variable to use the desired height, and then add an event handler to update the variable each time the height changes. This isn't the most elegant solution, however. This should do the trick ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; verticalGap=0 paddingTop=0 paddingBottom=0 width=600 height=600 mx:Panel height=75% mx:Text text=This panel should take up 75% of the application's height / /mx:Panel mx:Panel id=my25panel height=25% layout=absolute title={100/(this.height/my25panel.height)} ... This also was pretty close, but not quite the effect I was looking for. Aside from needing to update the height after resizing, setting the height this way caused a scrollbar to surround the accordion. My end goal (I probably could have been more clear about this before...) is to have the entire accordion fit on screen at all times and take up 30% of the available space. Any overflow within a given accordion entry could be handled with a scrollbar. Thanks :) Keith
[flexcoders] Re: How to implement right click drill down for either PieChart or ColumnChart
I am not writing things in AIR, therefore, I cannot rely on rightclick event. I assigned contextMenu of each PieSeries and ColumnSeries to my custom ContextMenu. Therefore, I was able to solve problem #1 as you said. When a user clicks on any item of my custom ContextMenu, I catch an event called ContextMenuEvent.MENU_ITEM_SELECT. However, this event.mouseTarget does not tell me the specific data of a dataprovider that belongs to the column or the pie wedge underneath the right mouse click. Any help is greatly appreciated, Tung Chau --- In flexcoders@yahoogroups.com, sunild99 sunilbd...@... wrote: --- In flexcoders@yahoogroups.com, tungchau81 tungchau81@ wrote: I have two problems: Problem#1: I know how to create right-click menu using ContextMenu and ContextMenuItem. However, I do not know how to make the right- click menu to show up **if and only if** a user clicks on a wedge of a PieChart or a column of a ColumnChart, not anywhere else. I did this with an AreaChart by adding an event listener for mouse clicks to each AreaSeries object. I imagine you could do the same thing with PieSeries or ColumnSeries. I'm not sure what to say about your second problem, I did the above in an AIR application :) Regards, Sunil
RE: [flexcoders] Optimizing Allocated Memory versus Used Memory in Flex/Air Applications
It is unfortunate that there is no good way to see what OS level resources are being used and how. Generally, bitmaps can use resources outside that measured by system.totalMemory. If 20 large PNGs eat 800Mb, that's 40MB per image which I don't think is impossible for large PNGs Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Scott Delap Sent: Friday, February 20, 2009 7:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Optimizing Allocated Memory versus Used Memory in Flex/Air Applications I've searched Google on this topic for a few hours with no success so I wanted to throw this out for the list to comment on. I'm working on an Air application that loads 20+ large png files. For some extreme cases we are seeing our application spike up to 800-1200m of operating system memory usage causing it to crash. I think we've resolved the issue by trial an error. However, in trying to track down the culprit I was disappointed by the information I had available from the Flex tooling. Using System.totalMemory and the Flex Builder memory optimizer, I often see a maximum memory usage of around 50m. However, the operating system (OS X or Windows will often show the same adl process using 400m or greater). From reading various articles on memory management and GC of Flash I'm assuming the difference is allocated memory versus actual in use memory. I'm further theorizing that image loading is using external OS resources or something to that effect. Is there any way to get more information from the Flash runtime about the OS level memory usage and what objects/classes are causing issues. It is kind of hard to track down a memory leak when you don't have visibility into the causes.
Re: [flexcoders] Gumbo / Flex 4 release date estimate?
To elaborate on Matt's post. Adobe (Macromedia) have traditionally had an 18 month release cycle. Since Flex 3 was released about a year ago [give or take a week]; you can add 6 months to today's date and that puts us in the beginning of September. Releases often (but not always) coincide with some event. Are there any major events around that date? If I had to give you a gut feel, I expect we'll see Flex 4 shipping at Adobe Max 2009. Jason wrote: I know there is never an official announcement about release dates from Adobe until right before it happens... I have searched the archives because I know it was mentioned before, but anyone have a good idea/guess when Flexbuilder 4 will be released? Even just your best (somewhat informed) idea of what quarter of 2009 it will be? Budgeting for software for the year is always tough when it comes to stuff like this - we just want to know when to put money aside for this. Thanks! Jason Merrill -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
RE: [flexcoders] Optimizing Allocated Memory versus Used Memory in Flex/Air Applications
Wonder if the process explorer from sysinternals would provide any help? Greg From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Friday, February 20, 2009 3:01 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Optimizing Allocated Memory versus Used Memory in Flex/Air Applications It is unfortunate that there is no good way to see what OS level resources are being used and how. Generally, bitmaps can use resources outside that measured by system.totalMemory. If 20 large PNGs eat 800Mb, that's 40MB per image which I don't think is impossible for large PNGs Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Scott Delap Sent: Friday, February 20, 2009 7:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Optimizing Allocated Memory versus Used Memory in Flex/Air Applications I've searched Google on this topic for a few hours with no success so I wanted to throw this out for the list to comment on. I'm working on an Air application that loads 20+ large png files. For some extreme cases we are seeing our application spike up to 800-1200m of operating system memory usage causing it to crash. I think we've resolved the issue by trial an error. However, in trying to track down the culprit I was disappointed by the information I had available from the Flex tooling. Using System.totalMemory and the Flex Builder memory optimizer, I often see a maximum memory usage of around 50m. However, the operating system (OS X or Windows will often show the same adl process using 400m or greater). From reading various articles on memory management and GC of Flash I'm assuming the difference is allocated memory versus actual in use memory. I'm further theorizing that image loading is using external OS resources or something to that effect. Is there any way to get more information from the Flash runtime about the OS level memory usage and what objects/classes are causing issues. It is kind of hard to track down a memory leak when you don't have visibility into the causes.
[flexcoders] ToggleButtonBar xml based dataProvider
Is that possible? Thanks
[flexcoders] Re: Send a confirmation Email
You could try http://www.bytearray.org/?p=27 --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, How to send a confirmation Email in the flex program when the user get register ? Thank you, Christophe,
Re: [flexcoders] (Again ) Capabilities.language or how to get keyboard Locale in Air/Flex
Oh right. It is probably returning the preferred languages in Internet Options Languages (if you're on Windows IE), rather than the OS language locales. Unfortunately because it is somewhat hidden in the control panel, most people have it set to en-US by default. But I think if you install Windows with a different language UI, then it will default to that locale for IE. Air uses the IE settings for this I believe. I don't think there's a 100% solid method in determining this, but the above means it will work some of the time. Maybe there's a file somewhere on the system that you can read in Air to work this out? Unlikely though. On 2/21/09, alex myth_dran...@yahoo.com wrote: That's what I thought.. but it always has an array containing only en_US although I have four different keyboard layouts and none of them is en_US ! the only place where en_US is mentioned is in the project properties... I will assume it is a bug og Air framework then. --- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote: Capabilities.languages should give you the preferred languages of the user running the app, not for the compilation. http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#languages If it is playing up, you can always get it via Javascript: http://www.ebessette.com/d/ClientSideLocale 2009/2/20 alex myth_dran...@...: Well , I know Capabilities.language or Capabilities.languages gives me only the language locale the my project was compiled with But if I have to know where user comes from when he runs my application , mainly if he is from Canada or US. One way it to check the keyboard layout for en-US or en-Ca ,fr-CA how can I get it ? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] XML Parsing - maintaining a record pointer
hi, flexCoders! thanks for all ur help in the past! Does Flex maintain your record pointer while reading an xml file? basically what i want to do is read each line and when I hit certain values, read on for 4 or 5 records, then return to the original process without starting back at the last record read at the first read. I can do this the hard way of course by maintaining my own pointer and treating the file as a giant array, but surely there is an easier way? for each (var xmlNode:XML in xml.children()) { // do stuff // if(xmlNode.something==aValue) { for each (var xmlNode:XML read on into the file thanks, Libby
Re: [flexcoders] XML Parsing - maintaining a record pointer
You could use a different variable name in the inner loop, that way it won't change the object in the outer loop. On 2/21/09, Libby libbychan...@yahoo.com wrote: hi, flexCoders! thanks for all ur help in the past! Does Flex maintain your record pointer while reading an xml file? basically what i want to do is read each line and when I hit certain values, read on for 4 or 5 records, then return to the original process without starting back at the last record read at the first read. I can do this the hard way of course by maintaining my own pointer and treating the file as a giant array, but surely there is an easier way? for each (var xmlNode:XML in xml.children()) { // do stuff // if(xmlNode.something==aValue) { for each (var xmlNode:XML read on into the file thanks, Libby -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Optimizing Allocated Memory versus Used Memory in Flex/Air Applications
Alex, Sorry but i think you are wrong here... An uncompressed png (ready for drawing, ie in some form of bitmap data) can be far bigger than 40MBs. Example, 2000x2000 png: 2000 x 2000 pixels x 4 channels per pixel x 4 bytes per pixel(32bit int) = around 60MBs Let me know if i got my calculations wrong thought... On Fri, Feb 20, 2009 at 10:01 PM, Alex Harui aha...@adobe.com wrote: It is unfortunate that there is no good way to see what OS level resources are being used and how. Generally, bitmaps can use resources outside that measured by system.totalMemory. If 20 large PNGs eat 800Mb, that's 40MB per image which I don't think is impossible for large PNGs Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Scott Delap *Sent:* Friday, February 20, 2009 7:51 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Optimizing Allocated Memory versus Used Memory in Flex/Air Applications I've searched Google on this topic for a few hours with no success so I wanted to throw this out for the list to comment on. I'm working on an Air application that loads 20+ large png files. For some extreme cases we are seeing our application spike up to 800-1200m of operating system memory usage causing it to crash. I think we've resolved the issue by trial an error. However, in trying to track down the culprit I was disappointed by the information I had available from the Flex tooling. Using System.totalMemory and the Flex Builder memory optimizer, I often see a maximum memory usage of around 50m. However, the operating system (OS X or Windows will often show the same adl process using 400m or greater). From reading various articles on memory management and GC of Flash I'm assuming the difference is allocated memory versus actual in use memory. I'm further theorizing that image loading is using external OS resources or something to that effect. Is there any way to get more information from the Flash runtime about the OS level memory usage and what objects/classes are causing issues. It is kind of hard to track down a memory leak when you don't have visibility into the causes. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Optimizing Allocated Memory versus Used Memory in Flex/Air Applications
I think Alex said that size was not impossible and you read it as possible. So I think he's agreeing with you. I figured that a compressed PNG would be far larger in a bitmap data format. Scott
[flexcoders] ColdFusion Application variables with LCDS
Hi, I'd like to set an application variable on my CF server which is recognized in the various cfc's I'm using through LiveCycle Data Services. However, if I set a variable inside an Application.cfm file, it doesn't get recognized inside the cfc functions when called through LCDS Destinations. I've confirmed that the application.cfm file is getting called, and my application scope variables are getting set. I've also confirmed that the application.cfm file is getting initialized before the lcds data call to the cfc. However, once the CFC gets run, it errors out saying that XXX is undefined in Application. I've changed the scope parameter inside my Destination definitions in data-management-config.xml to be application instead of request but this didn't help either. Anyone else offer some insight on this? Thanks in advance, Brendan -- Brendan Meutzner http://www.meutzner.com/blog/
[flexcoders] Re: Error message in debug console?
Normally Security Sandbox Violation errors will come when trying to access local resources. If you are using any server side applcaitions like Java/php means then try tp access the files after creating one applicaiton for Flex Gnanz.../ http://gnanz-flexworld.blogspot.com --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: Hi, I get the following message in debug console,do you know what this means? *** Security Sandbox Violation *** SecurityDomain 'file:///D:/WORKSPACE/Flex Builder 3/Reflex4/bin-debug/TabNavigatorDemo.html' tried to access incompatible context 'file:///D:/WORKSPACE/Flex Builder 3/Reflex4/bin-debug/TabNavigatorDemo.swf' *** Security Sandbox Violation *** Thanks for help Mark
[flexcoders] Re: AdvancedDataGridColumnGroup dynamically speaking
Found the issue...I left this in my code...as I was doing some experimenting... var columnGroup:AdvancedDataGridColumnGroup=new AdvancedDataGridColumnGroup(String(i)); Changing to... var columnGroup:AdvancedDataGridColumnGroup=new AdvancedDataGridColumnGroup(); Solved the issue...Now is there a way to name these columns with an id...So that later I can set the visibility true or false?
Re: [flexcoders] Optimizing Allocated Memory versus Used Memory in Flex/Air Applications
Yap, you are right... Sorry Alex... On Fri, Feb 20, 2009 at 11:31 PM, Scott Delap scott-li...@richclientsolutions.com wrote: I think Alex said that size was not impossible and you read it as possible. So I think he's agreeing with you. I figured that a compressed PNG would be far larger in a bitmap data format. Scott -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders]
i am working on a project that is displaying html in the Flex Text component (via htmlText). it works great for showing basic html (b, i, u) but when i add an image it does not show the correct size. - is there a way to know when the image(s) have loaded in the text component? - i looked at a property called textHeight and it has a greater height than the height property. when i set the component height to this value it shows almost all the image but it is still too short - when debugging the text component i saw a yellow property in the debugger called, $height. this value had the correct height of the text component with image. any way to get this value? - is there a way to undefine the height so that it goes back to autosizing itself? ie, mytext.height = null; // component remeasures itself thanks friends
RE: [flexcoders] XML Parsing - maintaining a record pointer
I would suggest that you do not think in terms of reading the file. Rather, use e4x to find the node you want to process, then go from there. OTOH, it is acceptable to manipulate an XMLList, especially if your data is a single level. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sam Lai Sent: Friday, February 20, 2009 4:12 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] XML Parsing - maintaining a record pointer You could use a different variable name in the inner loop, that way it won't change the object in the outer loop. On 2/21/09, Libby libbychan...@yahoo.com mailto:libbychantel%40yahoo.com wrote: hi, flexCoders! thanks for all ur help in the past! Does Flex maintain your record pointer while reading an xml file? basically what i want to do is read each line and when I hit certain values, read on for 4 or 5 records, then return to the original process without starting back at the last record read at the first read. I can do this the hard way of course by maintaining my own pointer and treating the file as a giant array, but surely there is an easier way? for each (var xmlNode:XML in xml.children()) { // do stuff // if(xmlNode.something==aValue) { for each (var xmlNode:XML read on into the file thanks, Libby -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf -1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links
RE: [flexcoders] ToggleButtonBar xml based dataProvider
Certainly. Why would you think not? Though to speak accurately, you would use XMLList or XMLListCollection as the dataProvider. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Friday, February 20, 2009 3:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ToggleButtonBar xml based dataProvider Is that possible? Thanks
RE: [flexcoders] Re: Error message in debug console?
Did you clean the project? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markflex2007 Sent: Friday, February 20, 2009 2:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Error message in debug console? Thanks. But I never change the html code. the html code is generated with flex builder. Mark
[flexcoders] Grid with header sections spanning the whole grid
I need to build a DataGrid that has header rows which span the whole grid. Basically, it's an invoice and items on the invoice are grouped by type. For each group, I want to have a row which spans across the whole grid, with text that will also span across multiple columns. I am hoping I can do this with the AdvancedDataGrid control but I haven't had much luck with the key requirement of having header rows that can span multiple columns. I also don't want it to have a tree structure. Any suggestions? Thanks
[flexcoders] Re: Relative Layout Question
Here you go, i think this is it :) if so, always pay attention to the absolute and vertical layout of the components ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; verticalGap=0 paddingTop=0 paddingBottom=0 width=600 height=600 mx:Panel height=70% mx:Text text=This panel should take up 75% of the application's height / /mx:Panel mx:Panel id=my25panel height=30% layout=absolute title={100/(this.height/my25panel.height)} width=100% verticalScrollPolicy=off horizontalScrollPolicy=off mx:Accordion height=100% width=100% mx:Canvas verticalScrollPolicy=on height=100% width=100% mx:VBox verticalScrollPolicy=off height=100% width=100% mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ /mx:VBox /mx:Canvas mx:Canvas verticalScrollPolicy=on height=100% width=100% mx:VBox verticalScrollPolicy=off height=100% width=100% mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ /mx:VBox /mx:Canvas mx:Canvas verticalScrollPolicy=on height=100% width=100% mx:VBox verticalScrollPolicy=off height=100% width=100% mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ mx:TextInput/ /mx:VBox /mx:Canvas /mx:Accordion /mx:Panel /mx:Application