[flexcoders] Weirdest error ever!
Hi All I am currently getting the weirdest error. It comes and goes quite randomly. For instance, it have showed up from me adding a comment to the code or disappeared from deleting blank lines in the source. I have tried it in both FB3 and FB4b2, but to no avail. Could someone please shed some light on this? Thank you in advance --Allan ReferenceError: Error #1065: Variable is not defined. at global/flash.utils::getDefinitionByName() at mx.utils::DescribeTypeCache$/describeType()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\utils\DescribeTypeCache.as:95] at mx.utils::ObjectUtil$/getClassInfo()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\utils\ObjectUtil.as:838] at mx.controls::DataGrid/generateCols()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:2416] at mx.controls::DataGrid/collectionChangeHandler()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:4180] at mx.controls.listClasses::ListBase/set dataProvider()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:1847] at mx.controls::DataGrid/set dataProvider()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1343] at mx.core::Container/createComponentFromDescriptor()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:3638] at mx.core::Container/createComponentsFromDescriptors()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:3536] at mx.core::Container/createChildren()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:2632] at mx.core::UIComponent/initialize()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5370] at mx.core::Container/initialize()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:2569] at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5267] at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:3348] at mx.core::Container/addChildAt()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:2260] at mx.core::Container/addChild()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:2183] at mx.core::Container/createComponentFromDescriptor()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:3724] at mx.core::Container/createComponentsFromDescriptors()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:3536] at mx.core::Container/createChildren()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:2632] at mx.core::UIComponent/initialize()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5370] at mx.core::Container/initialize()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:2569] at mx.core::Application/initialize()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Application.as:864] at AgriNord/initialize()[C:\Documents and Settings\Pro-M\Adobe Flash Builder Beta 2\AgriNord\src\AgriNord.mxml:0] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2127] at mx.managers::SystemManager/initializeTopLevelWindow()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3396] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3219] at mx.managers::SystemManager/docFrameListener()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3065]
[flexcoders] Water Marker Issue(urgent)
Hi, I am using flexbuilder3. I have got a licensed version of it. I have built a chart,and running the application in eclipse. But there is a water marker in it. I tried to give the license in the flex-config.xml, but when i run my application,it says ERROR : UNKNOWN Configuration VARIABLE Licenses' Can anybody help me. Thanks.
[flexcoders] How can I use Grouping collection to group data on the parent ?
HI All, I am new to flex and learning on the job and also under time pressure to finish the work,, I hava an Array in which a parentid is added, which has values as 0 and non-zero values. Parent id = 0 means it is the parent, parent id != 0 means that the parent of the service is that id. I am setting parent id equal to the service id when parent id = 0, so the children and parent can be grouped together. How can i group the data on parent id an show the data in a tree structure with the parent row which has values and the children under that parent , to show as children with values in the row. Now the Array looks like below and I have added the column for Parent to the grid. Is it required that the parent column in the ADG with dataField =PService should be visible? Thanks for the help. I am doing a check to set the PService in the array dp as below. This will not compile just to show what I am doing where xp has the parent id from the Array. var xp:String= (Xs[i].parentid as String); if(xp == 0) { xp = xd[0]; PService=xp; } dp.addItem( { Index:xd[0] , Service:xd[ 1], Priority:xd[ 2], Current SLA:xd[3], Health:xd[ 4], Quality:xd[ 5], Risk:xd[6] , Avail:xd[7] , OpMode:xd[ 8], dd:ddArr, PService :PService} ); ?xml version=1.0 ? !-- Dashboard Main Service Summary table -- mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml width=100% height=100% backgroundColor= #FF initialize= initApp() ; creationComplete= onCreationCompl ete(); mx:Style .hStyle { fontWeight:bold; fontFamily:Verdana; fontSize:12; align:center; } /mx:Style mx:Script ![CDATA[ import com.adobe.serializa tion.json. JSON; import flash.events. Event; import flash.events. TimerEvent; import flash.external. ExternalInterfac e; import flash.utils. Timer; import mx.collections. ArrayCollection; import mx.controls. AdvancedDataGrid ; import mx.controls. advancedDataGrid Classes.Advanced DataGridColumn; import mx.controls. Alert; import mx.controls. Image; import mx.resources. IResourceManager ; import mx.resources. ResourceManagerI mpl; import mx.rpc.events. ResultEvent; import mx.rpc.events. FaultEvent; import mx.controls. advancedDataGrid Classes.* ; import mx.controls. *; import mx.events.*; import mx.controls. Menu; [Bindable] public var sURL:String= ; [Bindable] public var rURL:String = ; [Bindable] public var labels:ArrayCollect ion = null; [Bindable] public var cTitle:String = Services; [Bindable] public var userid:String = 1; [Bindable] public var dObj:Object= new Object(); private var myTimer:Timer; private var delay:uint = 3; // Default 30 secs private var repcount:uint = 0; private var date:Date = new Date(); [Bindable] private var sDate:String = ; private function initApp( ) : void { // Do what FlexModuleFactory does, only by hand. var rMI:Object = flash.system. ApplicationDomai n.currentDomain. getDefinition( mx.resources. ResourceManagerI mpl ); mx.core.Singleton. registerClass( mx.resources. IResourceManager , Class(rMI) ); } private function onCreationComplete( ) : void { var parm:String = Application. application. parameters. userid; if ( (parm != null) (parm.length 0) ) userid = parm; buildURL( ); // Alert.show( URL= + sURL ); sst.send(); } private function buildURL( ) : void { sURL = charts/serviceADGT able.swf ; } private function onFaultLoad( event:FaultEvent ) : void { Alert.show( onFaultLoad: + event.fault. message); } private function onJSONLoad( event:ResultEvent ) : void { var rawData:String = null; var bObj:Object = null; var tObj:Object = null; var myMenu:Menu; var dp:ArrayCollection = new ArrayCollection( ); rawData = String( event.result ); gc.source=dpSrv; gc.refresh() ; } [Bindable] public var ddLink2:ArrayCollec tion = new ArrayCollection( [ { label1:Google , url1:http://google. com},{label2: yahoo, url2:http://yahoo. com } ]); [Bindable] public var ddLink1:ArrayCollec tion = new ArrayCollection( [ { label1:Hotmail , url1:http://hotmail. com } ]); [Bindable] public var dpSrv:ArrayCollecti on = new ArrayCollection( [ { Index:450359962738 8358, Service:GAUSU01- BPV- , Priority:Unspecifi ed, CurrentSLA: 0,
Re: [flexcoders] Water Marker Issue(urgent)
Did the app originate from FB2? I had that issue and it's because FB2 had a separate licence for charting. If you have FB3 Pro you can get the 2nd license for free through Adobe -- Sent from my Palm Prē Shashi wrote: Hi, I am using flexbuilder3. I have got a licensed version of it. I have built a chart,and running the application in eclipse. But there is a water marker in it. I tried to give the license in the flex-config.xml, but when i run my application,it says ERROR : UNKNOWN Configuration VARIABLE Licenses' Can anybody help me. Thanks.
[flexcoders] Re: Get strong propertyName from object so it would break at compile time if changed
--- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote: Is there a way to get a strong property name from an object? scenario ... Person class having weight property var column:DataGridColumn column.dataField = weight; can i do something like: column.dataField = Person.weight.getPropertyName(); ... so that if this weight property is renamed one day I would get compile time warning? You can look for Person.hasOwnProperty('weight') to see if the property exists at runtime. If you want a compile-time warning, just put in a hard reference somewhere to aPerson.weight. HTH; Amy
RE: [SPAM] RE: [flexcoders] Re: Make Flex AIR app demand more system resources
I am running normally at 15, and going up to 24 actually looks worse at times, with multiple interim images visible at once, instead of just a stutter. I will continue to experiment, maybe going up to something crazy like 70. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Friday, November 06, 2009 3:33 AM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [flexcoders] Re: Make Flex AIR app demand more system resources And upping the frame rate didn't do what you wanted? Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs. http://blogs.adobe.com/aharui adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Sent: Thursday, November 05, 2009 6:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Make Flex AIR app demand more system resources Ironic, huh? Actually, we are not finding the AIR app to be unreasonably resource hungry. Yes, I am using the papervision cube to navigate between forms, and the animation is not always smooth(sometimes it is). However, the os memory monitor indicates that the air app is not taking the resources it has available at that moment. I will try your suggestion of running something in an enterFrame handler. We just got an important demo wrapped up and I will have some time to work on this. Thanks, Tracy --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Gregor Kiddie gkid...@... wrote: Are you really suggesting that the AIR app isn't a massive resource hog and is unusable for any purpose? This should be a good thread to watch *fetches popcorn* Seriously though, and on topic... When you say it relinquishes resources back to readily, are you talking about CPU time, and therefore getting a jittery frame rate? Could be either the runtime or the OS scheduler I suppose. If the runtime doesn't place a high enough priority on running animations (i.e. AS is given a higher priority) it could release back to easily. Likewise the OS scheduler could be thinking the app is idle when it isn't. Stupid suggestion, but running some AS code alongside the animations... Running something small and inconsequential in an enterframe handler. Does it change the game somewhat? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps. http://www.inps.co.uk/ co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@...
RE: [SPAM] [flexcoders] Re: Get strong propertyName from object so it would break at compile time if changed
Yes, unless Person extends mx:Object, or is explicitly declared as dynamic, a hard reference to a property name will give a compile error if that property does not exist. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of droponrcll Sent: Sunday, November 08, 2009 10:07 AM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Re: Get strong propertyName from object so it would break at compile time if changed --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , tntomek tnto...@... wrote: Is there a way to get a strong property name from an object? scenario ... Person class having weight property var column:DataGridColumn column.dataField = weight; can i do something like: column.dataField = Person.weight.getPropertyName(); ... so that if this weight property is renamed one day I would get compile time warning? You can look for Person.hasOwnProperty('weight') to see if the property exists at runtime. If you want a compile-time warning, just put in a hard reference somewhere to aPerson.weight. HTH; Amy
[flexcoders] Re: Mac-like icon brower library
You are looking for a Tsunami. http://www.google.com/#hl=ensource=hpq=as3+tsunami+effectaq=1aqi=g2oq=as3+Tsunamifp=f856a575d939ef4 --- In flexcoders@yahoogroups.com, Sébastien Tromp sebastien.tr...@... wrote: Hello, Some time ago, I stumbled across a library that defined a container that had behavior similar to the bottom taskbar on Macintoshesµ. You know, when all the icons are aligned, and when you mouse over one of them it gets magnified, and the other icons are repositioned. I lost the bookmark when I had to reformat my computer, and cannot managed to find it again. Would anyone know about this? Regards, -- Sébastien
[SPAM] [flexcoders] Re: Get strong propertyName from object so it would break at compile time if changed
Thank you, but the property should exist, so putting it inside string literals is not the intent. I am more concerned about someone refactoring code and renaming weight to grossWeight and having my application break at compile time vs runtime. So other then this are there any other suggestions. dataColumn.dataField = weight; personObj.weight; // hack to catch rename in future and hopefully be able to find usages where I'd be more likely to find the string literal. --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: Yes, unless Person extends mx:Object, or is explicitly declared as dynamic, a hard reference to a property name will give a compile error if that property does not exist. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of droponrcll Sent: Sunday, November 08, 2009 10:07 AM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Re: Get strong propertyName from object so it would break at compile time if changed --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , tntomek tntomek@ wrote: Is there a way to get a strong property name from an object? scenario ... Person class having weight property var column:DataGridColumn column.dataField = weight; can i do something like: column.dataField = Person.weight.getPropertyName(); ... so that if this weight property is renamed one day I would get compile time warning? You can look for Person.hasOwnProperty('weight') to see if the property exists at runtime. If you want a compile-time warning, just put in a hard reference somewhere to aPerson.weight. HTH; Amy
Re: [flexcoders] Re: Mac-like icon brower library
Thanks a lot, exactly what I was looking for. 2009/11/8 Shanimal yahoo_flexcod...@shanimal.com You are looking for a Tsunami. http://www.google.com/#hl=ensource=hpq=as3+tsunami+effectaq=1aqi=g2oq=as3+Tsunamifp=f856a575d939ef4 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sébastien Tromp sebastien.tr...@... wrote: Hello, Some time ago, I stumbled across a library that defined a container that had behavior similar to the bottom taskbar on Macintoshesµ. You know, when all the icons are aligned, and when you mouse over one of them it gets magnified, and the other icons are repositioned. I lost the bookmark when I had to reformat my computer, and cannot managed to find it again. Would anyone know about this? Regards, -- Sébastien
Re: [flexcoders] Amazing Flex/LCDS/Java/Eclipse/Maven2 step-by-step guide
I have a hard time believing that someone is going to teach me how to build an enterprise application and needs to use Intuit web template to make the site From: primo411 primo...@gmail.com Sent: Saturday, November 07, 2009 11:36 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Amazing Flex/LCDS/Java/Eclipse/Maven2 step-by-step guide I don't know why, I find it hard to believe you... 2009/11/7 Jeffrey Walker jrwalk...@gmail.com I recently came across the best Flex/LCDS/Java/Maven2 guide that I have ever seen before (http://www.flexlcds.com). I have been looking for something like this for a very long time. If you are interested in how all the concepts come together (frontend, middleware, backend, build/deploy), please check it out. I know that it will help you as much as it has helped me!
Re: [flexcoders] Re: Mac-like icon brower library
For info, here is an open-source Tsunami / Dock menu: http://www.quietlyscheming.com/blog/components/fisheye-component/ 2009/11/8 Sébastien Tromp sebastien.tr...@gmail.com Thanks a lot, exactly what I was looking for. 2009/11/8 Shanimal yahoo_flexcod...@shanimal.com You are looking for a Tsunami. http://www.google.com/#hl=ensource=hpq=as3+tsunami+effectaq=1aqi=g2oq=as3+Tsunamifp=f856a575d939ef4 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sébastien Tromp sebastien.tr...@... wrote: Hello, Some time ago, I stumbled across a library that defined a container that had behavior similar to the bottom taskbar on Macintoshesµ. You know, when all the icons are aligned, and when you mouse over one of them it gets magnified, and the other icons are repositioned. I lost the bookmark when I had to reformat my computer, and cannot managed to find it again. Would anyone know about this? Regards, -- Sébastien