RE: [flexcoders] DataGridColumn width
Please use a debug build so we can see line numbers and include the entire stack trace with the error. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jitendra jain Sent: Monday, November 19, 2007 11:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGridColumn width Hi guys, Iam trying to adjust the width of datagridcolumn. First of all i get all the columns using the property of DataGrid i.e dg.columns which return an Array then i want to set the width of the column but it throws an error . I even cast the Array element into DataGridColumn aobject but that also doesn't worked me. Please help. Thanks, Jitendra Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs
[flexcoders] Force skin state
Hi, Is there a way to force a component to have a specific skin state (e.g. 'd like to set a tab of a tab navigator to the upSkin state). thanks_rico
[flexcoders] Animated PNG
I fully realize there may be patent issues with Adobe using animated GIF. However, what about Animated PNG? I've considered this subject for some time, and I am concerned that Adobe is withholding a great potential improvement in Flash to benefit FLV. I maybe completely wrong -- but that is why I'm posing the question. Lossless reduced color spaces have a great potential benefit to the web. It would be Adobe's free choice whether to include it or not -- but then again, we are free to dump any platform that is overly zealous when it comes to the economics of supply. -r - Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.
Re: [flexcoders] Cairngorm - what's you best practice on handling inital data from the server ?
Hi Tom, Thanks, I think your addition will help me too, yet, I think you refer to another issue which is whther the TabBar can accept user interaction, which is an issue I havn't take care of yet. I could leverage the model.doneStartUp flag to start manipulating the view data, but I think when initializing a view component properties, it is more intuitive to first try binding the component to a specific function or property from the model or an helper function, this is a matter of personal taste, but also can help initializing components while configuration data is being retrieved from the server: For example, if my app needs to get 10 configuration files that needs to be loaded before the user can start interaction, I'll show him a modal screen showing the process, but for the sake not delaying the user after the services were loaded by initializing complex component with the retrieved data, the binding can cause the components to initialize before all the services were loaded. Best regards, Almog Kurtser. - Original Message From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 20, 2007 11:58:12 AM Subject: Re: [flexcoders] Cairngorm - what's you best practice on handling inital data from the server ? On Monday 19 Nov 2007, mydarkspoon wrote: However, in the view I have a TabBar, that needs to manipulate the XML config file from the model, meaning that it has to know when this xml is retrieved. I found few approaches to this: Have your app. start up result handler set something like model.doneStartUp, and bind your TabNavigator's enabled property to that ? -- Tom Chiverton Helping to advantageously introduce visionary e-tailers on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Re: [flexcoders] Flex 2.0.1: Can shared objects be saved in any location that we want?
On Sunday 18 Nov 2007, handitan wrote: I am trying to saved shared objects in my thumb drive but no result so far. You mean SharedObject's ? No, you can't change where those go. -- Tom Chiverton Helping to continually synergize network action-items on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Problem with keyboard - IE7 + Vista
On Sunday 18 Nov 2007, danielvlopes wrote: flex apps and works fine, but i have problems in FF when use wmode transparent in html wrapper. Known FireFox issue, search their Bugzilla. -- Tom Chiverton Helping to professionally market cross-media e-markets on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] 1046: Type was not found or was not a compile-time constant: Session.
On Friday 16 Nov 2007, Manu Dhanda wrote: No, it doesn't use Cairngorm. You'd best post a small snippit of code that gives the error then. -- Tom Chiverton Helping to seamlessly create best-of-breed technologies on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Adobe AIR runs on U3?
On Thursday 15 Nov 2007, handitan wrote: Does anybody know if it is possible to write Adobe AIR applications that run on U3 drives? On what ? AIR applications can be brought to the system on any media the O/S recognises, and then installed. -- Tom Chiverton Helping to advantageously drive integrated portals on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex Builder 3 Beta 2 Resource Error (unable to resolve resource bundle collections for locale...)
Thanks to the following post: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg73202.html I managed to resolve it by changing my compiler options from: -locale=en_GB -source-path=locale/{locale} To: -locale=en_GB,en_US -source-path=locale/{locale} Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: 20 November 2007 09:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex Builder 3 Beta 2 Resource Error (unable to resolve resource bundle collections for locale...) Anyone from Adobe got any info on this problem? Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: 19 November 2007 17:31 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex Builder 3 Beta 2 Resource Error (unable to resolve resource bundle collections for locale...) Hmm, I copied the following files: Airframework_rb.swc Automation_agent_rb.swc Automation_rb.swc Datavisualization_rb.swc Framework_rb.swc Rpc_rb.swc Into the E:\Applications\Development\Adobe Flex Builder 3\sdks\3.0.0\frameworks\locale\en_GB directory (from the en_US directory). But it made no difference. The bundles it can't find are: Collections Containers Controls Core Effects Formatters Logging Messaging Rpc SharedResources Skins Utils (77 errors in total due to unresolved bundles) Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Melby Sent: 19 November 2007 17:19 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex Builder 3 Beta 2 Resource Error (unable to resolve resource bundle collections for locale...) Mark - I saw something similar with the AdvancedDataGrid after upgrading. In my case there was a separate .swc file for the resource bundle stuff that needed to be added to the project (datavisualization_rb.swc)... My guess is that there is a similar solution for your issue. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com Mark Ingram wrote: Hi, I've just upgraded our production project to FB3 Beta2. I've had several errors which I've fixed but now I'm having trouble with the resources. Unable to resolve resource bundle collections for locale en_GB. And many others like it. I've created a blank directory in the frameworks folder to stop another error. How can I get FB3 to use compile-time localisation - as it was in FB2?? Thanks, Mark P.S. I've noticed this reported on the bug list, but it's closed. http://bugs.adobe.com/jira/browse/SDK-12507 http://bugs.adobe.com/jira/browse/SDK-12507 I think it needs re-opening as it's causing a hinderance trying to upgrade an older project.
Re: [flexcoders] Flex TabBar is sniffy about my XMLListCollection DataProvider.
Thanks Alex, with iconField set to null, it works! (no idea why) Should I be doing something more with this test case to report a bug, or is your 'heads up' enough? I've been banging my head over this for days (I tried all sorts of things in the main application to see what was going on). I'm rather surprised that there's a bug - am I the only one driving a TabBar from and XMLListCollection? Thanks again for your help. Paul - Original Message - From: Alex Harui To: flexcoders@yahoogroups.com Sent: Tuesday, November 20, 2007 6:39 AM Subject: RE: [flexcoders] Flex TabBar is sniffy about my XMLListCollection DataProvider. I think that's a bug. I'm not sure we did enough testing with XMLListCollection with TabNav. Try setting iconField to null as a workaround. --
[flexcoders] How to Convert LCDS project into AIR?
Hi All, I'm using Flex builder 2 pluing and LCDS in Eclipse IDE (backend java), Now I want to convert this project into AIR application. Need your help for conversion. Thanks in advance, Vinoth Babu T.J
RE: [flexcoders] Flex Builder 3 Beta 2 Resource Error (unable to resolve resource bundle collections for locale...)
Anyone from Adobe got any info on this problem? Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: 19 November 2007 17:31 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex Builder 3 Beta 2 Resource Error (unable to resolve resource bundle collections for locale...) Hmm, I copied the following files: Airframework_rb.swc Automation_agent_rb.swc Automation_rb.swc Datavisualization_rb.swc Framework_rb.swc Rpc_rb.swc Into the E:\Applications\Development\Adobe Flex Builder 3\sdks\3.0.0\frameworks\locale\en_GB directory (from the en_US directory). But it made no difference. The bundles it can't find are: Collections Containers Controls Core Effects Formatters Logging Messaging Rpc SharedResources Skins Utils (77 errors in total due to unresolved bundles) Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Melby Sent: 19 November 2007 17:19 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex Builder 3 Beta 2 Resource Error (unable to resolve resource bundle collections for locale...) Mark - I saw something similar with the AdvancedDataGrid after upgrading. In my case there was a separate .swc file for the resource bundle stuff that needed to be added to the project (datavisualization_rb.swc)... My guess is that there is a similar solution for your issue. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com Mark Ingram wrote: Hi, I've just upgraded our production project to FB3 Beta2. I've had several errors which I've fixed but now I'm having trouble with the resources. Unable to resolve resource bundle collections for locale en_GB. And many others like it. I've created a blank directory in the frameworks folder to stop another error. How can I get FB3 to use compile-time localisation - as it was in FB2?? Thanks, Mark P.S. I've noticed this reported on the bug list, but it's closed. http://bugs.adobe.com/jira/browse/SDK-12507 http://bugs.adobe.com/jira/browse/SDK-12507 I think it needs re-opening as it's causing a hinderance trying to upgrade an older project.
Re: [flexcoders] Cairngorm - what's you best practice on handling inital data from the server ?
On Monday 19 Nov 2007, mydarkspoon wrote: However, in the view I have a TabBar, that needs to manipulate the XML config file from the model, meaning that it has to know when this xml is retrieved. I found few approaches to this: Have your app. start up result handler set something like model.doneStartUp, and bind your TabNavigator's enabled property to that ? -- Tom Chiverton Helping to advantageously introduce visionary e-tailers on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: flex + dll
On Tuesday 20 Nov 2007, Josh VanderBerg wrote: that uses JNI to talk to a DLL. It would be nice if AIR provided for some sort of native interface... The trick here is writing a cross platform API from Flex to Linux .so, Windows .dll and whatever Macs use. -- Tom Chiverton Helping to economically facilitate viral features on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Problem with ModuleLoader on Linux?
Hi, we load a module using the ModuleLoader and this works fine on Windows. loader = new ModuleLoader(); loader.url = this.config.module_gateway_url; loader.addEventListener( ModuleEvent.READY, moduleReady ); loader.addEventListener( ModuleEvent.ERROR, moduleError ); loader.loadModule(); When we debug our application we see that moduleReady() is called both on Windows and on Linux - however bytesLoaded is 0 on Linux and ModuleLoader's child is null (as opposed to Windows where it is the actual bytes of the module and the child has the module's content). Is there a known problem with ModuleLoader on Linux? -- http://www.juicability.com - flex blog http://www.43min.com - funny movies
Re: [flexcoders] Stage problems
I had to use: import flash.display.Sprite; to do anything with the stage. hope it helps. Greg Murnock - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, November 16, 2007 1:09:16 AM Subject: [flexcoders] Stage problems Hello can any one help me. I'm running this sample app I've download and I'm getting this error: 1119: Access of possibly undefined property window through a reference with static type flash.display: Stage. can any one tell me what I'm doing wrong. This is the mxml code which I'm trying to compile to AIR ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute height=486 width=911 verticalScrollPolic y=off horizontalScrollPol icy=off mx:Script ![CDATA[ [Embed(source= Image.png )] [Bindable] public var main:Class; ]] /mx:Script mx:Image mouseDown=stage. window.startMove () x=0 y=0 source={main} / mx:Button click=stage. window.close( ) x=868 y=10 width=27 alpha=0.0 height=32.8 / /mx:Application Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[flexcoders] Re: focus in part of editable combox string?
Could you give me a demo? using subclass. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If you subclass you can get to the internal TextInput and setSelection on it From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of luoxuanhuayelin Sent: Monday, November 19, 2007 1:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] focus in part of editable combox string? Hi: I am looking for a editable combox like this image by using actionscript. http://img.photo.163.com/aHHUNXTWT0oCr2XiOhY8RQ==/806707283252758320.j pg http://img.photo.163.com/aHHUNXTWT0oCr2XiOhY8RQ==/806707283252758320. jp g For the type of 'TextInput', using the default function TextInput.setSelection((3,5), but for 'editable combox' ,I do not know. Thanks in advance!
RE: [flexcoders] Flex SDK Beta 2 - script timeout
Actually sorry, that's the second error - the first error is here: Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds. at mx.managers.layoutClasses::PriorityQueue/removeSmallestChild()[E:\dev\fl ex_3_beta2\sdk\frameworks\projects\framework\src\mx\managers\layoutClass es\PriorityQueue.as:212] at mx.managers::LayoutManager/validateClient()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\managers\LayoutManager.as:853] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta2\sdk\frameworks\pr ojects\framework\src\mx\core\UIComponent.as:5432] at mx.core::Container/createOrDestroyScrollbars()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\core\Container.as:4454] at mx.core::Container/createScrollbarsIfNeeded()[E:\dev\flex_3_beta2\sdk\fr ameworks\projects\framework\src\mx\core\Container.as:4382] at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()[E:\dev\flex_ 3_beta2\sdk\frameworks\projects\framework\src\mx\core\Container.as:4198] at mx.core::Container/validateDisplayList()[E:\dev\flex_3_beta2\sdk\framewo rks\projects\framework\src\mx\core\Container.as:2726] at mx.managers::LayoutManager/validateClient()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\managers\LayoutManager.as:858] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta2\sdk\frameworks\pr ojects\framework\src\mx\core\UIComponent.as:5432] at mx.core::UIComponent/creationCompleteHandler()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\core\UIComponent.as:8364] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta2\sdk\frameworks\ projects\framework\src\mx\core\UIComponent.as:8915] at mx.core::UIComponent/set initialized()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\ mx\core\UIComponent.as:1118] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\flex_3_beta2\s dk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:696] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\core\UIComponent.as:8338] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\flex_3_beta2\sdk\frame works\projects\framework\src\mx\core\UIComponent.as:8281] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: 20 November 2007 13:51 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex SDK Beta 2 - script timeout Hi all, I've got my project building ok in FB3 now - but when I run it (just before it finishes creating the children after retrieving data from web service call), I get the following error: Error: Error #1503: A script failed to exit after 30 seconds and was terminated. at mx.managers.layoutClasses::PriorityQueue/removeSmallestChild()[E:\dev\fl ex_3_beta2\sdk\frameworks\projects\framework\src\mx\managers\layoutClass es\PriorityQueue.as:212] at mx.managers::LayoutManager/validateClient()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\managers\LayoutManager.as:893] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta2\sdk\frameworks\pr ojects\framework\src\mx\core\UIComponent.as:5432] at mx.core::Container/createOrDestroyScrollbars()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\core\Container.as:4514] at mx.core::Container/createScrollbarsIfNeeded()[E:\dev\flex_3_beta2\sdk\fr ameworks\projects\framework\src\mx\core\Container.as:4382] at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()[E:\dev\flex_ 3_beta2\sdk\frameworks\projects\framework\src\mx\core\Container.as:4198] at mx.core::Container/validateDisplayList()[E:\dev\flex_3_beta2\sdk\framewo rks\projects\framework\src\mx\core\Container.as:2726] at mx.managers::LayoutManager/validateClient()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\managers\LayoutManager.as:858] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta2\sdk\frameworks\pr ojects\framework\src\mx\core\UIComponent.as:5432] at mx.core::UIComponent/creationCompleteHandler()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\core\UIComponent.as:8364] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta2\sdk\frameworks\ projects\framework\src\mx\core\UIComponent.as:8915] at mx.core::UIComponent/set initialized()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\ mx\core\UIComponent.as:1118] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\flex_3_beta2\s
[flexcoders] Re: Launching 0% - Flex Builder 2 will not launch
Thanks for the response Roxanne, Browser is set to Default System Web Browser, which is Firefox. Yes I have Flash Player installed, I can play the SWF files and HTML files directly from the folder. I have solved the Launching problem and a few others, I have gotten to a point where I am now getting a CFC error when connecting to the database. I will post a new question if I don't find the answer to my most recent problem. Thanks again, Chuck --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: What is the default browser set for FB2, (window-web browser) and does it have the Flash player installed? Roxanne Reid-Bennett ** This e-mail message and all attachments transmitted with it may contain legally privileged and/or confidential information intended solely for the use of the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, forwarding or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message and all copies and backups thereof. Thank you. **
[flexcoders] Re: ColdFusion / Filter Function / Datagrid
I have received that error when I set the filter function before the filter field was initialized. You might try changing where (when) in your program you set the filter. Rob Oates Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs
[flexcoders] L
Hi, If anyone could help me with this I'd appreciate it. FYI, I've used the fds-tomcat.zip testdrive sample app to code this. I am new to everything (MySQL, Java, Hibernate, Flex 2, LCDS, you-name-it) however many years developing C and early web apps, so I'm now playing catch up. Please bear with me. Here's the facts: 1) My custom service generates a userid and inserts the record into my User table successfully. From my UserService.java: ... Statement s = c.createStatement(); ResultSet rs = s.executeQuery(SELECT LAST_INSERT_ID()); // unique userid rs.next(); user.setUserid(rs.getInt(1)); // System.out.println(user.setUserid + user.getUserid() + .); -- this value is correctly displayed ... The println displays the userid I want to use in my client properly, but the client never seems to get it. The ItemReference in my client code does not display the same userid, it always displays 0. Debugger shows all the correct values for the insert populated in the ItemReference, but not the userid. It's always set to zero. Here is my client code: ... import mx.data.ItemReference; import classes.tfdao.User; private function handleRegister(event:Event):void { var dsuserDAO:DataService = new DataService (UserDAO); var user:User = new User(); user.firstname = this.firstname.text; user.lastname = this.lastname.text; user.lastmoddate = new Date(); var userIR:ItemReference = dsuserDAO.createItem(user); var dsaddressDAO:DataService = new DataService(AddressDAO); var address:Address = new Address(); // address.userid = userIR.userid I know this won't work but how do I get the correct value address.addressid = null; address.addresstypeid = 1; //hardcoded for now address.address1 = this.address1.text; address.address2 = this.address2.text; // yada yada ... var addressIR:ItemReference = dsaddressDAO.createItem(address); this.currentState = registerSuccess; } 2) How do I reference the generated userid? I thought it should be in the Item Reference, but debugger shows value as Zero. I must have missed something -- but I am stumped! Thanks! Laurie Hall -- View this message in context: http://www.nabble.com/L-tf4839203.html#a13844553 Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Multiline Text using FishEye Component
Hi everyone, I'm a Flex/OOP newbie and I've been trying to work with the woderful FishEye component by Ely Greenfield and add the ability to display mutiline text fields (really all I need is two lines instead of one). Has anyone been ble to get this implemented? I assume I need to make some modifications to the CachedLabels class but I just can't seem to figure out where to begin. Can anyone shed some light? Thanks!
[flexcoders] Flex SDK Beta 2 - script timeout
Hi all, I've got my project building ok in FB3 now - but when I run it (just before it finishes creating the children after retrieving data from web service call), I get the following error: Error: Error #1503: A script failed to exit after 30 seconds and was terminated. at mx.managers.layoutClasses::PriorityQueue/removeSmallestChild()[E:\dev\fl ex_3_beta2\sdk\frameworks\projects\framework\src\mx\managers\layoutClass es\PriorityQueue.as:212] at mx.managers::LayoutManager/validateClient()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\managers\LayoutManager.as:893] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta2\sdk\frameworks\pr ojects\framework\src\mx\core\UIComponent.as:5432] at mx.core::Container/createOrDestroyScrollbars()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\core\Container.as:4514] at mx.core::Container/createScrollbarsIfNeeded()[E:\dev\flex_3_beta2\sdk\fr ameworks\projects\framework\src\mx\core\Container.as:4382] at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()[E:\dev\flex_ 3_beta2\sdk\frameworks\projects\framework\src\mx\core\Container.as:4198] at mx.core::Container/validateDisplayList()[E:\dev\flex_3_beta2\sdk\framewo rks\projects\framework\src\mx\core\Container.as:2726] at mx.managers::LayoutManager/validateClient()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\managers\LayoutManager.as:858] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta2\sdk\frameworks\pr ojects\framework\src\mx\core\UIComponent.as:5432] at mx.core::UIComponent/creationCompleteHandler()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\core\UIComponent.as:8364] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta2\sdk\frameworks\ projects\framework\src\mx\core\UIComponent.as:8915] at mx.core::UIComponent/set initialized()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\ mx\core\UIComponent.as:1118] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\flex_3_beta2\s dk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:696] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\core\UIComponent.as:8338] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\flex_3_beta2\sdk\frame works\projects\framework\src\mx\core\UIComponent.as:8281] I found someone else with the same problem here: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72; catid=651threadid=1311338enterthread=y But no replies unfortunately!! Anyone know how to fix this?? Mark
[flexcoders] dataGrid cellRenderer and PropertyChangeEvent
Hello, I have added a combobox cellRenderer to an editable datagrid like in this example. I use the propertyChangeEvent of the ObjectProxies array passed as dataprovider to update the data change, but for the combobox, the event seems not triggered. I think it's because the value of the comboBox is changed programmatically, and have tried to simulate an event like : public function onChange():void { var index:int = editor.selectedIndex; result = uint( dpValue[index].data ); //dispatch an event to alert the update editor.dispatchEvent( PropertyChangeEvent.createUpdateEvent( dpValue[index], refid, null, result ) ); } but the result is the same, event is not triggered and the value is not updated. Any idea about the way to have a correct update ? Thanks in advance Thierry
[flexcoders] identify the selected itemrenderer from all the item renderes
Hi I am using the item itemRenderers. The user clicks on the item renderes and i change the background color of the selected renderer. My question is 1. If the user selectes the new item renderes then i want the previous selected itemrenderer to change the background color to default.I want to change the background color of the selected item renderer only.how to do that 2.Secondly, i have Go button which is seprate from the itemrenders on click of which i want to change the backgroung color of the most recently selected itemrenderer. How do i get the reference of the selected item renderer. Please help me. Thanks ilikeflex
[flexcoders] Re: Animated PNG
There are components already written to allow the use of animated GIF files in Flex. It isn't Adobe's responsibility to include components for everyone's favorite format, rather ours to create them. That is the real beauty of Flex's licensing and the openness of the SDK. Link: http://dougmccune.com/blog/2007/05/24/animated-gif-loader-flex-component-updated/ -- William --- In flexcoders@yahoogroups.com, Robert Thompson [EMAIL PROTECTED] wrote: I fully realize there may be patent issues with Adobe using animated GIF. However, what about Animated PNG? I've considered this subject for some time, and I am concerned that Adobe is withholding a great potential improvement in Flash to benefit FLV. I maybe completely wrong -- but that is why I'm posing the question. Lossless reduced color spaces have a great potential benefit to the web. It would be Adobe's free choice whether to include it or not -- but then again, we are free to dump any platform that is overly zealous when it comes to the economics of supply. -r - Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.
Re: [flexcoders] Re: Launching 0% - Flex Builder 2 will not launch
I don't use IIS, so...I'll walk through the process I'd walk through... I presume that since you can load it in a browser, that the URI is something like: http://localhost/flex/application.mxml (or html) [e.g. you know or are sure the context root and doc type are appropriately configured in IIS ] Can you open the application from the output folder of the project (file wise) in a browser through FB2? [e.g. the file is loadable by FB2 as a File in a browser as opposed to being served] Have you looked at the web log for access information, is the output folder for the project in the IIS web path and appropriately off the defined context root ? Is the project context root defined as the same thing as the IIS context root (path)? Is there a proxy in effect? [cached copy] Is the browser's cache empty [cached copy] Roxanne Reid-Bennett Chuck Engels [EMAIL PROTECTED] Sent by: flexcoders@yahoogroups.com 11/19/2007 12:31 PM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject [flexcoders] Re: Launching 0% - Flex Builder 2 will not launch Ok, I have gotten rid of the Launching 0% problem and Flex is actually trying to open the page in a browser now, the problem is that I keep getting a -404 Page Not Found or File Not Found error. This has to be a simple IIS setup issue but I can't figure it out. Any help is appreciated, until then I will continue to search here and the internet for answers. --- In flexcoders@yahoogroups.com, Chuck Engels [EMAIL PROTECTED] wrote: No project will launch in Flex Builder 2, does not matter if it is a Basic or ColdFusion project. The SWF files and HTML files will launch in my browser, but not from within the Flex Builder 2 project, it just stays at Launching 0% and never opens and never times out. I have let it run for up to 20 minutes and nothing happens. I have no problems connecting ColdFusion to my Database and no issues with anything else. I can write code, compile, and then open the swf file with my browswer, just can't open it in Flex Builder 2. Flex Builder 2.0.1 ColdFusion 8 MSSQL Express Flash CS3 Dreamweaver CS3 I am running IIS and the output files are in a sub folder in my Web Root C:\Inetpub\wwwroot\Flex I don't know what else you may need to know so ask away and I will do the best I can to answer any questions. TIA Chuck ** This e-mail message and all attachments transmitted with it may contain legally privileged and/or confidential information intended solely for the use of the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, forwarding or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message and all copies and backups thereof. Thank you. ** image/gifimage/gif
[flexcoders] Real world usage of Flex
Hi All, I'm looking for real world usage of Flex (other than maps.yahoo.com and harley-davidson)? can publish links? Thanks, p.s. I'm not entirely sure that this is the right group to ask this question so please refer me to the right one if you can. Yoni
[flexcoders] Re: mxmlc java.lang.IndexOutOfBoundsException
I'm getting a similar error in both Flex Builder and using the command line compiler. I can reproduce this at will on one machine while another one is hit or miss. My stack trace: java.lang.IndexOutOfBoundsException: Index: 15, Size: 5 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at macromedia.asc.semantics.ReferenceValue.getSlot (ReferenceValue.java:224) at macromedia.asc.semantics.ConstantEvaluator.evaluate (ConstantEvaluator.java:1087) at macromedia.asc.parser.MemberExpressionNode.evaluate (MemberExpressionNode.java:31) at macromedia.asc.semantics.ConstantEvaluator.evaluate (ConstantEvaluator.java:1834) at macromedia.asc.parser.ListNode.evaluate(ListNode.java:27) at macromedia.asc.semantics.ConstantEvaluator.evaluate (ConstantEvaluator.java:1931) at macromedia.asc.parser.ExpressionStatementNode.evaluate (ExpressionStatementNode.java:33) at macromedia.asc.semantics.ConstantEvaluator.evaluate (ConstantEvaluator.java:1911) at macromedia.asc.parser.StatementListNode.evaluate (StatementListNode.java:36) at macromedia.asc.semantics.ConstantEvaluator.evaluate (ConstantEvaluator.java:3102) at macromedia.asc.parser.ClassDefinitionNode.evaluate (ClassDefinitionNode.java:86) at macromedia.asc.semantics.ConstantEvaluator.evaluate (ConstantEvaluator.java:2894) at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:63) at flex2.compiler.as3.Compiler.analyze4(Compiler.java:567) at flex2.compiler.mxml.ImplementationCompiler.analyze4 (ImplementationCompiler.java:253) at flex2.compiler.mxml.Compiler.analyze4(Compiler.java:142) at flex2.compiler.API.analyze(API.java:2370) at flex2.compiler.API.analyze(API.java:2275) at flex2.compiler.API.batch2(API.java:360) at flex2.compiler.API.batch(API.java:1025) at flex2.compiler.API.compile(API.java:1211) at flex2.tools.oem.Application.compile(Application.java:783) If you had any luck or things to look for please let me know. This link provided some insight on things to look for, but to date hasn't helped me just yet. http://rjowen.wordpress.com/2007/06/21/internal-build-error-or- classes-must-not-be-nested-error/ Hopefully someone has seen this before and can shed some light on it for the rest of us :) Thanks in advance! -Bob --- In flexcoders@yahoogroups.com, j_lentzz [EMAIL PROTECTED] wrote: Hi, I'm trying to use the command line compiler for a set of standalone apps. It used to work fine, but now I'm getting the following error when I start up my make file: mxmlc -show-unused-type-selector-warnings=false -output bin/AddEditReviseProjectRequest.swf AddEditReviseProjectRequest.mxml Loading configuration file C:\Program Files\Adobe\Flex Builder 2 \Flex SDK 2\frameworks\flex-config.xml Error: Index: 14, Size: 5 java.lang.IndexOutOfBoundsException: Index: 14, Size: 5 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.get(ArrayList.java:321) ... Has anyone see this before or know what is causing it? It used to compile just fine. I restructured some code, but I'm not doing anything new. Any help or ideas would be greatly appreciated. Thanks, John
[flexcoders] Re: ColdFusion / Filter Function / Datagrid
Rob: Thanks for the reply, I've tried that. I've even tried waiting to assign the filter function until you click the button in question. Therefore ensuring arraycollection is fully populated before you attempt to filter it. Seems like I most be missing something else. Demian --- In flexcoders@yahoogroups.com, Rob Oates [EMAIL PROTECTED] wrote: I have received that error when I set the filter function before the filter field was initialized. You might try changing where (when) in your program you set the filter. Rob Oates Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs
[flexcoders] How to tell what type the object is
I have a VO object with a fill(xml:XML) method. I have it working fine except for one place. My VO has a var beginDate : Date = null; property. Problem is that when I am looping through the xml is need to: // Say prop = beginDate at this point in the loop if ( this[prop] is Date ) This returns false because beginDate is null. If I change the declaration to var beginDate : Date = new Date(); it works fine, but this field can be null by design. So, how can I determine the type of object it is when it is null? In Java, the instanceof would still work just fine. Thanks, Dale
[flexcoders] Re: Real world usage of Flex
http://flex.org/showcase/ --- In flexcoders@yahoogroups.com, real_yoni [EMAIL PROTECTED] wrote: Hi All, I'm looking for real world usage of Flex (other than maps.yahoo.com and harley-davidson)? can publish links? Thanks, p.s. I'm not entirely sure that this is the right group to ask this question so please refer me to the right one if you can. Yoni
RE: [flexcoders] Real world usage of Flex
Are you only looking for public-facing Flex apps or examples of companies that are using Flex and the related products? Our products use a pure Flex front end: http://blinemedical.com/ We've talked about them at some user groups and at an Inspire session at MAX. HTH, Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of real_yoni Sent: Tuesday, November 20, 2007 9:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Real world usage of Flex Hi All, I'm looking for real world usage of Flex (other than maps.yahoo.com and harley-davidson)? can publish links? Thanks, p.s. I'm not entirely sure that this is the right group to ask this question so please refer me to the right one if you can. Yoni
[flexcoders] Re: Real world usage of Flex
webmessenger.yahoo.com is a flex app, as is the yahoo charts beta - http://finance.yahoo.com/charts. Though if you don't consider yahoo maps to be real world I am not sure these will meet your criteria. Also, Google's Street View utilizes flex in some fashion, if the error messages I've gotten when it crashes are any indication :) -- Josh Vanderberg -- vanderblog.typepad.com --- In flexcoders@yahoogroups.com, real_yoni [EMAIL PROTECTED] wrote: Hi All, I'm looking for real world usage of Flex (other than maps.yahoo.com and harley-davidson)? can publish links? Thanks, p.s. I'm not entirely sure that this is the right group to ask this question so please refer me to the right one if you can. Yoni
[flexcoders] Re: always on top windows
Wow, it work :); Why i neved tried it... I set many thing here but it neved worked. Thank you Alex. David --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Set the childList argument to PopUpManagerChildList.POPUP From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nxzone Sent: Monday, November 19, 2007 1:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] always on top windows How we can put a windows ontop of all other window not matter from where it comes and if we added new window since... #My first try was to create a popup parent of Application. NoteWindow(PopUpManager.createPopUp(DisplayObject(mx.core.Application.ap plication), NoteWindow, false)); #and bring it to front each 1 second. This was perfect but my combobox was loosing focus each second... This will be ok if i can find a solution to check ONLY if the window is not on top then bring it... public function init():void{ t= new Timer(1000) t.addEventListener(TimerEvent.TIMER,tic) t.start() } public function tic(e:Event):void{ PopUpManager.bringToFront(this) } May be it's possible to put it modal and then removing the blur layer under the windows? Any idea?
[flexcoders] Re: Real world usage of Flex
I'm looking for real world usage of Flex (other than maps.yahoo.com and harley-davidson)? can publish links? [Sorry if this is OT] Launched today: http://www.ashorten.com/2007/11/20/betfair-launch-flex-application/ The actual app is available through www.betfair.com, you have to go to the games tab and possible sign up to see it in action though. If you're in the US you'll have to imagine based on the screen shots in the blog entry! Stephen
Re: [flexcoders] Re: Performance Impact when using custom item renderer
Should have mentioned a couple of quick cheats in case you have not thought of them... if you use Alex's centered image renderer then you could probably do either of the following very easily 1) Put the label in the column next to the image 2) Just show the image and set the data tip for the column to be the label text. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com Scott Melby wrote: Check out CenteredCheckBox on Alex's blog (assuming you want it centered, otherwise just use CheckBox). I think Alex's blog also has something for a centered image which should be easily adaptable to add the text next to it (if it doesn't already support it). You can contact me off list if you want help with the image one. Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com letterpigeon wrote: Hi Scott and Alex, Thanks for all your help. I adopted Alex's example of the backgroundColorRenderer and it worked really well. So now I'm using this lightweight for most of the columns in my datagrid except 2, which are both hbox'es. One to display a checkbox, and another one to display an image along side with the text. What components/classes do you think should be used to further improve performance? Thanks. Ban --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote: Ban - I don't think TextInput is nearly as lightweight as you might think. Do you really need them all to be editable at all times? Typically I use a lightweight itemrenderer derived from UIComponent etc. and use a separate itemEditor (TextInput, ComboBox, DateField), etc. when the user clicks on a particular data value (row/column). hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com letterpigeon wrote: Hi Scott, Thanks for your post. But I'm on flex 2 now so the AdvancedDataGridItemRenderer is not available to me. Also, in terms of keeping the item renderer as light weight as possible, my item renderer is just a TextInput and I change its background color by calling this.styleName = ErrorCell where ErrorCell is defined in my stylesheet. But even if I comment all this out, have my item renderer just to renderer the text, I'm still seeing a considerable performance hit just by using custom item renderers on all the columns of my datagrid. Is this a limitation in flex that we must trade off performance for using custom renderers heavily?? Thanks. Ban --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby smelby@ wrote: Check out this post http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 on my blog where I discuss and demonstrate performance diffs using various item renderers in Flex. Source code is available if you run the app and right click. Notice how the optimized renderer does not use layout containers such as HBox, etc. Instead it extends the AdvancedDataGridItemRenderer class. In general you want to make your renderers as light weight as possible. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com letterpigeon wrote: Hi all, I'm seeing a huge performance degradation while using custom item renderer with a datagrid. My datagrid is using a custom item renderer for all its column. And even if my item renderer does nothing more than : public override function data(value:object) { super.data = value; } I'm still seeing a few more seconds delay compared to not using custom item renderers for a data set of 50 rows or more. Just wondering if this is a known issue with flex due to heavy graphic rendering? Any pointers on how to speed things up a little bit? Thanks. Ban
Re: [flexcoders] Re: Performance Impact when using custom item renderer
Check out CenteredCheckBox on Alex's blog (assuming you want it centered, otherwise just use CheckBox). I think Alex's blog also has something for a centered image which should be easily adaptable to add the text next to it (if it doesn't already support it). You can contact me off list if you want help with the image one. Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com letterpigeon wrote: Hi Scott and Alex, Thanks for all your help. I adopted Alex's example of the backgroundColorRenderer and it worked really well. So now I'm using this lightweight for most of the columns in my datagrid except 2, which are both hbox'es. One to display a checkbox, and another one to display an image along side with the text. What components/classes do you think should be used to further improve performance? Thanks. Ban --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote: Ban - I don't think TextInput is nearly as lightweight as you might think. Do you really need them all to be editable at all times? Typically I use a lightweight itemrenderer derived from UIComponent etc. and use a separate itemEditor (TextInput, ComboBox, DateField), etc. when the user clicks on a particular data value (row/column). hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com letterpigeon wrote: Hi Scott, Thanks for your post. But I'm on flex 2 now so the AdvancedDataGridItemRenderer is not available to me. Also, in terms of keeping the item renderer as light weight as possible, my item renderer is just a TextInput and I change its background color by calling this.styleName = ErrorCell where ErrorCell is defined in my stylesheet. But even if I comment all this out, have my item renderer just to renderer the text, I'm still seeing a considerable performance hit just by using custom item renderers on all the columns of my datagrid. Is this a limitation in flex that we must trade off performance for using custom renderers heavily?? Thanks. Ban --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby smelby@ wrote: Check out this post http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 on my blog where I discuss and demonstrate performance diffs using various item renderers in Flex. Source code is available if you run the app and right click. Notice how the optimized renderer does not use layout containers such as HBox, etc. Instead it extends the AdvancedDataGridItemRenderer class. In general you want to make your renderers as light weight as possible. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com letterpigeon wrote: Hi all, I'm seeing a huge performance degradation while using custom item renderer with a datagrid. My datagrid is using a custom item renderer for all its column. And even if my item renderer does nothing more than : public override function data(value:object) { super.data = value; } I'm still seeing a few more seconds delay compared to not using custom item renderers for a data set of 50 rows or more. Just wondering if this is a known issue with flex due to heavy graphic rendering? Any pointers on how to speed things up a little bit? Thanks. Ban
[flexcoders] Where is the Debugger or Profiler?
Hi all, Not a major one this, but I keep getting the Where is the Debugger or profiler running? alert when I run my app. I've got a development machine running CF8 as a standalone and Apache 2.0. I'm developing straight into the htdocs folder. All is running fine, all the code works, I can connect to data and wierdly (well I think it's weird) I don't get the error when I am actually debugging the app. I'm using Flex Builder 3 beta 2. I'd really like to nail this as it's now driving me mad. Cheers in advance, Tim
Re: Time to clear the Air Adobe -- Re: [flexcoders] Animated PNG
On a semi-related note; has anyone on this thread investigated this component yet? http://dougmccune.com/blog/animatedgifloader-flex-component/ I have no idea if it supports animated png. Paul Decoursey wrote: On Nov 20, 2007, at 9:30 AM, Robert Thompson wrote: Not too many years ago, but I was thinking the 17 years had passed (I believe it's 17). Now, if that's the case, what in the world is wrong with Adobe? They have the most popular rich media format in the world and they appear to be resting on their loins (or the loins if some inside investors) in implementing a low color space animation format. If they are sincere and are looking to improve this, I'm happy. If I find out something else is at work, then the entropy of power will befall them as it does every corporation that has people getting their hands in a pure noble effort, and spoiling it to make a buck (anyone knows how things really work knows this possibility is very real). Please Respond Adobe and clear the air on this. If anybody else knows how PaperVision3D and others are implementing custom plug-ins for Adobe Flash CS3 please post. Creating plugins for Flash is documented. Read the Flash Manual/Help, search for extending Flash... I have not really looked to deep into this myself, but it's there. In response to the other things above, what are you talking about? Why would you want to muck up perfect vector animation with crappy bitmap animation? -r */Paul Decoursey [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]/* wrote: The patents for GIF ran out a few years ago. And does anybody support mpng? On Nov 20, 2007, at 3:16 AM, Robert Thompson wrote: I fully realize there may be patent issues with Adobe using animated GIF. However, what about Animated PNG? I've considered this subject for some time, and I am concerned that Adobe is withholding a great potential improvement in Flash to benefit FLV. I maybe completely wrong -- but that is why I'm posing the question. Lossless reduced color spaces have a great potential benefit to the web. It would be Adobe's free choice whether to include it or not -- but then again, we are free to dump any platform that is overly zealous when it comes to the economics of supply. -r -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
Time to clear the Air Adobe -- Re: [flexcoders] Animated PNG
Not too many years ago, but I was thinking the 17 years had passed (I believe it's 17). Now, if that's the case, what in the world is wrong with Adobe? They have the most popular rich media format in the world and they appear to be resting on their loins (or the loins if some inside investors) in implementing a low color space animation format. If they are sincere and are looking to improve this, I'm happy. If I find out something else is at work, then the entropy of power will befall them as it does every corporation that has people getting their hands in a pure noble effort, and spoiling it to make a buck (anyone knows how things really work knows this possibility is very real). Please Respond Adobe and clear the air on this. If anybody else knows how PaperVision3D and others are implementing custom plug-ins for Adobe Flash CS3 please post. -r Paul Decoursey [EMAIL PROTECTED] wrote: The patents for GIF ran out a few years ago. And does anybody support mpng? On Nov 20, 2007, at 3:16 AM, Robert Thompson wrote: I fully realize there may be patent issues with Adobe using animated GIF. However, what about Animated PNG? I've considered this subject for some time, and I am concerned that Adobe is withholding a great potential improvement in Flash to benefit FLV. I maybe completely wrong -- but that is why I'm posing the question. Lossless reduced color spaces have a great potential benefit to the web. It would be Adobe's free choice whether to include it or not -- but then again, we are free to dump any platform that is overly zealous when it comes to the economics of supply. -r - Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. - Never miss a thing. Make Yahoo your homepage.
Re: [flexcoders] Re: flex + dll
I think the idea is to use a cross platform solution like .swc or .swf in some cases. On Nov 20, 2007, at 4:00 AM, Tom Chiverton wrote: On Tuesday 20 Nov 2007, Josh VanderBerg wrote: that uses JNI to talk to a DLL. It would be nice if AIR provided for some sort of native interface... The trick here is writing a cross platform API from Flex to Linux .so, Windows .dll and whatever Macs use. -- Tom Chiverton Helping to economically facilitate viral features on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Animated PNG
The patents for GIF ran out a few years ago. And does anybody support mpng? On Nov 20, 2007, at 3:16 AM, Robert Thompson wrote: I fully realize there may be patent issues with Adobe using animated GIF. However, what about Animated PNG? I've considered this subject for some time, and I am concerned that Adobe is withholding a great potential improvement in Flash to benefit FLV. I maybe completely wrong -- but that is why I'm posing the question. Lossless reduced color spaces have a great potential benefit to the web. It would be Adobe's free choice whether to include it or not -- but then again, we are free to dump any platform that is overly zealous when it comes to the economics of supply. -r Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.
[flexcoders] Re: Performance Impact when using custom item renderer
Hi Scott and Alex, Thanks for all your help. I adopted Alex's example of the backgroundColorRenderer and it worked really well. So now I'm using this lightweight for most of the columns in my datagrid except 2, which are both hbox'es. One to display a checkbox, and another one to display an image along side with the text. What components/classes do you think should be used to further improve performance? Thanks. Ban --- In flexcoders@yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote: Ban - I don't think TextInput is nearly as lightweight as you might think. Do you really need them all to be editable at all times? Typically I use a lightweight itemrenderer derived from UIComponent etc. and use a separate itemEditor (TextInput, ComboBox, DateField), etc. when the user clicks on a particular data value (row/column). hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com letterpigeon wrote: Hi Scott, Thanks for your post. But I'm on flex 2 now so the AdvancedDataGridItemRenderer is not available to me. Also, in terms of keeping the item renderer as light weight as possible, my item renderer is just a TextInput and I change its background color by calling this.styleName = ErrorCell where ErrorCell is defined in my stylesheet. But even if I comment all this out, have my item renderer just to renderer the text, I'm still seeing a considerable performance hit just by using custom item renderers on all the columns of my datagrid. Is this a limitation in flex that we must trade off performance for using custom renderers heavily?? Thanks. Ban --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby smelby@ wrote: Check out this post http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 on my blog where I discuss and demonstrate performance diffs using various item renderers in Flex. Source code is available if you run the app and right click. Notice how the optimized renderer does not use layout containers such as HBox, etc. Instead it extends the AdvancedDataGridItemRenderer class. In general you want to make your renderers as light weight as possible. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com letterpigeon wrote: Hi all, I'm seeing a huge performance degradation while using custom item renderer with a datagrid. My datagrid is using a custom item renderer for all its column. And even if my item renderer does nothing more than : public override function data(value:object) { super.data = value; } I'm still seeing a few more seconds delay compared to not using custom item renderers for a data set of 50 rows or more. Just wondering if this is a known issue with flex due to heavy graphic rendering? Any pointers on how to speed things up a little bit? Thanks. Ban
Re: Time to clear the Air Adobe -- Re: [flexcoders] Animated PNG
On Nov 20, 2007, at 9:30 AM, Robert Thompson wrote: Not too many years ago, but I was thinking the 17 years had passed (I believe it's 17). Now, if that's the case, what in the world is wrong with Adobe? They have the most popular rich media format in the world and they appear to be resting on their loins (or the loins if some inside investors) in implementing a low color space animation format. If they are sincere and are looking to improve this, I'm happy. If I find out something else is at work, then the entropy of power will befall them as it does every corporation that has people getting their hands in a pure noble effort, and spoiling it to make a buck (anyone knows how things really work knows this possibility is very real). Please Respond Adobe and clear the air on this. If anybody else knows how PaperVision3D and others are implementing custom plug-ins for Adobe Flash CS3 please post. Creating plugins for Flash is documented. Read the Flash Manual/Help, search for extending Flash... I have not really looked to deep into this myself, but it's there. In response to the other things above, what are you talking about? Why would you want to muck up perfect vector animation with crappy bitmap animation? -r Paul Decoursey [EMAIL PROTECTED] wrote: The patents for GIF ran out a few years ago. And does anybody support mpng? On Nov 20, 2007, at 3:16 AM, Robert Thompson wrote: I fully realize there may be patent issues with Adobe using animated GIF. However, what about Animated PNG? I've considered this subject for some time, and I am concerned that Adobe is withholding a great potential improvement in Flash to benefit FLV. I maybe completely wrong -- but that is why I'm posing the question. Lossless reduced color spaces have a great potential benefit to the web. It would be Adobe's free choice whether to include it or not -- but then again, we are free to dump any platform that is overly zealous when it comes to the economics of supply. -r Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. Never miss a thing. Make Yahoo your homepage.
[flexcoders] Re: Where is the Debugger or Profiler?
This happens if you are running the debug version of the player and launch the debug version of the html wrapper, but didn't launch your swf from flex player in debug mode. For example, if you just access access the URL for the -debug html wrapper directly in a browser you'll get this popup. The solution is to either launch from flex builder if you intend to debug, or access the non-debug html wrapper. You might check you Eclipse launch configurations to make sure that they are pointing to the right html wrappers. __ Josh Vanderberg - http://vanderblog.typepad.com --- In flexcoders@yahoogroups.com, Tim Ashworth [EMAIL PROTECTED] wrote: Hi all, Not a major one this, but I keep getting the Where is the Debugger or profiler running? alert when I run my app. I've got a development machine running CF8 as a standalone and Apache 2.0. I'm developing straight into the htdocs folder. All is running fine, all the code works, I can connect to data and wierdly (well I think it's weird) I don't get the error when I am actually debugging the app. I'm using Flex Builder 3 beta 2. I'd really like to nail this as it's now driving me mad. Cheers in advance, Tim
RE: [flexcoders] Real world usage of Flex
one of the best in my opinion is buzzword : http://preview.getbuzzword.com/?s=true Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of real_yoni Sent: Tuesday, November 20, 2007 9:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Real world usage of Flex Hi All, I'm looking for real world usage of Flex (other than maps.yahoo.com and harley-davidson)? can publish links? Thanks, p.s. I'm not entirely sure that this is the right group to ask this question so please refer me to the right one if you can. Yoni -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Air/Flex App With Barcode Reader
Hello, I am just doing research and need some input. We would like to make an Air/Flex app that when you scan in a barcode you get product details from a database that CF is serving out. The barcode scanner works like a key board and at the end of a scan I can have it send a carriage return. I don't want the user to have to put focus on a text input field then scan the barcode to get a result. I want them so that any keyboard entry from the scanner will always pull up product details upon the carriage return. It does not matter what section of the Appliction they are in. If text entry is present from the barcode scanner then I want to return product details from the database. Has anyone built an app that works with a barcode reader in this way? Any quick code suggestions on capturing the text input from the barcode reader? Thanks!
Re: [flexcoders] Real world usage of Flex
On Tuesday 20 Nov 2007, Dimitrios Gianninas wrote: one of the best in my opinion is buzzword : http://preview.getbuzzword.com/?s=true Or Adobe's Share thing. -- Tom Chiverton Helping to quickly envisioneer viral technologies on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Load remote module into local application domain
Hello Flexcoders! Is there a way to load (or maybe allow loading) remote Module into local application domain? It would be very helpful in debugging. Thanks! -- With kindest regards, Nikita Petrov aka Hrundikmailto:[EMAIL PROTECTED]
Re: [flexcoders] Where is the Debugger or Profiler?
On Tuesday 20 Nov 2007, Tim Ashworth wrote: Not a major one this, but I keep getting the Where is the Debugger or profiler running? alert when I run my app. Do you have an updated debug Flash player installed in that browser ? -- Tom Chiverton Helping to competently introduce next-generation applications on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] LiveCycle with multiple data services failing...
Hi, I have a strange problem - hopefully someone might be able to figure out what's wrong... First, I'm using Flex 3 beta (Eclipse 3.2+WTP1.5), LiveCycle 2.5, JBoss 4.02. So here's what I do... I use the Flex 3 'create application from database' (if you've not used it yourself, don't give up on me - the problem is almost certainly unrelated to this step!) to create a flex 3 livecycle app from the wizard. This runs fine! I then run it again, against a different table. Again, the second app is fine. But when I try to combine the two applications (obviously renaming variables on both sides to avoid a clash), one of the dataservices runs absolutely fine but when I try to use the other, I get: 'Destination 'SIM_USER_REPORT_PAGESJava' either does not exist or the destination has no channels defined (and the application does not define any default channels.)' But this destination is defined in the same data-management-config.xml as the one that is working - and they're both using the same channel - so I know that channel both exists and works! Any ideas why the second service won't work when combined with the first? I've listed the data-management-config.xml below in case it helps... Thanks, Jamie. ?xml version=1.0 encoding=UTF-8? service id=data-service class=flex.data.DataService adapters adapter-definition id=actionscript class=flex.data.adapters.ASObjectAdapter default=true/ adapter-definition id=java-dao class=flex.data.adapters.JavaAdapter/ /adapters default-channels channel ref=my-rtmp/ /default-channels destination id=SIM_USER_REPORTSJava adapter ref=java-dao/ properties use-transactionstrue/use-transactions sourcecom.db.storage.dao.SIM_USER_REPORTSAssembler/source scopeapplication/scope cache-itemsfalse/cache-items metadata identity property=REPORT_ID/ /metadata network session-timeout0/session-timeout paging enabled=false pageSize=5/ throttle-inbound max-frequency=500 policy=ERROR/ throttle-outbound max-frequency=500 policy=REPLACE/ /network /properties /destination destination id=SIM_USER_REPORT_PAGESJava adapter ref=java-dao/ properties use-transactionstrue/use-transactions sourcecom.db.storage.dao.SIM_USER_REPORT_PAGESAssembler/source scopeapplication/scope cache-itemsfalse/cache-items metadata identity property=REPORT_ID/ /metadata network session-timeout0/session-timeout paging enabled=false pageSize=5/ throttle-inbound max-frequency=500 policy=ERROR/ throttle-outbound max-frequency=500 policy=REPLACE/ /network /properties /destination /service
Re: SPAM-LOW: [flexcoders] Air/Flex App With Barcode Reader
I've done something similar, although not with a Flex Application. The bar code data will go to the element that has focus. I'm not sure how you are defining sections of the application. But you'll either need to make sure that every focusable element will respond to the bar code input (not practical) or force the users to select the bar code input field before scanning. Chad Gray wrote: Hello, I am just doing research and need some input. We would like to make an Air/Flex app that when you scan in a barcode you get product details from a database that CF is serving out. The barcode scanner works like a key board and at the end of a scan I can have it send a carriage return. I don't want the user to have to put focus on a text input field then scan the barcode to get a result. I want them so that any keyboard entry from the scanner will always pull up product details upon the carriage return. It does not matter what section of the Appliction they are in. If text entry is present from the barcode scanner then I want to return product details from the database. Has anyone built an app that works with a barcode reader in this way? Any quick code suggestions on capturing the text input from the barcode reader? Thanks! -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Re: ColdFusion / Filter Function / Datagrid
Wow, after spending far too long debugging this issue, I think I finally figured it out. The query that I was using had a GROUP BY in it (to help me get distinct records). Removing that (and leaving the Flex code alone) fixed my filter function. Bug? Feature? Or just confused developer? Demian --- In flexcoders@yahoogroups.com, Demian [EMAIL PROTECTED] wrote: Rob: Thanks for the reply, I've tried that. I've even tried waiting to assign the filter function until you click the button in question. Therefore ensuring arraycollection is fully populated before you attempt to filter it. Seems like I most be missing something else. Demian --- In flexcoders@yahoogroups.com, Rob Oates roboates@ wrote: I have received that error when I set the filter function before the filter field was initialized. You might try changing where (when) in your program you set the filter. Rob Oates Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs
Re: SPAM-LOW: [flexcoders] Re: Air/Flex App With Barcode Reader
Conceptually this sounds good. However, I would expect this method would be non-intuitive to users. Containers will not broadcast keyboard events on their own, so the user must have have given focus to a component that will broadcast the keyboard events. I believe there are a lot of situations, such as changing the selectedIndex of a ViewStack or tabbing through a TabNavigator where nothing will be given focus and the bar code scan would be ignored. Josh VanderBerg wrote: Define a keyDown event handler at the application level. Because of the Flex 2.0 event model, all keydown events, from all controls, should bubble up to the Application. Here is a little application I made to test this. The bottom text area will show all keys typed, no matter the control that has the focus when the key was pressed. ?xml version=1.0 encoding=utf-8? mx:Application keyDown=keyCapture(event) xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical mx:Script ![CDATA[ private function keyCapture(event: KeyboardEvent) : void { allKeys.text += String.fromCharCode(event.charCode); } ]] /mx:Script mx:Label text=Text1 / mx:TextArea id=textArea height=200 width=200 / mx:Label text=Text2 / mx:TextInput id=textInput / mx:Label text=Button: / mx:Button label=Set Focus here / mx:Label text=Key Capture / mx:TextArea selectable=false id=allKeys width=400 height=400 / /mx:Application __ Josh Vanderberg -- http://vanderblog.typepad.com http://vanderblog.typepad.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Chad Gray [EMAIL PROTECTED] wrote: Hello, I am just doing research and need some input. We would like to make an Air/Flex app that when you scan in a barcode you get product details from a database that CF is serving out. The barcode scanner works like a key board and at the end of a scan I can have it send a carriage return. I don't want the user to have to put focus on a text input field then scan the barcode to get a result. I want them so that any keyboard entry from the scanner will always pull up product details upon the carriage return. It does not matter what section of the Appliction they are in. If text entry is present from the barcode scanner then I want to return product details from the database. Has anyone built an app that works with a barcode reader in this way? Any quick code suggestions on capturing the text input from the barcode reader? Thanks! -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
RE: [flexcoders] Re: Animated overSkin (how to use more than one frame of a symbol)
Hi Juan, I've had a look at the example and I've got it working. But myself and my designer are struggling to get the over state working when the overstate is larger than the normal state. e.g. If you had a button that normally looks like this: |--| |--| In the over state I want it to expand (with animation) to be like this: || | | || Do you know how this can be done? The example works great when the symbols are the same size, but my designer is struggling when it's got to animate larger. Any tips greatly appreciated. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scalenine Sent: 16 November 2007 17:06 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Animated overSkin (how to use more than one frame of a symbol) Hi Mark, Using the Flex Component Kit and Flash CS3 you can do what you're looking for. I just wrote a tutorial about using the FCK to create a stateful skin with transitions. You can read it here : http://tinyurl.com/yoxqcq http://tinyurl.com/yoxqcq . The tutorial describes how to make a basic transition, but you could easily elaborate on it to do what you're looking for. Hope that helps. Juan scalenine.com : degrafa.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark Ingram [EMAIL PROTECTED] wrote: Hi, does anyone know if it's possible to have an animated overSkin for a button? Our designer has created an overSkin which just extends the normal skin, making it feel like it grows when the mouse is over it. However, when I embed it in our flex application, it constantly flicks between 1 frame of the over skin and then back to the upSkin. How can I get flex to play nicely with the over state? (i.e. play the full symbol instead of just use 1 frame). Thanks, Mark
Re: [flexcoders] Re: Animated overSkin (how to use more than one frame of a symbol)
Does anything other than the size change with the state change? Because you could just animate the height and width property of the component on MouseOver event. Paul On Nov 20, 2007, at 10:44 AM, Mark Ingram wrote: Hi Juan, I’ve had a look at the example and I’ve got it working. But myself and my designer are struggling to get the over state working when the overstate is larger than the normal state. e.g. If you had a button that normally looks like this: |--| |--| In the over state I want it to expand (with animation) to be like this: || | | || Do you know how this can be done? The example works great when the symbols are the same size, but my designer is struggling when it’s got to animate larger. Any tips greatly appreciated. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scalenine Sent: 16 November 2007 17:06 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Animated overSkin (how to use more than one frame of a symbol) Hi Mark, Using the Flex Component Kit and Flash CS3 you can do what you're looking for. I just wrote a tutorial about using the FCK to create a stateful skin with transitions. You can read it here : http://tinyurl.com/yoxqcq . The tutorial describes how to make a basic transition, but you could easily elaborate on it to do what you're looking for. Hope that helps. Juan scalenine.com : degrafa.com --- In flexcoders@yahoogroups.com, Mark Ingram [EMAIL PROTECTED] wrote: Hi, does anyone know if it's possible to have an animated overSkin for a button? Our designer has created an overSkin which just extends the normal skin, making it feel like it grows when the mouse is over it. However, when I embed it in our flex application, it constantly flicks between 1 frame of the over skin and then back to the upSkin. How can I get flex to play nicely with the over state? (i.e. play the full symbol instead of just use 1 frame). Thanks, Mark
[flexcoders] Re: Air/Flex App With Barcode Reader
Define a keyDown event handler at the application level. Because of the Flex 2.0 event model, all keydown events, from all controls, should bubble up to the Application. Here is a little application I made to test this. The bottom text area will show all keys typed, no matter the control that has the focus when the key was pressed. ?xml version=1.0 encoding=utf-8? mx:Application keyDown=keyCapture(event) xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ private function keyCapture(event: KeyboardEvent) : void { allKeys.text += String.fromCharCode(event.charCode); } ]] /mx:Script mx:Label text=Text1 / mx:TextArea id=textArea height=200 width=200 / mx:Label text=Text2 / mx:TextInput id=textInput / mx:Label text=Button: / mx:Button label=Set Focus here / mx:Label text=Key Capture / mx:TextArea selectable=false id=allKeys width=400 height=400 / /mx:Application __ Josh Vanderberg -- http://vanderblog.typepad.com --- In flexcoders@yahoogroups.com, Chad Gray [EMAIL PROTECTED] wrote: Hello, I am just doing research and need some input. We would like to make an Air/Flex app that when you scan in a barcode you get product details from a database that CF is serving out. The barcode scanner works like a key board and at the end of a scan I can have it send a carriage return. I don't want the user to have to put focus on a text input field then scan the barcode to get a result. I want them so that any keyboard entry from the scanner will always pull up product details upon the carriage return. It does not matter what section of the Appliction they are in. If text entry is present from the barcode scanner then I want to return product details from the database. Has anyone built an app that works with a barcode reader in this way? Any quick code suggestions on capturing the text input from the barcode reader? Thanks!
RE: [flexcoders] Re: Animated overSkin (how to use more than one frame of a symbol)
I think it's just the width / height that changes, but I was looking for a solution which could be incorporated into the actual skin for the button (as opposed to having a developer write a transition for any buttons that the designer decides will change size). I'm sure it's got to be possible, it's all flash :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Decoursey Sent: 20 November 2007 16:59 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Animated overSkin (how to use more than one frame of a symbol) Does anything other than the size change with the state change? Because you could just animate the height and width property of the component on MouseOver event. Paul On Nov 20, 2007, at 10:44 AM, Mark Ingram wrote: Hi Juan, I've had a look at the example and I've got it working. But myself and my designer are struggling to get the over state working when the overstate is larger than the normal state. e.g. If you had a button that normally looks like this: |--| |--| In the over state I want it to expand (with animation) to be like this: || | | || Do you know how this can be done? The example works great when the symbols are the same size, but my designer is struggling when it's got to animate larger. Any tips greatly appreciated. Thanks, Mark From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of scalenine Sent: 16 November 2007 17:06 To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: Animated overSkin (how to use more than one frame of a symbol) Hi Mark, Using the Flex Component Kit and Flash CS3 you can do what you're looking for. I just wrote a tutorial about using the FCK to create a stateful skin with transitions. You can read it here : http://tinyurl.com/yoxqcq http://tinyurl.com/yoxqcq . The tutorial describes how to make a basic transition, but you could easily elaborate on it to do what you're looking for. Hope that helps. Juan scalenine.com : degrafa.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark Ingram [EMAIL PROTECTED] wrote: Hi, does anyone know if it's possible to have an animated overSkin for a button? Our designer has created an overSkin which just extends the normal skin, making it feel like it grows when the mouse is over it. However, when I embed it in our flex application, it constantly flicks between 1 frame of the over skin and then back to the upSkin. How can I get flex to play nicely with the over state? (i.e. play the full symbol instead of just use 1 frame). Thanks, Mark
Re: [flexcoders] How to tell what type the object is
On Tuesday 20 Nov 2007, dbronk wrote: This returns false because beginDate is null. If I change the declaration to var beginDate : Date = new Date(); it works fine, but 'null' has no type. If you need a 'no data here' Date, try Date(0). -- Tom Chiverton Helping to quickly create user-centric market-growth on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: SPAM-LOW: [flexcoders] Re: Air/Flex App With Barcode Reader
I guess I should not have used the term Section of the app. The app is standalone and it's only purpose is there to spit back data about the product entered via the barcode scanner. I don't want the user to have to click on anything. They scan and they get back data. The only focus I suppose will be the Air application itself. That will have to have focus out of other applications running on the computers desktop. Thanks for the feedback! Once I get this more into the proof of concept range I will try out the code. Now maybe once this app gets toss around some more. There will be the need to scan the barcode, display the data, then alter the data and submit it back to CF, but for right now that is not the case. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeffry Houser Sent: Tuesday, November 20, 2007 11:59 AM To: flexcoders@yahoogroups.com Subject: Re: SPAM-LOW: [flexcoders] Re: Air/Flex App With Barcode Reader Conceptually this sounds good. However, I would expect this method would be non-intuitive to users. Containers will not broadcast keyboard events on their own, so the user must have have given focus to a component that will broadcast the keyboard events. I believe there are a lot of situations, such as changing the selectedIndex of a ViewStack or tabbing through a TabNavigator where nothing will be given focus and the bar code scan would be ignored. Josh VanderBerg wrote: Define a keyDown event handler at the application level. Because of the Flex 2.0 event model, all keydown events, from all controls, should bubble up to the Application. Here is a little application I made to test this. The bottom text area will show all keys typed, no matter the control that has the focus when the key was pressed. ?xml version=1.0 encoding=utf-8? mx:Application keyDown=keyCapture(event) xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical mx:Script ![CDATA[ private function keyCapture(event: KeyboardEvent) : void { allKeys.text += String.fromCharCode(event.charCode); } ]] /mx:Script mx:Label text=Text1 / mx:TextArea id=textArea height=200 width=200 / mx:Label text=Text2 / mx:TextInput id=textInput / mx:Label text=Button: / mx:Button label=Set Focus here / mx:Label text=Key Capture / mx:TextArea selectable=false id=allKeys width=400 height=400 / /mx:Application __ Josh Vanderberg -- http://vanderblog.typepad.com http://vanderblog.typepad.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Chad Gray [EMAIL PROTECTED] wrote: Hello, I am just doing research and need some input. We would like to make an Air/Flex app that when you scan in a barcode you get product details from a database that CF is serving out. The barcode scanner works like a key board and at the end of a scan I can have it send a carriage return. I don't want the user to have to put focus on a text input field then scan the barcode to get a result. I want them so that any keyboard entry from the scanner will always pull up product details upon the carriage return. It does not matter what section of the Appliction they are in. If text entry is present from the barcode scanner then I want to return product details from the database. Has anyone built an app that works with a barcode reader in this way? Any quick code suggestions on capturing the text input from the barcode reader? Thanks! -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: Performance Impact when using custom item renderer
Hi Scott, Not sure why if I only use a checkbox (or CenteredCheckBox) as the item renderer, a checkbox also appears on the header of that column. Have you seen this problem before?? Thanks. Ban --- In flexcoders@yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote: Should have mentioned a couple of quick cheats in case you have not thought of them... if you use Alex's centered image renderer then you could probably do either of the following very easily 1) Put the label in the column next to the image 2) Just show the image and set the data tip for the column to be the label text. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com Scott Melby wrote: Check out CenteredCheckBox on Alex's blog (assuming you want it centered, otherwise just use CheckBox). I think Alex's blog also has something for a centered image which should be easily adaptable to add the text next to it (if it doesn't already support it). You can contact me off list if you want help with the image one. Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com letterpigeon wrote: Hi Scott and Alex, Thanks for all your help. I adopted Alex's example of the backgroundColorRenderer and it worked really well. So now I'm using this lightweight for most of the columns in my datagrid except 2, which are both hbox'es. One to display a checkbox, and another one to display an image along side with the text. What components/classes do you think should be used to further improve performance? Thanks. Ban --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby smelby@ wrote: Ban - I don't think TextInput is nearly as lightweight as you might think. Do you really need them all to be editable at all times? Typically I use a lightweight itemrenderer derived from UIComponent etc. and use a separate itemEditor (TextInput, ComboBox, DateField), etc. when the user clicks on a particular data value (row/column). hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com letterpigeon wrote: Hi Scott, Thanks for your post. But I'm on flex 2 now so the AdvancedDataGridItemRenderer is not available to me. Also, in terms of keeping the item renderer as light weight as possible, my item renderer is just a TextInput and I change its background color by calling this.styleName = ErrorCell where ErrorCell is defined in my stylesheet. But even if I comment all this out, have my item renderer just to renderer the text, I'm still seeing a considerable performance hit just by using custom item renderers on all the columns of my datagrid. Is this a limitation in flex that we must trade off performance for using custom renderers heavily?? Thanks. Ban --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby smelby@ wrote: Check out this post http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 on my blog where I discuss and demonstrate performance diffs using various item renderers in Flex. Source code is available if you run the app and right click. Notice how the optimized renderer does not use layout containers such as HBox, etc. Instead it extends the AdvancedDataGridItemRenderer class. In general you want to make your renderers as light weight as possible. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com letterpigeon wrote: Hi all, I'm seeing a huge performance degradation while using custom item renderer with a datagrid. My datagrid is using a custom item renderer for all its column. And even if my item renderer does nothing more than : public override function data(value:object) { super.data = value; } I'm still seeing a few more seconds delay compared to not using custom item renderers for a data set of 50 rows or more. Just wondering if this is a known issue with flex due to heavy graphic rendering? Any pointers on how to speed things up a little bit? Thanks. Ban
Re: [flexcoders] Re: Performance Impact when using custom item renderer
Nope... I use it quite a bit. Must be a bug in the way you are specifying the renderer. Can you post a code snippet? Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com letterpigeon wrote: Hi Scott, Not sure why if I only use a checkbox (or CenteredCheckBox) as the item renderer, a checkbox also appears on the header of that column. Have you seen this problem before?? Thanks. Ban --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote: Should have mentioned a couple of quick cheats in case you have not thought of them... if you use Alex's centered image renderer then you could probably do either of the following very easily 1) Put the label in the column next to the image 2) Just show the image and set the data tip for the column to be the label text. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com Scott Melby wrote: Check out CenteredCheckBox on Alex's blog (assuming you want it centered, otherwise just use CheckBox). I think Alex's blog also has something for a centered image which should be easily adaptable to add the text next to it (if it doesn't already support it). You can contact me off list if you want help with the image one. Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com letterpigeon wrote: Hi Scott and Alex, Thanks for all your help. I adopted Alex's example of the backgroundColorRenderer and it worked really well. So now I'm using this lightweight for most of the columns in my datagrid except 2, which are both hbox'es. One to display a checkbox, and another one to display an image along side with the text. What components/classes do you think should be used to further improve performance? Thanks. Ban --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby smelby@ wrote: Ban - I don't think TextInput is nearly as lightweight as you might think. Do you really need them all to be editable at all times? Typically I use a lightweight itemrenderer derived from UIComponent etc. and use a separate itemEditor (TextInput, ComboBox, DateField), etc. when the user clicks on a particular data value (row/column). hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com letterpigeon wrote: Hi Scott, Thanks for your post. But I'm on flex 2 now so the AdvancedDataGridItemRenderer is not available to me. Also, in terms of keeping the item renderer as light weight as possible, my item renderer is just a TextInput and I change its background color by calling this.styleName = ErrorCell where ErrorCell is defined in my stylesheet. But even if I comment all this out, have my item renderer just to renderer the text, I'm still seeing a considerable performance hit just by using custom item renderers on all the columns of my datagrid. Is this a limitation in flex that we must trade off performance for using custom renderers heavily?? Thanks. Ban --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby smelby@ wrote: Check out this post http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 http://blog.fastlanesw.com/?p=25 on my blog where I discuss and demonstrate performance diffs using various item renderers in Flex. Source code is available if you run the app and right click. Notice how the optimized renderer does not use layout containers such as HBox, etc. Instead it extends the AdvancedDataGridItemRenderer class. In general you want to make your renderers as light weight as possible. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com letterpigeon wrote: Hi all, I'm seeing a huge performance degradation while using custom item renderer with a datagrid. My datagrid is using a custom item renderer for all its column. And even if my item renderer does nothing more than : public override function data(value:object) { super.data = value; } I'm still seeing
[flexcoders] Column Chart with 2 Series (ColumnSeries, AreaSeries)
I'm creating a single graph with a Column Series and an AreaSeries. The bars in the column chart appear to be in between the horizontal points which is what I want, but when I add the Area Series it also starts in between the horizontal points instead of at the very edge of the graph. I want the column series appear in between the data points and the area series to begin at the very edge (0,0) of the graph. How can I achieve this?
[flexcoders] Auto-Incremented Pkey (inserted in Custom Assembler), not returned in ItemRefere
Hi, If anyone could help me with this I'd appreciate it! 1) My custom service generates an id and inserts the record into my table successfully. From my Service.java: ... Statement s = c.createStatement(); ResultSet rs = s.executeQuery(SELECT LAST_INSERT_ID()); // unique userid rs.next(); user.setUserid(rs.getInt(1)); System.out.println(user.setUserid + user.getUserid() + .); // this prints the new unique id correctly ... The println displays the userid I want to use later on properly, but the client never seems to see it. The ItemReference in my client code (below) does not display the same userid as server generated, it always displays 0. For example, debugger shows all the values for the insert populated in userIR obect, accept the userid. Here is my client code: import mx.data.ItemReference; import mx.rpc.events.ResultEvent; import mx.controls.Alert; import mx.events.*; import mx.rpc.events.FaultEvent; import mx.utils.ArrayUtil; import classes.tfdao.User; private function handleRegister(event:Event):void { var dsuserDAO:DataService = new DataService (UserDAO); var user:User = new User(); user.firstname = this.firstname.text; user.lastname = this.lastname.text; user.lastmoddate = new Date(); var userIR:ItemReference = dsuserDAO.createItem(user); var dsaddressDAO:DataService = new DataService(AddressDAO); var address:Address = new Address(); // address.userid = userIR.userid -- this won't work, but do I get the value in address.userid address.addressid = null; address.addresstypeid = 1; address.address1 = this.address1.text; address.address2 = this.address2.text; // yada yada ... var addressIR:ItemReference = dsaddressDAO.createItem(address); this.currentState = registerSuccess; } 2) How do I reference the generated userid? I thought it should be in the Item Reference, but why is it always zero? Is there something I need to do in the data-management-config.xml to make it recognize what the generated userid? I must have missed something -- but I am stumped! Thanks!
Re: Time to clear the Air Adobe -- Re: [flexcoders] Animated PNG
Thank you Jeff! Paul, thank you also, but I guess I've been wondering the best approach for multi-platforms. I've been heading in the Intel C++ and Mac XCode direction. I will look into the animated gif loader to see if it has support for synchronizing with a streamed file. -r Jeffry Houser [EMAIL PROTECTED] wrote: On a semi-related note; has anyone on this thread investigated this component yet? http://dougmccune.com/blog/animatedgifloader-flex-component/ I have no idea if it supports animated png. Paul Decoursey wrote: On Nov 20, 2007, at 9:30 AM, Robert Thompson wrote: Not too many years ago, but I was thinking the 17 years had passed (I believe it's 17). Now, if that's the case, what in the world is wrong with Adobe? They have the most popular rich media format in the world and they appear to be resting on their loins (or the loins if some inside investors) in implementing a low color space animation format. If they are sincere and are looking to improve this, I'm happy. If I find out something else is at work, then the entropy of power will befall them as it does every corporation that has people getting their hands in a pure noble effort, and spoiling it to make a buck (anyone knows how things really work knows this possibility is very real). Please Respond Adobe and clear the air on this. If anybody else knows how PaperVision3D and others are implementing custom plug-ins for Adobe Flash CS3 please post. Creating plugins for Flash is documented. Read the Flash Manual/Help, search for extending Flash... I have not really looked to deep into this myself, but it's there. In response to the other things above, what are you talking about? Why would you want to muck up perfect vector animation with crappy bitmap animation? -r */Paul Decoursey [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]/* wrote: The patents for GIF ran out a few years ago. And does anybody support mpng? On Nov 20, 2007, at 3:16 AM, Robert Thompson wrote: I fully realize there may be patent issues with Adobe using animated GIF. However, what about Animated PNG? I've considered this subject for some time, and I am concerned that Adobe is withholding a great potential improvement in Flash to benefit FLV. I maybe completely wrong -- but that is why I'm posing the question. Lossless reduced color spaces have a great potential benefit to the web. It would be Adobe's free choice whether to include it or not -- but then again, we are free to dump any platform that is overly zealous when it comes to the economics of supply. -r -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com - Get easy, one-click access to your favorites. Make Yahoo! your homepage.
[flexcoders] Re: Where is the Debugger or Profiler?
You must have told the installer not to install the Flash player, so you are still using the old debug player. Run the Flash player installer (which you can find in the Player subdirectory of your Flex Builder installation). - Mike Morearty, Flex Builder team --- In flexcoders@yahoogroups.com, Tim Ashworth [EMAIL PROTECTED] wrote: Hi all, Not a major one this, but I keep getting the Where is the Debugger or profiler running? alert when I run my app. I've got a development machine running CF8 as a standalone and Apache 2.0. I'm developing straight into the htdocs folder. All is running fine, all the code works, I can connect to data and wierdly (well I think it's weird) I don't get the error when I am actually debugging the app. I'm using Flex Builder 3 beta 2. I'd really like to nail this as it's now driving me mad. Cheers in advance, Tim
[flexcoders] Re: How can i view the source of the playerglobal.swc,rpc.swc and so on~
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: We haven't distributed source for rpc.swc. There is no source for playerglobal.swc. It is actually implemented by the player via C++ code which is available because the player is open-source, but might be hard to figure out and you can't step in via the debugger. Hi. Is it possible to get the C++ code? I don't quite understand how some stuff works, and this would really helped me to understand framework. Thanks, Miran
[flexcoders] how to create a save as feature
hi, I would like to create a save as file feature from the text of a TextArea in flex. so when i click the button save as it should let me save the contents of the text box as a file at any location. I was looking at FileReference . Is there some other class that i could use for this purpose. regards vvs
[flexcoders] How to dynamically create the Object attribute names at run time?
Want to create a new Object() and dynamically define the object attribute names at run time. This can be done statically using something such as the following: var o : Object = new Object(); o.field1 = abc; In this case the input data fields are dynamic, so I want to assign the 'field1' attribute name at run time. Is this possible? Thanks in advance.
[flexcoders] problems facing when using Date object
Hi, I have been facing one major issue with Date in flex.When I am displying the date and time in flex application , which is coming from DB is not displying properly. I mean, its displying the date and time according to the timesone i.e. if I change the timezone in my sys, its displaying some other time. I want to display the date and time as it is, dont want to convert according to timezone. How can I overcome this issue. Anybody help me to resolve this issue. I am greatful to them. Thanks Regards, Surya
[flexcoders] critical issue when I am using Date object in flex
Hi, I have been facing one major issue with Date in flex.When I am displying the date and time in flex application , which is coming from DB is not displying properly. I mean, its displying the date and time according to the timesone i.e. if I change the timezone in my sys, its displaying some other time. I want to display the date and time as it is, dont want to convert according to timezone. How can I overcome this issue. Anybody help me to resolve this issue. I am greatful to them. Thanks Regards, Surya
[flexcoders] how to create save as feature from a text area
hi, I would like to save the contents of a text area into a file when a save as button is clicked. I should be able to save the file at any location . How can we do this. I was looking at the FileReference class. I appreciate your help. regards vvs Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[flexcoders] Flex CSS
I've created this css file ___ /* CSS file */ #padre { background-color: red; width: 300px; } #figlio { background-color: green; width: 100%; } for my flex application, but the flex builder gives a syntax error. Can you give me an example of css file for flex application please? Thanks
RE: [flexcoders] Load remote module into local application domain
Should be doable. You'll need the appropriate crossdomain.xml file From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Hrundik Sent: Tuesday, November 20, 2007 8:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Load remote module into local application domain Hello Flexcoders! Is there a way to load (or maybe allow loading) remote Module into local application domain? It would be very helpful in debugging. Thanks! -- With kindest regards, Nikita Petrov aka Hrundik mailto:[EMAIL PROTECTED] mailto:me%40hrundik.ru
RE: [flexcoders] identify the selected itemrenderer from all the item renderes
Check out the item renderer articles on my blog (blogs.adobe.com/aharui) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ilikeflex Sent: Tuesday, November 20, 2007 2:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] identify the selected itemrenderer from all the item renderes Hi I am using the item itemRenderers. The user clicks on the item renderes and i change the background color of the selected renderer. My question is 1. If the user selectes the new item renderes then i want the previous selected itemrenderer to change the background color to default.I want to change the background color of the selected item renderer only.how to do that 2.Secondly, i have Go button which is seprate from the itemrenders on click of which i want to change the backgroung color of the most recently selected itemrenderer. How do i get the reference of the selected item renderer. Please help me. Thanks ilikeflex
RE: [flexcoders] Problem with ModuleLoader on Linux?
Haven't seen this one before. If you test case is small, please file a bug. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bjorn - Sent: Tuesday, November 20, 2007 4:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with ModuleLoader on Linux? Hi, we load a module using the ModuleLoader and this works fine on Windows. loader = new ModuleLoader(); loader.url = this.config.module_gateway_url; loader.addEventListener( ModuleEvent.READY, moduleReady ); loader.addEventListener( ModuleEvent.ERROR, moduleError ); loader.loadModule(); When we debug our application we see that moduleReady() is called both on Windows and on Linux - however bytesLoaded is 0 on Linux and ModuleLoader's child is null (as opposed to Windows where it is the actual bytes of the module and the child has the module's content). Is there a known problem with ModuleLoader on Linux? -- http://www.juicability.com http://www.juicability.com - flex blog http://www.43min.com http://www.43min.com - funny movies
RE: [flexcoders] Re: focus in part of editable combox string?
I don't have the time right now. Maybe someone else can help you. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of luoxuanhuayelin Sent: Tuesday, November 20, 2007 5:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: focus in part of editable combox string? Could you give me a demo? using subclass. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: If you subclass you can get to the internal TextInput and setSelection on it From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of luoxuanhuayelin Sent: Monday, November 19, 2007 1:11 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] focus in part of editable combox string? Hi: I am looking for a editable combox like this image by using actionscript. http://img.photo.163.com/aHHUNXTWT0oCr2XiOhY8RQ==/806707283252758320.j http://img.photo.163.com/aHHUNXTWT0oCr2XiOhY8RQ==/806707283252758320.j pg http://img.photo.163.com/aHHUNXTWT0oCr2XiOhY8RQ==/806707283252758320. http://img.photo.163.com/aHHUNXTWT0oCr2XiOhY8RQ==/806707283252758320. jp g For the type of 'TextInput', using the default function TextInput.setSelection((3,5), but for 'editable combox' ,I do not know. Thanks in advance!
[flexcoders] Re: How to dynamically create the Object attribute names at run time?
o[field1] = abc; --- In flexcoders@yahoogroups.com, joseph_freemaker [EMAIL PROTECTED] wrote: Want to create a new Object() and dynamically define the object attribute names at run time. This can be done statically using something such as the following: var o : Object = new Object(); o.field1 = abc; In this case the input data fields are dynamic, so I want to assign the 'field1' attribute name at run time. Is this possible? Thanks in advance.
RE: [flexcoders] dataGrid cellRenderer and PropertyChangeEvent
Is the combobox rendereIsEditor=true or is it a popup editor? Maybe you should post some of the relevant code. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thierry V. Sent: Tuesday, November 20, 2007 1:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] dataGrid cellRenderer and PropertyChangeEvent Hello, I have added a combobox cellRenderer to an editable datagrid like in this example. I use the propertyChangeEvent of the ObjectProxies array passed as dataprovider to update the data change, but for the combobox, the event seems not triggered. I think it's because the value of the comboBox is changed programmatically, and have tried to simulate an event like : public function onChange():void { var index:int = editor.selectedIndex; result = uint( dpValue[index].data ); //dispatch an event to alert the update editor.dispatchEvent( PropertyChangeEvent.createUpdateEvent( dpValue[index], refid, null, result ) ); } but the result is the same, event is not triggered and the value is not updated. Any idea about the way to have a correct update ? Thanks in advance Thierry
RE: [flexcoders] how to create a save as feature
You want to save the file to the user's local PC? If the Flex app is running in the browser this is not possible due to security reasons. You can however use Flex 3 to write an app that will run in AIR and it will be able to save files to a local PC. Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sree_ramvv Sent: Tuesday, November 20, 2007 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to create a save as feature hi, I would like to create a save as file feature from the text of a TextArea in flex. so when i click the button save as it should let me save the contents of the text box as a file at any location. I was looking at FileReference . Is there some other class that i could use for this purpose. regards vvs -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
RE: [flexcoders] Flex SDK Beta 2 - script timeout
You'll only get into that code if a state is changing. It shouldn't time out though. Is it possible your also cranking lots of data in that same frame? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Tuesday, November 20, 2007 5:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex SDK Beta 2 - script timeout Actually sorry, that's the second error - the first error is here: Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds. at mx.managers.layoutClasses::PriorityQueue/removeSmallestChild()[E:\dev\fl ex_3_beta2\sdk\frameworks\projects\framework\src\mx\managers\layoutClass es\PriorityQueue.as:212] at mx.managers::LayoutManager/validateClient()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\managers\LayoutManager.as:853] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta2\sdk\frameworks\pr ojects\framework\src\mx\core\UIComponent.as:5432] at mx.core::Container/createOrDestroyScrollbars()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\core\Container.as:4454] at mx.core::Container/createScrollbarsIfNeeded()[E:\dev\flex_3_beta2\sdk\fr ameworks\projects\framework\src\mx\core\Container.as:4382] at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()[E:\dev\flex_ 3_beta2\sdk\frameworks\projects\framework\src\mx\core\Container.as:4198] at mx.core::Container/validateDisplayList()[E:\dev\flex_3_beta2\sdk\framewo rks\projects\framework\src\mx\core\Container.as:2726] at mx.managers::LayoutManager/validateClient()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\managers\LayoutManager.as:858] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta2\sdk\frameworks\pr ojects\framework\src\mx\core\UIComponent.as:5432] at mx.core::UIComponent/creationCompleteHandler()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\core\UIComponent.as:8364] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta2\sdk\frameworks\ projects\framework\src\mx\core\UIComponent.as:8915] at mx.core::UIComponent/set initialized()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\ mx\core\UIComponent.as:1118] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\flex_3_beta2\s dk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:696] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\core\UIComponent.as:8338] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\flex_3_beta2\sdk\frame works\projects\framework\src\mx\core\UIComponent.as:8281] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: 20 November 2007 13:51 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex SDK Beta 2 - script timeout Hi all, I've got my project building ok in FB3 now - but when I run it (just before it finishes creating the children after retrieving data from web service call), I get the following error: Error: Error #1503: A script failed to exit after 30 seconds and was terminated. at mx.managers.layoutClasses::PriorityQueue/removeSmallestChild()[E:\dev\fl ex_3_beta2\sdk\frameworks\projects\framework\src\mx\managers\layoutClass es\PriorityQueue.as:212] at mx.managers::LayoutManager/validateClient()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\managers\LayoutManager.as:893] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta2\sdk\frameworks\pr ojects\framework\src\mx\core\UIComponent.as:5432] at mx.core::Container/createOrDestroyScrollbars()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\core\Container.as:4514] at mx.core::Container/createScrollbarsIfNeeded()[E:\dev\flex_3_beta2\sdk\fr ameworks\projects\framework\src\mx\core\Container.as:4382] at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()[E:\dev\flex_ 3_beta2\sdk\frameworks\projects\framework\src\mx\core\Container.as:4198] at mx.core::Container/validateDisplayList()[E:\dev\flex_3_beta2\sdk\framewo rks\projects\framework\src\mx\core\Container.as:2726] at mx.managers::LayoutManager/validateClient()[E:\dev\flex_3_beta2\sdk\fram eworks\projects\framework\src\mx\managers\LayoutManager.as:858] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta2\sdk\frameworks\pr ojects\framework\src\mx\core\UIComponent.as:5432] at mx.core::UIComponent/creationCompleteHandler()[E:\dev\flex_3_beta2\sdk\f rameworks\projects\framework\src\mx\core\UIComponent.as:8364] at flash.events::EventDispatcher/dispatchEventFunction() at
RE: [flexcoders] Flex TabBar is sniffy about my XMLListCollection DataProvider.
Please file a bug with your test case. I guess you are the first to use XML. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews Sent: Tuesday, November 20, 2007 1:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex TabBar is sniffy about my XMLListCollection DataProvider. Thanks Alex, with iconField set to null, it works! (no idea why) Should I be doing something more with this test case to report a bug, or is your 'heads up' enough? I've been banging my head over this for days (I tried all sorts of things in the main application to see what was going on). I'm rather surprised that there's a bug - am I the only one driving a TabBar from and XMLListCollection? Thanks again for your help. Paul - Original Message - From: Alex Harui mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Sent: Tuesday, November 20, 2007 6:39 AM Subject: RE: [flexcoders] Flex TabBar is sniffy about my XMLListCollection DataProvider. I think that's a bug. I'm not sure we did enough testing with XMLListCollection with TabNav. Try setting iconField to null as a workaround.
[flexcoders] Flex+finger sensor+webcam+socket!!
Hi people, What you surgerem for this combination? Flex or not flex? thx Bit
[flexcoders] Re: Flex 2.0.1: Can shared objects be saved in any location that we want?
Thx Tom! That's what I thought too. I guess that I am going to try out Zinc because I need to write files into specific locations. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Sunday 18 Nov 2007, handitan wrote: I am trying to saved shared objects in my thumb drive but no result so far. You mean SharedObject's ? No, you can't change where those go. -- Tom Chiverton Helping to continually synergize network action-items on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: SPAM-LOW: [flexcoders] Re: Air/Flex App With Barcode Reader
In that case, I think you'll have a lot of success w/ Flex or AIR for this. Just have a textInput field to capture data. You can give it focus in code using creationComplete; and you can write code to throw focus back to the input field in case it loses focus. Josh's explanation of listening for the keydown is probably spot on with what you have to do. The trick will be figuring out whether the keydown will launch with each character in the bar code or only after ( Or since this isn't a keyboard input, whether or not the scan will trigger it at all ). Chad Gray wrote: I guess I should not have used the term Section of the app. The app is standalone and it's only purpose is there to spit back data about the product entered via the barcode scanner. I don't want the user to have to click on anything. They scan and they get back data. The only focus I suppose will be the Air application itself. That will have to have focus out of other applications running on the computers desktop. Thanks for the feedback! Once I get this more into the proof of concept range I will try out the code. Now maybe once this app gets toss around some more. There will be the need to scan the barcode, display the data, then alter the data and submit it back to CF, but for right now that is not the case. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Jeffry Houser Sent: Tuesday, November 20, 2007 11:59 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: SPAM-LOW: [flexcoders] Re: Air/Flex App With Barcode Reader Conceptually this sounds good. However, I would expect this method would be non-intuitive to users. Containers will not broadcast keyboard events on their own, so the user must have have given focus to a component that will broadcast the keyboard events. I believe there are a lot of situations, such as changing the selectedIndex of a ViewStack or tabbing through a TabNavigator where nothing will be given focus and the bar code scan would be ignored. Josh VanderBerg wrote: Define a keyDown event handler at the application level. Because of the Flex 2.0 event model, all keydown events, from all controls, should bubble up to the Application. Here is a little application I made to test this. The bottom text area will show all keys typed, no matter the control that has the focus when the key was pressed. ?xml version=1.0 encoding=utf-8? mx:Application keyDown=keyCapture(event) xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical mx:Script ![CDATA[ private function keyCapture(event: KeyboardEvent) : void { allKeys.text += String.fromCharCode(event.charCode); } ]] /mx:Script mx:Label text=Text1 / mx:TextArea id=textArea height=200 width=200 / mx:Label text=Text2 / mx:TextInput id=textInput / mx:Label text=Button: / mx:Button label=Set Focus here / mx:Label text=Key Capture / mx:TextArea selectable=false id=allKeys width=400 height=400 / /mx:Application __ Josh Vanderberg -- http://vanderblog.typepad.com http://vanderblog.typepad.com http://vanderblog.typepad.com http://vanderblog.typepad.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Chad Gray [EMAIL PROTECTED] wrote: Hello, I am just doing research and need some input. We would like to make an Air/Flex app that when you scan in a barcode you get product details from a database that CF is serving out. The barcode scanner works like a key board and at the end of a scan I can have it send a carriage return. I don't want the user to have to put focus on a text input field then scan the barcode to get a result. I want them so that any keyboard entry from the scanner will always pull up product details upon the carriage return. It does not matter what section of the Appliction they are in. If text entry is present from the barcode scanner then I want to return product details from the database. Has anyone built an app that works with a barcode reader in this way? Any quick code suggestions on capturing the text input from the barcode reader? Thanks! -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com http://www.dot-com-it.com My Podcast: http://www.theflexshow.com http://www.theflexshow.com My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com -- Flexcoders Mailing List FAQ:
Re: [flexcoders] Is Flex the right framework for an online dictionary?
- We must use fine-space, non breaking space, non breaking hyphen, etc. - Some group of words must have tooltip. I'm not sure, if these features can be implemented easily in Flex/Flash Cheers Ralf. On Nov 20, 2007 8:12 PM, Dominic Marcotte [EMAIL PROTECTED] wrote: Hello, We are analyzing if Flex is the right framework for our web application (online dictionary). We are almost convinced but we want to have your advices on these particular points : This is what we need... - Essentially, we must display very complex and structured texts. - The text is organized in paragraphs. - Each paragraph is composed of many group of words. - Each group of words can use a specific font, color, size and style. - Some group of words must use small caps style. - Ideally, the style would be in CSS file. - We must use unicode characters. (#x220E;, #x25CF;, #x25B7;, etc.) - We must use fine-space, non breaking space, non breaking hyphen, etc. - Some group of words must be a link or able to trigger events. - Some group of words must have tooltip. Do you think it's possible to do that with Flex or we are better to stay in HTML. Thanks for your advices. Dominic -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
[flexcoders] Re: Performance Impact when using custom item renderer
Hi Scott, Somewhere in my code, I'm setting up the configuration of all the columns, and I'm doing something like this: var ignoreColumnConfig:ColumnConfig = new ColumnConfig; ignoreColumnConfig.dataField = ignore; ignoreColumnConfig.headerText = Ignore; ignoreColumnConfig.editable = false; ignoreColumnConfig.itemRenderer = new ClassFactory(CenteredCheckBoxItemRenderer); ignoreColumnConfig.headerRenderer = new ClassFactory(CheckedBoxHeaderRenderer); columnConfigs.push(ignoreColumnConfig); var dynamicGrid:DynamicDataGrid = new DynamicDataGrid dynamicGrid.columnsConfig = columnConfigs; Then in my custom datagrid class, I'm constructing the data grid columns as follow: public function set columnsConfig(value:Array):void { _columnsConfig = value; var columnArray:Array = new Array(); for each (var config:ColumnConfig in _columnsConfig) { var newColumn:DataGridColumn = new DataGridColumn; newColumn.headerText = config.headerText; newColumn.dataField = config.dataField; newColumn.editable = config.editable; if(_columnFilterEnabled) { var headerRendererClassFactory:ClassFactory; headerRendererClassFactory = config.headerRenderer; newColumn.headerRenderer = headerRendererClassFactory; } if(config.itemRenderer!=null) { newColumn.itemRenderer = config.itemRenderer; } columnArray.push(newColumn); } this.columns = columnArray; } I'm not sure how to post this code snippet in a code block. I apologize if it's hard to read. Thanks a lot for your help. Ban --- In flexcoders@yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote: Nope... I use it quite a bit. Must be a bug in the way you are specifying the renderer. Can you post a code snippet? Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com letterpigeon wrote: Hi Scott, Not sure why if I only use a checkbox (or CenteredCheckBox) as the item renderer, a checkbox also appears on the header of that column. Have you seen this problem before?? Thanks. Ban --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby smelby@ wrote: Should have mentioned a couple of quick cheats in case you have not thought of them... if you use Alex's centered image renderer then you could probably do either of the following very easily 1) Put the label in the column next to the image 2) Just show the image and set the data tip for the column to be the label text. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com Scott Melby wrote: Check out CenteredCheckBox on Alex's blog (assuming you want it centered, otherwise just use CheckBox). I think Alex's blog also has something for a centered image which should be easily adaptable to add the text next to it (if it doesn't already support it). You can contact me off list if you want help with the image one. Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com letterpigeon wrote: Hi Scott and Alex, Thanks for all your help. I adopted Alex's example of the backgroundColorRenderer and it worked really well. So now I'm using this lightweight for most of the columns in my datagrid except 2, which are both hbox'es. One to display a checkbox, and another one to display an image along side with the text. What components/classes do you think should be used to further improve performance? Thanks. Ban --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby smelby@ wrote: Ban - I don't think TextInput is nearly as lightweight as you might think. Do you really need them all to be editable at all times? Typically I use a lightweight itemrenderer derived from UIComponent etc. and use a separate itemEditor (TextInput, ComboBox, DateField), etc. when the user clicks on a particular data value (row/column). hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com letterpigeon wrote: Hi Scott, Thanks for your post. But I'm on flex 2 now so the
[flexcoders] Re: how to create a save as feature
hi, Can you please point me to resources on how to do it using flex 3 and AIR. Thank You vvs --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: You want to save the file to the user's local PC? If the Flex app is running in the browser this is not possible due to security reasons. You can however use Flex 3 to write an app that will run in AIR and it will be able to save files to a local PC. Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sree_ramvv Sent: Tuesday, November 20, 2007 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to create a save as feature hi, I would like to create a save as file feature from the text of a TextArea in flex. so when i click the button save as it should let me save the contents of the text box as a file at any location. I was looking at FileReference . Is there some other class that i could use for this purpose. regards vvs -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Is Flex the right framework for an online dictionary?
Hello, We are analyzing if Flex is the right framework for our web application (online dictionary). We are almost convinced but we want to have your advices on these particular points : This is what we need... - Essentially, we must display very complex and structured texts. - The text is organized in paragraphs. - Each paragraph is composed of many group of words. - Each group of words can use a specific font, color, size and style. - Some group of words must use small caps style. - Ideally, the style would be in CSS file. - We must use unicode characters. (#x220E;, #x25CF;, #x25B7;, etc.) - We must use fine-space, non breaking space, non breaking hyphen, etc. - Some group of words must be a link or able to trigger events. - Some group of words must have tooltip. Do you think it's possible to do that with Flex or we are better to stay in HTML. Thanks for your advices. Dominic
[flexcoders] Re: Block entire application while in transaction
Thanks, but i`m not using this to do uploads, upload i made especific component. I just want user can't click any place or made another transaction while something is stored on database o get from database. One way to block error comportament, i think application enabled is good idea. Enabled false when request and in result handler of request enable true, exist some better way to do this? Thanks. --- In flexcoders@yahoogroups.com, Aaron Miller [EMAIL PROTECTED] wrote: You could create a status window component that extends TitleWindow. Pop it up and give it a status message when it starts the upload, then remove it when finished. You could even request a user response on error. Search the docs for 'TitleWindow' for more info. There are other ways to do this, but I found this to be the most user firendly for my own use. Best Regards, ...aaron On 11/18/07, danielvlopes [EMAIL PROTECTED] wrote: Hello, i had application with stacks, buttons, inputs and etc... when user click in insert button it start upload and database insert, but while those operations happening user can click in other parts of application, exist some way to set enabled to false for entire application while transactions ocour? Thanks. -- Aaron Miller Chief Technology Officer Splash Labs, LLC. [EMAIL PROTECTED] | 206-328-5485 http://www.splashlabs.com
[flexcoders] Repeater is not executing when changing the dataProvider
*I am having the same problem. Was there ever a solution for this issue? * RE: [flexcoders] Error: Repeater is not executing. Tracy Spratt Tue, 27 Mar 2007 17:04:46 -0800 First you are not doing the repeater quite right. Try this: mx:Repeater dataProvider={_main._newss} id=newsRepeater mx:Label text={newsRepeater.currentItem.myProperty}/ /mx:Repeater The currentItem propeerty already holds a reference to the dataProvider item that is generating the current repeater instance. Second, the Label needs a text value, which will be one of the properties on your dataProvider item objects. Tracy From: flexcoders@yahoogroups.com [EMAIL PROTECTED] On Behalf Of thierrybertossa Sent: Tuesday, March 27, 2007 5:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error: Repeater is not executing. I have a repeater: mx:Repeater dataProvider={_main._newss} id=newsRepeater mx:Label text={_main._newss.getItemAt(newsRepeater.currentIndex)}/ /mx:Repeater _newss, is an instance of a custom Newss Class extends ArrayCollection. When I change _newss like this: _newss = new Newss(); I have an error: Error: Repeater is not executing. Is there a way to dynamically change repeater's Dataprovider without having this kind of probleme. Thanks Thierry
[flexcoders] Problem with TileLIst RowCount
After adding a tilelist using addchild, I'm trying to resize it's container, a canvas, to fit the tilelist based on the rowcount * rowheight. Strangely it always return rowCount = 2 - even though there is 1 or 3 rows ? How can I force a recount ?? Or is there another way to get the actual size of the content of the tileList. The problem is that I dont know the number of items that the tilelist will display, or how many tilelists there will be. So I need to be able to dynamically resize the container. The tilelist dont have a rowCount property set explicitly, percentheight=100. Hope that someone else has solved this issue. Thanks for your help. Mark
[flexcoders] Re: Debugging with safari
ok. did that. it works. but now my current flash plugin is 9,0,28,0, not 9,0,47,0 as before. If I update it should work anyway? Thanks in advance, -c. --- In flexcoders@yahoogroups.com, Mike Morearty [EMAIL PROTECTED] wrote: That's very strange. I can't imagine why you would get that message with one browser but not with another. On the Mac, Safari and Firefox both get Flash from the exact same place: the path given in that dialog. All I can suggest is that you try reinstalling the Flash player. The installer can be found on your hard disk under Flex Builder's installation dir, in a subdirectory called Player. - Mike Morearty, Adobe Flex Builder team --- In flexcoders@yahoogroups.com, Cesare Rocchi cesarerocchi@ wrote: Hi, i really like a lot the new Safari (3). Is there any way to allow debugging of flex applications with Safari. In the preferences a select Safari as primary browser, then debug my app, but the error is: /Library/Internet Plug-Ins/Flash Player.plugin Flex Builder cannot locate the required debug version of the Flash Player. You may need to install the debug version of Flash Player 9.0 or reinstall Flex Builder. Do you want to try to debug with the current version? If I set Firefox as primary browser I can debug. Any idea? -- Rocchi Cesare http://funkyboy.tumblr.com/
Re: [flexcoders] Is Flex the right framework for an online dictionary?
Dominic: As a side node, there is no reason you can't use both Flex and HTML. Write your application in Flex with all of the bells and whistles, but then display the HTML markup in an iFrame inside the Flex app. Here is an example of how to do it: http://www.deitte.com/IFrameDemo3/IFrameDemo.html Right click for source. Hope that gives you an alternate. FYI, Flex does provide some basic HTML markup in their controls, but for what you are doing I would either look for a custom component (of which I know there are some out there) or write something custom. Thanks -Pat www.datanotion.com On 11/20/07, Ralf Bokelberg [EMAIL PROTECTED] wrote: - We must use fine-space, non breaking space, non breaking hyphen, etc. - Some group of words must have tooltip. I'm not sure, if these features can be implemented easily in Flex/Flash Cheers Ralf. On Nov 20, 2007 8:12 PM, Dominic Marcotte [EMAIL PROTECTED]d.marcotte%40usherbrooke.ca wrote: Hello, We are analyzing if Flex is the right framework for our web application (online dictionary). We are almost convinced but we want to have your advices on these particular points : This is what we need... - Essentially, we must display very complex and structured texts. - The text is organized in paragraphs. - Each paragraph is composed of many group of words. - Each group of words can use a specific font, color, size and style. - Some group of words must use small caps style. - Ideally, the style would be in CSS file. - We must use unicode characters. (#x220E;, #x25CF;, #x25B7;, etc.) - We must use fine-space, non breaking space, non breaking hyphen, etc. - Some group of words must be a link or able to trigger events. - Some group of words must have tooltip. Do you think it's possible to do that with Flex or we are better to stay in HTML. Thanks for your advices. Dominic -- Ralf Bokelberg [EMAIL PROTECTED] ralf.bokelberg%40gmail.com Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
SPAM-LOW: [flexcoders] Re: Air/Flex App With Barcode Reader
If you call addEventListener with useCapture=true, the listener will trap events that don't usually bubble. I've verified that it works even when the focus is on a tab bar. The one issue is that after the application starts *nothing* has focus - but once you click on anything, even a component that doesn't normally respond to keyboard events, the centralized listener will start getting key events. __ Josh Vanderberg -- http://vanderblog.typepad.com --- In flexcoders@yahoogroups.com, Jeffry Houser [EMAIL PROTECTED] wrote: Conceptually this sounds good. However, I would expect this method would be non-intuitive to users. Containers will not broadcast keyboard events on their own, so the user must have have given focus to a component that will broadcast the keyboard events. I believe there are a lot of situations, such as changing the selectedIndex of a ViewStack or tabbing through a TabNavigator where nothing will be given focus and the bar code scan would be ignored. Josh VanderBerg wrote: Define a keyDown event handler at the application level. Because of the Flex 2.0 event model, all keydown events, from all controls, should bubble up to the Application. Here is a little application I made to test this. The bottom text area will show all keys typed, no matter the control that has the focus when the key was pressed. ?xml version=1.0 encoding=utf-8? mx:Application keyDown=keyCapture(event) xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical mx:Script ![CDATA[ private function keyCapture(event: KeyboardEvent) : void { allKeys.text += String.fromCharCode(event.charCode); } ]] /mx:Script mx:Label text=Text1 / mx:TextArea id=textArea height=200 width=200 / mx:Label text=Text2 / mx:TextInput id=textInput / mx:Label text=Button: / mx:Button label=Set Focus here / mx:Label text=Key Capture / mx:TextArea selectable=false id=allKeys width=400 height=400 / /mx:Application __ Josh Vanderberg -- http://vanderblog.typepad.com http://vanderblog.typepad.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Chad Gray cgray@ wrote: Hello, I am just doing research and need some input. We would like to make an Air/Flex app that when you scan in a barcode you get product details from a database that CF is serving out. The barcode scanner works like a key board and at the end of a scan I can have it send a carriage return. I don't want the user to have to put focus on a text input field then scan the barcode to get a result. I want them so that any keyboard entry from the scanner will always pull up product details upon the carriage return. It does not matter what section of the Appliction they are in. If text entry is present from the barcode scanner then I want to return product details from the database. Has anyone built an app that works with a barcode reader in this way? Any quick code suggestions on capturing the text input from the barcode reader? Thanks! -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] When are scrollbars added? question on timing of initial rendering
I have a Canvas object that I am dynamically adding images to in a method that is called via Application.creationComplete(). Sometimes the addition of these images results in clipping and the creation of scrollbars, so I'm checking the position of a certain image to see if it's in the viewable area. However, it seems like the scrollbars have not yet been added to the canvas at the time I am checking for them, which is immediately after I've added the images. I'm assuming it's some kind of rendering timing issue, like I'm still within the method stack so it doesn't render the canvas with the new objects yet. Is there a way to force the scrollbars to be added?
[flexcoders] Re: flex + dll
What exactly do you want to use the DLL for? That might help us find you a solution that would work with Flex. :) I'm not sure what you are looking to do whether it is to use multi-touch (using your fingers to navigate) with Flex, or to access the UNIX command, finger. This question has come up a few times on the board (i.e. DLLs), but each instance has different needs and who knows, maybe there is a better solution! Just let us know, and we'll do our best to help. -- William --- In flexcoders@yahoogroups.com, Bit [EMAIL PROTECTED] wrote: hi people, how do dll and flex! work with finger and flex! thx bit
Re: SPAM-LOW: [flexcoders] Re: Air/Flex App With Barcode Reader
I've never tried that userCapture=true approach. I was trying to create a full screen app w/ AIR and tried a very similar approach to what you describe to prevent users from escaping out of the app. The keyboard events would never get caught until something got focus, making it very easy for the user to escape out of the application. Obviously the bar code use case is very different, and you probably won't run into the problem I ran into. Josh VanderBerg wrote: If you call addEventListener with useCapture=true, the listener will trap events that don't usually bubble. I've verified that it works even when the focus is on a tab bar. The one issue is that after the application starts *nothing* has focus - but once you click on anything, even a component that doesn't normally respond to keyboard events, the centralized listener will start getting key events. __ Josh Vanderberg -- http://vanderblog.typepad.com http://vanderblog.typepad.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jeffry Houser [EMAIL PROTECTED] wrote: Conceptually this sounds good. However, I would expect this method would be non-intuitive to users. Containers will not broadcast keyboard events on their own, so the user must have have given focus to a component that will broadcast the keyboard events. I believe there are a lot of situations, such as changing the selectedIndex of a ViewStack or tabbing through a TabNavigator where nothing will be given focus and the bar code scan would be ignored. Josh VanderBerg wrote: Define a keyDown event handler at the application level. Because of the Flex 2.0 event model, all keydown events, from all controls, should bubble up to the Application. Here is a little application I made to test this. The bottom text area will show all keys typed, no matter the control that has the focus when the key was pressed. ?xml version=1.0 encoding=utf-8? mx:Application keyDown=keyCapture(event) xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical mx:Script ![CDATA[ private function keyCapture(event: KeyboardEvent) : void { allKeys.text += String.fromCharCode(event.charCode); } ]] /mx:Script mx:Label text=Text1 / mx:TextArea id=textArea height=200 width=200 / mx:Label text=Text2 / mx:TextInput id=textInput / mx:Label text=Button: / mx:Button label=Set Focus here / mx:Label text=Key Capture / mx:TextArea selectable=false id=allKeys width=400 height=400 / /mx:Application __ Josh Vanderberg -- http://vanderblog.typepad.com http://vanderblog.typepad.com http://vanderblog.typepad.com http://vanderblog.typepad.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Chad Gray cgray@ wrote: Hello, I am just doing research and need some input. We would like to make an Air/Flex app that when you scan in a barcode you get product details from a database that CF is serving out. The barcode scanner works like a key board and at the end of a scan I can have it send a carriage return. I don't want the user to have to put focus on a text input field then scan the barcode to get a result. I want them so that any keyboard entry from the scanner will always pull up product details upon the carriage return. It does not matter what section of the Appliction they are in. If text entry is present from the barcode scanner then I want to return product details from the database. Has anyone built an app that works with a barcode reader in this way? Any quick code suggestions on capturing the text input from the barcode reader? Thanks! -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com http://www.dot-com-it.com My Podcast: http://www.theflexshow.com http://www.theflexshow.com My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
RE: [flexcoders] When are scrollbars added? question on timing of initial rendering
There's a whole validation sequence after you call addChild. Theres an updateComplete event when done, and you can force it by calling validatenow(), but that can be expensive. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sent: Tuesday, November 20, 2007 12:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] When are scrollbars added? question on timing of initial rendering I have a Canvas object that I am dynamically adding images to in a method that is called via Application.creationComplete(). Sometimes the addition of these images results in clipping and the creation of scrollbars, so I'm checking the position of a certain image to see if it's in the viewable area. However, it seems like the scrollbars have not yet been added to the canvas at the time I am checking for them, which is immediately after I've added the images. I'm assuming it's some kind of rendering timing issue, like I'm still within the method stack so it doesn't render the canvas with the new objects yet. Is there a way to force the scrollbars to be added?