[flexcoders] Re: Cursor Error: Bookmark no longer valid.
Hi, Here is my debug result Error: Bookmark no longer valid. at ListCollectionViewCursor/seek()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:2055] at mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\collections\HierarchicalCollectionViewCursor.as:1116] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::HierarchicalCollectionView/nestedCollectionChangeHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\collections\HierarchicalCollectionView.as:1199] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ListCollectionView/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:833] at mx.collections::ListCollectionView/addItemsToView()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:931] at mx.collections::ListCollectionView/listChangeHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1051] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ArrayList/internalDispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ArrayList.as:510] at mx.collections::ArrayList/addItemAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ArrayList.as:311] at mx.collections::ListCollectionView/addItemAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:501] at components.section_page_manager::section_page_add_form/addPage()[D:\xampp\htdocs\flex\survey_builder_v3\src\components\section_page_manager\section_page_add_form.mxml:206] at components.section_page_manager::section_page_add_form/doSave()[D:\xampp\htdocs\flex\survey_builder_v3\src\components\section_page_manager\section_page_add_form.mxml:93] at components.section_page_manager::section_page_editor/__btnSave_click()[D:\xampp\htdocs\flex\survey_builder_v3\src\components\section_page_manager\section_page_editor.mxml:94]
[flexcoders] Creating a DataProvider by dynamic loading
Hi helper, I have a DataGrid and I need to feed its DataProvider dynamically, I have difficulties doing that. my columns: var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(date); columns.addItem(cell2); and differnt data for each row. How do I set all this columns and data (that need to be feed into ArrayCollections as well) into a main ArrayCollection that will have the following structure? parent:'root1',col1:100,date:myObject[0],col2:33 parent:'root1',col1:5,date:myObject[1],col2:21 parent:'root2',col1:11,date:myObject[2],col2:5 Here the column name and values are static, I need all to be dynamic, to be sent to the DataGrid as the DataProvider, Thanks Jo
[flexcoders] add tooltip in Line chart
hello frnd, plz check theis code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical verticalAlign=top horizontalAlign=center backgroundGradientColors=0x00,0x323232] paddingTop=0 viewSourceURL=srcview/index.html mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var expensesAC:ArrayCollection = new ArrayCollection ( [ { Month: Jan, Profit: 2000, Expenses: 1500, Amount: 450 }, { Month: Feb, Profit: 1000, Expenses: 200, Amount: 600 }, { Month: Mar, Profit: 1500, Expenses: 500, Amount: 300 }, { Month: Apr, Profit: 1800, Expenses: 1200, Amount: 900 }, { Month: May, Profit: 2400, Expenses: 575, Amount: 500 } ]); ]] /mx:Script mx:Panel title=LineChart Control layout=horizontal color=0xff borderAlpha=0.15 width=600 height=240 paddingTop=10 paddingRight=5 paddingBottom=10 paddingLeft=5 horizontalAlign=center mx:LineChart id=linechart color=0x323232 height=100% showDataTips=true dataProvider={expensesAC} mx:horizontalAxis mx:CategoryAxis categoryField=Month/ /mx:horizontalAxis mx:series mx:LineSeries yField=Profit form=curve displayName=Profit/ /mx:series /mx:LineChart mx:Legend dataProvider={linechart} color=0x323232/ /mx:Panel /mx:Application this code is working fine, but is thr any way with i can do the 1 thing that is when i rollover on any name of month(which at X axis, like Jan), it should show tooltip, and on this tooltip i can see the profit , month,amount like save i can see when i rollover on that line. thx in advanced, :)
[flexcoders] Re: Unloading a swf that includes a ViewStack can cause a RTE
Can anyone help on this? At the moment I am a little stuck? Thanks Rob --- In flexcoders@yahoogroups.com, rob_mcmichael rob_mcmich...@... wrote: Hi Alex, The stack is as follows: === TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::HistoryManagerImpl/calcCRC()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\HistoryManagerImpl.as:392] at mx.managers::HistoryManagerImpl()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\HistoryManagerImpl.as:268] at mx.managers::HistoryManagerImpl$/getInstance()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\HistoryManagerImpl.as:215] at mx.core::Singleton$/getInstance()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Singleton.as:113] at mx.managers::HistoryManager$/get impl()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\HistoryManager.as:96] at mx.managers::HistoryManager$/unregister()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\HistoryManager.as:144] at mx.containers::ViewStack/removedFromStageHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\containers\ViewStack.as:1188] at flash.display::Loader/_unload() at flash.display::Loader/unload() at mx.controls::SWFLoader/load()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1318] at mx.controls::SWFLoader/commitProperties()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1167] at mx.core::UIComponent/validateProperties()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5807] at mx.managers::LayoutManager/validateProperties()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:539] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:689] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628] at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568] Thanks Rob --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: What is the exact stack trace of the RTE? 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 rob_mcmichael Sent: Tuesday, February 17, 2009 7:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Unloading a swf that includes a ViewStack can cause a RTE Hi all, I am sill seeing this bug when trying to unload a SWF in an AIR 1.5 project: http://bugs.adobe.com/jira/browse/SDK-17422 I have tried everything mentioned but no avail. If anyone can help, please let me know. Thanks Rob
[flexcoders] Directory for SWF files
Hello, Usually the files on a web site are in the directory httpdocs. But the SWF are public in such a case. At which location to put SWF files in a web site ? Thank you, Christophe
[flexcoders] Component/tool required
Hi everybody, I'm currently working on a project which needs autocomplete tool(textbox) i tried making one by myself but dint work out well. can any1 help me out. do any1 have an autocomplete tool/component wher the user can both type his data and also select from the auto list generated when he starts typing it... thnks in advance.. hoping for a positive response if anybody has a solution pls mail it to venkate...@outdu.com
[flexcoders] NavBar - setTargetViewStack
Hi there, I've written a code behind that manages a ViewStack and a TabBar (it's almost like a PureMVC mediator without actually being a mediator). The ViewStack is the dataprovider of the TabBar. When I try to test this I get the problem that the dataprovider is always null. I've attached the Flex source code and put it in debug mode and I've noticed it jumps to the setTargetViewStack method of NavBar: private function setTargetViewStack( newStack:Object /* can be String or ViewStack */):void { // If this property is set at creation time, the target view stack // may not exist yet. In this case, we just save off the requested // target stack and set it later. if (!measurementHasBeenCalled newStack) { pendingTargetStack = newStack; invalidateProperties(); } else { _setTargetViewStack(newStack); } } Measurement hasn't been called so my dataProvider is null (well, pending). Is there any way to force this? It's making it really really difficult to do a test! Thanks in advance!
[flexcoders] Re: Creating a DataProvider by dynamic loading
If you want to add columns dynamically, you need something like this var colNum:int=5 for(var i:int=0;icolNum;i++) { var col:DataGridColumn = new DataGridColumn(); col.dataField = some value1; col.headerText = some value2; myDataGrid.columns.push(col); } you'd then generate your dataProvider (could be an ArrayCollection, Array, XML, whatever) myDataGrid.dataProvider = myDataProvider; hope this helps bh --- In flexcoders@yahoogroups.com, yossi.baram yossi.ba...@... wrote: Hi helper, I have a DataGrid and I need to feed its DataProvider dynamically, I have difficulties doing that. my columns: var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(date); columns.addItem(cell2); and differnt data for each row. How do I set all this columns and data (that need to be feed into ArrayCollections as well) into a main ArrayCollection that will have the following structure? parent:'root1',col1:100,date:myObject[0],col2:33 parent:'root1',col1:5,date:myObject[1],col2:21 parent:'root2',col1:11,date:myObject[2],col2:5 Here the column name and values are static, I need all to be dynamic, to be sent to the DataGrid as the DataProvider, Thanks Jo
[flexcoders] Re: Creating a DataProvider by dynamic loading
Thanks man, I am doing something like you mensioned for columns, my problem is the dataprovider itself that I set to the DataGrid. Can I set it dynamically without the need to set columnName:columnValue statically? To be clear :) My current dataprovider is set accornigly in an Array: {parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5} I need to build it dymanically because the column names(the ones before the semicolon) can be different and as I said I get them and the values(objects) from Arrays. Thanks again Jo --- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote: If you want to add columns dynamically, you need something like this var colNum:int=5 for(var i:int=0;icolNum;i++) { var col:DataGridColumn = new DataGridColumn(); col.dataField = some value1; col.headerText = some value2; myDataGrid.columns.push(col); } you'd then generate your dataProvider (could be an ArrayCollection, Array, XML, whatever) myDataGrid.dataProvider = myDataProvider; hope this helps bh --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Hi helper, I have a DataGrid and I need to feed its DataProvider dynamically, I have difficulties doing that. my columns: var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(date); columns.addItem(cell2); and differnt data for each row. How do I set all this columns and data (that need to be feed into ArrayCollections as well) into a main ArrayCollection that will have the following structure? parent:'root1',col1:100,date:myObject[0],col2:33 parent:'root1',col1:5,date:myObject[1],col2:21 parent:'root2',col1:11,date:myObject[2],col2:5 Here the column name and values are static, I need all to be dynamic, to be sent to the DataGrid as the DataProvider, Thanks Jo
Re: [flexcoders] Directory for SWF files
Does it matter if it is public? It has to be accessible to the user if they are to view it anyway. You could make it only available to logged in users, but at the end of the day, if the user wants to download it, they can and there's nothing you can do about it. 2009/2/24 christophe_jacquelin christophe_jacque...@yahoo.fr: Hello, Usually the files on a web site are in the directory httpdocs. But the SWF are public in such a case. At which location to put SWF files in a web site ? Thank you, Christophe -- 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: Creating a DataProvider by dynamic loading
Can I set it dynamically without the need to set columnName:columnValue statically? Sorry i'm a bit unclear. Another suggestion ... You want to create DatgridColumns based on whats in the DataProvider. If your dataProvider Array is something like the following var myArray:Array = [{parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5}]; then why not do something like this var row:Object = myArray[0]; for(var obj1:Object in row) { var col:DataGridColumn = new DataGridColumn(); col.dataField = obj1; } --- In flexcoders@yahoogroups.com, yossi.baram yossi.ba...@... wrote: Thanks man, I am doing something like you mensioned for columns, my problem is the dataprovider itself that I set to the DataGrid. Can I set it dynamically without the need to set columnName:columnValue statically? To be clear :) My current dataprovider is set accornigly in an Array: {parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5} I need to build it dymanically because the column names(the ones before the semicolon) can be different and as I said I get them and the values(objects) from Arrays. Thanks again Jo --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: If you want to add columns dynamically, you need something like this var colNum:int=5 for(var i:int=0;icolNum;i++) { var col:DataGridColumn = new DataGridColumn(); col.dataField = some value1; col.headerText = some value2; myDataGrid.columns.push(col); } you'd then generate your dataProvider (could be an ArrayCollection, Array, XML, whatever) myDataGrid.dataProvider = myDataProvider; hope this helps bh --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Hi helper, I have a DataGrid and I need to feed its DataProvider dynamically, I have difficulties doing that. my columns: var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(date); columns.addItem(cell2); and differnt data for each row. How do I set all this columns and data (that need to be feed into ArrayCollections as well) into a main ArrayCollection that will have the following structure? parent:'root1',col1:100,date:myObject[0],col2:33 parent:'root1',col1:5,date:myObject[1],col2:21 parent:'root2',col1:11,date:myObject[2],col2:5 Here the column name and values are static, I need all to be dynamic, to be sent to the DataGrid as the DataProvider, Thanks Jo
[flexcoders] adobe air and flex 3.3 - Invoke Event
Hi there, I found this article on the adobe site: http://www.adobe.com/devnet/air/flex/quickstart/startup_options.html The download links don't really work though and it says that you need the version 3.3 of flex sdk to get the example to work. I installed a pre release 3.3 but there's still noreason property in the InvokeEvent. Basically all I need to do is to determine if the Air app was launched at login or manually by the user. In 3.2 the (and 3.3) the arguments array of the InvokeEvent does not give me this information. Any ideas? Thank you! Robin
[flexcoders] Re: Creating a DataProvider by dynamic loading
Hi man, I am very sorry to say that I was not clear :( myArray is what I need to create, I dont have it (I just gave as example of what I need to create). This is basically my problem, How to build it based on column array and on data array? Only then I will assign it to the DataGrid Thanks for your time, realy --- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote: Can I set it dynamically without the need to set columnName:columnValue statically? Sorry i'm a bit unclear. Another suggestion ... You want to create DatgridColumns based on whats in the DataProvider. If your dataProvider Array is something like the following var myArray:Array = [{parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5}]; then why not do something like this var row:Object = myArray[0]; for(var obj1:Object in row) { var col:DataGridColumn = new DataGridColumn(); col.dataField = obj1; } --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Thanks man, I am doing something like you mensioned for columns, my problem is the dataprovider itself that I set to the DataGrid. Can I set it dynamically without the need to set columnName:columnValue statically? To be clear :) My current dataprovider is set accornigly in an Array: {parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5} I need to build it dymanically because the column names(the ones before the semicolon) can be different and as I said I get them and the values(objects) from Arrays. Thanks again Jo --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: If you want to add columns dynamically, you need something like this var colNum:int=5 for(var i:int=0;icolNum;i++) { var col:DataGridColumn = new DataGridColumn(); col.dataField = some value1; col.headerText = some value2; myDataGrid.columns.push(col); } you'd then generate your dataProvider (could be an ArrayCollection, Array, XML, whatever) myDataGrid.dataProvider = myDataProvider; hope this helps bh --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Hi helper, I have a DataGrid and I need to feed its DataProvider dynamically, I have difficulties doing that. my columns: var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(date); columns.addItem(cell2); and differnt data for each row. How do I set all this columns and data (that need to be feed into ArrayCollections as well) into a main ArrayCollection that will have the following structure? parent:'root1',col1:100,date:myObject[0],col2:33 parent:'root1',col1:5,date:myObject[1],col2:21 parent:'root2',col1:11,date:myObject[2],col2:5 Here the column name and values are static, I need all to be dynamic, to be sent to the DataGrid as the DataProvider, Thanks Jo
[flexcoders] Re: Creating a DataProvider by dynamic loading
Thanks for your time, realy thats okay. Can you send an example of column array and data array? --- In flexcoders@yahoogroups.com, yossi.baram yossi.ba...@... wrote: Hi man, I am very sorry to say that I was not clear :( myArray is what I need to create, I dont have it (I just gave as example of what I need to create). This is basically my problem, How to build it based on column array and on data array? Only then I will assign it to the DataGrid Thanks for your time, realy --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: Can I set it dynamically without the need to set columnName:columnValue statically? Sorry i'm a bit unclear. Another suggestion ... You want to create DatgridColumns based on whats in the DataProvider. If your dataProvider Array is something like the following var myArray:Array = [{parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5}]; then why not do something like this var row:Object = myArray[0]; for(var obj1:Object in row) { var col:DataGridColumn = new DataGridColumn(); col.dataField = obj1; } --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Thanks man, I am doing something like you mensioned for columns, my problem is the dataprovider itself that I set to the DataGrid. Can I set it dynamically without the need to set columnName:columnValue statically? To be clear :) My current dataprovider is set accornigly in an Array: {parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5} I need to build it dymanically because the column names(the ones before the semicolon) can be different and as I said I get them and the values(objects) from Arrays. Thanks again Jo --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: If you want to add columns dynamically, you need something like this var colNum:int=5 for(var i:int=0;icolNum;i++) { var col:DataGridColumn = new DataGridColumn(); col.dataField = some value1; col.headerText = some value2; myDataGrid.columns.push(col); } you'd then generate your dataProvider (could be an ArrayCollection, Array, XML, whatever) myDataGrid.dataProvider = myDataProvider; hope this helps bh --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Hi helper, I have a DataGrid and I need to feed its DataProvider dynamically, I have difficulties doing that. my columns: var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(date); columns.addItem(cell2); and differnt data for each row. How do I set all this columns and data (that need to be feed into ArrayCollections as well) into a main ArrayCollection that will have the following structure? parent:'root1',col1:100,date:myObject[0],col2:33 parent:'root1',col1:5,date:myObject[1],col2:21 parent:'root2',col1:11,date:myObject[2],col2:5 Here the column name and values are static, I need all to be dynamic, to be sent to the DataGrid as the DataProvider, Thanks Jo
Re: [flexcoders] Re: Flex Apps on Flash 10 Crashes Browser
On Monday 23 Feb 2009, Don Kerr wrote: Profiler looks good. Apps with small memory usage and apps with much more, all crash the browser equally. Do you have any 3rd party add ons installed. Try turning them off. Also try with any virus scanner, ad blocker etc. off. Do you know if you have to compile/debug Flex Builder 3 in Flash 10 debugger if you want the app to work in Flash 10? Currently I have Flash 9 debug running on Flex 3. I think you are asking if you can install the v10 debug player in a browser, and Builder will launch that ? In which case, yes it's fine. -- Tom Chiverton Helping to dramatically administrate killer cross-media information This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Modify image pixels
Hello, How to modify directly the pixels of a mx:image / object ? Then how to redraw the modified image. Thank you, Christophe,
[flexcoders] Re: Creating a DataProvider by dynamic loading
Hi man, I am very sorry to say that I was not clear :( myArray is what I need to create, I dont have it (I just gave as example of what I need to create). This is basically my problem, How to build it based on column array and on data array? Only then I will assign it to the DataGrid Thanks for your time, realy --- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote: Can I set it dynamically without the need to set columnName:columnValue statically? Sorry i'm a bit unclear. Another suggestion ... You want to create DatgridColumns based on whats in the DataProvider. If your dataProvider Array is something like the following var myArray:Array = [{parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5}]; then why not do something like this var row:Object = myArray[0]; for(var obj1:Object in row) { var col:DataGridColumn = new DataGridColumn(); col.dataField = obj1; } --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Thanks man, I am doing something like you mensioned for columns, my problem is the dataprovider itself that I set to the DataGrid. Can I set it dynamically without the need to set columnName:columnValue statically? To be clear :) My current dataprovider is set accornigly in an Array: {parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5} I need to build it dymanically because the column names(the ones before the semicolon) can be different and as I said I get them and the values(objects) from Arrays. Thanks again Jo --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: If you want to add columns dynamically, you need something like this var colNum:int=5 for(var i:int=0;icolNum;i++) { var col:DataGridColumn = new DataGridColumn(); col.dataField = some value1; col.headerText = some value2; myDataGrid.columns.push(col); } you'd then generate your dataProvider (could be an ArrayCollection, Array, XML, whatever) myDataGrid.dataProvider = myDataProvider; hope this helps bh --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Hi helper, I have a DataGrid and I need to feed its DataProvider dynamically, I have difficulties doing that. my columns: var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(date); columns.addItem(cell2); and differnt data for each row. How do I set all this columns and data (that need to be feed into ArrayCollections as well) into a main ArrayCollection that will have the following structure? parent:'root1',col1:100,date:myObject[0],col2:33 parent:'root1',col1:5,date:myObject[1],col2:21 parent:'root2',col1:11,date:myObject[2],col2:5 Here the column name and values are static, I need all to be dynamic, to be sent to the DataGrid as the DataProvider, Thanks Jo
[flexcoders] Re: Creating a DataProvider by dynamic loading
Hi, This is my columns: var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(cell2); columns.addItem(dummy); let say 3 rows: var data_:ArrayCollection = new ArrayCollection; rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],55); rowData_.put(columns[2],100); rowData_.put(columns[3],myObject[0]); data_.addItem(rowData_); rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],34); rowData_.put(columns[2],10); rowData_.put(columns[3],myObject[1]); data_.addItem(rowData_); rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],6); rowData_.put(columns[2],60); rowData_.put(columns[3],myObject[2]); data_.addItem(rowData_); My Map (which is a HashMap): package { import flash.utils.Dictionary; public class Map { private var keysList:Array = new Array(); private var valuesList:Array = new Array(); private var entries:Dictionary = new Dictionary(); public function Map(){ } public function get length():uint { return valuesList.length; } public function get(key:Object):Object { return entries[key]; } public function getKeyAt(index:uint):Object { return keysList[index]; } public function getKeysList():Array { return keysList.slice(); } public function getValueAt(index:uint):Object { return valuesList[index]; } public function getValuesList():Array { return valuesList.slice(); } public function put(key:Object, value:Object):void { entries[key] = value; keysList.push(key); valuesList.push(value); } public function remove(key:Object):void { delete entries[key]; var index:int = keysList.indexOf(key); if (index -1) { keysList.splice(index, 1); valuesList.splice(index, 1); } } } } The result is data_ ArrayCollection that holds a list of column/value hashmap which is good. How do I take this array and translate it to a dataProvider for the DataGrid, or set it differently to the grid? Thanks man --- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote: Thanks for your time, realy thats okay. Can you send an example of column array and data array? --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Hi man, I am very sorry to say that I was not clear :( myArray is what I need to create, I dont have it (I just gave as example of what I need to create). This is basically my problem, How to build it based on column array and on data array? Only then I will assign it to the DataGrid Thanks for your time, realy --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: Can I set it dynamically without the need to set columnName:columnValue statically? Sorry i'm a bit unclear. Another suggestion ... You want to create DatgridColumns based on whats in the DataProvider. If your dataProvider Array is something like the following var myArray:Array = [{parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5}]; then why not do something like this var row:Object = myArray[0]; for(var obj1:Object in row) { var col:DataGridColumn = new DataGridColumn(); col.dataField = obj1; } --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Thanks man, I am doing something like you mensioned for columns, my problem is the dataprovider itself that I set to the DataGrid. Can I set it dynamically without the need to set columnName:columnValue statically? To be clear :) My current dataprovider is set accornigly in an Array: {parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5} I need to build it dymanically because the column names(the ones before the semicolon) can be different and as I said I get them and the values(objects) from Arrays. Thanks again Jo --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: If you want to add columns dynamically, you need something like this var colNum:int=5
[flexcoders] Re: Creating a DataProvider by dynamic loading
Not sure, i'll have a play around. Maybe someone else can take a look. --- In flexcoders@yahoogroups.com, yossi.baram yossi.ba...@... wrote: Hi, This is my columns: var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(cell2); columns.addItem(dummy); let say 3 rows: var data_:ArrayCollection = new ArrayCollection; rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],55); rowData_.put(columns[2],100); rowData_.put(columns[3],myObject[0]); data_.addItem(rowData_); rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],34); rowData_.put(columns[2],10); rowData_.put(columns[3],myObject[1]); data_.addItem(rowData_); rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],6); rowData_.put(columns[2],60); rowData_.put(columns[3],myObject[2]); data_.addItem(rowData_); My Map (which is a HashMap): package { import flash.utils.Dictionary; public class Map { private var keysList:Array = new Array(); private var valuesList:Array = new Array(); private var entries:Dictionary = new Dictionary(); public function Map(){ } public function get length():uint { return valuesList.length; } public function get(key:Object):Object { return entries[key]; } public function getKeyAt(index:uint):Object { return keysList[index]; } public function getKeysList():Array { return keysList.slice(); } public function getValueAt(index:uint):Object { return valuesList[index]; } public function getValuesList():Array { return valuesList.slice(); } public function put(key:Object, value:Object):void { entries[key] = value; keysList.push(key); valuesList.push(value); } public function remove(key:Object):void { delete entries[key]; var index:int = keysList.indexOf(key); if (index -1) { keysList.splice(index, 1); valuesList.splice(index, 1); } } } } The result is data_ ArrayCollection that holds a list of column/value hashmap which is good. How do I take this array and translate it to a dataProvider for the DataGrid, or set it differently to the grid? Thanks man --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: Thanks for your time, realy thats okay. Can you send an example of column array and data array? --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Hi man, I am very sorry to say that I was not clear :( myArray is what I need to create, I dont have it (I just gave as example of what I need to create). This is basically my problem, How to build it based on column array and on data array? Only then I will assign it to the DataGrid Thanks for your time, realy --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: Can I set it dynamically without the need to set columnName:columnValue statically? Sorry i'm a bit unclear. Another suggestion ... You want to create DatgridColumns based on whats in the DataProvider. If your dataProvider Array is something like the following var myArray:Array = [{parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5}]; then why not do something like this var row:Object = myArray[0]; for(var obj1:Object in row) { var col:DataGridColumn = new DataGridColumn(); col.dataField = obj1; } --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Thanks man, I am doing something like you mensioned for columns, my problem is the dataprovider itself that I set to the DataGrid. Can I set it dynamically without the need to set columnName:columnValue statically? To be clear :) My current dataprovider is set accornigly in an Array: {parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5} I need to build it dymanically because the column
[flexcoders] Re: HTTPRequest and Air too slow?
Interessting! I will keep that in mind but regarding the fact, that i use JSON and pass just one single param, it seems to be a strange behaviour i recognized. Hm, i'll have some more research to do... --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, florian.salihovic florian.salihovic@ wrote: Yes, actually i did so. I ran an URLLoader against different backend api calls. Those are usually defined values for server-side calls. I had a slighty overhead: ~80 - 120ms + parsing the data and adding it into an ArrayCollection compared to the values i got via Charles. So i can be sure that an HTTP request done by Air (ActionScript/Flex) will not behave differently then a HTTP request by another application? And we should take a look in some other corners of the system? Here is one place I have found a difference: http://flexdiary.blogspot.com/2007/07/flex-reorders-url-string- parameters.html
[flexcoders] Select row in Advanced Data Gridprogrammatically for unit test
Can someone tell me if it is possible to select a row in an advanced data grid programmatically such that not only is the row selected but the click that would have been dispatched had I done a real click via the UI is also dispatched?
[flexcoders] Re: Creating a DataProvider by dynamic loading
Thanks any way... --- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote: Not sure, i'll have a play around. Maybe someone else can take a look. --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Hi, This is my columns: var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(cell2); columns.addItem(dummy); let say 3 rows: var data_:ArrayCollection = new ArrayCollection; rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],55); rowData_.put(columns[2],100); rowData_.put(columns[3],myObject[0]); data_.addItem(rowData_); rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],34); rowData_.put(columns[2],10); rowData_.put(columns[3],myObject[1]); data_.addItem(rowData_); rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],6); rowData_.put(columns[2],60); rowData_.put(columns[3],myObject[2]); data_.addItem(rowData_); My Map (which is a HashMap): package { import flash.utils.Dictionary; public class Map { private var keysList:Array = new Array(); private var valuesList:Array = new Array(); private var entries:Dictionary = new Dictionary(); public function Map(){ } public function get length():uint { return valuesList.length; } public function get(key:Object):Object { return entries[key]; } public function getKeyAt(index:uint):Object { return keysList[index]; } public function getKeysList():Array { return keysList.slice(); } public function getValueAt(index:uint):Object { return valuesList[index]; } public function getValuesList():Array { return valuesList.slice(); } public function put(key:Object, value:Object):void { entries[key] = value; keysList.push(key); valuesList.push(value); } public function remove(key:Object):void { delete entries[key]; var index:int = keysList.indexOf(key); if (index -1) { keysList.splice(index, 1); valuesList.splice(index, 1); } } } } The result is data_ ArrayCollection that holds a list of column/value hashmap which is good. How do I take this array and translate it to a dataProvider for the DataGrid, or set it differently to the grid? Thanks man --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: Thanks for your time, realy thats okay. Can you send an example of column array and data array? --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Hi man, I am very sorry to say that I was not clear :( myArray is what I need to create, I dont have it (I just gave as example of what I need to create). This is basically my problem, How to build it based on column array and on data array? Only then I will assign it to the DataGrid Thanks for your time, realy --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: Can I set it dynamically without the need to set columnName:columnValue statically? Sorry i'm a bit unclear. Another suggestion ... You want to create DatgridColumns based on whats in the DataProvider. If your dataProvider Array is something like the following var myArray:Array = [{parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5}]; then why not do something like this var row:Object = myArray[0]; for(var obj1:Object in row) { var col:DataGridColumn = new DataGridColumn(); col.dataField = obj1; } --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote: Thanks man, I am doing something like you mensioned for columns, my problem is the dataprovider itself that I set to the DataGrid. Can I set it dynamically without the need to set columnName:columnValue statically? To be
[flexcoders] Re: [silvafug] Calling C++ app or service from flex on Mac
--- In flexcoders@yahoogroups.com, Shailesh Mangal shailesh.man...@... wrote: Have you looked at Merapi? You can either use JNI with Merapi to call you dll or write similar socket based bridge in C++ -Shailesh On Feb 22, 2009, at 7:50 AM, Priya Shah wrote: Hi everyone, I am in dire need of being able to call a C++ app or service on Mac from flex. I am willing to go the AIR way for this though that's not optimal. I have spent some time trying to figure out the Netscape plugin architecture which is supported on safari but it's sub- optimal for me to go that route. I already have a C++ dll that I have invoked with flex on the Windows side using an Active/X plugin successfully. Now I need to compile the dll into some format on Mac and then communicate back and forth with flex. I have seen some open source bridge projects that enclose flash player in an MFC object but that doesn't help me on mac. Is it as simple as doing some Netstream class from flex to connect to either an app or a service (if there are services on Mac like there are on Windows) and just do a localhost communication back and forth? If so, what are the limitations of such approaches? Any sample apps out there? Regards Priyanka ... or using a python sockets server - see flexiBoard on riaforge.
[flexcoders] Quoted Printable decoding in AS3
hey , I m developing application that reads the Gmail Inbox and gets the email. I have problem in decoding Quoted Printable data. I don't know how to decode Quoted Printable encoded data. so can someone help me out in decoding Quoted Printable data in normal string value. Thanks in advanced.
Re: [flexcoders] add tooltip in Line chart
Check out the dataTipFunction abilities. Adrian abhishekchess1 wrote: hello frnd, plz check theis code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical verticalAlign=top horizontalAlign=center backgroundGradientColors=0x00,0x323232] paddingTop=0 viewSourceURL=srcview/index.html mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var expensesAC:ArrayCollection = new ArrayCollection ( [ { Month: Jan, Profit: 2000, Expenses: 1500, Amount: 450 }, { Month: Feb, Profit: 1000, Expenses: 200, Amount: 600 }, { Month: Mar, Profit: 1500, Expenses: 500, Amount: 300 }, { Month: Apr, Profit: 1800, Expenses: 1200, Amount: 900 }, { Month: May, Profit: 2400, Expenses: 575, Amount: 500 } ]); ]] /mx:Script mx:Panel title=LineChart Control layout=horizontal color=0xff borderAlpha=0.15 width=600 height=240 paddingTop=10 paddingRight=5 paddingBottom=10 paddingLeft=5 horizontalAlign=center mx:LineChart id=linechart color=0x323232 height=100% showDataTips=true dataProvider={expensesAC} mx:horizontalAxis mx:CategoryAxis categoryField=Month/ /mx:horizontalAxis mx:series mx:LineSeries yField=Profit form=curve displayName=Profit/ /mx:series /mx:LineChart mx:Legend dataProvider={linechart} color=0x323232/ /mx:Panel /mx:Application this code is working fine, but is thr any way with i can do the 1 thing that is when i rollover on any name of month(which at X axis, like Jan), it should show tooltip, and on this tooltip i can see the profit , month,amount like save i can see when i rollover on that line. thx in advanced, :)
Re: [flexcoders] nested viewstack problem
On Sunday 22 Feb 2009, Derrick Anderson wrote: my app is primarily made up of 2 nested viewstacks and I want to be able to navigate to a child of the inner viewstack from the main application file. Bind selectedIndex to a Model variable, and just twiddle that from code. -- Tom Chiverton Helping to continually deploy magnetic seamless granular design-patterns This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Modify image pixels
http://www.imagero.com provides free tools for modifying images in Flex. - Alex C --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, How to modify directly the pixels of a mx:image / object ? Then how to redraw the modified image. Thank you, Christophe,
Re: [flexcoders] 3.0.2 Upgrade Causes PieChart dataTipFunction placement to go haywire???
On Monday 23 Feb 2009, Adrian Williams wrote: Notice that I've captured it when my cursor is over the Haplogroup Charts, mtDNA haplogroups, wedge H. These must be your own components, right ? Do you have a simple test case ? -- Tom Chiverton Helping to elementarily aggregate market-driven revolutionary impactful customers This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] adobe air and flex 3.3 - Invoke Event
On Tuesday 24 Feb 2009, Robin Burrer wrote: I installed a pre release 3.3 but there's still noreason property in the InvokeEvent. Isn't it out for real now ? If not, I suggest trying again once it is :-) -- Tom Chiverton Helping to carefully target unique materials This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: properties and methods of a datagrid from item renderer
--- In flexcoders@yahoogroups.com, aceoohay pa...@... wrote: ValidatedCheckBox extends CheckBox. If I do; mx:DataGridColumn itemRenderer=ValidatedCheckBox / How do I set the ValidatedCheckBox properties such as; checkedValue=R uncheckedValue=H click=doHoldRelease(data); So that I can get the proper values, and do the specialized code needed on click? You might find that this article answers a lot of your questions about check boxes as renderers, including the one above: http://www.returnundefined.com/2006/11/creating-truly-reusable- renderers-with-classfactory
[flexcoders] Re: FlexBuilder 3 problem -- dynamic help stops working
I haven't tried this but you could try deleting the help index at: C:\Program Files\Adobe\Flex Builder 3\plugins\com.adobe.flexbuilder.help_3.0.214193\index --- In flexcoders@yahoogroups.com, Anggie Bratadinata anggie.bratadin...@... wrote: 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] Re: Unloading a swf that includes a ViewStack can cause a RTE
--- In flexcoders@yahoogroups.com, rob_mcmichael rob_mcmich...@... wrote: Can anyone help on this? At the moment I am a little stuck? Did you try turning off history management on the inner swf and recompiling it?
[flexcoders] appending a record to xml file
how to append a recored to external xml file suppose i have 2 or 3 text inputs at user end and i want them to append to an existing external XML file Please share any example if you have or guide me to solve my problem Thanks in advance naresh Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/
[flexcoders] Re: Best database for Flex
I'd just like to make a small correction here (For anybody that comes across this post at a later date) Wally implies that RemoteObjects can only be used with ColdFusion. This is not correct - RemoteObjects can be used with most any back end server technology (I use PHP with WebORB). Best Regards Steve --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: 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...@... 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,
[flexcoders] Re: Accordion question - height minus header space
I think I have it close using: accordion.height - (accordion.numChildren * accordion_header_height) What I'm finding though is that the calculation comes in roughly 3 pixels too short. If I use the result of the above for my TileList hight (the element that I'm placing in the accordion container) I still get some wasted space at the bottom. For the moment I'm just adding in a fudge constant of 3 pixels to make it look right. Could this discrepancy be the result of padding somewhere? --- In flexcoders@yahoogroups.com, alinmircea_s alinmirce...@... wrote: child's height or width can be specified percent wise width=100% myComponent.percentWidth = 100; but if you have to you have to http://livedocs.adobe.com/flex/3/langref/mx/containers/Accordion.html quote : headerHeight=depends on header font styles = Number(myAccordion.getStyle('headerHeight'))
[flexcoders] Re: Component/tool required
http://developer.yahoo.com/flash/astra-flex/autocompletemanager/ --- In flexcoders@yahoogroups.com, venkatesan.M venky_g...@... wrote: Hi everybody, I'm currently working on a project which needs autocomplete tool(textbox) i tried making one by myself but dint work out well. can any1 help me out. do any1 have an autocomplete tool/component wher the user can both type his data and also select from the auto list generated when he starts typing it... thnks in advance.. hoping for a positive response if anybody has a solution pls mail it to venkate...@...
[flexcoders] label rotation in chart font size issue
hey frnds, could u help in solving 1 flex chart issue, i have 300*250 size application, in that showing more data like 10 records at X axis, i'm using label rotation for X axis. I found that labels of X axis are not visible properlly, when i write font-size:20 at stylessheet, like @font-face { src: local(Arial); font-family: EmbeddedArial; } LineChart { font-family: EmbeddedArial; fontSize: 20; } it is increasing size of both x and y axis. could we increase the only size of y axis which is rotated? thx in advanced, abhishekche...@gmail.com
Re: [flexcoders] Re: Creating a DataProvider by dynamic loading
On Tuesday 24 February 2009 12:09:05 yossi.baram wrote: I am doing something like you mensioned for columns, my problem is the dataprovider itself that I set to the DataGrid. Can I set it dynamically without the need to set columnName:columnValue statically? To be clear :) My current dataprovider is set accornigly in an Array: {parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5} I need to build it dymanically because the column names(the ones before the semicolon) can be different and as I said I get them and the values(objects) from Arrays. If I'm understanding you correctly, you mean that your column names might be different, like this? [ { colA: valA, colB: valB }, { colA: valA, colC: valC }, { colA: valA, colD: valD }, ] If so, logic suggests that you would have to normalise the ArrayCollection before providing it as a dataProvider, like this (whitespace added for readability): [ { colA: valA, colB: valB, colC: , colD: }, { colA: valA, colB: , colC: valC, colD: }, { colA: valA, colB: , colC: , colD: valD }, ] Then you can skip declaring and adding DataGridColumns seperately and just feed the ArrayCollection to the dataProvider. Hope this helps. Cheers, //gary
[flexcoders] Error: Error #1023: Stack overflow occurred.
I am the only developer in my team who gets this error. Three more people compiled the code successfully. The error appears when i try to access the length property of an ArrayCollection/ListCollectionView. The code is processed recursively. i need to process arround 4000 lines of text which is mapped onto a hierarchy of defined objects - not generic object kind of {}... Any ideas, pointers? Best regards!
RE: [flexcoders] Calling C++ app or service from flex on Mac
I have been moving forward with binding C++ objects into AppWeb which allows you to bind native DLL's (C or C++) into a pretty lightweight HTTP Server and calling it with an HTTP client. AppWeb is pretty neat as it has a rudimentary scripting language. K From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Priya Shah Sent: Sunday, February 22, 2009 7:50 AM To: flexcoders@yahoogroups.com; silva...@yahoogroups.com Subject: [flexcoders] Calling C++ app or service from flex on Mac Hi everyone, I am in dire need of being able to call a C++ app or service on Mac from flex. I am willing to go the AIR way for this though that's not optimal. I have spent some time trying to figure out the Netscape plugin architecture which is supported on safari but it's sub-optimal for me to go that route. I already have a C++ dll that I have invoked with flex on the Windows side using an Active/X plugin successfully. Now I need to compile the dll into some format on Mac and then communicate back and forth with flex. I have seen some open source bridge projects that enclose flash player in an MFC object but that doesn't help me on mac. Is it as simple as doing some Netstream class from flex to connect to either an app or a service (if there are services on Mac like there are on Windows) and just do a localhost communication back and forth? If so, what are the limitations of such approaches? Any sample apps out there? Regards Priyanka -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/ , and is believed to be clean.
[flexcoders] Re: Using Modules and Remote Objects
Thanks, Alex, this is helpful. Does this also hold true if instead of modules, we used applications i.e. a main application from which swf loaders load other sub-applications. In such a scenario, does the RemoteObject and its value objects still have to be in the main application or can they be distributed to sub-applications? Our app has many java data services and each of them have several value objects for data transfer. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Typically, the RemoteObject tags, and all classes being sent and received by RO are in the main app. The Modules only have view classes and no new data classes 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 cortlandian Sent: Sunday, February 22, 2009 4:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using Modules and Remote Objects I have used many other technologies, but am new to flex. We are porting the front end of a large enterprise application to Flex. Has anyone been using remoteObject with modules, and if so, is there anything different that you had to do in calling your remoteObject usin modules compared to deploying everything in a single application? I described the problem in my prior post, below. Any help would be appreciated. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, cortlandian aruns@ wrote: 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] Error: Error #1023: Stack overflow occurred.
On Tuesday 24 Feb 2009, florian.salihovic wrote: I am the only developer in my team who gets this error. Three more people compiled the code successfully. Well, clearly there is something different about your environment. The error appears when i try to access the length property of an ArrayCollection/ListCollectionView. The code is processed recursively. Why do you need to use recursion to find the length of an AC ? How come this AC is different for you and the other people ? -- Tom Chiverton Helping to economically maximize high-end communities This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: XML Parsing - maintaining a record pointer
well, this is a sequential file, output from a mainframe and basically I need to start at the top and work my way to the bottom, with frequent look-aheads. I have been trying hard to use e4x but so far have not been successful with getting it to work. apparently there is something about the syntax I am not getting. That cursor idea another poster mentioned sounds intriguing... --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: 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...@... 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
[flexcoders] generating codes that users can use to pay for a service
hello guys before i ask this let me say i know that many people will probably suggest using online payment systems like paypal but that is not an option in my case. so this is what i would like to know. i have a website where companies can post ads but before they can post the ad they have to have a code(key) which they purchase. lets say someone wanted to have his ad running for a month and the total monthly charge is 20 dollars, they have to purchase the code for 20 dollars which they input into the system and if valid then they can post their ad. can i create a system in flex/as3/coldfusion to generate the codes and tie a particular code to an amount for example if you want your ad to run for a month and it costs $20 then the system generates different codes that are worth $20 or can i use a database of some kind to store the codes? and how can i validate the code is worth $20? hope my question is clear.
[flexcoders] Re: Creating a DataProvider by dynamic loading
Hi Gary, Thanks for your reply, I just need a dynamic mechanism that creates this {parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5} dynamically. I have the columns array and all the data in a list of arrays(look at the previous posts i sent) In short, I need to create the dataprovider dynamically, some kind of routine that accumulate columnName and append : and objectValue with comma etc. Thanks --- In flexcoders@yahoogroups.com, Gary Wall g...@... wrote: On Tuesday 24 February 2009 12:09:05 yossi.baram wrote: I am doing something like you mensioned for columns, my problem is the dataprovider itself that I set to the DataGrid. Can I set it dynamically without the need to set columnName:columnValue statically? To be clear :) My current dataprovider is set accornigly in an Array: {parent:'root1',col1:100,date:myObject[0],col2:33}, {parent:'root1',col1:5,date:myObject[1],col2:21}, {parent:'root2',col1:11,date:myObject[2],col2:5} I need to build it dymanically because the column names(the ones before the semicolon) can be different and as I said I get them and the values(objects) from Arrays. If I'm understanding you correctly, you mean that your column names might be different, like this? [ { colA: valA, colB: valB }, { colA: valA, colC: valC }, { colA: valA, colD: valD }, ] If so, logic suggests that you would have to normalise the ArrayCollection before providing it as a dataProvider, like this (whitespace added for readability): [ { colA: valA, colB: valB, colC: , colD: }, { colA: valA, colB: , colC: valC, colD: }, { colA: valA, colB: , colC: , colD: valD }, ] Then you can skip declaring and adding DataGridColumns seperately and just feed the ArrayCollection to the dataProvider. Hope this helps. Cheers, //gary
[flexcoders] Re: Creating a DataProvider by dynamic loading
Hi jo I've had a little play around with what you gave and came up with the following example. Let us know if this is what you want. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridColumn; import mx.collections.ArrayCollection; import mx.collections.IList; public function startUP():void { var myObject:Object = {0:0, 1:1, 2:2} var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(cell2); columns.addItem(dummy); //create columns var colArray1:Array = []; for(var i:int=0;icolumns.length;i++) { var dgCol:DataGridColumn = new DataGridColumn(); dgCol.dataField = columns[i]; colArray1.push(dgCol); } dg.columns = colArray1; //let say 3 rows: var data_:ArrayCollection = new ArrayCollection; var rowData_:Map; rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],55); rowData_.put(columns[2],100); rowData_.put(columns[3],myObject[0]); data_.addItem(rowData_); rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],34); rowData_.put(columns[2],10); rowData_.put(columns[3],myObject[1]); data_.addItem(rowData_); rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],6); rowData_.put(columns[2],60); rowData_.put(columns[3],myObject[2]); data_.addItem(rowData_); // set dg dataProvider var dp1:Array = []; var obj1:Object; for(var j:int=0;jdata_.length;j++) { var map:Map = data_.getItemAt(j) as Map; var meme:Object; obj1 = {}; for(var k:int=0;kdg.columnCount;k++) { meme = dg.columns[k].dataField; obj1[meme.valueOf()] = map.getValueAt(k); } dp1.push(obj1); } dg.dataProvider = dp1; } ]] /mx:Script mx:DataGrid id=dg initialize=startUP()/ /mx:Application
[flexcoders] Localization vs. normal assets in Flex Builder
My scenario is simple: I use resource bundles to localize UI elements and also want Flex Builder to copy my normal assets to the output dir (for instance, in the /src/assets folder, I have several icons for the AIR app). To my surprise, it seems that I can use either localization or automatic copying of non-embedded assets, not both. I have tracked down that when I add locale/{locale} to my source path, assets are not copied over while if I modify it to locale/en_US, normal assets work again. In that case, however, I can't really switch UI language so the localization doesn't really work (I tried to add multiple source path entries, like locale/en_US, locale/es_ES etc. but only the first entry is being picked up). Can anyone confirm this bogus behavior or tell me what I'm doing wrong? I would think that my scenario is pretty common... Thanks, Borek
[flexcoders] Re: Creating a DataProvider by dynamic loading
You are great Thanks man, it works like a charm :) --- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote: Hi jo I've had a little play around with what you gave and came up with the following example. Let us know if this is what you want. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridColumn; import mx.collections.ArrayCollection; import mx.collections.IList; public function startUP():void { var myObject:Object = {0:0, 1:1, 2:2} var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(cell2); columns.addItem(dummy); //create columns var colArray1:Array = []; for(var i:int=0;icolumns.length;i++) { var dgCol:DataGridColumn = new DataGridColumn(); dgCol.dataField = columns[i]; colArray1.push(dgCol); } dg.columns = colArray1; //let say 3 rows: var data_:ArrayCollection = new ArrayCollection; var rowData_:Map; rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],55); rowData_.put(columns[2],100); rowData_.put(columns[3],myObject[0]); data_.addItem(rowData_); rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],34); rowData_.put(columns[2],10); rowData_.put(columns[3],myObject[1]); data_.addItem(rowData_); rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],6); rowData_.put(columns[2],60); rowData_.put(columns[3],myObject[2]); data_.addItem(rowData_); // set dg dataProvider var dp1:Array = []; var obj1:Object; for(var j:int=0;jdata_.length;j++) { var map:Map = data_.getItemAt(j) as Map; var meme:Object; obj1 = {}; for(var k:int=0;kdg.columnCount;k++) { meme = dg.columns[k].dataField; obj1[meme.valueOf()] = map.getValueAt(k); } dp1.push(obj1); } dg.dataProvider = dp1; } ]] /mx:Script mx:DataGrid id=dg initialize=startUP()/ /mx:Application
[flexcoders] Re: Creating a DataProvider by dynamic loading
glad I could help. --- In flexcoders@yahoogroups.com, yossi.baram yossi.ba...@... wrote: You are great Thanks man, it works like a charm :) --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: Hi jo I've had a little play around with what you gave and came up with the following example. Let us know if this is what you want. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridColumn; import mx.collections.ArrayCollection; import mx.collections.IList; public function startUP():void { var myObject:Object = {0:0, 1:1, 2:2} var columns:ArrayCollection = new ArrayCollection(); columns.addItem(parent); columns.addItem(cell1); columns.addItem(cell2); columns.addItem(dummy); //create columns var colArray1:Array = []; for(var i:int=0;icolumns.length;i++) { var dgCol:DataGridColumn = new DataGridColumn(); dgCol.dataField = columns[i]; colArray1.push(dgCol); } dg.columns = colArray1; //let say 3 rows: var data_:ArrayCollection = new ArrayCollection; var rowData_:Map; rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],55); rowData_.put(columns[2],100); rowData_.put(columns[3],myObject[0]); data_.addItem(rowData_); rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],34); rowData_.put(columns[2],10); rowData_.put(columns[3],myObject[1]); data_.addItem(rowData_); rowData_ = new Map(); rowData_.put(columns[0],root1); rowData_.put(columns[1],6); rowData_.put(columns[2],60); rowData_.put(columns[3],myObject[2]); data_.addItem(rowData_); // set dg dataProvider var dp1:Array = []; var obj1:Object; for(var j:int=0;jdata_.length;j++) { var map:Map = data_.getItemAt(j) as Map; var meme:Object; obj1 = {}; for(var k:int=0;kdg.columnCount;k++) { meme = dg.columns[k].dataField; obj1[meme.valueOf()] = map.getValueAt(k); } dp1.push(obj1); } dg.dataProvider = dp1; } ]] /mx:Script mx:DataGrid id=dg initialize=startUP()/ /mx:Application
Re: [flexcoders] generating codes that users can use to pay for a service
Why isn't Paypal an option? Would Google Checkout be okay? Beyond that, you may consider getting a merchant account from your bank and a gateway account (such as Authorize.net ). That is what we did for Flextras.com . Is it worth mentioning that Paypal can act as a 1-stop provider for both merchant account / gateway account? It gives you a lot of control if you need it. stinasius wrote: hello guys before i ask this let me say i know that many people will probably suggest using online payment systems like paypal but that is not an option in my case. so this is what i would like to know. i have a website where companies can post ads but before they can post the ad they have to have a code(key) which they purchase. lets say someone wanted to have his ad running for a month and the total monthly charge is 20 dollars, they have to purchase the code for 20 dollars which they input into the system and if valid then they can post their ad. can i create a system in flex/as3/coldfusion to generate the codes and tie a particular code to an amount for example if you want your ad to run for a month and it costs $20 then the system generates different codes that are worth $20 or can i use a database of some kind to store the codes? and how can i validate the code is worth $20? hope my question is clear. -- 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
[flexcoders] A Loaded SWF and ScrollPolicy
Hi guys, I'm using a SWFLoader to load a SWF in two places in a parent app (and the two places are different sizes) and am having trouble with scrollbars. The loaded app is quite simple: Application -- VBox -- List. When a sufficient number of items are added to the list (which is done by the parent application) I need the scrollbars to show up. What I'm trying to figure out is: in which component should the scrollbars appear? Is it the list, the VBox, or the child App itself? What's happening is that if I have (say) 12 items in the list, the vertical scroll bar appears in the list but it is too long. It won't scroll far enough, and in the canvas into which the child is loaded, I can't see the whole list. So I can only see about 8 of the items, even with scrolling. I'm also confused about exactly what scaleContent = true is supposed to do in this context. Documentation says: When the scaleContent property is set to true, Flex scales the content to fit within the bounds of the control. That makes sense if it's a scalable image. But what if it's the listbox? Does scaling content then become irrelevant? Should it be set to true or false? Anyone have experience with these issues? Thanks, David
[flexcoders] Repeaters and databinding
Simple question. Why does example 1 below work as expected, but example 2 does not (the Pear checkbox is not added)? I thought repeaters, like other components, responded to changes in the dataprovider through databinding. -- EXAMPLE 1 ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; applicationComplete=init() mx:Script ![CDATA[ [Bindable] private var myData:Array = [{ label:Banana }, { label:Pear }, { label:Orange } ]; ]] /mx:Script mx:Repeater id=myRepeater dataProvider={myData} mx:CheckBox id=checkBox label={myRepeater.currentItem.label} / /mx:Repeater /mx:Application -- EXAMPLE 2 ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; applicationComplete=init() mx:Script ![CDATA[ [Bindable] private var myData:Array = [ { label:Banana } ]; [Bindable] private var fruit1:Object = new Object(); private function init():void { fruit1.label = Pear; myData.push(fruit1); } ]] /mx:Script mx:Repeater id=myRepeater dataProvider={myData} mx:CheckBox id=checkBox label={myRepeater.currentItem.label} / /mx:Repeater /mx:Application -- How would you handle a situation like in Example 2, where the dataprovider changes after the repeater initally runs (in this case, after the applicationComplete event)? Thanks. Jason Merrill
[flexcoders] Can't seem to get Myriad Pro to encode in Flex
I'm trying to embed couple versions of Myriad Pro into my Flex project: Myriad Pro Semibold Condensed Myriad Pro Semibold Condensed Italic Myriad Pro Condensed I've tried two different methods to embed the fonts using CSS: 1. Using an OTF file. 2. Using a fla file with embedded fonts using dynamic text boxes. I can embed fonts that has any combination of these styles: bold, italic, or normal. But it does not seem to allow me to transcode fonts that have anything outside of those styles, such as semibold, condensed, etc. Has anyone successfully dealt with this problem or knows how to? Thanks, Adrian
[flexcoders] parentDocument variables
Awhile back, someone on this group mentioned that a good way for a component inside an itemRenderer to access variables in the parentDocument was to use custom events. I've found some info on custom events, but can't quite wrap my brains around how this would work with the itemRenderer's set data() function, where the parentDocument variable needs to be accessed. Your help is much appreciated. - Alex C
[flexcoders] Re: parentDocument variables
By the way, if there's a better way to do it, please let me know. Thanks :) - Alex C --- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote: Awhile back, someone on this group mentioned that a good way for a component inside an itemRenderer to access variables in the parentDocument was to use custom events. I've found some info on custom events, but can't quite wrap my brains around how this would work with the itemRenderer's set data() function, where the parentDocument variable needs to be accessed. Your help is much appreciated. - Alex C
[flexcoders] MaskedTextInput
I am trying to implement that control into my application. When an application starts I want to have a control that is based on MaskedTextInput seleted. So, in my init I am saying: badgeid.setFocus(); badgeid would get its border highlighted but a mouse pointer will not be inside of MaskedTextInput and to start entering data the user has to click on badgeid. Is it possible to position mouse pointer into the MaskedTextInput text input control without licking on it? Thanks
[flexcoders] Error when adding RTE toolbar to other container
I'm trying to use the trick where you remove the toolbar from a RichTextEditor and add it elsewhere. Ideally I'd like to have a single static toolbar that interacts with the TextArea that has focus, but I haven't figured out how to do that yet. Anyway, below is the code I use to add the RichTextArea to the selected child in a ViewStack, then I try to add the toolbar child of that RTE to another HBox container textControls. Note that this HBox container is NOT inside the slideViewStack. //Add text private function addText():void { var rte:RichTextEditor = new RichTextEditor(); var tc:TextControl = new TextControl(); rte.id = rte; rte.styleName = rtePanel; rte.addEventListener(FocusEvent.FOCUS_IN, enableToolbar); rte.addEventListener(FocusEvent.FOCUS_OUT, disableToolbar); slideViewStack.selectedChild.addChild(rte); rte.showControlBar=false; textControls.addChild(DisplayObject(rte.toolbar)); //causes problem } When the toolbar is added to the HBox, I get the following error trace: ReferenceError: Error #1069: Property fontFamilyCombo not found on main and there is no default value. at mx.core::Container/hasChildMatchingDescriptor() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3 704] at mx.core::Container/createComponentFromDescriptor() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3 561] at mx.core::Container/createComponentsFromDescriptors() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3 485] at mx.core::Container/createChildren() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2 587] at mx.core::UIComponent/initialize() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as :5262] at mx.core::Container/initialize() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2 524] at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::child Added() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as :5159] at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAd ded() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3 297] at mx.core::Container/addChildAt() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2 210] at mx.core::Container/addChild() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2 140] at main/addText()[C:\Users\Administrator\Documents\Flex Builder 3\Content_demo\src\main.mxml:398] at main/__addTextBtn_click() [C:\Users\Administrator\Documents\Flex Builder 3 \Content_demo\src\main.mxml:504] Any thoughts? After closing the error, it generally seems to work as I'd hoped.
[flexcoders] Re: Repeaters and databinding
Your myData Array needs to be an ArrayCollection. ArrayCollections will dispatch CollectionChange events, Arrays do not. So your repeater never gets notified that an item was added to your Array. Sunil --- In flexcoders@yahoogroups.com, Jason jason.merr...@... wrote: Simple question. Why does example 1 below work as expected, but example 2 does not (the Pear checkbox is not added)? I thought repeaters, like other components, responded to changes in the dataprovider through databinding. -- EXAMPLE 1 ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; applicationComplete=init() mx:Script ![CDATA[ [Bindable] private var myData:Array = [{ label:Banana }, { label:Pear }, { label:Orange } ]; ]] /mx:Script mx:Repeater id=myRepeater dataProvider={myData} mx:CheckBox id=checkBox label={myRepeater.currentItem.label} / /mx:Repeater /mx:Application -- EXAMPLE 2 ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; applicationComplete=init() mx:Script ![CDATA[ [Bindable] private var myData:Array = [ { label:Banana } ]; [Bindable] private var fruit1:Object = new Object(); private function init():void { fruit1.label = Pear; myData.push(fruit1); } ]] /mx:Script mx:Repeater id=myRepeater dataProvider={myData} mx:CheckBox id=checkBox label={myRepeater.currentItem.label} / /mx:Repeater /mx:Application -- How would you handle a situation like in Example 2, where the dataprovider changes after the repeater initally runs (in this case, after the applicationComplete event)? Thanks. Jason Merrill
[flexcoders] Flash player 10 ? - can I not call flash player 10 classes if user still on V9?
Hi, I want to use the PerspectiveProject class, which is new for flash player 10, If the user is still on player 9, can I skip the perspectiveProject class and not execute it? I want to be able to use my app in both Player 9 and 10, but only use the new functions if the user is running V10. Is this possible? thanks,
[flexcoders] Unload sound when unloading module... how?
I am almost done creating a modular application to display my showreel. The main app has a ToggleButton Bar that calls the modules When a new module is called the previous one unloads - except in the radio/audio module, the sound continues to play. When I try and stop it using: if(_modUrl == modules/Telly.swf || modules/Print.swf) mp3Player.stop(); from the clickHandler function that calls the modules, I get a 1009 error. A null object reference... Presumably because the situation hasn't yet arisen and so the modules aren't yet loaded? When I try and place similar code inside the mp3Player itself, it gets ignored. Can anyone please provide me with any tips on how to manage this? I am using the open source xmlmp3player available at www.axelscript.com as my radioplayer, and the moduleManager class form letsflex.com as my module loader.
[flexcoders] Re: Repeaters and databinding
Ah, duh - I should've thought of that. Perfect, thanks. --- In flexcoders@yahoogroups.com, sunild99 sunilbd...@... wrote: Your myData Array needs to be an ArrayCollection. ArrayCollections will dispatch CollectionChange events, Arrays do not. So your repeater never gets notified that an item was added to your Array. Sunil
[flexcoders] Graph suggestion wanted
I have some data which is say quantity for 7 days. this quantity value on 1st day is 1541 and 2nd day say 1543 , 3rd day say 1541 and so for 7 days just varies by 1 or 2 units. I created a line graph to depict. But as the quantity varies to a small value every day so the graph does not look interesting at all. It looks like a straight line (at least to human eyes). So, any suggestions to draw a graph which looks interesting showing this small variation a bit prominent. Just to add further i choose this line series graph coz i had three such quantities. Say product A quantity, product B quantiy and product C quantity. Product A quantiy starts at 1541 and varies +/- 1 to 2 every day and similarly product B's start at 645, product C's start at 115 with same degree of variation. In all graph looks just 3 straight lines.. how to make a bit interesting grpah with such type of data? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com
RE: [flexcoders] Re: parentDocument variables
parentDocument should be ready to go in your data setter. Test it like this. override public function set data(value:Object):void { trace(parentDocument); } 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 oneworld95 Sent: Tuesday, February 24, 2009 9:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: parentDocument variables By the way, if there's a better way to do it, please let me know. Thanks :) - Alex C --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, oneworld95 oneworl...@... wrote: Awhile back, someone on this group mentioned that a good way for a component inside an itemRenderer to access variables in the parentDocument was to use custom events. I've found some info on custom events, but can't quite wrap my brains around how this would work with the itemRenderer's set data() function, where the parentDocument variable needs to be accessed. Your help is much appreciated. - Alex C
[flexcoders] Re: Can't seem to get Myriad Pro to encode in Flex
By the way, I used Flash CS4 to create my font swf. --- In flexcoders@yahoogroups.com, Adrian Gillette gille...@... wrote: I'm trying to embed couple versions of Myriad Pro into my Flex project: Myriad Pro Semibold Condensed Myriad Pro Semibold Condensed Italic Myriad Pro Condensed I've tried two different methods to embed the fonts using CSS: 1. Using an OTF file. 2. Using a fla file with embedded fonts using dynamic text boxes. I can embed fonts that has any combination of these styles: bold, italic, or normal. But it does not seem to allow me to transcode fonts that have anything outside of those styles, such as semibold, condensed, etc. Has anyone successfully dealt with this problem or knows how to? Thanks, Adrian
[flexcoders] graphing flat data in Flex
I am looking through the graphing components that come with Flex and they seem straightforward. However, all of the examples use arrays as the data provider where calculations have already been performed. Data is rarely stored in the database that way, so I am wondering how users here obtain those types of values to put into their graphs. The database I am using to store this data (Quickbase) is only capable of serving up the XML in a flat structure. How would I perform calculations on this data? Should I create an new array by looping through the existing array collection? In Ruby, I've used hashes before, with the index being the value on which you group. I didn't think this was efficient though. As an example, I am trying to create a running total graph of number of employee hires by month. Thanks for your help!
RE: [flexcoders] Re: Using Modules and Remote Objects
Modules and sub-apps have the same rules with respect to RemoteObject. There might be a way to get it to work by having no vestiges of RemoteObject or data classes in the main app and only have them in the child apps, but it is my understanding that there will be issues if some classes are in child apps. You can view the modules presentation on my blog to learn more about applicationDomains so you'll understand the basic principle that limits these kinds of configurations. 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 cortlandian Sent: Tuesday, February 24, 2009 6:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using Modules and Remote Objects Thanks, Alex, this is helpful. Does this also hold true if instead of modules, we used applications i.e. a main application from which swf loaders load other sub-applications. In such a scenario, does the RemoteObject and its value objects still have to be in the main application or can they be distributed to sub-applications? Our app has many java data services and each of them have several value objects for data transfer. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: Typically, the RemoteObject tags, and all classes being sent and received by RO are in the main app. The Modules only have view classes and no new data classes Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of cortlandian Sent: Sunday, February 22, 2009 4:52 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Using Modules and Remote Objects I have used many other technologies, but am new to flex. We are porting the front end of a large enterprise application to Flex. Has anyone been using remoteObject with modules, and if so, is there anything different that you had to do in calling your remoteObject usin modules compared to deploying everything in a single application? I described the problem in my prior post, below. Any help would be appreciated. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, cortlandian aruns@ wrote: 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!
[flexcoders] Re: parentDocument variables
Thanks, Alex. When would you use a custom event to connect the main Application with an itemRenderer component? - Alex C --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: parentDocument should be ready to go in your data setter. Test it like this. override public function set data(value:Object):void { trace(parentDocument); } 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 oneworld95 Sent: Tuesday, February 24, 2009 9:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: parentDocument variables By the way, if there's a better way to do it, please let me know. Thanks :) - Alex C --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, oneworld95 oneworld95@ wrote: Awhile back, someone on this group mentioned that a good way for a component inside an itemRenderer to access variables in the parentDocument was to use custom events. I've found some info on custom events, but can't quite wrap my brains around how this would work with the itemRenderer's set data() function, where the parentDocument variable needs to be accessed. Your help is much appreciated. - Alex C
[flexcoders] Re: MaskedTextInput
Last I heard you cannot set the focus to a textfield from outside the application. Once the user has clicked on the Flex/Flash app in the browser, setfocus will work. But not before. -- David --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... wrote: I am trying to implement that control into my application. When an application starts I want to have a control that is based on MaskedTextInput seleted. So, in my init I am saying: badgeid.setFocus(); badgeid would get its border highlighted but a mouse pointer will not be inside of MaskedTextInput and to start entering data the user has to click on badgeid. Is it possible to position mouse pointer into the MaskedTextInput text input control without licking on it? Thanks
[flexcoders] Re: Select row in Advanced Data Gridprogrammatically for unit test
Try this... Given: 1. The grid's dataProvider is bound to a bindable var named dp [Bindable] private var dp:ArrayCollection; 2. A DataGrid with an id=grid... mx:DataGrid id=grid dataProvider={dp}... 3. Data in the dataProvider are Objects of some sort // To get the target row of the Object // I want to view as if someone clicked on it grid.selectedIndex = dp.getItemIndex(someTargetObject); // Fire an event programmatically as if someone clicked on a row if (grid.selectedIndex -1) { grid.dispatchEvent(new ListEvent(ListEvent.ITEM_CLICK)); } // Ensure that the row is highlighted and displayed grid.verticalScrollPosition = grid.selectedIndex; Hope this helps... Bob I. --- In flexcoders@yahoogroups.com, menapole michael.napol...@... wrote: Can someone tell me if it is possible to select a row in an advanced data grid programmatically such that not only is the row selected but the click that would have been dispatched had I done a real click via the UI is also dispatched?
[flexcoders] Does anyone know how to get an accordion to occupy a specified relative height (
Does anyone know how to get an accordion to occupy a specified relative height (e.g. 25% of the application) while ensuring that all accordion headers are visible? There are two methods that come pretty close. Both solutions behave exactly as desired when the content of the accordion's first child is small, however, they become problematic when there is a larger amount of content there. (The accordion containers are default behavior is to use a height equal to their first child: http://livedocs.adobe.com/flex/3/langref/mx/containers/Accordion.html). The first method: mx:Panel width=100% height=25% mx:Accordion id=optionsAccordion width=100% vso:Form label=Accordion Entry 1 width=100% / . . . In this case, things work fine when the content of the first accordion section is small, but when it is larger than the desired height, it pushes the panel size up so that it may become very large (e.g. 60% instead of 25% of the screen). For the other method: mx:Panel width=100% height={this.height / 4} mx:Accordion id=optionsAccordion width=100% vso:Form label=Accordion Entry 1 width=100% / . . . ...the height of the panel containing the accordion always uses the correct size, however, the accordion itself may be much larger causing a scrollbar to appear within the panel, and some of the accordion section headers to be pushed down. Originally, I thought the issue was related to how the Panels behaved (see http://tech.groups.yahoo.com/group/flexcoders/message/137291), but after some further testing, it appears to be specifically related to how the accordions behave. Any Ideas? Any help would be greatly appreciated! Thanks, Keith
[flexcoders] Re: Unloading a swf that includes a ViewStack can cause a RTE
Wow that was obvious! Silly me. Thanks Amy! Rob --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, rob_mcmichael rob_mcmichael@ wrote: Can anyone help on this? At the moment I am a little stuck? Did you try turning off history management on the inner swf and recompiling it?
[flexcoders] swfLoaded charts dataTips lose parent container boundaries -- WAS: 3.0.2 Upgrade Causes PieChart dataTipFunction placement to go haywire???
OK, after a half day of waste on this, I've narrowed down the problem that I am having with my pie chart dataTips. It seem most likely that the problem exists somewhere in changes that were made to the swfLoader code between v3.0 and v3.2. When I have my charts loaded via a swfLoader into a panel on my dashboard, my dataPoints go grape ape on me and instead of keeping their positioning within the panel, they default to the parent container and get way ugly. When I hard code the same charts from the swf to the dashboard code, the dataTips function perfectly. I have attached two files here. The first (chartTesters.mxml) is a basic layout with two panels on a cavas. One panel and piechart set has been created in the mxml. This works beautifully. You will also see a second panel setup dynamicaly in the AS code, creating the panel and calling the swfLoader to load the swf created from the second file attached here (testHGWidget.mxml). It is the same code as the pie charts in the mxml. This one's dataTips are jacked. When you run it, you will notice that hovering over the pie wedges on the Static/Hardcoded charts provide dataTips just above and to the right of the mousewhere they should be. When you hover over the pie wedges on the Dynamic/swfLoaded charts, your dataTips are forced to the top left of the main canvas instead of staying within the panel. Any help with this would be GREATLY appreciated as I really need to fix this and am suspecting it is an Adobe bug. Best, Adrian Tom Chiverton wrote: On Monday 23 Feb 2009, Adrian Williams wrote: Notice that I've captured it when my cursor is over the Haplogroup Charts, mtDNA haplogroups, wedge H. These must be your own components, right ? Do you have a simple test case ? -- Tom Chiverton Helping to elementarily aggregate market-driven revolutionary impactful customers This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com http://www.halliwells.com/. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=initApp() viewSourceURL=srcview/index.html mx:Script ![CDATA[ import mx.collections.*; import mx.collections.ArrayCollection; import mx.controls.SWFLoader; import mx.containers.Canvas; import mx.containers.Panel; import mx.charts.series.PieSeries; import mx.charts.series.items.PieSeriesItem; import mx.charts.chartClasses.Series; import mx.charts.ChartItem; import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; import mx.charts.HitData; import mx.formatters.NumberBaseRoundType; [Bindable] private var yHaplos:ArrayCollection = new ArrayCollection( [ {Count: 3, YHaplogroup: I-M170, Snp: M170, Haplo: I, Description: Haplogroup I dates to 23,000 years ago or longer. Lineages not in branches I1, I2a or I2b are found distributed at low frequency throughout Europe.}, {Count: 3, YHaplogroup: J-M172, Snp: M172, Haplo: J2, Description: This lineage originated in the northern portion of the Fertile Crescent where it later spread throughout central Asia, the Mediterranean, and south into India. As with other populations with Mediterranean ancestry this lineage is found within Jewish populations.}, {Count: 2, YHaplogroup: R-M198, Snp: M198, Haplo: R1a1, Description: The R1a lineage is believed to have originated in the Eurasian Steppes north of the Black Caspian Seas. This lineage is thought to descend from a population of the Kurgan culture, known for the domestication of the horse (circa 3000 B.C.E.). These people were also believed to be the first speakers of the Indo-European language group. This lineage is found in central western Asia, India, and in Slavic populations of Europe.}, {Count: 1,
[flexcoders] Re: MaskedTextInput
O, that's not good. --- In flexcoders@yahoogroups.com, stldvd stl...@... wrote: Last I heard you cannot set the focus to a textfield from outside the application. Once the user has clicked on the Flex/Flash app in the browser, setfocus will work. But not before. -- David --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: I am trying to implement that control into my application. When an application starts I want to have a control that is based on MaskedTextInput seleted. So, in my init I am saying: badgeid.setFocus(); badgeid would get its border highlighted but a mouse pointer will not be inside of MaskedTextInput and to start entering data the user has to click on badgeid. Is it possible to position mouse pointer into the MaskedTextInput text input control without licking on it? Thanks
[flexcoders] Anyone have issue with AIR updater on Mac OSX
I'm using the ApplicationUpdaterUI component to manage updates. The update process works perfectly on windows, however on OSX the update window merely flashes very quickly once and goes straight to the app no errors detected, thus not allowing the user to ever update. Again works fine on windows XP ?xml version=1.0 encoding=utf-8? mx:WindowedApplication showFlexChrome=false creationComplete=checkForUpdates() xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=0xff paddingLeft=2 paddingRight=2 paddingBottom=2 paddingTop=2 mx:Script ![CDATA[ import mx.controls.Alert; import air.update.events.UpdateEvent; import air.update.ApplicationUpdaterUI; private var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI(); private function checkForUpdates():void { appUpdater.updateURL=http://dev/updater/test_app.xml;; appUpdater.addEventListener(UpdateEvent.INITIALIZED,onUpdate); appUpdater.addEventListener(ErrorEvent.ERROR,onError); appUpdater.isCheckForUpdateVisible=false; appUpdater.initialize(); } private function onUpdate(event:UpdateEvent):void { appUpdater.checkNow(); } private function onError(event:ErrorEvent):void { Alert.show(event.toString()); } ]] /mx:Script
[flexcoders] PopUp jumping around.
So I have this PopupManager, in my flex app, that creates a popup on the main screen of the application, but I have an eventlistener set on the main application, which calls a function that tells the Popup to follow the x,y of a sprite a couple displayobjects deep in the displaylist. So a visual in words: SpriteToFollow (aka ns:NodeSprite) SpriteToFollowHolder MainSpriteHolder Applcation/Stage So Popup once popped up follows SpriteToFollow. My Popup has two states min/max where min is 250px by 150px and max is 400px by 400px. When I change states my popup jumps around on the stage. What I have found is when changing min/max or max/min the Popup keeps jumping back to where its x,y were when it was first created. Then a frame later it jumps back to follow the SpriteToFollow. Here is my code that creates and updates the Popup. Maybe someone can help me understand why it keeps going back to where it started? public function creatLaunchSuperDetails( ns:NodeSprite ) : SuperDetailCallout { if(sdc){removeStageFrameEventListener()}; if(sdc){PopUpManager.removePopUp(sdc)}; createSDC( ns ); PopUpManager.addPopUp(sdc, this, false); return sdc; } private function createSDC(ns:NodeSprite) : void { _ns = ns; sdc = new SuperDetailCallout(); var p:Point = ns.localToGlobal(new Point(0,0)); sdc.x = p.x; sdc.y= p.y; this.addEventListener(Event.ENTER_FRAME, handleEnterFrameEvent); if(sdc _ns.data){ var type:String = _ns.data.type != null ? _ns.data.type : ; var name:String = _ns.data.name != null ? _ns.data.name : ; sdc.title=String(name + + type); }else{ throw Error (Nodes.data is + _ns.data); } sdc.line1=Illegal download amount; sdc.line2=offline; } private function handleEnterFrameEvent(event:Event) : void { var pt:Point = new Point(_ns.x, _ns.y); pt = _ns.localToGlobal(new Point(0,0)); trace( pt.x, pt.y); trace( 'x is ' + _ns.x + ' and y is ' + _ns.y); sdc.move( pt.x, pt.y ); }
[flexcoders] Re: Does anyone know how to get an accordion to occupy a specified relative height (
Unless you specify the height of the accordion, it will grow; based on the size of the first child. mx:Panel width=100% height=25% mx:Accordion id=optionsAccordion width=100% height=100% vso:Form label=Accordion Entry 1 width=100% / -TH --- In flexcoders@yahoogroups.com, Keith Hughitt keith.hugh...@... wrote: Does anyone know how to get an accordion to occupy a specified relative height (e.g. 25% of the application) while ensuring that all accordion headers are visible? There are two methods that come pretty close. Both solutions behave exactly as desired when the content of the accordion's first child is small, however, they become problematic when there is a larger amount of content there. (The accordion containers are default behavior is to use a height equal to their first child: http://livedocs.adobe.com/flex/3/langref/mx/containers/Accordion.html). The first method: mx:Panel width=100% height=25% mx:Accordion id=optionsAccordion width=100% vso:Form label=Accordion Entry 1 width=100% / . . . In this case, things work fine when the content of the first accordion section is small, but when it is larger than the desired height, it pushes the panel size up so that it may become very large (e.g. 60% instead of 25% of the screen). For the other method: mx:Panel width=100% height={this.height / 4} mx:Accordion id=optionsAccordion width=100% vso:Form label=Accordion Entry 1 width=100% / . . . ...the height of the panel containing the accordion always uses the correct size, however, the accordion itself may be much larger causing a scrollbar to appear within the panel, and some of the accordion section headers to be pushed down. Originally, I thought the issue was related to how the Panels behaved (see http://tech.groups.yahoo.com/group/flexcoders/message/137291), but after some further testing, it appears to be specifically related to how the accordions behave. Any Ideas? Any help would be greatly appreciated! Thanks, Keith
[flexcoders] Re: Graph suggestion wanted
Hi Vic, Since the variance over time doesn't change significantly, a time-based line chart doesn't appear to be that useful. It seems that you are really just displaying the relationship between products A, B and C. For something like this a simple bar chart works well. To make the chart more intuitive, you might just want to show the 7 day averages for each product; side by side. Just an idea. -TH --- In flexcoders@yahoogroups.com, Vik vik@... wrote: I have some data which is say quantity for 7 days. this quantity value on 1st day is 1541 and 2nd day say 1543 , 3rd day say 1541 and so for 7 days just varies by 1 or 2 units. I created a line graph to depict. But as the quantity varies to a small value every day so the graph does not look interesting at all. It looks like a straight line (at least to human eyes). So, any suggestions to draw a graph which looks interesting showing this small variation a bit prominent. Just to add further i choose this line series graph coz i had three such quantities. Say product A quantity, product B quantiy and product C quantity. Product A quantiy starts at 1541 and varies +/- 1 to 2 every day and similarly product B's start at 645, product C's start at 115 with same degree of variation. In all graph looks just 3 straight lines.. how to make a bit interesting grpah with such type of data? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com
[flexcoders] Re: generating codes that users can use to pay for a service
--- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote: hello guys before i ask this let me say i know that many people will probably suggest using online payment systems like paypal but that is not an option in my case. so this is what i would like to know. i have a website where companies can post ads but before they can post the ad they have to have a code(key) which they purchase. lets say someone wanted to have his ad running for a month and the total monthly charge is 20 dollars, they have to purchase the code for 20 dollars which they input into the system and if valid then they can post their ad. can i create a system in flex/as3/coldfusion to generate the codes and tie a particular code to an amount for example if you want your ad to run for a month and it costs $20 then the system generates different codes that are worth $20 or can i use a database of some kind to store the codes? and how can i validate the code is worth $20? hope my question is clear. Google: CreateUUID().
[flexcoders] Re: Can't seem to get Myriad Pro to encode in Flex
Hi, Adrian. I had a terrible time with this a few months back, but finally got it all figured out. If you can post exactly what you're including in your FLA (that's the way I ended up doing it), and exactly what you're including in your font declarations, I think I can help you get this cleared up pretty quickly. Ross
[flexcoders] Re: MaskedTextInput
This *is* possible. In your html-template directory, locate the index.template.html file. In the file, locate these lines of code (should be around Lines 90-thru-100, assuming you haven't modified this file): == CODE === } else { // flash is too old or we can't detect the plugin var alternateContent = 'Alternate HTML content should be placed here. ' == /CODE == Immediately before the line with the } else {, add the following: == CODE === document.THE_NAME_OF_YOUR_MAIN_MXML_FILE.focus(); == /CODE === In your main MXML file, add the following to the creationComplete attribute: == CODE === stage.focus = YOUR_MASKED_INPUT; == /CODE === That should do it. Your users won't be forced to click in the browser to begin typing. --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... wrote: I am trying to implement that control into my application. When an application starts I want to have a control that is based on MaskedTextInput seleted. So, in my init I am saying: badgeid.setFocus(); badgeid would get its border highlighted but a mouse pointer will not be inside of MaskedTextInput and to start entering data the user has to click on badgeid. Is it possible to position mouse pointer into the MaskedTextInput text input control without licking on it? Thanks
[flexcoders] Re: Error: Error #1023: Stack overflow occurred.
HI Tom my friend ;) I actually just found one difference after reinstalling everything and got myself a fresh new version of the sources from the repository - the only differnce is the operating system. I actually process the datastructure recusively and use the ArrayCollection - untill the length property is undefined and the system throws the Error. Best regards. --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote: On Tuesday 24 Feb 2009, florian.salihovic wrote: I am the only developer in my team who gets this error. Three more people compiled the code successfully. Well, clearly there is something different about your environment. The error appears when i try to access the length property of an ArrayCollection/ListCollectionView. The code is processed recursively. Why do you need to use recursion to find the length of an AC ? How come this AC is different for you and the other people ? -- Tom Chiverton Helping to economically maximize high-end communities This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Gumbo: states Could not resolves states to a component implementation.
I am inside a custom component and I am getting could not resolve states to a component implementation. See code below. ?xml version=1.0 encoding=utf-8? fig:CalloutContainer xmlns:fig=com.adobe.wheelerstreet.fig.callout.* xmlns=http://ns.adobe.com/mxml/2009; mouseDown=stopProp(event) mouseMove=stopProp(event) click ={ handleMouse(event); } rollOver={ handleMouse(event); } rollOut ={ handleMouse(event); } states State name=minState enterState=superDetailsMinimized(event) / State name=maxState enterState=superDetailsMaximized(event) / /states
[flexcoders] Re: Gumbo: states Could not resolves states to a component implementation.
Fixed! Namespace conflict inside a custom component. Changed to the following if anyone else has the issue. ?xml version=1.0 encoding=utf-8? fig:CalloutContainer xmlns:fig=com.adobe.wheelerstreet.fig.callout.* xmlns=http://ns.adobe.com/mxml/2009; xmlns:mx=http://ns.adobe.com/mxml/2009; mouseDown=stopProp(event) mouseMove=stopProp(event) fig:states State name=minState enterState=superDetailsMinimized(event) / State name=maxState enterState=superDetailsMaximized(event) / /fig:states --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: I am inside a custom component and I am getting could not resolve states to a component implementation. See code below. ?xml version=1.0 encoding=utf-8? fig:CalloutContainer xmlns:fig=com.adobe.wheelerstreet.fig.callout.* xmlns=http://ns.adobe.com/mxml/2009; mouseDown=stopProp(event) mouseMove=stopProp(event) click ={ handleMouse(event); } rollOver={ handleMouse(event); } rollOut ={ handleMouse(event); } states State name=minState enterState=superDetailsMinimized(event) / State name=maxState enterState=superDetailsMaximized(event) / /states
RE: [flexcoders] Re: Error: Error #1023: Stack overflow occurred.
Different platforms may have different stack sizes. You might have to flatten your algorithm. 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 florian.salihovic Sent: Tuesday, February 24, 2009 1:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Error: Error #1023: Stack overflow occurred. HI Tom my friend ;) I actually just found one difference after reinstalling everything and got myself a fresh new version of the sources from the repository - the only differnce is the operating system. I actually process the datastructure recusively and use the ArrayCollection - untill the length property is undefined and the system throws the Error. Best regards. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Tom Chiverton tom.chiver...@... wrote: On Tuesday 24 Feb 2009, florian.salihovic wrote: I am the only developer in my team who gets this error. Three more people compiled the code successfully. Well, clearly there is something different about your environment. The error appears when i try to access the length property of an ArrayCollection/ListCollectionView. The code is processed recursively. Why do you need to use recursion to find the length of an AC ? How come this AC is different for you and the other people ? -- Tom Chiverton Helping to economically maximize high-end communities This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] Re: parentDocument variables
Me personally? Probably never. 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 oneworld95 Sent: Tuesday, February 24, 2009 10:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: parentDocument variables Thanks, Alex. When would you use a custom event to connect the main Application with an itemRenderer component? - Alex C --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: parentDocument should be ready to go in your data setter. Test it like this. override public function set data(value:Object):void { trace(parentDocument); } Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of oneworld95 Sent: Tuesday, February 24, 2009 9:05 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: parentDocument variables By the way, if there's a better way to do it, please let me know. Thanks :) - Alex C --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, oneworld95 oneworld95@ wrote: Awhile back, someone on this group mentioned that a good way for a component inside an itemRenderer to access variables in the parentDocument was to use custom events. I've found some info on custom events, but can't quite wrap my brains around how this would work with the itemRenderer's set data() function, where the parentDocument variable needs to be accessed. Your help is much appreciated. - Alex C
[flexcoders] Re: MaskedTextInput
Yep, that worked, thanks a lot!!! --- In flexcoders@yahoogroups.com, huu...@... huu...@... wrote: This *is* possible. In your html-template directory, locate the index.template.html file. In the file, locate these lines of code (should be around Lines 90-thru-100, assuming you haven't modified this file): == CODE === } else { // flash is too old or we can't detect the plugin var alternateContent = 'Alternate HTML content should be placed here. ' == /CODE == Immediately before the line with the } else {, add the following: == CODE === document.THE_NAME_OF_YOUR_MAIN_MXML_FILE.focus(); == /CODE === In your main MXML file, add the following to the creationComplete attribute: == CODE === stage.focus = YOUR_MASKED_INPUT; == /CODE === That should do it. Your users won't be forced to click in the browser to begin typing. --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: I am trying to implement that control into my application. When an application starts I want to have a control that is based on MaskedTextInput seleted. So, in my init I am saying: badgeid.setFocus(); badgeid would get its border highlighted but a mouse pointer will not be inside of MaskedTextInput and to start entering data the user has to click on badgeid. Is it possible to position mouse pointer into the MaskedTextInput text input control without licking on it? Thanks
[flexcoders] Re: Anyone have issue with AIR updater on Mac OSX
Same here, on Leopard we've solved waiting a little timeout before dispatching the initialiazed event... I guess it's a bug... // Once initialized, wait timeout (workaround for late event) then run onUpdate appUpdater.addEventListener(UpdateEvent.INITIALIZED, function(e:Event):void { setTimeout(onUpdate, 100, UpdateEvent(e)); } ); --- In flexcoders@yahoogroups.com, Rick Schmitty flexc...@... wrote: I'm using the ApplicationUpdaterUI component to manage updates. The update process works perfectly on windows, however on OSX the update window merely flashes very quickly once and goes straight to the app no errors detected, thus not allowing the user to ever update. Again works fine on windows XP ?xml version=1.0 encoding=utf-8? mx:WindowedApplication showFlexChrome=false creationComplete=checkForUpdates() xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=0xff paddingLeft=2 paddingRight=2 paddingBottom=2 paddingTop=2 mx:Script ![CDATA[ import mx.controls.Alert; import air.update.events.UpdateEvent; import air.update.ApplicationUpdaterUI; private var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI(); private function checkForUpdates():void { appUpdater.updateURL=http://dev/updater/test_app.xml;; appUpdater.addEventListener(UpdateEvent.INITIALIZED,onUpdate); appUpdater.addEventListener(ErrorEvent.ERROR,onError); appUpdater.isCheckForUpdateVisible=false; appUpdater.initialize(); } private function onUpdate(event:UpdateEvent):void { appUpdater.checkNow(); } private function onError(event:ErrorEvent):void { Alert.show(event.toString()); } ]] /mx:Script
[flexcoders] Setting Consumer Selector On BlazeDS Server
Is there any way to have the server set the selector for the consumer? It looks like you should be able to intercept the subscribe commandmessage and override the headers, but that isn't working. Alternately, I have users that are in groups and I want any message that is sent to a group to be sent to every member of that group. That the client application doesn't necessarily know what group they are in (sometimes for security reasons), although the server always does. - Daniel Freiman
Re: [flexcoders] Re: generating codes that users can use to pay for a service
On behalf of your future customers, please don't - having to enter long Windows product keys every now and then is painful enough. A random 8 digit number should be plenty given that once a code has been used, it can be reused for another purchase. 2009/2/25 alinmircea_s alinmirce...@yahoo.com: --- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote: hello guys before i ask this let me say i know that many people will probably suggest using online payment systems like paypal but that is not an option in my case. so this is what i would like to know. i have a website where companies can post ads but before they can post the ad they have to have a code(key) which they purchase. lets say someone wanted to have his ad running for a month and the total monthly charge is 20 dollars, they have to purchase the code for 20 dollars which they input into the system and if valid then they can post their ad. can i create a system in flex/as3/coldfusion to generate the codes and tie a particular code to an amount for example if you want your ad to run for a month and it costs $20 then the system generates different codes that are worth $20 or can i use a database of some kind to store the codes? and how can i validate the code is worth $20? hope my question is clear. Google: CreateUUID(). -- 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] Stopping a Line Series on a Line Graph
Can anyone help me figure out how to stop a line from being drawn on a line graph after a certain date has been reached? I currently have a line graph that shows cumulative planned activities counts and cumulative actual completed activities counts. However, once the actual completed line reaches today's date, the line turns into a flat straight line. I would like to have the graph stop drawing the line when the current date has been reached. I have tried to used the interpolateValues option and have set the cumulative actual completed activities count to null after the current date has been reached, but the line graph is drawing a straight line to zero on the graph instead on not continuing the line segment. Thanks, ~Chris
RE: [flexcoders] Re: XML Parsing - maintaining a record pointer
Both XMLList and XMLListCollection can be accessed by index. Tracy From: flexcoders@yahoogroups.com on behalf of Libby Sent: Tue 2/24/2009 10:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML Parsing - maintaining a record pointer well, this is a sequential file, output from a mainframe and basically I need to start at the top and work my way to the bottom, with frequent look-aheads. I have been trying hard to use e4x but so far have not been successful with getting it to work. apparently there is something about the syntax I am not getting. That cursor idea another poster mentioned sounds intriguing... --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspr...@... wrote: 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:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Sam Lai Sent: Friday, February 20, 2009 4:12 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.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...@... 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 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- 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 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 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links winmail.dat
RE: [flexcoders] Re: Accordion question - height minus header space
Yes, most all layout containers have default padding. Tracy From: flexcoders@yahoogroups.com on behalf of lanekelly5 Sent: Tue 2/24/2009 9:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Accordion question - height minus header space I think I have it close using: accordion.height - (accordion.numChildren * accordion_header_height) What I'm finding though is that the calculation comes in roughly 3 pixels too short. If I use the result of the above for my TileList hight (the element that I'm placing in the accordion container) I still get some wasted space at the bottom. For the moment I'm just adding in a fudge constant of 3 pixels to make it look right. Could this discrepancy be the result of padding somewhere? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , alinmircea_s alinmirce...@... wrote: child's height or width can be specified percent wise width=100% myComponent.percentWidth = 100; but if you have to you have to http://livedocs.adobe.com/flex/3/langref/mx/containers/Accordion.html http://livedocs.adobe.com/flex/3/langref/mx/containers/Accordion.html quote : headerHeight=depends on header font styles = Number(myAccordion.getStyle('headerHeight')) winmail.dat
RE: [flexcoders] appending a record to xml file
What server platform and language are you using to read/write on the server file system? From: flexcoders@yahoogroups.com on behalf of naresh ch Sent: Tue 2/24/2009 9:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] appending a record to xml file how to append a recored to external xml file suppose i have 2 or 3 text inputs at user end and i want them to append to an existing external XML file Please share any example if you have or guide me to solve my problem Thanks in advance naresh Add more friends to your messenger and enjoy! Invite them now. http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/ winmail.dat
RE: [flexcoders] NavBar - setTargetViewStack
Consider binding the dataProvider instead of assigning it. Tracy From: flexcoders@yahoogroups.com on behalf of mikeycmccarthy Sent: Tue 2/24/2009 4:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] NavBar - setTargetViewStack Hi there, I've written a code behind that manages a ViewStack and a TabBar (it's almost like a PureMVC mediator without actually being a mediator). The ViewStack is the dataprovider of the TabBar. When I try to test this I get the problem that the dataprovider is always null. I've attached the Flex source code and put it in debug mode and I've noticed it jumps to the setTargetViewStack method of NavBar: private function setTargetViewStack( newStack:Object /* can be String or ViewStack */):void { // If this property is set at creation time, the target view stack // may not exist yet. In this case, we just save off the requested // target stack and set it later. if (!measurementHasBeenCalled newStack) { pendingTargetStack = newStack; invalidateProperties(); } else { _setTargetViewStack(newStack); } } Measurement hasn't been called so my dataProvider is null (well, pending). Is there any way to force this? It's making it really really difficult to do a test! Thanks in advance! winmail.dat
RE: [flexcoders] combo box help
Have a change handler on the ComboBox get the key value form the selectedItem and invoke an RPC call (protocol of you choice) aganst the server platform, passing in the key value. Have the backend query the database using the key, and return the value to Flex via a result handler. Have that handler set an instance variable to which you have bound the Tree. Voila! Tracy From: flexcoders@yahoogroups.com on behalf of manne praneeth Sent: Sat 2/21/2009 3:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] combo box help hi this is praneeth here! when i select one item in combo box it should interact with data base and get the the data so that it should generate dynamic tree in new states .This is my requirement So plz help me out in solving bzc iam new in flex Thankyou. winmail.dat
[flexcoders] Re: Stopping a Line Series on a Line Graph
Hi Chris, You might try using a custom LineRenderer. In the updateDisplayList method, look at GraphicsUtilities.drawPolyLine(). It might be a little tricky, but you could manipulate the _lineSegment.items and _lineSegment.end parameters; to truncate the line at the desired position. -TH --- In flexcoders@yahoogroups.com, c_higgon higdonchristoph...@... wrote: Can anyone help me figure out how to stop a line from being drawn on a line graph after a certain date has been reached? I currently have a line graph that shows cumulative planned activities counts and cumulative actual completed activities counts. However, once the actual completed line reaches today's date, the line turns into a flat straight line. I would like to have the graph stop drawing the line when the current date has been reached. I have tried to used the interpolateValues option and have set the cumulative actual completed activities count to null after the current date has been reached, but the line graph is drawing a straight line to zero on the graph instead on not continuing the line segment. Thanks, ~Chris
[flexcoders] Overiding Hide effect? I want to hide immediately
Hi, I've got a hideEffect on a label with a duration of 4 seconds. When I set the visible=false on the label, it takes 4 seconds to fade away. Is there a way to make it disappear immediately in some cases? I need this to also work in the middle of the fade effect. thanks,
[flexcoders] Re: property editor component
I don't know of a component, but i implemented a property editor several years ago. the core is the input item REnderer. Here is the code, maybe it will help Tracy mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* width=100% horizontalAlign=right verticalAlign=middle mx:Script![CDATA[ import mx.core.IFlexDisplayObject; import mx.core.UIComponent; import mx.collections.XMLListCollection; import mx.collections.ArrayCollection; import mx.managers.PopUpManager; import components.RTEPopUp; import components.TAPopUp; [Bindable]private var _xmlAttribute:XML; private var _xmlComponentDef:XML; [Bindable]private var _xlOptions:XMLList; [Bindable]private var _iOptionItemIndex:int; private var _popUpRTE:RTEPopUp; private var _popUpTA:TAPopUp; override public function set data(value:Object) : void { //trace(IRPropertyInput.set data); super.data = value; _xmlAttribute = XML(value) _xmlComponentDef = _xmlAttribute.parent(); var sControlType:String = _xmlattribu...@inputtype; try { currentState = sControlType; } catch (error:Error) { currentState = TextInput; } if (sControlType == ComboBox) { _xlOptions = _xmlAttribute.option; selectOptionItem(); } }// private function selectOptionItem():void { var xmlOption:XML; var sValue:String = _xmlattribu...@value; for (var i:int=0; i_xlOptions.length();i++) { xmlOption = _xlOptions[i]; if (xmlopti...@value == sValue) { _iOptionItemIndex = i; break; } } }// private function showRTE():void { var iX:int = int(getAttrValue(x)); var iY:int = int(getAttrValue(y)); iY = (iY 30) ? iY-30:0 ; var iWidth:int = int(getAttrValue(width)); iWidth = (iWidth 400) ? iWidth:400; var iHeight:int = int(getAttrValue(height)) + 30; iHeight = (iHeight 300) ? iHeight:300 ; _popUpRTE = RTEPopUp(PopUpManager.createPopUp(this, RTEPopUp, true)); _popUpRTE.x=iX; _popUpRTE.y=iY; _popUpRTE.width=iWidth; _popUpRTE.height=iHeight; _popUpRTE.htmlText = _xmlattribu...@value; _popUpRTE.addEventListener(closeRTE,onCloseRTE); }// private function onCloseRTE(oEvent:Event):void { if(oEvent.target.closeMode == ok) { _xmlattribu...@value = oEvent.target.htmlText; } PopUpManager.removePopUp(_popUpRTE); }// private function showTA():void { _popUpTA = TAPopUp(PopUpManager.createPopUp(this, TAPopUp, true)); _popUpTA.text = _xmlattribu...@value; _popUpTA.addEventListener(closeTA,onCloseTA); //PopUpManager.centerPopUp(_popUpTA); _popUpTA.x=100; _popUpTA.y=100; }// private function onCloseTA(oEvent:Event):void { if(oEvent.target.closeMode == ok) { _xmlattribu...@value = oEvent.target.text; } PopUpManager.removePopUp(_popUpTA); }// /** */ private function getAttrValue(sName:String):String { var sReturn:String = ; var xmlAttrNode:XML = _xmlComponentDef.*.(@name==sName)[0]; if (xmlAttrNode) { sReturn = xmlAttrNode.attribute(value); } return sReturn; }//getAttrValue private function setupColorPicker():void { trace(setupColorPicker: + _xmlattribu...@value); cp.selectedcolor=_xmlattribu...@value } //setupColorPicker private function clearColor():void { _xmlattribu...@value = ; }// ]]/mx:Script mx:states mx:State name=CheckBox mx:AddChild mx:CheckBox id=cbx label= creationComplete=cbx.selected=_xmlattribu...@value change=_xmlattribu...@value = cbx.selected; / /mx:AddChild /mx:State mx:State name=TA mx:AddChild mx:Button id=ta label=... height=22 width=22 click=showTA()/mx:Button /mx:AddChild /mx:State mx:State name=RTE mx:AddChild mx:HBox width=100% verticalAlign=middle horizontalAlign=right horizontalGap=2 mx:Label text={XML(_xmlAttribute)@value} color=#99 truncateToFit=true fontSize=8 width={this.width-35} / mx:Button id=rte label=... height=22 width=22 toolTip=Edit htmlText with tich text editor click=showRTE() / /mx:HBox /mx:AddChild /mx:State mx:State name=ComboBox mx:AddChild mx:ComboBox id=cbo dataProvider={_xlOptions} selectedIndex={_iOptionItemIndex} labelField=@value change=_xmlattribu...@value = cbo.selectedLabel width=100% / /mx:AddChild /mx:State mx:State name=TextInput mx:AddChild mx:TextInput
[flexcoders] Re: property editor component
Where will the dataProvider come from? --- In flexcoders@yahoogroups.com, Sefi Ninio sefi.ni...@... wrote: Okay, how about this: When defining a combo box as an itemEditor, and specifying the editorDataField - How can I specify the combo box dataProvider? I can use the model to bind a dp to the combobox, but I'd like to create a generic component that does not have dependencies on external models... On Sun, Feb 22, 2009 at 1:54 PM, Sefi Ninio sefi.ni...@... wrote: Hi all. I'm looking for a property editor component (or something similar to the description below): What I need is a table (DG) based name-value pairs editor, where the value should be displayed as a label. When it gets focus, it should be editable according to the value defined type (text, stepper, combo box etc.) Sure, I can implement components (as item editors for the DG) with two states for text/combo box, text/stepper, text/text editor etc. I was wondering if there is a component that already has this functionality. Anyone has any ideas? Thanks
Re: [flexcoders] Re: Anyone have issue with AIR updater on Mac OSX
Thanks Marcello, that definitely wouldn't have been something I would thought to try :) On Tue, Feb 24, 2009 at 5:33 PM, Marcello Teodori marcello.teod...@gmail.com wrote: Same here, on Leopard we've solved waiting a little timeout before dispatching the initialiazed event... I guess it's a bug... // Once initialized, wait timeout (workaround for late event) then run onUpdate appUpdater.addEventListener(UpdateEvent.INITIALIZED, function(e:Event):void { setTimeout(onUpdate, 100, UpdateEvent(e)); } ); --- In flexcoders@yahoogroups.com, Rick Schmitty flexc...@... wrote: I'm using the ApplicationUpdaterUI component to manage updates. The update process works perfectly on windows, however on OSX the update window merely flashes very quickly once and goes straight to the app no errors detected, thus not allowing the user to ever update. Again works fine on windows XP ?xml version=1.0 encoding=utf-8? mx:WindowedApplication showFlexChrome=false creationComplete=checkForUpdates() xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=0xff paddingLeft=2 paddingRight=2 paddingBottom=2 paddingTop=2 mx:Script ![CDATA[ import mx.controls.Alert; import air.update.events.UpdateEvent; import air.update.ApplicationUpdaterUI; private var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI(); private function checkForUpdates():void { appUpdater.updateURL=http://dev/updater/test_app.xml;; appUpdater.addEventListener(UpdateEvent.INITIALIZED,onUpdate); appUpdater.addEventListener(ErrorEvent.ERROR,onError); appUpdater.isCheckForUpdateVisible=false; appUpdater.initialize(); } private function onUpdate(event:UpdateEvent):void { appUpdater.checkNow(); } private function onError(event:ErrorEvent):void { Alert.show(event.toString()); } ]] /mx:Script