RE: [flexcoders] RE: AIR/Window/DataGrid Issue
Alex, Thanks for your help! Using mduleFactory.create() worked. Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Friday, December 02, 2011 2:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] RE: AIR/Window/DataGrid Issue Basic implementations should be able to use MXML. For example, you cram a bunch of MXML in a mx:Module and load that in an mx:ModuleLoader and it just works. But it gets trickier when using popups. Usually you have to call PopUpManager from AS anyway and you can choose the moduleFactory to pass in. Is the Window and DataGrid in one MXML file? Maybe instead of calling new MyWindow() you can use moduleFactory.create(some.package.MyWindow) and that will get things going in the right direction. I suspect the DataGroups worked because they don't have skins or the skins were in the main app. The DataGrid's styles are probably in the same module SWF as the DataGrid. The problem is that if the DataGrid's moduleFactory is pointing at the main app, it won't find the styles in there. The DataGrid is probably picking up its moduleFactory from its parents. -Alex On 12/2/11 4:00 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote: Thanks Alex, It's pretty clear I'm pushing the envelope architecture-wise - I've got a module that opens a popup that opens a window that contains a datagrid. Interestingly though, in my Flex 4.0 version, where I wasn't using a Spark datagrid but instead using my solution using DataGroups (spark datagrid wasn't yet available) I had no issues. Note the first error I get is from that the DataGrid skin cannot be found. Makes me wonder whether it's the styles that are not loaded. I! #8217;m going to try to get my wits around using moduleFactory. It appears that in order to use it I cannot use MXML but instead using AS? Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, December 01, 2011 5:05 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] RE: AIR/Window/DataGrid Issue That's a very! puzzling stack trace. I have no idea how you can get in! to this situation. Do you have a simple test case? The moduleFactory subsystem relies on instantiating classes in a module via moduleInfo.factory.create(). The children of that class have moduleFactory propagated to them as they are added to their parents. Calling some function on a module that calls PopUpManager.createPopUp() bypasses the subsystem because the popup is added to the systemManager and some class that has its moduleFactory set to the right place. Is that what is going on in your code? There is a moduleFactory parameter to createPopUp you can use. On 12/1/11 10:06 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote: Thanks Alex, Here's the stack trace: TypeError: Error #1009: Cannot access a property or method of a null object reference. at spark.components::Group/addElement()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1342] at spark.components.gridClasses::GridLayout/createTypicalItemRenderer()[E:\dev\4.y\fr! ameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:748] at spark.components.gridClasses::GridLayout/updateTypicalCellSizes()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:883] at spark.components.gridClasses::GridLayout/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:444] at spark.components.supportClasses::GroupBase/measure()[E:\dev\4.y\framew! orks\projects\spark\src\spark\components\supportClasses\GroupB! ase.as:1 148] at mx.core::UIComponent! /http://www.adobe.com/2006/flex/mx/internal::measureSizes()[Ehttp://www.adobe.com/2006/flex/mx/internal::measureSizes()%5bE: http://www.adobe.com/2006/flex/mx/internal::measureSizes()%5bE: ! \dev\4.y \frameworks\projects\framework\src\mx\core\UIComponent.as:8506] at mx.core::UIComponent/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8430] at spark.components::Group/validateSize()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1012] at mx.managers::LayoutManager/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:665] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:816] ! nbsp; at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180] The app is constructed like so: 1) Shell application 2) Modules loaded at runtime 3) The module in question has a pop up wizard (TitleWindow). 4) The popup wizard opens Window. 5) Window contains DataGrid. I! don't understand how the module factory
RE: [flexcoders] RE: AIR/Window/DataGrid Issue
Thanks Alex, It's pretty clear I'm pushing the envelope architecture-wise - I've got a module that opens a popup that opens a window that contains a datagrid. Interestingly though, in my Flex 4.0 version, where I wasn't using a Spark datagrid but instead using my solution using DataGroups (spark datagrid wasn't yet available) I had no issues. Note the first error I get is from that the DataGrid skin cannot be found. Makes me wonder whether it's the styles that are not loaded. I'm going to try to get my wits around using moduleFactory. It appears that in order to use it I cannot use MXML but instead using AS? Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, December 01, 2011 5:05 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] RE: AIR/Window/DataGrid Issue That's a very puzzling stack trace. I have no idea how you can get into this situation. Do you have a simple test case? The moduleFactory subsystem relies on instantiating classes in a module via moduleInfo.factory.create(). The children of that class have moduleFactory propagated to them as they are added to their parents. Calling some function on a module that calls PopUpManager.createPopUp() bypasses the subsystem because the popup is added to the systemManager and some class that has its moduleFactory set to the right place. Is that what is going on in your code? There is a moduleFactory parameter to createPopUp you can use. On 12/1/11 10:06 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote: Thanks Alex, Here's the stack trace: TypeError: Error #1009: Cannot access a property or method of a null object reference. at spark.components::Group/addElement()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1342] at spark.components.gridClasses::GridLayout/createTypicalItemRenderer()[E:\dev\4.y\fr! ameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:748] at spark.components.gridClasses::GridLayout/updateTypicalCellSizes()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:883] at spark.components.gridClasses::GridLayout/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:444] at spark.components.supportClasses::GroupBase/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1148] at mx.core::UIComponent! /http://www.adobe.com/2006/flex/mx/internal::measureSizes()[E:http://www.adobe.com/2006/flex/mx/internal::measureSizes()%5bE:! \dev\4.y \frameworks\projects\framework\src\mx\core\UIComponent.as:8506] at mx.core::UIComponent/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8430] at spark.components::Group/validateSize()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1012] at mx.managers::LayoutManager/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:665] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:816] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180] The app is constructed like so: 1) Shell application 2) Modules loaded at runtime 3) The module in question has a pop up wizard (TitleWindow). 4) The popup wizard opens Window. 5) Window contains DataGrid. I! don't understand how the module factory for the datagrid points to the module factory for the module. How's that accomplished? Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, December 01, 2011 12:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] RE: AIR/Window/! DataGrid Issue n bsp; What is the Group stack trace? If classes are in a module you definitely have to get the moduleFactory pointing to that module because that's probably where the skins are as well. On 12/1/11 5:06 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote: My issue sounds similar to this issue: http://forums.adobe.com/message/3910406 What's unclear to me is how to work around it in my circumstance. Clearly I should be able to declare a datagrid in a Window and have it work without an elaborate workaround. Any advice appreciated. Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Wednesday, November 30, 2011 8:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] AIR/Window/DataGrid Issue Hi, I'm mid re-factoring a SDK 4.0 AIR app to 4.5 and attempting to take advantage of the Spark DataGrid. In this app (which is built with modules) I'm openin! g a NativeWindow and displaying a datagrid. The fi! rst erro r
[flexcoders] RE: AIR/Window/DataGrid Issue
My issue sounds similar to this issue: http://forums.adobe.com/message/3910406 What's unclear to me is how to work around it in my circumstance. Clearly I should be able to declare a datagrid in a Window and have it work without an elaborate workaround. Any advice appreciated. Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Wednesday, November 30, 2011 8:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] AIR/Window/DataGrid Issue Hi, I'm mid re-factoring a SDK 4.0 AIR app to 4.5 and attempting to take advantage of the Spark DataGrid. In this app (which is built with modules) I'm opening a NativeWindow and displaying a datagrid. The first error is that the DataGrid Skin class cannot be found. I dealt with this by creating a new Skin from the DataGrid and referencing that. Then when I attempt to populate the grid with data, I get RTEs pointing to Group.as with error #1009 null. I can get in to more exhaustive detail about the exact error(s) but I think something more fundamental is happening. Note that the libs are all merged into code. It seems that some of the underlying libraries aren' being included. Does anyone have any experience or theories on what might be happening? Jeff Battershall Application Architect T 609 520 5637 F 609 520 5370 C 732 666-8205 jeff.battersh...@djindexes.commailto:jeff.battersh...@djindexes.com Dow Jones Indexes 4300 Route 1 North South Brunswick, NJ 08852 www.djindexes.comhttp://www.cmegroup.com/ inline: image001.jpg
RE: [flexcoders] RE: AIR/Window/DataGrid Issue
Thanks Alex, Here's the stack trace: TypeError: Error #1009: Cannot access a property or method of a null object reference. at spark.components::Group/addElement()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1342] at spark.components.gridClasses::GridLayout/createTypicalItemRenderer()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:748] at spark.components.gridClasses::GridLayout/updateTypicalCellSizes()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:883] at spark.components.gridClasses::GridLayout/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:444] at spark.components.supportClasses::GroupBase/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1148] at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8506] at mx.core::UIComponent/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8430] at spark.components::Group/validateSize()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1012] at mx.managers::LayoutManager/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:665] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:816] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180] The app is constructed like so: 1) Shell application 2) Modules loaded at runtime 3) The module in question has a pop up wizard (TitleWindow). 4) The popup wizard opens Window. 5) Window contains DataGrid. I don't understand how the module factory for the datagrid points to the module factory for the module. How's that accomplished? Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, December 01, 2011 12:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] RE: AIR/Window/DataGrid Issue What is the Group stack trace? If classes are in a module you definitely have to get the moduleFactory pointing to that module because that's probably where the skins are as well. On 12/1/11 5:06 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote: My issue sounds similar to this issue: http://forums.adobe.com/message/3910406 What's unclear to me is how to work around it in my circumstance. Clearly I should be able to declare a datagrid in a Window and have it work without an elaborate workaround. Any advice appreciated. Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Wednesday, November 30, 2011 8:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] AIR/Window/DataGrid Issue Hi, I'm mid re-factoring a SDK 4.0 AIR app to 4.5 and attempting to take advantage of the Spark DataGrid. In this app (which is built with modules) I'm openin! g a NativeWindow and displaying a datagrid. The fi! rst erro r is that the DataGrid Skin class cannot be found. I dealt with this by creating a new Skin from the DataGrid and referencing that. Then when I attempt to populate the grid with data, I get RTEs pointing to Group.as with error #1009 null. I can get in to more exhaustive detail about the exact error(s) but I think something more fundamental is happening. Note that the libs are all merged into code. It seems that some of the underlying libraries aren' being included. Does anyone have any experience or theories on what might be happening? Jeff Battersh! all Application Architect T 609 520 5637 F 609 520 5370 C 732 666-8205 jeff.battersh...@djindexes.com Dow Jones Indexes 4300 Route 1 North South Brunswick, NJ 08852 www.djindex! es.com http://www.cmegroup.com/ nb! sp; /p -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui inline: image001.jpg
[flexcoders] AIR/Window/DataGrid Issue
Hi, I'm mid re-factoring a SDK 4.0 AIR app to 4.5 and attempting to take advantage of the Spark DataGrid. In this app (which is built with modules) I'm opening a NativeWindow and displaying a datagrid. The first error is that the DataGrid Skin class cannot be found. I dealt with this by creating a new Skin from the DataGrid and referencing that. Then when I attempt to populate the grid with data, I get RTEs pointing to Group.as with error #1009 null. I can get in to more exhaustive detail about the exact error(s) but I think something more fundamental is happening. Note that the libs are all merged into code. It seems that some of the underlying libraries aren' being included. Does anyone have any experience or theories on what might be happening? Jeff Battershall Application Architect T 609 520 5637 F 609 520 5370 C 732 666-8205 jeff.battersh...@djindexes.commailto:jeff.battersh...@djindexes.com Dow Jones Indexes 4300 Route 1 North South Brunswick, NJ 08852 www.djindexes.comhttp://www.cmegroup.com/
RE: [flexcoders] Re: Error TooTips in Spark Forms
Amy, Tac, thanks for your input. This situation feels like a step backward for me - yes I know how the current SDK likes to have things decoupled, but when I'm working through this and having to re-skin and code around the Spark FormItem container, it just feels like a lot of work for what should be simple. Maybe I'm just crabby this morning but... Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Amy Sent: Monday, August 08, 2011 11:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Error TooTips in Spark Forms PopupAnchor might work better than going to ToolTipManager. --- In flexcoders@yahoogroups.com, Battershall, Jeff Jeff.Battershall@... wrote: What I'm discovering about Spark Forms is that error messaging is inside the form item container and unless I make the form large enough to accommodate the error message I might see some unexpected layout issues such as the error text appearing over the form element, etc. Pretty darned ugly. What I'd prefer is to have the error tips appear over the form and not be constrained by the form dimensions. It appears that the only option I have is to roll my own solution using skins and ToolTipManager, etc. I'm prepared to dig in to do this but I just wanted to make sure that I wasn't missing a more straightforward solution. Jeff Battershall Application Architect T 609 520 5637 F 609 520 5370 C 484 477 9900 jeff.battershall@...mailto:jeff.battershall@... Dow Jones Indexes 4300 Route 1 North South Brunswick, NJ 08852 www.djindexes.comhttp://www.cmegroup.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Error TooTips in Spark Forms
What I'm discovering about Spark Forms is that error messaging is inside the form item container and unless I make the form large enough to accommodate the error message I might see some unexpected layout issues such as the error text appearing over the form element, etc. Pretty darned ugly. What I'd prefer is to have the error tips appear over the form and not be constrained by the form dimensions. It appears that the only option I have is to roll my own solution using skins and ToolTipManager, etc. I'm prepared to dig in to do this but I just wanted to make sure that I wasn't missing a more straightforward solution. Jeff Battershall Application Architect T 609 520 5637 F 609 520 5370 C 484 477 9900 jeff.battersh...@djindexes.commailto:jeff.battersh...@djindexes.com Dow Jones Indexes 4300 Route 1 North South Brunswick, NJ 08852 www.djindexes.comhttp://www.cmegroup.com/
RE: [flexcoders] flex2gateway error
It could very well be that your request response time is exceeding the default time out for Remote Objects, but I'm not sure about app not working *at all* after that. This can create the intermittent behavior you're seeing, depending on load or query response time from the app's database. In AIR this is a real problem because on windows, the request times out at 30 seconds no matter what you do. But you say you're running a Flex app so, you *should* be able to set the requestTimeout on your RemoteObject to a higher value and see a mitigation of the behavior. HTH. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of happy dog owner Sent: Wednesday, August 18, 2010 9:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] flex2gateway error Hi all, I am working on my first real Flex application, using the latest ColdFusion 9.01 server as a backend, Flex 4 using Flash Builder Standard. Running on Windows on Apache. Everything seems to work fine but then randomly (as far as I can tell) I'll start getting those flex2gateway errors: [RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost/flex2gateway/'] Everything I've read on this list and elsewhere refers to this error appearing when the gateway isn't working...but it seems to be for me. When I manually call the URL above (http://localhost/flex2gateway/) I get the whitepage that is expected (I double-checked the headers and they do give me 200 response). Once this error appears I have a VERY hard time getting rid of it and getting my application to run again. I've tried restarting Apache, ColdFusion, even rebooting, I've tried rebuilding the project, I've tried manually setting the gateway in my remote object tags. Nothing seems to work, but invariably it *will* go away for a time, everything will run correctly...and then boom, it shows up again and I'm stuck again. But I have yet to figure out the pattern for when it occurs. Any ideas?? I'm really frustrated trying to figure this out and what it causing it. -- Mary Jo Sminkey Author, CFWebstore ColdFusion Ecommerce
RE: [flexcoders] flex2gateway error
I would think that if you clean your project and re-compile it will remove Network Monitor. Clearing any and all browser caches would be recommended also to ensure you're running the re-compiled version. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Mary Jo Sminkey Sent: Thursday, August 19, 2010 3:30 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] flex2gateway error On 8/19/2010 2:43 PM, Wesley Acheson wrote: Charles proxy is used for debugging what data is sent over the wire via amf. Okay, downloaded and installed Charles, thanks for the suggestion, looks like a very useful tool. And I found out from it that the problem seems to be that the call to the gateway is using a port that is invalid, it's trying to call it over port 37813. So that seems to be what is causing the problem. I googled the issue with that port and found this post on the Adobe forums: http://forums.adobe.com/thread/541674?decorator=printdisplayFullThread=true Stating that the problem was due to compiling with the Network Monitor turned on. Here's where things get problematic for me. Up until a few weeks ago, I was using the FB Premium demo version. We are *supposed* to get licenses where I work for it, but they seem to be held up so I was able to at least install a license for Standard...which does not include the Network Monitor feature. I know I had it turned onand the error seems to suggest that it's still behaving as if it's turned on...but I can't actually access it due to not having a Premium license. So any clue how to disable it in this situation?? --- Mary Jo -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] RE: Vote For This Critiical RemoteObject bug
Alex, Can you put me in touch with someone on the SDK team re: this timeout issue? I've started to dig through the Flex SDK source but have not run across the smoking gun yet - a lot of the Remoting related classes haven't been modified since 2009. Seems to me that if I knew the correct place to look, devising a patch could be relatively straightforward. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Wednesday, August 11, 2010 11:03 AM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] Vote For This Critiical RemoteObject bug Somehow a critical bug has fallen through the cracks - essentially RemoteObjects in AIR/Windows timeout after 30 seconds no matter what value you have set in requestTimeout or URLRequestDefaults.idleTimeout: https://bugs.adobe.com/jira/browse/FP-4934 There seems to be some question as to whether it is an SDK bug or an AIR bug, but regardless, it is affecting production systems and needs to be resolved ASAP. I'm hoping we can get the issue escalated. Voting for it should help increase its visibility. Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] RE: Vote For This Critiical RemoteObject bug
Alex, I've been in touch with Chris Thilgen, from the AIR team who tells me it's a Flex SDK issue. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, August 12, 2010 2:42 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] RE: Vote For This Critiical RemoteObject bug I noticed it was filed against the player. I assumed you'd essentially proved it was an AIR issue. If so, there is no source to look at or patch. If the same requested timeout works on Mac or in Flash, it probably is an AIR/Windows issue. They generally like non-Flex test cases so if you can conjure up a simple AS-only case with NetConnection and show that timeouts are not working, that might expedite things. RemoteObject lives on top of NetConnection. On 8/12/10 10:00 AM, Battershall, Jeff jeff.battersh...@djindexes.com wrote: Alex, Can you put me in touch with someone on the SDK team re: this timeout issue? I've started to dig through the Flex SDK source but have not run across the smoking gun yet - a lot of the Remoting related classes haven't been modified since 2009. Seems to me that if I knew the correct place to look, devising a patch could be relatively straightforward. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Wednesday, August 11, 2010 11:03 AM To: 'flexcoders@yahoogroups.comflexcoders@yahoogroups.com' Subject: [flexcoders] Vote For This Critiical RemoteObject bug Somehow a critical bug has fallen through the cracks - essentially RemoteObjects in AIR/Windows timeout after 30 seconds no matter what value you have set in requestTimeout or URLRequestDefaults.idleTimeout: https://bugs.adobe.com/jira/browse/FP-4934 There seems to be some question as to whether it is an SDK bug or an AIR bug, but regardless, it is affecting production systems and needs to be resolved ASAP. I'm hoping we can get the issue escalated. Voting for it should help increase its visibility. Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Vote For This Critiical RemoteObject bug
Somehow a critical bug has fallen through the cracks - essentially RemoteObjects in AIR/Windows timeout after 30 seconds no matter what value you have set in requestTimeout or URLRequestDefaults.idleTimeout: https://bugs.adobe.com/jira/browse/FP-4934 There seems to be some question as to whether it is an SDK bug or an AIR bug, but regardless, it is affecting production systems and needs to be resolved ASAP. I'm hoping we can get the issue escalated. Voting for it should help increase its visibility. Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Vote For This Critiical RemoteObject bug
Kelly, valid point and I've already spent considerable time optimizing things to reduce the size and improve the response time of individual requests. Pagination is only one of the scenarios. There are situations such as during application start up where routine requests can take longer than you think they should. Bottom line, however, it is the decision of the developer to have longer requests or not, and this should not be pre-determined for them by the framework - that's why you have the requestTimeout parameter in the first place. It works as expected on the Mac, just not on Windows. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Kelly Sent: Wednesday, August 11, 2010 1:55 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Vote For This Critiical RemoteObject bug Why do you have RemoteObject calls that normally take longer then 30 seconds to complete? Why not just make multiple requests? I would question calls that average more then 300ms for small data and 3s for larger data. Any data loads larger then that should be paged. Any logic that takes longer then that should run in background and periodically poll for updates. On 08/11/2010 08:03 AM, Battershall, Jeff wrote: Somehow a critical bug has fallen through the cracks - essentially RemoteObjects in AIR/Windows timeout after 30 seconds no matter what value you have set in requestTimeout or URLRequestDefaults.idleTimeout: https://bugs.adobe.com/jira/browse/FP-4934 There seems to be some question as to whether it is an SDK bug or an AIR bug, but regardless, it is affecting production systems and needs to be resolved ASAP. I'm hoping we can get the issue escalated. Voting for it should help increase its visibility. Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Re: Embedded Fonts and Flash Builder 4.01
Alex, I'm definitely NOT specifying MXFTEText.css for MX components but I DO have to specify embedAsCFF = true to make the warnings go away. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Saturday, July 24, 2010 8:50 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Embedded Fonts and Flash Builder 4.01 If you are using MXFTEText.css then the Halo components can use CFF fonts. Otherwise, sounds like there is still something unexplained going on. On 7/24/10 4:18 AM, Jeff jbarts1...@yahoo.com wrote: Thanks Alex, I guess I was thrown off by the warning text which had it as 'embedAsCff not 'embedAsCFF'. I fixed that and then removed -managers=flash.fonts.AFEFontManager from my compiler settings and the warnings disappeared. I was also thrown off that I thought Halo components required embedAsCFF to be set to false but that no longer seems to be the case. Jeff --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: 4.x has new requirements around getting the embedAsCFF flag correctly, but there shouldn't be anything else. BTW, note that it is embedAsCFF. I don't think embedAsCff will work. Styles defined in the module now supercede styles defined in the parent. Maybe some global selector in the module is blocking lookup into the parent? Or maybe it is just a bug. See if you can make a simple test case. On 7/23/10 9:17 AM, Battershall, Jeff jeff.battersh...@... wrote: Alex, I'm hoping you can look at this - I read your article about fonts and swf loading - could be related to what I'm describing. However, what I am doing is pretty vanilla. I've got a CSS file where some font embedding is being done and I'm setting, ebmedAsCff= true or false depending on whether the component is question is spark or halo, but it seems with the warnings I'm getting that the ebmedAsCff portion of my style definition is being ignored. It would seem that there is: 1) a change in how font embedding is being done or 2) some additional thing I have to do to ensure that style definitions as defined in the parent application are available to modules or 3) that the 4.01 changes have some unforeseen consequences Note I'm seeing this behavior whether I'm using Flex 4.1 or 4.0. Jeff -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Jeff Sent: Friday, July 23, 2010 7:29 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Embedded Fonts and Flash Builder 4.01 With the release of Flash Builder 4.01, suddenly I'm getting a lot of runtime warnings about the need to set embedAsCff=true in my modular application, even though this is already set in the CSS file that embeds the font, which is loaded in the parent application. What could I be doing wrong? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Remote Object Request Timeout Error
Hi, I'm still seeing Remote Objects timing out in AIR 2.0 and although there's a lot of postings about on the Adobe forums and in JIRA, there's still doesn't seem to be a definitive solution and/or workaround. Just polling the list to see if anyone has any late-breaking data on the issue? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Embedded Fonts and Flash Builder 4.01
Alex, I'm hoping you can look at this - I read your article about fonts and swf loading - could be related to what I'm describing. However, what I am doing is pretty vanilla. I've got a CSS file where some font embedding is being done and I'm setting, ebmedAsCff= true or false depending on whether the component is question is spark or halo, but it seems with the warnings I'm getting that the ebmedAsCff portion of my style definition is being ignored. It would seem that there is: 1) a change in how font embedding is being done or 2) some additional thing I have to do to ensure that style definitions as defined in the parent application are available to modules or 3) that the 4.01 changes have some unforeseen consequences Note I'm seeing this behavior whether I'm using Flex 4.1 or 4.0. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeff Sent: Friday, July 23, 2010 7:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Embedded Fonts and Flash Builder 4.01 With the release of Flash Builder 4.01, suddenly I'm getting a lot of runtime warnings about the need to set embedAsCff=true in my modular application, even though this is already set in the CSS file that embeds the font, which is loaded in the parent application. What could I be doing wrong? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: How to get GlobelErrorHandling working.
Alex, That's not good news! Is there any way to catch uncaught errors at the module level at least? Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Monday, June 21, 2010 1:27 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to get GlobelErrorHandling working. GEH for modules is broken in 10.1. On 6/21/10 5:53 AM, valdhor valdhorli...@embarqmail.com wrote: I haven't looked it up but does the uncaught error event bubble? if so, I would add the event listener to both the main app and the systemManager. this.addEventListener(uncaughtError, globalErrorHandler); systemManager.addEventListener(uncaughtError, globalErrorHandler); --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , reflexactions reflexacti...@... wrote: OK I spotted the obvious error. systemManager.loaderInfo should be: systemManager.loaderInfo[uncaughtErrorEvents] After that I am getting error that I forced into the main app but an error in a module didn't show up in the GEH, it threw an error and went to the old std popup window. Do I need to link in every module as it loads? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , reflexactions reflexactions@ wrote: AFAIK this is player dependent right? So I have latest debug player 10.1.53.64. Using FB4/SDK3.2 In the the main application mxml I have added a listener. systemManager.loaderInfo.addEventListener(uncaughtError, globalErrorHandler); But it never gets called. Is that the right way to do it? If I load modules will uncaught error in those modules also bubble up to this error handler? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
RE: [flexcoders] Clear a form fast
If you've gone to the trouble of binding your form inputs to some bindable model object in mxml you can 'reset' the model object (myModel = new MyModelObject()) and that should return the model (and your form) to its defaults. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Brendan Meutzner Sent: Friday, June 18, 2010 10:29 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Clear a form fast I believe I've seen a component on the Flex Exchange on Adobe's website for this... On Fri, Jun 18, 2010 at 9:20 AM, Wally Kolcz wko...@isavepets.commailto:wko...@isavepets.com wrote: Any way to clear/reset a mx:Form easily other than manually setting all the text to ?
[flexcoders] FocusManager Bug in Flex 4
Hi, I too am getting the DisplayObject(form).stage.focus = null error. In my case, I'm using a PopUpAnchor to show and hide a form. Is there a definitive fix for this? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] FocusManager Bug in Flex 4
Alex, I've worked around this - here's what I was doing and what I discovered: I have a form that has a sub-forum that is popped up using PopUpAnchor. I then could add a new item to the sub form and edit it. Then I would send the main form and subform data to the server using Remoting. But in my case, the newly added item was getting orphaned ano not inserted, and when the returned form contents came back, the itemrenderer that was being used for the new item wasn't there - possibly FocusManager was expecting it to be there. When I fixed the cause of the orphaning, the problem went away. I still feel like shouldn't be happening but for the time being I can move forward. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Wednesday, June 16, 2010 12:32 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FocusManager Bug in Flex 4 Unfortunately got deferred because we didn't have a real-world, but simple test case. Do you have one? It seems to be caused by something not being on stage and having visibility flipped. I think one user was binding visible to something that was supposed to evaluate to true, but didn't always because the binding chain wasn't fully created. What does your call stack look like? On 6/16/10 7:45 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: Hi, I too am getting the DisplayObject(form).stage.focus = null error. In my case, I'm using a PopUpAnchor to show and hide a form. Is there a definitive fix for this? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Tabbing within Spark ItemRenderer
Hi, Here's something that shouldn't be this hard: I have a spark list that has an itemrenderer with multiple items that I want to tab between. For the life of me, I haven't been able to get it work. I've tried tabEnabled, tabFocusEnabled, hasFocusableChildren, setting tabIndex on the individual components inside the ItemRenderer, etc., so far, no dice. There's been a lot written about this, but so far I haven't chanced upon the definitive solution. Can someone put me on the fast track to resolution? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] FocusManager Bug in Flex 4
Alex, Looks like I spoke too soon. When loading one customer and then switching to another, I'm seeing the error again. Getting to the point where I might look to a completely different method of showing and hiding this subform and forget about PopUpAnchor. But it isn't just PopAnchor, its PopUpAnchor + Spark List + virtual layout. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Wednesday, June 16, 2010 4:16 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FocusManager Bug in Flex 4 It's definitely a bug. FocusManager should be forgiving. I assume it will get fixed for the next major release. Glad you got around it. FocusManager is expecting children it has seen added to its tree to be on stage when their visibility gets changed. On 6/16/10 10:22 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: Alex, I've worked around this - here's what I was doing and what I discovered: I have a form that has a sub-forum that is popped up using PopUpAnchor. I then could add a new item to the sub form and edit it. Then I would send the main form and subform data to the server using Remoting. But in my case, the newly added item was getting orphaned ano not inserted, and when the returned form contents came back, the itemrenderer that was being used for the new item wasn't there - possibly FocusManager was expecting it to be there. When I fixed the cause of the orphaning, the problem went away. I still feel like shouldn't be happening but for the time being I can move forward. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Wednesday, June 16, 2010 12:32 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FocusManager Bug in Flex 4 Unfortunately got deferred because we didn't have a real-world, but simple test case. Do you have one? It seems to be caused by something not being on stage and having visibility flipped. I think one user was binding visible to something that was supposed to evaluate to true, but didn't always because the binding chain wasn't fully created. What does your call stack look like? On 6/16/10 7:45 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: Hi, I too am getting the DisplayObject(form).stage.focus = null error. In my case, I'm using a PopUpAnchor to show and hide a form. Is there a definitive fix for this? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
RE: [flexcoders] FocusManager Bug in Flex 4
Alex, I'm so far along with the workaround, I don't know if I'm going to see it again - hopefully not. My workaround is to display the popup and simply show/hide it without using PopUpManager to remove it. Somehow the removal of the popup combined with FocusManager is producing the behavior. Jefff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Wednesday, June 16, 2010 7:49 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FocusManager Bug in Flex 4 Jeff, What does the call stack look like? On 6/16/10 1:57 PM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: Alex, Looks like I spoke too soon. When loading one customer and then switching to another, I'm seeing the error again. Getting to the point where I might look to a completely different method of showing and hiding this subform and forget about PopUpAnchor. But it isn't just PopAnchor, its PopUpAnchor + Spark List + virtual layout. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Wednesday, June 16, 2010 4:16 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FocusManager Bug in Flex 4 It's definitely a bug. FocusManager should be forgiving. I assume it will get fixed for the next major release. Glad you got around it. FocusManager is expecting children it has seen added to its tree to be on stage when their visibility gets changed. On 6/16/10 10:22 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: Alex, I've worked around this - here's what I was doing and what I discovered: I have a form that has a sub-forum that is popped up using PopUpAnchor. I then could add a new item to the sub form and edit it. Then I would send the main form and subform data to the server using Remoting. But in my case, the newly added item was getting orphaned ano not inserted, and when the returned form contents came back, the itemrenderer that was being used for the new item wasn't there - possibly FocusManager was expecting it to be there. When I fixed the cause of the orphaning, the problem went away. I still feel like shouldn't be happening but for the time being I can move forward. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Wednesday, June 16, 2010 12:32 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FocusManager Bug in Flex 4 Unfortunately got deferred because we didn't have a real-world, but simple test case. Do you have one? It seems to be caused by something not being on stage and having visibility flipped. I think one user was binding visible to something that was supposed to evaluate to true, but didn't always because the binding chain wasn't fully created. What does your call stack look like? On 6/16/10 7:45 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: Hi, I too am getting the DisplayObject(form).stage.focus = null error. In my case, I'm using a PopUpAnchor to show and hide a form. Is there a definitive fix for this? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Opinions Wanted : Best Performing AS3 Zip Library
Hello, I'm using the nochump zip library in an AIR project and it's working reasonably well but I wanted to see if anyone has a strong opinion as to what is the best performing AS3 Zip library out there. Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Opinions Wanted : Best Performing AS3 Zip Library
Thanks Oleg, Using FP 10 is no problem, but I'm using CF on the server side - not sure how CF would decompress. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Oleg Sivokon Sent: Friday, June 04, 2010 3:17 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Opinions Wanted : Best Performing AS3 Zip Library I think that it says on the nochump site that it is not the fastest. In fact, using BiteArray.compress() with deflate would be the fastest, but that's only if you can use FP10.
RE: [flexcoders] Detecting Browser Re-Size
Nick, Steve, Thanks for your input. To provide a little background data - I'm using the DrumbeatInsight HTML component, which works pretty well so long as you're left-aligned. But when the Flex content is center aligned, the IFrame overlay does not compensate. So I was thinking along the lines of what Steve was saying - listen to window resize and use external interface to have Flex re-position the html content. I was really hoping for a solution that was less of a hack and I'm hoping that it works well with multiple IFrames open at once (which is my use-case). Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nick Middleweek Sent: Tuesday, May 25, 2010 9:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Detecting Browser Re-Size Can you expand a little on the page layout you ha.vehttp://ha.ve that needs to change?.. You might be able to just use CSS to position some DIV tags in a fluid layout and your SWF is in one DIV, your IFRAME in another and when the browser resizes, the browser handles the moving using relative positioning. So maybe forget that you've got an IFRAME and SWF, this fluid layout concept will apply to any HTML objects such as two images. Hope that helps somehow... (unless I've misread your problem?) Cheers, Nick -- Sent by Nick Middleweek ( { email: n...@middleweek.co.ukmailto:n...@middleweek.co.uk, mobile: +44(0)774 035 5424, blog: http://blog.middleweek.co.uk } ); On 24 May 2010 20:35, Battershall, Jeff jeff.battersh...@dowjones.commailto:jeff.battersh...@dowjones.com wrote: There's a lot on this subject out there but not the definitive answer I'm looking for - so I thought I'd see what Flex Coders has on the subject. I need to be able to re-position some HTML content (an IFrame) relative to the screen coordinates of my Flex app, when the browser is re-sized. Can anyone point me in the direction of the best solutions to this?
[flexcoders] Detecting Browser Re-Size
There's a lot on this subject out there but not the definitive answer I'm looking for - so I thought I'd see what Flex Coders has on the subject. I need to be able to re-position some HTML content (an IFrame) relative to the screen coordinates of my Flex app, when the browser is re-sized. Can anyone point me in the direction of the best solutions to this? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
[flexcoders] RE: Re: Thoughts on Flash by Steve Jobs
Let's not get carried away here - no way is Apple going to stop supporting Flash on the Mac. That's one of those sky is falling' rumors that always start up when something like this happens. The recent events are concerning as they potentially affect our mutual livelihoods, but really, there's so much business out there it doesn't matter. Personally, I think Jobs comes off has being biased and self-serving in his letter and clearly his 'facts' are skewed or outright wrong. He's like, Adobe thinks they're going to play in my sandbox? Think again. He's a ruthless competitor, you give him that, but he's also a jerk, if we hadn't figured that out already. Jobs is really digging his status as an opinion leader in the industry but when he starts to outright attack another company's business model, work ethic and so forth, he's stepped over the line, and typically such tactics backfire. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Mark A. DeMichele Sent: Monday, May 03, 2010 8:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Thoughts on Flash by Steve Jobs Everybody is talking about learning another language. That's the easy part. It's porting an entire application that has several 100,000 lines of code. That's that hard part. Someone mentioned losing flash support on all Macs. Is that true? I hope not. I have over a million users using my flash app and about 25% of them have macs. That would be bad.
RE: [flexcoders] Re: Thoughts on Flash by Steve Jobs
Mike, Adobe get cracking - are you kidding me They've just released a slew of new products in the last two months; they're nearly done on FP 10.1, Air 2.0, and forged an important alliance with Google. What more do you want them to do before you can say they've gotten cracking? Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of mitek17 Sent: Friday, April 30, 2010 12:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Thoughts on Flash by Steve Jobs --- In flexcoders@yahoogroups.com, Seth Caldwell w...@... wrote: Steve is employing several tactics used by politicians. The iphone is not open. iPhone is a device, not a technology. Technology should be open, device software could be proprietary. Steve stresses it particularly, please read Job's message more throroughly. I hope that the pressure from Jobs will finally make Adobe get cracking. Hey, what's with Linux support? What is happening with exception handling? are we there yet? No? Adobe, are you still busy with FX prefix? How many more years it will take to implement the feature which should appear first in any development platform. It took us YEARS (sic!) for voting, whinging and asking to fix the bugs and provide basic features. Printing support? Forget it, the company which invented PDF Postscript is too busy with something else. Adobe, please wake up and make your call, otherwise it will be too late. PS By waking up I don't mean submitting another pile of letters to FTC :) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] TitleWindow Custom Components - A Problem
Hi, Let me describe the scenario: I'm using Hillen Coren's AutoComplete component to suggest choices for a user inside of a DataGrid ItemRenderer, which has been working fine in Flex 3.x for a year. One additional factor - this grid is popped up as part of a TitleWindow using PopUpManager. I'm now porting the application to Flex 4 and Parsley. That port is going great, but the AutoComplete component simply stopped working when part of this popped up Window. It works fine within the main app. Has anyone run into similar behavior? I've noticed 'interesting' stuff with TitleWindows in the past. Any advice appreciated Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Detecting Scrollbar presence on Flex 4 List
Allmas, Thanks! - that's exactly where I ended up - this was basically a Flex 4 learning curve issue. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Haykel BEN JEMIA Sent: Thursday, April 29, 2010 7:16 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Detecting Scrollbar presence on Flex 4 List Try to look in the List.scroller or List.scroller.viewport properties. Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Fri, Apr 23, 2010 at 3:10 AM, Jeff jbarts1...@yahoo.commailto:jbarts1...@yahoo.com wrote: I'm trying to use a Spark List with a single itemRenderer in the place of an mx:DataGrid for memory/performance reasons. The itemRenderer that has all the items horizontally I need. The problem I'm running into is getting the header (which I've created outside of the List control to have the labels that line up with my itemrenderer elements. Things work great until my list requires scrolling. Then the 16 pixel scrollbar throws things out of whack. I could probably make a simple adjustment if I could detect the presence of the scrollbar on the list component and adjust my header elements accordingly. I just haven't been able to figure out how to do that yet. Anyone dealt with this? Jeff
RE: [flexcoders] TitleWindow Custom Components - A Problem
Spark wherever I can. While investigating, I found that the component does work fine in a Spark TitleWindow. There must be some other factor, possibly related to Parsley, but I'm still working on it. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, April 29, 2010 12:58 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TitleWindow Custom Components - A Problem Are you still using mx components or switching to spark? On 4/29/10 8:32 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: Hi, Let me describe the scenario: I'm using Hillen Coren's AutoComplete component to suggest choices for a user inside of a DataGrid ItemRenderer, which has been working fine in Flex 3.x for a year. One additional factor - this grid is popped up as part of a TitleWindow using PopUpManager. I'm now porting the application to Flex 4 and Parsley. That port is going great, but the AutoComplete component simply stopped working when part of this popped up Window. It works fine within the main app. Has anyone run into similar behavior? I've noticed 'interesting' stuff with TitleWindows in the past. Any advice appreciated Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
RE: [flexcoders] Re: Uploading An Image Without Browse
Using the FileSystem API and ByteArray you can save/read/upload images automatically, using your middleware of choice without the user having to browse and select the image. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of James Sent: Thursday, April 15, 2010 3:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Uploading An Image Without Browse My app has a html component which allows the user to enter a website into it. When the website is fully loaded a snapshot is made of the html component and then saved in the application directory automatically. I want this file to then automatically upload to my server rather than just being saved on in the app directory. I can easily do it using the browse method but can't figure out how to get it to simply go straight to the server without the user having to save it somewhere and then browse to upload it if that makes sense.. --- In flexcoders@yahoogroups.com, Steve Mathews happy...@... wrote: When you say take a snapshot, what do you mean? On Thu, Apr 15, 2010 at 10:52 AM, James garymoorcroft_...@...wrote: Is there any way to let a user upload an image from an air app without having them browse for it? I want to let my users enter their name into a text input, take a snapshot and then the image will be uploaded to my server as whatevernametheuserhasentered.jpg Is there any way to do this and does anyone know of any similar examples? All I can find is uploading via the browse function. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: Uploading An Image Without Browse
James, Using RemoteObject I've uploaded bitmap snapshots without previously saving the bytes to disk, using CF as a backend. Not exactly sure how you'd do this with PHP, but I'm sure it's doable. You'd probably have to use some version of AMFPHP. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of James Sent: Friday, April 16, 2010 1:40 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Uploading An Image Without Browse Cheers Jeff. I'm sure that'd work too. I've found a way around it and can now allow users to upload without the browse. The problem is though I now want it to upload the file without it having to save it on the user's machine first. At the moment my code snapshots the html component, saves this as a bitmapdata, resizes this bitmapdata, then a jpegencoder turns this bitmapdata into a jpg file which is named after whatever the user has entered into a text input component in my app. It then uploads this jpeg from the location it's saved to. I'm wondering is there any way of me editing my code so it uploads the jpeg straight away rather than storing it on the machine too? Here's my script code containing the function which does all this:- mx:Script ![CDATA[ import mx.graphics.codec.JPEGEncoder; import mx.graphics.ImageSnapshot; private var imageuploadurlRequest:URLRequest; private var serverSideScript:String = *my upload php file goes here*; private function imageuploadinit():void { imageuploadurlRequest = new URLRequest(serverSideScript); } private function takeSnapshot(event:Event) :void{ var bigbmd:BitmapData = ImageSnapshot.captureBitmapData(linkviewer) ; var scale:Number = 0.50; var matrix:Matrix = new Matrix(); matrix.scale(scale, scale); var smallbmd:BitmapData = new BitmapData(bigbmd.width * scale, bigbmd.height * scale, true, 0x00); smallbmd.draw(bigbmd, matrix, null, null, null, true); var jpgEncoder:JPEGEncoder = new JPEGEncoder( 100 ); var ba:ByteArray = jpgEncoder.encode(smallbmd); var enteredimagename:String = titleentry.text; var file:File = File.applicationDirectory.resolvePath(('assets/createdimages/')+enteredimagename+('.jpg')); var wr:File = new File(file.nativePath); var stream:FileStream = new FileStream(); stream.open( wr, FileMode.WRITE); stream.writeBytes ( ba, 0, ba.length ); stream.close(); imagesnapshotpreview.source=(('assets/createdimages/')+enteredimagename+('.jpg')); file.upload(imageuploadurlRequest); } ]] /mx:Script --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... wrote: Using the FileSystem API and ByteArray you can save/read/upload images automatically, using your middleware of choice without the user having to browse and select the image. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of James Sent: Thursday, April 15, 2010 3:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Uploading An Image Without Browse My app has a html component which allows the user to enter a website into it. When the website is fully loaded a snapshot is made of the html component and then saved in the application directory automatically. I want this file to then automatically upload to my server rather than just being saved on in the app directory. I can easily do it using the browse method but can't figure out how to get it to simply go straight to the server without the user having to save it somewhere and then browse to upload it if that makes sense.. --- In flexcoders@yahoogroups.com, Steve Mathews happydog@ wrote: When you say take a snapshot, what do you mean? On Thu, Apr 15, 2010 at 10:52 AM, James garymoorcroft_ict@wrote: Is there any way to let a user upload an image from an air app without having them browse for it? I want to let my users enter their name into a text input, take a snapshot and then the image will be uploaded to my server as whatevernametheuserhasentered.jpg Is there any way to do this and does anyone know of any similar examples? All I can find is uploading via the browse function. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ
RE: [flexcoders] Re: With the latest eula agreement from Apple
Reports of Flash's demise are premature to say the least. I think Flash will likely be around for some time and will live long and prosper in a variety of contexts. Steve isn't seeing the future so much as trying to create a future that provides best competitive advantage to Apple. And of course, as Adobe is fond of saying, Flash will push the envelope as to what is possible. It will remains to be seen how compelling a case Flash makes for itself, but I'm not going to drop kick Flash just Steve Jobs says I should. He ain't my pal. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Adnan Doric Sent: Wednesday, April 14, 2010 10:25 AM To: flexcoders@yahoogroups.com Cc: Guy Morton Subject: Re: [flexcoders] Re: With the latest eula agreement from Apple On 14/04/2010 13:10, Guy Morton wrote: Flipping this whole discussion on its head for a moment Adobe used to have the best SVG runtime player in the land. It was fast, had good support for the SVG standard and it was stable. Then Adobe bought Macromedia. They discontinued development and support for their SVG player because now they had Flash! Adobe could, I'm sure, alter their Flash development tools to output SVG+Javascript. In fact, I'd be surprised if they hadn't already experimented with this. If Adobe was as smart as they think they are, they'd RIGHT NOW fast-track SVG+Javascript export into Flex and Flash IDEs. This would let them become the premier tool for developing iPhone apps, standards-based web vector animations and would encourage adoption of open standards at such a rate that it'd hobble Silverlight into the bargain! Flash is here because standards sucks. When standards will be good enough, flash will disappear, bunt won't happen anytime soon. Of course that is just an idle dream, and instead they will keep pushing their proprietary solution and wait for the killer open-standards IDE that will allow developers to make full use of HTML 5 to pop up and change the market for them. Then we will see Flash become a thing of the past. eg check this out http://demo.sproutcore.com/sample_controls/ Look familiar? Look ma! NO plugins, just HTML 5! I don't know for others, but it reminds me of Flash 5 ten years old with extra crossbrowser issues. Let me think... hell no, don't want to go there :) Maybe in few years HTML will be like flash 8, and few more years it will be like flash 10. There will be flash 16 and AS4 by the time, another gap for HTML to reach. So, yeah, good luck with your HTML mate, I wish you good luck, really. Vale Flash, you have been good to us, but your time is drawing to a close. Steve Jobs has seen the future, and Flash ain't there. Guy The future where Apple dictates what you can install on your phone, what you can see on the web, what music you can listen ? Sound great, see you there :)
RE: [flexcoders] Re: With the latest eula agreement from Apple
Well put, Gregor. It does in fact seem that Apple is treated as more important than it really is, in terms of market share. Give that to their marketing and the support of fanatical fan boys and tech pundits. Just heard an ad last night for a Netbook touting that it's Flash Enabled - its possible that Apple's strategy of exclusion might backfire. It certainly seems silly on Apple's part to limit apps because of the source. That's like saying we only want e-books for our device that were written using a specific word processor. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gregor Kiddie Sent: Monday, April 12, 2010 6:53 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: With the latest eula agreement from Apple Doesn't matter, the wording doesn't mention XCode, just the languages it's originally written in. They'll still be fine though, Apple is free to ignore the agreement when it suits them, and they aren't going to cut off Unity. They'll just reject anything written for Flash / DotNet. At the end of the day, Apple get a disproportionate amount of media coverage to their actual market share. Apple blocking the iPhone is annoying, but we still have the market leader (RIM), Android, etc. Flash Player 10.1 will end up on more devices than the whole iPhone install base. I'd rather call myself a mobile developer than restrict myself to being an iPhone developer, and that hasn't changed. Gk. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tom Chiverton Sent: 12 April 2010 10:21 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: With the latest eula agreement from Apple On Friday 09 Apr 2010, Battershall, Jeff wrote: Reportedly Unity 3D was told that this new EULA would not apply to them, yet on the face of it, it should. Doesn't Unity work by using a real Xcode project ? Unlike CS5...
RE: [flexcoders] With the latest eula agreement from Apple
I love my MacBook Pro, and related Apple products, but Steve Jobs is really starting to piss me off. Apparently this 'restriction' is not being applied evenhandedly across the boards with other similar packaging tools. I am sure that Flash being integrated with Chrome isn't helping things either. But in Steve's world, it's his way or the highway. And then to invoke the Open Standards criticism of Flash becomes even more disingenuous that before. Open standards my a**, this is just plain and simple cutthroat competition. And the timing - the timing of this given the imminent release of CS5 - you'd think that if he was going to do this he should have done it a year or more ago. It's not like he didn't know that this capability was being developed. This smacks of anti-competitive practices and I for one hope something can (and will) be done about it. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Patrick Sent: Friday, April 09, 2010 10:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] With the latest eula agreement from Apple Will adobe punch back and file a law suit against apple? This is total crap. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: With the latest eula agreement from Apple
The source may be hearsay, but is referenced in this blog post: http://whydoeseverythingsuck.com/2010/04/steve-jobs-has-just-gone-mad.html Reportedly Unity 3D was told that this new EULA would not apply to them, yet on the face of it, it should. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeffry Houser Sent: Friday, April 09, 2010 1:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: With the latest eula agreement from Apple Can you provide a source for the restrictions not being applied evenhandedly? As far as I know, Apple has changed their developer agreement for iPhone / iPad / iPod Touch. They have not attempted to enforce the new restriction on anyone, Adobe or otherwise. --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... wrote: I love my MacBook Pro, and related Apple products, but Steve Jobs is really starting to piss me off. Apparently this 'restriction' is not being applied evenhandedly across the boards with other similar packaging tools. I am sure that Flash being integrated with Chrome isn't helping things either. But in Steve's world, it's his way or the highway. And then to invoke the Open Standards criticism of Flash becomes even more disingenuous that before. Open standards my a**, this is just plain and simple cutthroat competition. And the timing - the timing of this given the imminent release of CS5 - you'd think that if he was going to do this he should have done it a year or more ago. It's not like he didn't know that this capability was being developed. This smacks of anti-competitive practices and I for one hope something can (and will) be done about it. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Patrick Sent: Friday, April 09, 2010 10:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] With the latest eula agreement from Apple Will adobe punch back and file a law suit against apple? This is total crap. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] DataVisualization Chart Axis Labels not showing up
Are the labels rotated? If so, are you sure that the font used is getting loaded as well? I've seen some funny font behavior when related to loading Data Vis RSLs in the past. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of taude1 Sent: Wednesday, April 07, 2010 9:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataVisualization Chart Axis Labels not showing up Hi All, I've posted a question over at Stack Overflow on a problem that I'm having with my Axis labels not showing up on a chart. I think it has to do with my use of the framework RSL when it loads, but nonetheless, it's a big issue and I can't seem to figure it out. Also, I've tried getting it to work in the SDK 3.3, 3.4, and even 3.5 and the labels still don't show up. http://stackoverflow.com/questions/2585393/problem-with-flex-datavisualization-charting-components-rendering-labels-on-build BTW, I think stackover.com is a superior method of developer interaction in a Q/A format and love to see more of the Adobe gurus that hang out here, over there. For example, it's really easy to post screen shots and such in the question. Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: DataVisualization Chart Axis Labels not showing up
Well, rotated or not, I've definitely seen some unexpected behavior related to fonts and RSLs. In one application I ended up merging into code to address the issue. Maybe what I encountered isn't the same as what you're seeing but it sure sounds similar. Is the font being used for the axis labels embedded? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of taude1 Sent: Wednesday, April 07, 2010 10:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataVisualization Chart Axis Labels not showing up The labels definitely aren't rotated. And the fonts being used show up everywhere else in the application, including the same screens that contain the charts. (The posted chart graphics are a small subset of the entire screen.) --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... wrote: Are the labels rotated? If so, are you sure that the font used is getting loaded as well? I've seen some funny font behavior when related to loading Data Vis RSLs in the past. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of taude1 Sent: Wednesday, April 07, 2010 9:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataVisualization Chart Axis Labels not showing up Hi All, I've posted a question over at Stack Overflow on a problem that I'm having with my Axis labels not showing up on a chart. I think it has to do with my use of the framework RSL when it loads, but nonetheless, it's a big issue and I can't seem to figure it out. Also, I've tried getting it to work in the SDK 3.3, 3.4, and even 3.5 and the labels still don't show up. http://stackoverflow.com/questions/2585393/problem-with-flex-datavisualization-charting-components-rendering-labels-on-build BTW, I think stackover.com is a superior method of developer interaction in a Q/A format and love to see more of the Adobe gurus that hang out here, over there. For example, it's really easy to post screen shots and such in the question. Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: Using an ArrayCollection to populate a Tree component
One of the problems with the code sample below is that its going to fire off a whole lot of events in creating the nested ArrayCollections and adding items to them. Better yet make an array and create your nested ArrayCollection in one shot, passing the source array in the constructor. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of md_ars Sent: Wednesday, April 07, 2010 12:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using an ArrayCollection to populate a Tree component I ran in to the similar requirement for my Menu application. I am also getting data from database with child-parent relationship. I am parsing that data in ArrayCollection and created a new nested ArrayCollection which I used as the data provider for my Menu. I don't know whether it is the recommended solution from Flex but it is working so far. Check following function if it can help your cause. In case you write custom Data Descriptor, please share it. Thanks Arshad private function buildNestedArray(flatArray:ArrayCollection, parentId:int):ArrayCollection { /* This recursive function takes a flat Array Collection and creates a nested Array to implement Parent/Child hierarchy*/ var i:int = 0; var nestedArray:ArrayCollection = new ArrayCollection(); var parents:ArrayCollection = new ArrayCollection(); for (i = 0; i flatArray.length; i++) { if (flatArray[i][parentId] == parentId) parents.addItem(flatArray[i]); } if (parents.length 1) return null; for (i = 0; i parents.length; i++) { var node:Object = parents[i]; var children:ArrayCollection = buildNestedArray(flatArray, node[itemId]); if (children ) { if (children.length 0) { node[children] = children; } } nestedArray.addItem(parents[i]); } return nestedArray; } --- In flexcoders@yahoogroups.com, Jeff britton.j...@... wrote: Correct me if I'm wrong, but the data descriptor is essentially a node visitor. It will tell the tree how to render a given node. However, it has no way of adding nodes to previous nodes (ie groups). Take this scenario: [ {group:animal, item:cat}, {group:fruit, item:apple}, {group:animal, item:dog}, {group:fruit, item:orange} ] Using the ITreeDataDescriptor, you'd end up with a tree structure like this: -animal --cat -fruit --apple -animal --dog -fruit --orange when what you want is this: -animal --cat --dog -fruit --apple --orange I just discovered ITreeDataDescriptor2. It looks like that might handle that scenario? --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: The goal of IDataDescriptor was to turn just about anything into a heirarchy. You could have the following data structure: Class AddressBookEntry { var name:String var MobilePhone:String var HomePhone:String var WorkPhone:String } And turn it into a tree by having the getChildren call return an ArrayCollection made up of the 3 phone number slots. On 4/6/10 5:26 PM, Jeff britton.jeff@ wrote: I cant vouch for the ILog Elixir stuff. There might be an easy way to do it. Assuming that doesnt suit your needs, I think you may need to massage your data a bit because I dont think the data descriptor alone will give you what you're looking for. I'm assuming this is basically your desired tree structure: -group1 --item --item -group2 --item --item -group3 --item --item Your probably going to need to put your data into a collection that looks like this: var myCollection:ArrayCollection = new ArrayCollection([ {group:group1, items:[item,item,item]}, {group:group2, items:[item,item,item]}, {group:group3, items:[item,item,item]} ]); Then, you can use a dataDescriptor to tell the tree what properties of the item object you want to display. The tree is packaged with a default dataDescriptor, so your data either has to conform to its conventions to display properly or you have to override it. Implementing a very basic ITreeDataDescriptor and putting your debugger on it will give you valuable insight as to how the Tree component traverses a given data provider. You can then tell the tree how to display the objects in your collection. Hope that helps. To anyone out there, iff there's an easier way to do it with the ILog stuff, I'd appreciate a link to it. Thanks. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , cuttenv cuttenv@ wrote: You could use a grouping Collection to group the data. If you check out the ILog Exlir stuff
RE: [flexcoders] Re: Framework Choice
Some architectural pattern is going to be necessary if the app is of any size and has a team working on it. Otherwise, each developer will solve their problems in their own way and can lead to chaos. You can formulate the architectural pattern yourself or use a published framework. As you said, using a published framework in some ways might make it easier to bring developers on board. Frameworks are intended to be implementations of architectural patterns - the framework choice IMO is based upon what gives you the best balance of freedom to solve your problems as you choose, with ways of solving problems without having to reinvent the wheel all the time. I've used Cairngorm a lot in the past, but I've kind of soured on it - doesn't solve enough problems, IMO. It is NOT module-friendly; in particular the ModelLocator singleton does not lend itself to unloading modules. I'm liking the direction that Cairngorm 3 is taking - it is less a proscriptive framework than a collection of best practices and libraries you can choose to use or not. It does use the capabilities of Parsley for wiring the application together and so far in my projects, it works great. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of tntomek Sent: Wednesday, March 24, 2010 5:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Framework Choice Thumbs up for just using Flex SDK as the framework. Make good use of custom business interfaces and ensure all developers develop controls within some container vs Application/Module (leave the loading of their actual code to someone who really understands Flex). Also take the hit and wrap most Flex controls with your own, it will come in handy in future. -Tomek (http://tomek.me) --- In flexcoders@yahoogroups.com, Jake Churchill reyna...@... wrote: I have been tasked with architecting a large application for a company a friend of mine works at. I will also do some of the coding and act as a mentor, teaching people on staff the ins and outs of Flex. In the past, I've always used Cairngorm and Cairngorm w/ UM Extensions for a framework. I wrote a very basic app w/ Mate once just to learn it and I didn't really like it. So, my question to everyone here is what Framework would you chose? Keep in mind, the people I'll be working with are relatively new to flex and the application is going to end up being quite large. Down the road it will likely have an AIR counterpart. We might use modules but for now I'm staying away from that because it adds another layer of complexity that in the initial stages is not needed. My thoughts on this are that Cairngorm would be easier to learn for them and they had talked about brining more people on in the future for this project. If that's the case, it would likely be easier to find people familiar with Cairngorm than some of the alternatives. But, I don't want to rule out any of the alternatives if they might actually be a better choice. Opinions please. Thanks! -Jake Churchill -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: Framework Choice
Even if you organize your code to some sort of internally formulated organization, you're already kind of using a framework - of your own creation. The disadvantage to that IMO, as soon as you start writing one you now become responsible for documenting your particular approach and communicating it to developers who might also work on your project. If your project needs to scale, using a published framework gives you the ability to find resources who also know the framework, and gets them up to speed more quickly. I've been on projects (otherwise known as nightmares) where the previous developer used no framework, and didn't document what they did. I remember one in particular where it was stated that it might take 6 months to get up to speed on the way the app was built. That's just a waste of time and money. All that said, I've used Cairngorm for years and the original version, while workable, is taking a back seat to IOC frameworks. I'm using Cairngorm 3 and Parsley and I really like the development model. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jake Churchill Sent: Wednesday, March 24, 2010 11:39 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Framework Choice I have never written an app using modules. I understand the logic behind it, I've just never had the need. Is there anything regarding modules that I should know before starting? On Wed, Mar 24, 2010 at 10:27 AM, valdhor valdhorli...@embarqmail.commailto:valdhorli...@embarqmail.com wrote: I have an extremely large enterprise application (24 modules and counting) that does not use any framework. If you can discipline yourself in the way you organize your code, I don't really see the need for a framework. It just adds complexity in my view. I would recommend starting with modules if you see the need may be coming later on. I started with a monolithic app while I was learning Flex and had to change over to modules six months in. That was no fun I can tell you. Now that each part is in a module it makes it much easier for other team members to modify the code. It is also a lot easier to follow the logic. I would also recommend a versioning system - we use Subversion. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jake Churchill reyna...@... wrote: I have been tasked with architecting a large application for a company a friend of mine works at. I will also do some of the coding and act as a mentor, teaching people on staff the ins and outs of Flex. In the past, I've always used Cairngorm and Cairngorm w/ UM Extensions for a framework. I wrote a very basic app w/ Mate once just to learn it and I didn't really like it. So, my question to everyone here is what Framework would you chose? Keep in mind, the people I'll be working with are relatively new to flex and the application is going to end up being quite large. Down the road it will likely have an AIR counterpart. We might use modules but for now I'm staying away from that because it adds another layer of complexity that in the initial stages is not needed. My thoughts on this are that Cairngorm would be easier to learn for them and they had talked about brining more people on in the future for this project. If that's the case, it would likely be easier to find people familiar with Cairngorm than some of the alternatives. But, I don't want to rule out any of the alternatives if they might actually be a better choice. Opinions please. Thanks! -Jake Churchill
RE: [flexcoders] Re: Flex 4....Large recordset...how much is too much?
Sounds like you need to decouple the scrollbar from the list control so that you can set the scroll bar min/max values based upon the size of the dataset, which would have to be returned as metadata, independently of the entire dataset. You move the scrollbar, an rpc call is made, and a section of the dataset is returned and rendered. This would eliminate the memory hit from bringing over a huge dataset of AS objects in one shot. The latency over the wire shouldn't be too bad, because at any given time you're only requesting a small portion of the total records. No point in returning more records that the user can practically interact with at any one time. See the VScrollBar control. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Tuesday, March 16, 2010 12:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 4Large recordset...how much is too much? Can you reproduce your problem in a simple test case? You say you aren't bringing down the full data set all at once so unless your data records are really big or you are trying to make the datagrid really tall so it can display without scrollbars, I wouldn't expect you to run out of memory. If you use up more than 500MB the Browser and Flash Player start getting creaky, but otherwise I would expect things to work. If you make the DG more than 8000 pixels tall, you can run into Flash Player limits. When you say crash is the Player/Browser crashing or are you getting a runtime exception? If you're getting an exception, what is the stack trace? On 3/15/10 4:32 PM, iloveyouwisconsin iloveyouwiscon...@yahoo.com wrote: We have a need for that in our project. I will say that much w/out giving away the idea. The question, though, is why is Flex (without hacks) limiting the amount of data we can view? The datagrid should be smarter than it is and in my opinion has a long way to go in order to be a truly viable means for data-intensive applications. Remember, I'm not VIEWING 15 million records at ONCE. I'm only retrieving 25 or 100 rows at a time from a database that is 15 million records. I want to give the user the OPTION of jumping around the database via moving the thumb around on the scrollbar...without crashing the application. As a workaround (at least in the short-term), how could I force the thumb icon to the bottom of the scrollbar after a user scrolls, like they do here: http://blog.tremend.ro/2009/03/02/flex-live-scroll-datagrid? I know that they have source enabled, but the switch to flex 4 (and paging enabled on my php service) would change the entire process, right? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , gmbroth gmbr...@... wrote: I'm curious: what's the use case for pushing 15 million (or, heck, even 50,000) records to the client? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , iloveyouwisconsin iloveyouwisconsin@ wrote: Maybe I'll have to wait until Flex 7 (or later) 'til they truly make flex able to handle large datasets smoothly. (I guess I'll also have to advise those at Adobe and the flex evangelists that what they define as a large dataset isn't large in practice. They probably need to moonlight as interns for a few of their customers to snapback into reality. There's no company in the real world that would define a large dataset as only a few thousand items) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , iloveyouwisconsin iloveyouwisconsin@ wrote: How many records is considered too large for a datagrid to handle? I am using Flex 4 with Zend AMF paging enabled. When I google it the topic, most seem to think that a few thousand is large, but that doesn't seem hardly anything to me. I thought Zend would do the trick but it isn't anywhere near what I need. My 15 million records didn't go over too well (I can use the scroll wheel on my mouse to scroll through the records but it kept crashing when I tried to use the scrollbar on the datagrid to jump around). I ask because I don't want to have to jimmy around with code until I'm blue in the face trying to find something flex can handle. Can I do 1 million? 5,000? 500,000? I just want to be able to let users play around w/ the scrollbar on the datagrid without it crashing, is all (though I realize that the user's machine will play a big factor in performance. All of my users have computers that are no more than a couple yrs old) I also ask because I am sure others would like to know for their projectsis there a more efficient way to get the data than Zend, like Livecycle or Coldfusion? I am willing to switch the backend up a bit in order to increase performance of my app. many thanks! -- Alex Harui Flex SDK Team Adobe System, Inc.
RE: [flexcoders] Partial LineSeries - is it possible?
Geoff, Good call - that works perfectly - thanks!!! Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Geoff White Sent: Tuesday, February 23, 2010 3:48 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Partial LineSeries - is it possible? You shouldn't need to do this. Try setting the minimum and maximum values on the date time axis to the desired dates and it should do the rest(regardless of which dates there are data for). From: Battershall, Jeff jeff.battersh...@dowjones.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Tue, February 23, 2010 1:44:39 PM Subject: RE: [flexcoders] Partial LineSeries - is it possible? Thanks Richard, I'm going to give this a try - basically I'm going make placeholder data elements that map to my DateTimeAxis and fill in the remaining values for the decade. Jeff From: flexcod...@yahoogro ups.comhttp://ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Richard Rodseth Sent: Tuesday, February 23, 2010 2:59 PM To: flexcod...@yahoogro ups.com Subject: Re: [flexcoders] Partial LineSeries - is it possible? I'm not sure I quite understand the question, but a couple of thoughts: - if you have a data function that returns null you can get gaps in a line chart, if that's desired - on the other hand, if your data provider filters out the empty data points, the chart should fill the available space - I think you might be able to have a separate data provider for the axis In other words, I would be surprised if custom renderers are necessary. On Tue, Feb 23, 2010 at 10:26 AM, Battershall, Jeff jeff.battershall@ dowjones. commailto:jeff.battersh...@dowjones.com wrote: I have a line chart with a DateTimeAxis that is stipulated to be about 750 pixels wide and it's used to display a decade's worth of data points. However, in the current decade, there are only a couple month's worth of data points. As a result the line series takes up the entire chart's entire available horizontal space. What I'd LIKE to have happen is have the line series only as wide as the data points require - kind of like a YTD graph. See what I'm getting at? Any charting experts available? Eli? Jeff Battershall Application Architect Dow Jones Indexes jeff.battershall@ dowjones. commailto:jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
[flexcoders] Partial LineSeries - is it possible?
I have a line chart with a DateTimeAxis that is stipulated to be about 750 pixels wide and it's used to display a decade's worth of data points. However, in the current decade, there are only a couple month's worth of data points. As a result the line series takes up the entire chart's entire available horizontal space. What I'd LIKE to have happen is have the line series only as wide as the data points require - kind of like a YTD graph. See what I'm getting at? Any charting experts available? Eli? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Re: Partial LineSeries - is it possible?
TH, Thanks - I was afraid it might require something like that. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of turbo_vb Sent: Tuesday, February 23, 2010 2:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Partial LineSeries - is it possible? Hi Jeff, Probably going to have to add mock data for the remaining months in the decade and then use a lineSegmentRenderer and itemRenderer to hide the lines/points that are in the future. -TH --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... wrote: I have a line chart with a DateTimeAxis that is stipulated to be about 750 pixels wide and it's used to display a decade's worth of data points. However, in the current decade, there are only a couple month's worth of data points. As a result the line series takes up the entire chart's entire available horizontal space. What I'd LIKE to have happen is have the line series only as wide as the data points require - kind of like a YTD graph. See what I'm getting at? Any charting experts available? Eli? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@... (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Partial LineSeries - is it possible?
Thanks Richard, I'm going to give this a try - basically I'm going make placeholder data elements that map to my DateTimeAxis and fill in the remaining values for the decade. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Richard Rodseth Sent: Tuesday, February 23, 2010 2:59 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Partial LineSeries - is it possible? I'm not sure I quite understand the question, but a couple of thoughts: - if you have a data function that returns null you can get gaps in a line chart, if that's desired - on the other hand, if your data provider filters out the empty data points, the chart should fill the available space - I think you might be able to have a separate data provider for the axis In other words, I would be surprised if custom renderers are necessary. On Tue, Feb 23, 2010 at 10:26 AM, Battershall, Jeff jeff.battersh...@dowjones.commailto:jeff.battersh...@dowjones.com wrote: I have a line chart with a DateTimeAxis that is stipulated to be about 750 pixels wide and it's used to display a decade's worth of data points. However, in the current decade, there are only a couple month's worth of data points. As a result the line series takes up the entire chart's entire available horizontal space. What I'd LIKE to have happen is have the line series only as wide as the data points require - kind of like a YTD graph. See what I'm getting at? Any charting experts available? Eli? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.commailto:jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
[flexcoders] NetConnection.Call.Failed - Need to diagnose
I've built an AIR app using Cairngorm 2.x. My RemoteObjects are stored in the ServiceLocator singleton. Intermittently, users will get NetConnection.Call.Failed. Possibly this is a performance issue with the ColdFusion service layer where specific calls are timing out or possibly the RO's connection timing out on its own. One possible approach is simply to re-try on error but that kinda feels like a brute force approach. Any advice appreciated! Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Module Memory Leaks
Thanks Alex, I had gone around and around to get a certain module to unload and was unable to determine the cause. Your article was very informative and my suspicion is that an image loaded at runtime was at fault. But that really isn't the same thing as compile-time embedded assets, is it? As far as remote objects are concerned - if they are invoked via some sort of Command class, that should avoid this problem, am I right? Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, February 11, 2010 6:39 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Module Memory Leaks In Flex 4, styles are per-module and thus much less likely to leak. That's the only change. Everything else is the same. Are you seeing evidence that embedded image assets are leaking? On 2/11/10 4:24 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: Getting modules to fully unload has been something I've spent (wasted?) a good deal of time on in the past and I've just finished reading with great interest, Alex's article on the subject: http://blogs.adobe.com/aharui/2009/08/what_we_know_about_unloading_m.html My question is - how much of this is resolved in Flex 4? Because if most or all of the issues have been addressed, I'll simply abandon my Flex 3 development of module-based applications and move to Flex 4 right now, especially given that Flex 4's release is imminent (early spring?). Of particular concern is the bit in Alex's article about unloading images and the fact that image assets could be loaded via Stylesheets, etc. Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Module Memory Leaks
Getting modules to fully unload has been something I've spent (wasted?) a good deal of time on in the past and I've just finished reading with great interest, Alex's article on the subject: http://blogs.adobe.com/aharui/2009/08/what_we_know_about_unloading_m.html My question is - how much of this is resolved in Flex 4? Because if most or all of the issues have been addressed, I'll simply abandon my Flex 3 development of module-based applications and move to Flex 4 right now, especially given that Flex 4's release is imminent (early spring?). Of particular concern is the bit in Alex's article about unloading images and the fact that image assets could be loaded via Stylesheets, etc. Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Re: Steve Jobs on Flash .......
I believe FP 10.1 is specifically designed to address the two biggest issues that affect the deployment of Flash on devices: Memory consumption and global error handling. So help is on the way and I would think that Adobe's actions in that regard are anything but lazy. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of reflexactions Sent: Monday, February 08, 2010 8:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Steve Jobs on Flash ... Its not a question of whether it was possible at some point to construct 'something' on a device with a limited version of flash. Its a question of whether you can construct something like this for example http://www.extjs.com/deploy/dev/examples/grouptabs/grouptabs.html in flash with a comparable footprint and performance (a common complaint is cpu utilization for some reason flash soaks up a huge amount of the cpu compared to javascript). I was testing some regex code today and the same code ran 4 times faster in IE, 20 times faster in Safari and Chrome. Its not like these issues are anything new they've been around for years but they don't get fixed which I guess is what SJ was really meaning when he called Adobe lazy. --- In flexcoders@yahoogroups.com, Guy Morton g...@... wrote: That's nuts. We built a flash app that ran on the pocket PC 5 years ago - it's mad to think flash couldn't run on something as powerful as an iPhone. On the other hand, if I was looking at a new project, I'd certainly be asking myself if something like the SVGWeb toolkit from google would allow me to build something that would run native in many browsers (and in the iPhone and iPad). I do think Adobe should have been looking prior to now for ways to leverage SVG and javascript - all that platform needs is a good development environment - that's something Adobe could be making money from right now. Anyway...it's all rather silly and the town hall thing is farcical. Steve should have spent some of that pent up energy doing something truly great with the iPad, instead of just scaling up an iPhone. Guy On 08/02/2010, at 10:20 PM, reflexactions wrote: Well after 10 years plus of AS development my feelings are that SJ isn't wrong. We have to fend of a constant stream of complaints from users that the app is a memory hog and slow. We tell them it will improve soon but it never does, we tell them flash is a million times better than the alternatives, but to be honest JavaScript has caught up and is ahead in many things. Our app starts up at around 130Mb and reaches 250Mb before it levels out, JavaScript apps are a fraction of that. I hope his rant finally has some impact at Adobe and they pull there finger out, becuase past experience has shown that years of complaining/requests/bug reports gets nowhere then finally a rant in the face of someone who matters gets them to shift, I have no idea why its like that but time and again thats what happens. For us it is probably too late as this week after SJ's rant we were told to start planning the move away flash, the argument has been lost so badly it wasn't even an argument this time. For us to stay with flash, the next release would have to perform a miracle in terms of memory and performace gains on Mac and PC. Personally I don't think they can do it, I think they would be better of making AS3 compile down to JavaScript. With maybe a lighterweight plugin for somethings like video or graphics. Whatever they really needed to realise all this a year ago with solutions to be released now, not just smelling the coffee today. --- In flexcoders@yahoogroups.com, Tim Romano tim.romano@ wrote: If the rumors about Bing are true, then this panning could also have something to do with Silverlight. If I were at MSFT and my role was to ensure that Silverlight succeeded in knocking Flash off (as Word knocked off WordPerfect back in the day, e.g.) then I'd be looking for chinks in Adobe's armor wherever they may be. On 2/1/2010 2:26 PM, Paul Andrews wrote: It's just commercial tactics. You'd never guess he has his own tied-in development system to support. Why wouldn't he knock flash? hworke wrote: http://news.yahoo.com/s/pcworld/20100201/tc_pcworld/stevejobsdissesapplerivalsduringtownhallmeeting http://news.yahoo.com/s/pcworld/20100201/tc_pcworld/stevejobsdissesapplerivalsduringtownhallmeeting Jobs has previously called out Adobe Flash, currently the dominant animation platform on the Web, for being too slow to be useful and Flash Lite, Adobe's versio n of Flash for mobile devices, as not advanced enough for the iPhone. So it's no surprise to hear Jobs called out Flash during Apple's Town Hall, but his language this time sounds a little over
RE: [flexcoders] Flex write xml file in server?
No. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markflex2007 Sent: Monday, February 08, 2010 12:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex write xml file in server? Do you think if that is possible? I want to only use Flex not other server languages. Thanks Mark -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Custom ItemRenderer still not working...
I'm a little late to this, so pardon me if my point has been raised previously...I've seen the behavior similar to what you're describing and it indicated that the ItemRenderer was not correctly written because ItemRenderers are recycled when scrolling for performance reasons. You have to write them to ensure that the dataprovider to your combox box is in a state to receive the data element passed to it and that the selectedIndex gets reset. This requires sub-classing the ComboBox for use as an item renderer of a list-based control. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Laurence MacNeill Sent: Monday, February 08, 2010 3:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Custom ItemRenderer still not working... At 02:57 PM 2/8/2010, you wrote: What do we do to see the problem, just scroll? Yeah, if you scroll up and down a few times, you'll see that the numbers in the combo-boxes' drop-downs don't match the displayed number. Then change the selection in one of those combo boxes that's displaying the incorrect drop-down, and magically, the next time you open the drop-down it displays the correct numbers again. Until the next time you scroll, that is. :-) Thanks,
RE: [flexcoders] HTTPService Responder ResultEvent -- how to know when the JSON data sent via HTTP are complete?
Tim, Maybe I'm missing something here, but to my understanding when the result event of your HTTP service fires, your call IS complete. You should have access to the json string that was pulled back from the service. Is there something else you need that the json string doesn't' supply? Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Romano Sent: Tuesday, January 12, 2010 2:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTPService Responder ResultEvent -- how to know when the JSON data sent via HTTP are complete? I started learning FlashBuilder/Flex by diving in and writing an AIR application against SQLite with asynchronous connections and Responder objects. The responder's resultsHandler is passed a flash.data.SQLResult object that exposes a complete status property. Lovely. Now I am trying to rewrite that AIR application as a browser-deployed Flex app using an HTTPService against a RESTful webservice that returns JSON data. The webservice is working, and the Flex HTTPService is pulling the JSON string down, but there doesn't seem to be anything analogous to the complete property that was available with the asynch data connection in the AIR app. Not so lovely. The result-handler specified in the HTTPService responder has two parameters, the ResultEvent and the AsyncToken. The ResultEvent exposes a statusCode property. The result-handler can be called more than once. The ResultEvent.statusCode = 200 each time the handler is called. How do you know when the remote data are complete? I will keep googling as I'm sure this question must be commonplace, but so far I haven't found the answer. Thanks for the help.
[flexcoders] Status Code 504 Errors
Hi, I have an AIR app built in Flex that occasionally returns NetConnection.Call.Failed - Error: HTTP Status 504 for certain clients. I'm using CF8 as the backend. Any advice? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
[flexcoders] cannot convert mx.charts.events::ChartItemEvent to mx.events.IndexChangedEvent.
Hello, I have a LineChart with selectionMode = multiple, living inside a container and finally a ViewStack. I'm getting this error: cannot convert mx.charts.events::chartitemev...@ea1e341 to mx.events.IndexChangedEvent. If I remove the selectionMode attribute, everything works fine, except I need the LineChart and its associated LineSeries to be selectable. Anyone encountered this? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
[flexcoders] RE: cannot convert mx.charts.events::ChartItemEvent to mx.events.IndexChangedEvent.
The workaround is to use event.stopImmediatePropagation() on the chart's change event. Looks like this has been filed as a bug before but not addressed as it couldn't be replicated. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Friday, December 11, 2009 10:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] cannot convert mx.charts.events::ChartItemEvent to mx.events.IndexChangedEvent. Hello, I have a LineChart with selectionMode = multiple, living inside a container and finally a ViewStack. I'm getting this error: cannot convert mx.charts.events::chartitemev...@ea1e341 to mx.events.IndexChangedEvent. If I remove the selectionMode attribute, everything works fine, except I need the LineChart and its associated LineSeries to be selectable. Anyone encountered this? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Keep an object in flash player memory despit swf unloading?
Then I don't know what to recommend. You have to have some place to store the data. The swf is compiled so if you're not going to use it's only persistence mechanism, and you can't store the data elsewhere, thensounds like a waste of time and effort. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Flap Flap Sent: Friday, October 30, 2009 4:20 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Keep an object in flash player memory despit swf unloading? That's also the problem... I didn't manage the code of the container application... :P Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net On Thu, Oct 29, 2009 at 2:45 PM, Battershall, Jeff jeff.battersh...@dowjones.commailto:jeff.battersh...@dowjones.com wrote: If that's the case, you wouldn't be storing the information in the swf but in the containing application. The information can then be passed as flashVars to your swf when it is loaded. HTH, Jeff From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Flap Flap Sent: Thursday, October 29, 2009 7:06 AM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Keep an object in flash player memory despit swf unloading? Hi, The case is very special: We have a swf file that runs into a specific software. This software load and unload the swf file when its required and we need to persists some information during the software session (meaning while the software is open and runs) but we cannot store those information on disk because of security rules... Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net On Wed, Oct 28, 2009 at 5:56 PM, Battershall, Jeff jeff.battersh...@dowjones.commailto:jeff.battersh...@dowjones.com wrote: What problem are you trying to solve? In order to save state you're going to need some kind of persistent scope. If Shared Object can't be used, something else needs to be a repository for your state information. Jeff From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Flap Flap Sent: Wednesday, October 28, 2009 12:21 PM To: FlexCoders Subject: [flexcoders] Keep an object in flash player memory despit swf unloading? Hi all, Is there a way to keep an actionscript object in Flash Player memory even when the swf that set up this object is unloaded. And no, SharedObject is not an option :) I know is nearly impossible but I also know that I don't know everything :D Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
RE: [flexcoders] Keep an object in flash player memory despit swf unloading?
If that's the case, you wouldn't be storing the information in the swf but in the containing application. The information can then be passed as flashVars to your swf when it is loaded. HTH, Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Flap Flap Sent: Thursday, October 29, 2009 7:06 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Keep an object in flash player memory despit swf unloading? Hi, The case is very special: We have a swf file that runs into a specific software. This software load and unload the swf file when its required and we need to persists some information during the software session (meaning while the software is open and runs) but we cannot store those information on disk because of security rules... Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net On Wed, Oct 28, 2009 at 5:56 PM, Battershall, Jeff jeff.battersh...@dowjones.commailto:jeff.battersh...@dowjones.com wrote: What problem are you trying to solve? In order to save state you're going to need some kind of persistent scope. If Shared Object can't be used, something else needs to be a repository for your state information. Jeff From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Flap Flap Sent: Wednesday, October 28, 2009 12:21 PM To: FlexCoders Subject: [flexcoders] Keep an object in flash player memory despit swf unloading? Hi all, Is there a way to keep an actionscript object in Flash Player memory even when the swf that set up this object is unloaded. And no, SharedObject is not an option :) I know is nearly impossible but I also know that I don't know everything :D Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
RE: [flexcoders] Keep an object in flash player memory despit swf unloading?
What problem are you trying to solve? In order to save state you're going to need some kind of persistent scope. If Shared Object can't be used, something else needs to be a repository for your state information. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Flap Flap Sent: Wednesday, October 28, 2009 12:21 PM To: FlexCoders Subject: [flexcoders] Keep an object in flash player memory despit swf unloading? Hi all, Is there a way to keep an actionscript object in Flash Player memory even when the swf that set up this object is unloaded. And no, SharedObject is not an option :) I know is nearly impossible but I also know that I don't know everything :D Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
RE: [flexcoders] Binding Model Objects
Gregor, I'm doing a good bit of what you describe already - like chunking the number of objects transferred, only transferring what is needed, etc. My big question based on Sean's preso was making domain objects bindable. Right now, I am, for the most part. For example, when editing a specific record in a datagrid, it makes it so much easier to have that object bindable so I can load it into a form and have the UI reflect that object instance. To NOT make domain model objects bindable would mean creating a third layer for binding and loading a non-bindable model object into it. That is a total headache, but I'd do it, if it really made that much difference. I'm a little skeptical that a bindable AMF model object is going to fire off a bunch of events when received by the Flex client. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gregor Kiddie Sent: Tuesday, October 27, 2009 6:18 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Binding Model Objects Having your DTOs physically different from your Domain Objects has a lot of benefit using the assembler pattern to map between the two. You can have entirely different structures for your DTOs, map multiple DOs to DTOs, keep your transport and domain layers separate (also allowing you to use different transport mechanisms AMF or XML over HTTP both easily swapped), and allow you a great deal of flexibility in structuring your application. Downside, yes the conversion process can be expensive, BUT only if you are planning on throwing around massive objects all the time. Taylor your service layer to be more responsive to your needs. Don't write a service which requires the whole object when all you need to send is an id (example, it's the difference between sending a whole email back to the server with the 'read' status marked as true, and just calling a 'markAsRead' service with the id of the email). Use paging techniques to break up your dataset, do you really need to fetch all 10k items now? If you are only showing them in 10 item chunks (i.e. in a datagrid) why not fetch them in 10 item chunks (or a few more for visual performance reasons). Well thought out business services can both reduce the amount of traffic you need to send, and allow DTO mapping to be realistic (on both ends of the wire). Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.ukblocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Richard Rodseth Sent: 26 October 2009 20:02 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Binding Model Objects Jeff I hope we see some responses to this. I like the idea of non-bindable and immutable DTOs, but isn't it true that if you have a very large list, you've got substantial memory overhead in the conversion of those DTOs to the bindable objects. Or are people tackling that with virtualized collections?
RE: [flexcoders] Binding Model Objects
Thanks Gregor, I think I'm starting to get it. - by having client-side bindable objects, using custom events, that are generated from DTOs, you minimize the amount of generic change events being fired. What about ObjectProxy? Can't similar results be obtained there? (http://blogs.digitalprimates.net/codeSlinger/index.cfm/2007/8/20/Making-the-unbindable-bindable-with-Object-Proxy). Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gregor Kiddie Sent: Tuesday, October 27, 2009 10:15 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Binding Model Objects Jeff, Yeah, I just jumped all over the DTO part of the discussion. Our DOs never get near AMF. We convert everything btw... each record in the DG ends up as an instance of a DO (which is why the performance of the service layer is so important). With DOs, we do make them bindable, but we use custom events to fire the bindings, and we never ever make the entire object bindable, only the fields required for the UI. The cheat here is when assembling the DO from a DTO, use a method that doesn't go through the setters, and then dispatch the change event once done, that way the binding operations can be done in a single frame rather than being spread out. Example (not the best architecture though). public class fooDO extends EventDispatcher { private var _bar : String; public function set bar( b : String ) : void { if ( _bar != b ) { _bar = b; dispatchEvent( fooChanged ); } } [Bindable(fooChanged)] public function get bar() : String { return _bar; } public function assemble( dto : FooDTO ) : void { _bar = dto.bar; dispatchEvent( fooChanged ); } } Quickly written out, but if all the bindable properties are fired off fooChanged then the non-bindable DTO can be assembled into a Bindable DO and cut down on the number of change events being fired. If the default changeEvent is used, events will fire on each setter used which is where the presentation is going. Is that explained badly? Non-bindable DTOs assemble to bindable DOs in a way that minimizes the amount of event slinging going on... Gk, Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.ukblocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: 27 October 2009 13:43 To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] Binding Model Objects Gregor, I'm doing a good bit of what you describe already - like chunking the number of objects transferred, only transferring what is needed, etc. My big question based on Sean's preso was making domain objects bindable. Right now, I am, for the most part. For example, when editing a specific record in a datagrid, it makes it so much easier to have that object bindable so I can load it into a form and have the UI reflect that object instance. To NOT make domain model objects bindable would mean creating a third layer for binding and loading a non-bindable model object into it. That is a total headache, but I'd do it, if it really made that much difference. I'm a little skeptical that a bindable AMF model object is going to fire off a bunch of events when received by the Flex client. Jeff
RE: [flexcoders] Binding Model Objects
Gregor, Now that I look at it, I see what you're getting at - dynamic classes by nature are going to tax the JIT more. Binding is encouraged by the framework, and in numerous examples, but you don't learn of the potential downside to overuse until months or even years having solved problems a particular way. But this is the nature of the beast, isn't it. Welcome to the world of software development. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gregor Kiddie Sent: Tuesday, October 27, 2009 10:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Binding Model Objects I've only ever used ObjectProxy in spikes as a replacement for real objects which weren't available, never in a production app. My impression of them was they were quite slow (as with all dynamic classes), but YMMV... Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.ukblocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: 27 October 2009 14:34 To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] Binding Model Objects Thanks Gregor, I think I'm starting to get it. - by having client-side bindable objects, using custom events, that are generated from DTOs, you minimize the amount of generic change events being fired. What about ObjectProxy? Can't similar results be obtained there? (http://blogs.digitalprimates.net/codeSlinger/index.cfm/2007/8/20/Making-the-unbindable-bindable-with-Object-Proxy). Jeff
[flexcoders] Binding Model Objects
I happened across the slides from a presentation that Sean Chirstmann did at Max 2008 about memory optimization in AIR (http://www.craftymind.com/wp-content/uploads/2008/11/sean_christmann_optimizing_air_final.pdf). One of his points was NOT to make DTOs or AMF objects bindable. I've been making my AMF model objects bindable for a long time and I just wanted to get second opinions from the list. I can see the point - if model objects are bindable and are bound using strong references to display object properties using {}, it could result in object instances persisting when they should be available to the GC. If true, I have to do significant re-factoring. I'm looking for corroboration here - anyone care to share their thoughts on this? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] ADOBE AIR Qs: How do you load modules from app-storage domain?
There is a way to do this and I've seen write ups on it. Search around and you'll find it. It would be nice if AIR supported this out of the box but there are security concerns when apps are being updated without involving someone who has admin rights to the machine. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Friday, October 09, 2009 1:13 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ADOBE AIR Qs: How do you load modules from app-storage domain? I'm not sure what moduleLoader is. You should be using IModuleInfo.load(). Then, a UIComponent makes a poor container. It doesn't know how to measure or layout the child so the child might have 0 size. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of handitan Sent: Thursday, October 08, 2009 8:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ADOBE AIR Qs: How do you load modules from app-storage domain? Hi all, I am using AIR 1.5 SDK. I am trying to find a way to build patching mechanism for my AIR app, which consists modules, sqlite DBs, and other files, by updating ONLY files that need to be updated. I know that this is not possible using AIR Update Framework because the way I understand it works is that any update that you have both minor and major, you will have to reinstall everything. This is a pain if you have a huge size AIR app. I have sort of an idea to build my own update mechanism but in order for this to work, I will need to be able to do update operation on my AIR app files. Since app domain doesn't allow us to do that, I have to find a place where updates can take place and my app could still work. I read that app-storage allows you to do all of that. Okay... so I build a really simple AIR app that the sole purpose is to load swf module from app-storage to prove my theory. So here's my AIR app code the short version: mx:WindowedApplication mx:Script private function loadSwf():void { var dir:File = File.applicationStorageDirectory dir = dir.resolvePath(SimpleSwf.swf);//SimpleSwf is the module var myURLRequest:URLRequest = new URLRequest(dir.url); var myURLLoader:URLLoader = new URLLoader(); myURLLoader.dataFormat = URLLoaderDataFormat.BINARY; myURLLoader.load(myURLRequest); myURLLoader.addEventListener(Event.COMPLETE,loadModuleCompleteHandler); } private function loadModuleCompleteHandler(pEvent:Event):void { var context:LoaderContext = new LoaderContext(); context.allowLoadBytesCodeExecution = true; context.applicationDomain = ApplicationDomain.currentDomain; var moduleLoader:Loader = new Loader(); var loader:URLLoader = URLLoader(pEvent.target); moduleLoader.loadBytes(loader.data,context); container.addChild(moduleLoader); } /mx:Script mx:VBox width=100% height=100% mx:Button label=Load SWF click=loadSwf()/ mx:UIComponent id=container/ /mx:VBox /mx:WindowedApplication The result is: When I click the button Load SWF, I could see that the loader loads the SWF correctly (it got the right size, etc) but I didn't see the module shows up on the screen at all. I didn't know what I do wrong. Please enlighten me.
RE: [flexcoders] Module to Module custom Events
One approach would be each module listening to events dispatched by the parent application. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Kevin Bowers Sent: Wednesday, October 07, 2009 8:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Module to Module custom Events I think that this one has been asked before, but I not able to find the answer. Hopefully someone will be able to help. I'm trying to dispatch a custom event from a module to a listener in another module, but I'm not able to get it to work. Can anyone point me in the direction of an example for this. Many thanks
RE: [flexcoders] Detecing AIR Network Timeout - Best Practices
Thanks Alban, That would work from a 'brute force' type of approach, but doesn't address the scenario of the user interacting with an app but not making network calls, and then encountering an exception when they attempt a network call and the network has timed out. You could conceivably keep the network connection alive by periodic calls to the back end, but then you're using resources without need. I'd prefer to close the app when the network times out. Just a question of what event to listen to. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of b_productiv2000 Sent: Wednesday, September 23, 2009 3:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Detecing AIR Network Timeout - Best Practices You've got an example in Tour de Flex named detecting user presence, it is place in the menu AIR capabilities coding technique. I don't know if it will serve you but when i read your message i remember this demo. Alban Battershall, Jeff a écrit : In the AIR app I'm building, if the user leaves the app running for without interaction, the network times out and the user gets ChannelCall.Failed error when they next attempt to interact with the application. What's the best way to listen for a timeout? On the ChannelSet? Or to keep the network connection alive by periodic requests? Jeff Battershall -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: Detecing AIR Network Timeout - Best Practices
Well I'm not sure that's going to work in my implementation. I'm using Cairngorm and my ServiceLocator is holding my RemoteObject instances. I'm assuming that's what's timing out. I suppose I could refresh the RO in question and re-try the call, but I'm understanding of the architecture is not complete - not sure if that's going to cut it either. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of reflexactions Sent: Wednesday, September 23, 2009 10:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Detecing AIR Network Timeout - Best Practices We use an error handler on the Operation and then resend up to 3 times before raising a hard fail. --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... wrote: Thanks Alban, That would work from a 'brute force' type of approach, but doesn't address the scenario of the user interacting with an app but not making network calls, and then encountering an exception when they attempt a network call and the network has timed out. You could conceivably keep the network connection alive by periodic calls to the back end, but then you're using resources without need. I'd prefer to close the app when the network times out. Just a question of what event to listen to. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of b_productiv2000 Sent: Wednesday, September 23, 2009 3:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Detecing AIR Network Timeout - Best Practices You've got an example in Tour de Flex named detecting user presence, it is place in the menu AIR capabilities coding technique. I don't know if it will serve you but when i read your message i remember this demo. Alban Battershall, Jeff a écrit : In the AIR app I'm building, if the user leaves the app running for without interaction, the network times out and the user gets ChannelCall.Failed error when they next attempt to interact with the application. What's the best way to listen for a timeout? On the ChannelSet? Or to keep the network connection alive by periodic requests? Jeff Battershall -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Detecing AIR Network Timeout - Best Practices
In the AIR app I'm building, if the user leaves the app running for without interaction, the network times out and the user gets ChannelCall.Failed error when they next attempt to interact with the application. What's the best way to listen for a timeout? On the ChannelSet? Or to keep the network connection alive by periodic requests? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Combobox in DataGrid
You'll have to subclass your ComboBox for starters. The available ComboBox items depend on an item in the DG's dataProvider, I would assume? If so, having one master list of available items, and then filtering the ComboBox's dataProvider based on a particular item's attributes might be a good approach. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of kumarmenon Sent: Thursday, September 17, 2009 2:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Combobox in DataGrid I have a DataGrid in mxml which has one of the Columns as an Combobox Component with Dynamic list of lookup values..I currently load the component on creationComplete..However if i do that the lookup list is static. I want a dynamic lookup list which shows up correctly in the DataGrid..How is it possible to ahieve this -Arun -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Preventing SWF from dis-assembling
Rohit, At one point I had lost some Flex source code for a particular project and used one of the publicly available SWF de-compilation tools for such out there. It 'worked' but realize that your MXML will not be recovered, only the AS code that exists behind it. Frankly, from the perspective of re-doing a project, the AS source code wasn't that useful to me. I ended up re-coding it from scratch. So, I'm not sure what you're trying to protect exactly but de-compilation isn't going deliver your Flex project to anyone, ready to be re-compiled. Possibly someone might know otherwise, my experience with SWF de-compilation is limited. Modules are another possible approach, where your code is loaded at run time and you have some sort of scheme to allow them to be downloaded to the shell application at runtime, based upon credentials. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeffry Houser Sent: Monday, September 14, 2009 1:56 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Preventing SWF from dis-assembling You can't prevent it. Isn't it daily that a new form of DRM is broken by some hacker? But, NitroLM has some tools to encrypt your swf files; and a special loader that will load up an encrypted swf and decrypt it for running. Such encryption in place makes it a lot harder to decompile the swf. I do not know of any alternative solutions to this. But, you're more than welcome to build your own. Rohit Sharma wrote: I am not sure Nitrolm will help. I think I was not clear in mail. The problem is while we are hosting the application on our web server. Once the swf gets downloaded at client side, it can be disassembled.I want to prevent that. On Mon, Sep 14, 2009 at 10:14 PM, Jeffry Houser j...@dot-com-it.commailto:j...@dot-com-it.com wrote: Nitrolm.com Rohit Sharma wrote: Hello All, We are working on a commercial application being built on Flex 3.0 framework. Recently we noticed that the swf can be easily dis-assembled and the code and the components can be retrieved. Please suggest ways to prevent this or make it harder. I have read that one way is obfuscation but that only makes the code hard to read. So, I am not too keen about obfuscating the code. Looking for replies. Thanks, Rohit -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] AIR Badge Install fails on Macromedia Certificate Error
Hello, I noticed my AIR Badge installer stopped working with the message A download error occurred, would you like to try again when the person did not have Adobe AIR installed previously. I had thought that the Badge was supposed to download air seamlessly as part of the process. I snooped with Charles and found that the loaded air.swf file was attempting to access https://www.macromedia.comhttps://www.macromedia.com/ and this request is returning a certificate error. Attempting to access the url on my home machine directly using gives me the message that the cert is not from a trusted authority. Attempting to access that url from my work machine results in a re-direct to Adobe.com. Anyone got a clue as to what the heck is going on? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
[flexcoders] Detecting Whether Current User has Admin Rights - is it possible?
If this is possible, it would be very useful information, specifically to provide better user experience during AIR app installs. Right now, attempting to install an AIR app without admin rights throws an exception - it would be nice to not even let it get that far. Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
[flexcoders] RE: CSV file: Coldfusion to Flex/Air
Easy - using either HTTPService or RemoteObject. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Scott Sent: Monday, August 31, 2009 5:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] CSV file: Coldfusion to Flex/Air Has anyone created a dynamic query to csv through Coldfusion and been able to receive it through Flex or Air? When I was doing straight Coldfusion code I could create a CSV file on the fly without dumping it on the webserver first. I can't see anyway to pass that back through to Air, does anyone know if a way? sj
[flexcoders] Chart Annotation Headaces
I'm attempting to add annotation items to a LineChart via CartesianDataCanvas,addDataChild(); There are two steps involved - one where the chart data is returned, immediately followed by my attempt at annotation. The results are inconsistent. Sometimes the annotation items (graphics) render properly, and sometimes some are dropped. I've been trying to find the correct event to listen to, thinking that perhaps the chart has to finish rendering with it's new ArrayCollection, but so far it's a mystery. updateComplete does not work as it creates an infinite loop as new updateComplete events are fired when new annotation items are added. Any advice appreciated! Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
[flexcoders] RE: Chart Annotation Headaces
OK, callLater() seems to do the trick. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Tuesday, September 01, 2009 3:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Chart Annotation Headaces I'm attempting to add annotation items to a LineChart via CartesianDataCanvas,addDataChild(); There are two steps involved - one where the chart data is returned, immediately followed by my attempt at annotation. The results are inconsistent. Sometimes the annotation items (graphics) render properly, and sometimes some are dropped. I've been trying to find the correct event to listen to, thinking that perhaps the chart has to finish rendering with it's new ArrayCollection, but so far it's a mystery. updateComplete does not work as it creates an infinite loop as new updateComplete events are fired when new annotation items are added. Any advice appreciated! Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Flex DMV 3.4.0
Where is DMV 3.4.0 available for download? From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tom Chiverton Sent: Thursday, August 27, 2009 11:14 AM To: flexcoders@yahoogroups.com Cc: Matt Chotin Subject: Re: [flexcoders] Flex DMV 3.4.0 On Thursday 27 Aug 2009, Mika Kiljunen wrote: Hi, I just downloaded and installed DMV 3.4.0 with Flex SDK 3.4.0. I compared the sources of DMV 3.3.0 and 3.4.0 and it seems pretty close to nothing has changed. For example even a closed bug from Adobe Bug Issue Management System that was supposed to be fixed in April are not included in DMV 3.4.0 (see https://bugs.adobe.com/jira/browse/FLEXDMV-1785) Hmm, it seems so. ...frameworks/projects/datavisualisation/src/mx/collections/HierarchicalCollectionViewCursor.as still says: /** * @private */ public function findAny(values:Object):Boolean and the done flag is still set incorrectly. I've commented the bug, hopefully Sameer will explain what was changed, although a trivial 'diff' shows now change in the file against the DV for v3.3 or 3.2. -- Helping to proactively drive synergistic principle-centered total markets as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.comhttp://www.Halliwells.com.
[flexcoders] RE: Adobe Air app losing connection to DB
Are you setting the person's credentials in your Remote Object using setRemoteCredentials()? Sounds like you might not be. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Scott Sent: Monday, August 17, 2009 10:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adobe Air app losing connection to DB This is another weird one. I'm struggling with session management in Air and Coldfusion. I've got Coldfusion session variables set to: Use J2EE vars Unchecked Enable app vars checked enable session vars enabled MAX timeout: Application vars: 2 days 0 hours 0 minutes 0 secs Session vars: 2 days 0 hours 0 minutes 0 secs Default timeout: App vars: 2 days 0 hours 0 mins 0 secs Sess vars:0 days 0 hours 59 mins 0 secs I log in the user and use roles to manage access in the CFC on the server. If I let my app sit open for around 3-5 mins then try clicking on something that causes a query against the server I get the following message: (mx.rpc::Fault)#0 content = (null) errorID = 0 faultCode = Server.Processing faultDetail = faultString = Unable to invoke CFC - The current user is not authorized to invoke this method. message = faultCode:Server.Processing faultString:'Unable to invoke CFC - The current user is not authorized to invoke this method.' faultDetail:'' name = Error rootCause = (null) I shouldn't be losing a session within 5 mins... Anyone else seen this or know a good way to manage an active session?
RE: [flexcoders] Re: better option than repeater?
This would be my approach: You need two dataProviders (ArrayCollections), one being for the available modules and the other for your list of staff. You'd only need two remote objects to retrieve them. Your modules dataprovider would be passed into each component instance and used by the component to generate your list of available modules with checkboxes. Your repeater is going to accept the staff list dataProvider. As it loops over the ArrayCollection, it will pass the selected modules for a given staff member to your checkbox component. It's up to you to write the setter function to pass the selected values into your checkbox component and to set the 'selected' property of each checkbox accordingly. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Monday, July 27, 2009 2:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: better option than repeater? I don't quite get what you are trying to do. Create a component. This component will display each staff member. Create a public variable to hold each staff record (Value Object) and pass that record to the component inside the repeater. The example I posted shows how to do this. So, there is only one call to the RemoteObject service that returns an array collection of staff objects. The data provider of the repeater is set to this array collection. As the repeater runs, each instance of the component gets one staff record. You use this record to figure out which checkbox is to be set. An mx:RemoteObject can be used wherever you need it. I have components with Remote Objects that are repeated. The first remote object call gets the data for each component which then makes its own RO call to get further data if the user selects that component. As an example, in your situation, you could have each staff member displayed with a button labeled More Info. If a user clicks this button the RO in this component will make a call to the server to get more info for this staff member. HTH Steve --- In flexcoders@yahoogroups.com, postwick p...@... wrote: OK, thanks to the below example, I have made some progress on setting up my first custom itemRenderer. Code can be viewed here: http://www.ubeek.com/Flex/testrend.mxml As I mentioned before, my goal is to display a list of Staff. One of the fields (moduleAccess) in the Staff record is a list of integers (i.e. 1,3,17,25). I have a table that contains a list of modules (SEQ, MODULENAME). For each Staff displayed by the List's itemRenderer, I need to loop through all the modules and output a checkbox...and if the module's SEQ is in the Staff's moduleAccess list then the box should be checked. I tried setting up a remoteObject inside the custom renderer, but no matter where I put it it gave me a parse error. I guess it doesn't like mx:RemoteObject inside a component. So I put it outside the component, but then the script function inside the component didn't seem able to access the RemoteObject's data. Although it was what I initially tried to do (with the RO inside the component) I don't really want to do that as it seems highly inefficient to query the database for every Staff record. It seems I should be able to execute the RO just once and then pass the resulting list of modules to the component so I can loop through it to output all the checkboxes (and for each record check the SEQ against the Staff's moduleAccess, which I know how to do). So the question is - how do call the RO just once and pass the result into the component (as an ArrayCollection or something) so I can loop over it repeatedly instead of actually calling it and hitting the database repeatedly? Thanks, Paul --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: As a quick and dirty... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical xmlns:custom=Components.* mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var staffArrColl:ArrayCollection; ]] /mx:Script mx:Repeater id=myStaff dataProvider={staffArrColl} custom:CheckBoxComponent id=checkBoxs person={Person(myStaff.currentItem)} / /mx:Repeater /mx:Application CheckBoxComponent.mxml: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=onCreationComplete() mx:Script ![CDATA[ import ValueObjects.Person; public var person:Person; private function onCreationComplete():void { // From person object make a remote object call to get Modules and Queues // When remote object calls return, create checkboxes appropriately } ]]
RE: [flexcoders] Calling List.change (or equivalent) from within a custom itemRenderer?
From within your custom item renderer, you can execute this code: owner.dispatchEvent(new Event(change)); The TileList will broadcast this event to any listeners. If you need to pass data elements you may have to create a custom event that contains the elements you need. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of sixtypercentliquid Sent: Monday, July 13, 2009 12:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Calling List.change (or equivalent) from within a custom itemRenderer? I have a TileList, i have been using the change method to call a function and passing the ListEvent. I have added a custom itemRenderer and hooked (i believe) everything up. Now i need to essentially call the TileList.change event from part of the UI within the custom renderer. Having a hard time figuring this out, tried searching for a while. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Flex View Stack / Component Life Cycle Best practice
Have each 'page' of your app extend a base class that has a publicfunction you can call when it becomes visible when the ViewStack changes. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of claudiu ursica Sent: Friday, June 26, 2009 5:03 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex View Stack / Component Life Cycle Best practice And you probably want to try to catch that change event on it's propagation phase instead of bubbling phase. C From: Jeffry Houser j...@farcryfly.com To: flexcoders@yahoogroups.com Sent: Friday, June 26, 2009 12:08:56 AM Subject: Re: [flexcoders] Flex View Stack / Component Life Cycle Best practice You probably want to run code when the viewStack changes. Look at the ViewStack, I bet there is a change event. martinosaint wrote: Hi there, I have built a multiplage application in Flex with different user roles. I use a View Stack with a Menu Bar to navigate between the different pages. However - each time a page gets opened, I need to do some database calls, apply User Role settings, etc. in an init() function. This init function may reference some UI elements of this page. I tried to load it with the creationComplete event, but this one gets only triggered once (since the page is not rebuilt each them the view stack shows it). Now I have put it on the show event, but this seems not to get triggered consistently, or before the page is fully created the first time. Whats the best practice for this case? * I have to pass in data * Call init functions (database calls) * Manipulate components Ideally I would need a way to call init each time the page is loaded and after all components are created. Thanks for your help, Martin - - -- -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- b4cf-1e62079f684 7https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoohttp://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl. com/684b5hhttp://tinyurl.com/684b5h http://www.twitter. com/reboog711http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
RE: [flexcoders] panel rotation problem
Panel has a style declaration for the title �C titleStyleName which per the docs doesn’t inherit CSS. You’ll have to define the style and refer to your embedded font. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of j2me_soul Sent: Tuesday, July 07, 2009 12:19 PM To: flexcoders Subject: [flexcoders] panel rotation problem If I change the rotation property of a panel, the title will disappear. Although I use the embed font file. How should I do ? mx:Panel title=Title width=300 height=500 id=panel click=panel.rotation+=2;/ CSS FILE @font-face{ src: url(msyh.ttf); font-family: MM; } global { font-family: MM; } 200万种商品,最低价格,疯狂诱惑你http://count.mail.163.com/redirect/footer.htm?f=http://gouwu.youdao.com
RE: [flexcoders] Re: Flex Browse File Video
I've done similar things with AIR and images but not with video. Seems to me you might be able to do it with FileReference.load(), which gives you access to the btyearray of the uploaded file. Requires FP10. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Adrian Resa Jones Sent: Tuesday, July 07, 2009 2:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex Browse File Video Maybe I'm missing somethingCan you use the flex file browse as a source so that users can preview video before uploading it? Do I need to know where the file comes from? I saw another question about this here and did not see an answer. --- In flexcoders@yahoogroups.com, Adrian Resa Jones noregret...@... wrote: I want to provide a preview function prior to uploading a file. Well, what's your use case ? Why do you care where the file comes from ? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Flex/Excel integration
Hi, I've been using as3xls for a while now for importing manipulating Excel files within Flex. Works well within certain boundaries - like Excel compatibility mode. It doesn't appear that much is being done with it currently - kind of a shame because it is a real need, IMO. The lack of broader Excel format support is its drawback. Is anyone aware of any other competitive solutions (even commercial ones) that might be available? Just asking. Jeff
RE: [flexcoders] CartesianChart not recognized in Flex SDK 3.3
Siraj, You need to install the datavis rsl's which are available on Adobe.com - the same location where you downloaded the Flex 3.3 SDK. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Siraj R. Khan Sent: Tuesday, June 16, 2009 2:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] CartesianChart not recognized in Flex SDK 3.3 I recently upgraded to Flex SDK 3.3, but after that my flex application has started giving compile time error for CartesianChart: 1046: Type was not found or was not a compile-time constant: CartesianChart Any help would be highly appreciated. Thanks, Siraj Khan khan_si...@yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Flex export to Excel
The dialog generated when doing FileReference.save() isn't going to have open as an option - I wish it did. To see that you'd have to be downloading from the browser itself. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of mhbmarcos Sent: Thursday, June 11, 2009 9:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex export to Excel Hi!!! when i export to excel, i need open or save dialog box, but i use a library (http://www.cristalab.com/tips/exportar-datos-de-flex-a-excel-c70300l/) and it containg : var fr:FileReference = new FileReference(); fr.save(bytes, fileExported); this open a dialog box with only save options I need save and open option any solution ? Thanks and Regards -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Creating animated graphics
I've had better luck doing things like this in straight ActionScript. There's a very lightweight library called Twease you might want to look into,and I am sure there are many other libraries available. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of bharat_1 Sent: Thursday, June 04, 2009 11:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Creating animated graphics I need to create a continuous animation so that a bunch of shapes (circle, rectangles etc) move from left to right on the screen continuously in a non-ending loop. If I use the Move effect and set it to repeat, there is a flicker between each cycle so that the motion does not look continuous. Any suggestions how this can be done more smoothly? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Unloading Modules - Binding is the Enemy?
Alex, About weak reference listeners - what kind of listeners are created when bindings are defined in MXML? Like dataProvider={myAc}? And would it help to use [Bindable] myColl:ICollectionView as the source? I hear you on trying to make things like this easy. I think the ViewStack loading Modules conditionally is a pretty common scenario for app development. One of the things I am seeing is that it easier to get the module to unload if it isn't the currently selectedChild of the ViewStack, but so far I get the best results when a brand new module is loaded before exiting the application. Then the other module becomes relatively easy to gc. In my app, one of the modules manages a particular product type. Based upon search criteria, a datagrid will be populated. If they want to edit a given dg item, there's a popup editor which makes a copy of the editable object and binds that to a form. The user makes edits and chooses to save or not the item. Right now, that's what I'm focusing on, because the editable copy I make seems to be hanging around in memory after attempting to unload the module and might be contributing to the problem. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Monday, April 27, 2009 6:15 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? I haven't looked at ModelLocator, but in general, if you have a single instance of something and are binding to it from a module, code in the module will add a listener to the single instance. This creates a reference from the single instance to the module, but Binding should be using a weak reference listener. Maybe it is time for me to build a test case and look. We want to make this kind of thing easy. If ModelLocator keeps its own list of subscribers, that could be a problem. If your local models are listening for changes to the central model and not using weak reference listeners that will also be a problem. If the PopUp is being gc'd then that should no longer pin the module. I haven't looked at many popup scenarios so there could be something there. In general though, I've found the profiler will eventually tell me the answer. I assume you know that new classes pin modules if they bring in new Style definitions that get registerd with the StyleManager. That said, the Flash Player will not always gc() everything it could in one pass, and sometimes does hang onto things a bit longer, so the load/interact/unload/checkmemory test will not always succeed. If loading the module again or loading a different module eventually causes the release of the first module, we consider that success. Another test we run is an overnight test of loading and unloading modules that are published for release mode (no debug info) and run on the release player instead of the debugger player. Memory should stabilize after a while. The debugger player has a reputation for hanging on to things that the release player won't because it is handling debug info in the debug SWFs. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Monday, April 27, 2009 11:36 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? Thanks Alex, very much. The main app is only handling login/logout duties and the event-command-delegate classes to do so. I moved away from ModelLocator in the concern that it, being a singleton, may be keeping a reference to UI objects that are using ModelLocator objects as dataProviders and thus prevent a clean unload. After all, by definition, a singleton is going to persist after a module is unloaded, true? Maybe I was wrong about that, but I'll tell you, I was trying everything to get that module to unload. Everyone was a suspect. Bear with me while I try to get my wits around this stuff. What I'm doing how is keeping all my models local to the module that uses them and injecting data via command and delegate classes. This seems to work ok. As far as PopUps, I'm calling removePopUp() and also removing listeners to custom events I've defined in the popup. I'm also seeing some behavior where the module will remain in memory after unloading (as reported by the profiler) until I create a new instance of that particular module class and populate the dataProvider of one of its children. The holy grail of a 100% clean module load/unload has not been attained, but I believe I'm
RE: [flexcoders] Axis titles on CartesianChart blurry, but not on ColumnChart
Are you embedidng the font for the Axis titles? And if so, is advancedAntiAliasing = true in your @font-face declaration? Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of netdeep Sent: Tuesday, April 28, 2009 11:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Axis titles on CartesianChart blurry, but not on ColumnChart This seems like a bug with Flex which I never noticed until just recently, but the vertical axis titles for CartesianCharts (and LineCharts as well) are blurry at higher resolutions. However this problem is not present with ColumnChart. I had to encode the charts with ImageSnapshot and export them as png files and I set the dpi to 300 and this is when I noticed this glitch. So maybe this also has to do with ImageSnapshot. Have others noticed this problem and is there a way around it? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Unloading Modules - Binding is the Enemy?
Alex, I was using 3.2 - an oversight on my part - I upgraded to 3.3 and it does seem to help but I'm also calling focusManager.deactivate() as well. Since that, the combobox isn't an issue. However there any number of different things I was doing that were causing problems - like binding myModule.currentState to a model. One of the challenges is injecting model data into the module that doesn't create a refererence to the module anywhere. PopUpManager seems to be problematic if the popup contains strong refereneces to the module or its associated model. I am making progress and what I'm hoping for in the end is a definitive set of best practices concerning the use of modules. Hopefully some of these issues might be made easier with somehting like loader.unloadAndStop() but for modules. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Friday, April 24, 2009 5:43 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? Jeff, which version of Flex are you using? Can you make a test case in two 20-line mxml files? Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Friday, April 24, 2009 11:57 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? Gregor, It does seem to be connected to the ComboBox issue - is this in the Adobe BugBase? It doesn't turn up in my searches. I can get the reference to release if I navigate to another module and then logout, but if I change the selected index of the combo box to greater than -1 before that, it will not release no matter what I do. This is a royal PITA because my instantiation code is based upon a first time load of the module and if I cannot unload a module then my method of injecting model objects into my module will have to be re-done. If there's no workaround for this bug, then Modules are effectively broken if something as commonplace as a combobox prevents an unload. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Thursday, April 23, 2009 10:13 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? Gregor, Very interesting indeed. If I login, load the module, interact with the combobox, logout, the instance remains in the profiler. However if I do all that and THEN load another module and logout, the number of instances of the first module goes to zero. These modules are being loaded into a ViewStack, BTW. Is this the FocusManager bug you described? Is there a workaround? I'd be thrilled to discover that Binding was not the culprit here. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gregor Kiddie Sent: Thursday, April 23, 2009 9:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? It does sound like you are describing the bug where the focus manager holds onto the reference of the combo box and stops the module unloading... If you lose the combobox focus, does the module unload? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact
RE: [flexcoders] Unloading Modules - Binding is the Enemy?
Thanks Alex, very much. The main app is only handling login/logout duties and the event-command-delegate classes to do so. I moved away from ModelLocator in the concern that it, being a singleton, may be keeping a reference to UI objects that are using ModelLocator objects as dataProviders and thus prevent a clean unload. After all, by definition, a singleton is going to persist after a module is unloaded, true? Maybe I was wrong about that, but I'll tell you, I was trying everything to get that module to unload. Everyone was a suspect. Bear with me while I try to get my wits around this stuff. What I'm doing how is keeping all my models local to the module that uses them and injecting data via command and delegate classes. This seems to work ok. As far as PopUps, I'm calling removePopUp() and also removing listeners to custom events I've defined in the popup. I'm also seeing some behavior where the module will remain in memory after unloading (as reported by the profiler) until I create a new instance of that particular module class and populate the dataProvider of one of its children. The holy grail of a 100% clean module load/unload has not been attained, but I believe I'm getting closer. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Monday, April 27, 2009 1:39 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? Every time I've debugged a suspected Binding leak, I've found that it sets up weak references in the right places and the problem was always somewhere else. However, I wouldn't bet against there being a scenario out there that does leak. We're looking at other module unloading scenarios right now so I'd still be willing to look at a simple test case. IMHO, the main app should never reference the model. If you have a model Singleton, the module can bind to the singleton. IMHO, that's a better model/view design anyway. I would expect all popups related to the module to be removed in order for the module to unload. One aspect of the modules design is that it does not require an unload() command. The design was that you would load a module and generate an instance (or several) of the module's classes and once you've cleaned up all references to those instances, the module would go away in a future gc pass. That way, you wouldn't have to track instances and know when it is time to call unload(). In order to implement such a design, the module SWF is given an unload() call right away so that its generated instances are supposedly the only remaining references to the modules classes thus preventing garbage-collection. Given the current design, I don't think we can ever substitute unloadAndStop() for that unload call. Also, no testing has been done by the Flex team as to what impact unloadAndStop will have in ActionScript if references to objects suddenly become invalid. IMHO, unloadAndStop should only be used when there are well-defined boundaries such as around a sub-application since sub-apps tend to be more self-sufficient. Modules are much more tightly integrated with the main application. However, Modules or no Modules, we realize that debugging memory leaks is hard work. The Gumbo profiler has a new backreference display that eliminates most extraneous backreferences, and we welcome any other ideas for tools and techniques for finding leaks. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Monday, April 27, 2009 6:43 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? Alex, I was using 3.2 - an oversight on my part - I upgraded to 3.3 and it does seem to help but I'm also calling focusManager.deactivate() as well. Since that, the combobox isn't an issue. However there any number of different things I was doing that were causing problems - like binding myModule.currentState to a model. One of the challenges is injecting model data into the module that doesn't create a refererence to the module anywhere. PopUpManager seems to be problematic if the popup contains strong refereneces to the module or its associated model. I am making progress and what I'm hoping for in the end is a definitive set of best practices concerning the use of modules. Hopefully some of these issues might be made easier with somehting like loader.unloadAndStop() but for modules. Jeff -Original Message
RE: [flexcoders] Unloading Modules - Binding is the Enemy?
Gregor, It does seem to be connected to the ComboBox issue - is this in the Adobe BugBase? It doesn't turn up in my searches. I can get the reference to release if I navigate to another module and then logout, but if I change the selected index of the combo box to greater than -1 before that, it will not release no matter what I do. This is a royal PITA because my instantiation code is based upon a first time load of the module and if I cannot unload a module then my method of injecting model objects into my module will have to be re-done. If there's no workaround for this bug, then Modules are effectively broken if something as commonplace as a combobox prevents an unload. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Thursday, April 23, 2009 10:13 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? Gregor, Very interesting indeed. If I login, load the module, interact with the combobox, logout, the instance remains in the profiler. However if I do all that and THEN load another module and logout, the number of instances of the first module goes to zero. These modules are being loaded into a ViewStack, BTW. Is this the FocusManager bug you described? Is there a workaround? I'd be thrilled to discover that Binding was not the culprit here. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gregor Kiddie Sent: Thursday, April 23, 2009 9:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? It does sound like you are describing the bug where the focus manager holds onto the reference of the combo box and stops the module unloading... If you lose the combobox focus, does the module unload? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: 23 April 2009 14:32 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? Thanks Pedro, I've seen what your describing in the docs - I'm looking at this via the profiler which is giving me feedback as to number of live instances, etc. Here's what I'm basing my statements on:. 1) I start up my app, which loads modules at runtime based upon user choice from a menu. 2) Module exectues Cairngorm Event/Command/Delegate to get array to populate a combo box. I'm passing a reference to the module's model in my Cairngorm event and the model is updated upon completion of the Command. 3) Combobox is bound (via MXML) to the model. 4) If I don't interact with the combobox, I can then logout and unload the module successfully. The profiler tells me there was previously 1 instance of the module and now there are zero instances. 5) If I make the combobox active (by interacting with it in any way), and then logout, the module remains in memory, with the profiler reporting one instance instead of zero. 6) If I then login again, the Profiler reports 2 active instances of the module. Note that any model objects are duplicated as well. For example, if my list of suppliers (used to popuate my combobox) (a strongly typed AS class) was previously 64, the profiler now reports there are 128 instances. There's my behavior. When my UI
[flexcoders] Unloading Modules - Binding is the Enemy?
In testing via the Profiler, binding UI objects in a module to a model (even if local to the module) appears to be causing a module's failure to unload. This happens as soon as the UI component becomes active. In fact, even if the source object (data provider) is set to null, the binding persists and will prevent a module from unloading. Does this issue have to be such a PITA? It appears that using curly braces for binding in MXML can create Modules that won't unload. In FP 10, the Loader class has the new unloadAndStop() method. Would be extremely handy to have something similar for Modules. Basically you want to remove all listeners to a model and then unload the module. Seeking enlightenment - anyone got any? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Unloading Modules - Binding is the Enemy?
Pedro, I've been running the GC immediately after unload - programmatically. The module instance is released immediately if binding is inactive. The moment binding becomes active to a UI element of the Module, the instance will not be released. I was thinking that having the model object I'm binding to be local to the module would address the behavior, but sadly it does not appear to work. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Pedro Sena Sent: Thursday, April 23, 2009 8:26 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Unloading Modules - Binding is the Enemy? Hi Jeff, The fact that you unload a module does not mean that it will be garbage collected(the memory won't be released as soon as you unload your module). Unload the module makes it available for garbage collection. As far as I know, the module 'garbage' will be collected by the GC when necessary, so don't think that unload a module means free memory in the exactly same moment. I'm supposing that you are testing in your development machine(probably a good machine) so I suggest you to test it in a limited machine to see if this memory is released when it is necessary , that is the point. HTH, Pedro Sena On Thu, Apr 23, 2009 at 9:09 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: In testing via the Profiler, binding UI objects in a module to a model (even if local to the module) appears to be causing a module's failure to unload. This happens as soon as the UI component becomes active. In fact, even if the source object (data provider) is set to null, the binding persists and will prevent a module from unloading. Does this issue have to be such a PITA? It appears that using curly braces for binding in MXML can create Modules that won't unload. In FP 10, the Loader class has the new unloadAndStop() method. Would be extremely handy to have something similar for Modules. Basically you want to remove all listeners to a model and then unload the module. Seeking enlightenment - anyone got any? Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com mailto:jeff.battershall%40dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */
RE: [flexcoders] Unloading Modules - Binding is the Enemy?
Thanks Pedro, I've seen what your describing in the docs - I'm looking at this via the profiler which is giving me feedback as to number of live instances, etc. Here's what I'm basing my statements on:. 1) I start up my app, which loads modules at runtime based upon user choice from a menu. 2) Module exectues Cairngorm Event/Command/Delegate to get array to populate a combo box. I'm passing a reference to the module's model in my Cairngorm event and the model is updated upon completion of the Command. 3) Combobox is bound (via MXML) to the model. 4) If I don't interact with the combobox, I can then logout and unload the module successfully. The profiler tells me there was previously 1 instance of the module and now there are zero instances. 5) If I make the combobox active (by interacting with it in any way), and then logout, the module remains in memory, with the profiler reporting one instance instead of zero. 6) If I then login again, the Profiler reports 2 active instances of the module. Note that any model objects are duplicated as well. For example, if my list of suppliers (used to popuate my combobox) (a strongly typed AS class) was previously 64, the profiler now reports there are 128 instances. There's my behavior. When my UI object (in this case ComboBox), becomes active, the binding becomes active and then the module will not unload, even if I set the modules model to null before attempting to unload. It would appear that I need to invalidate all outstanding bindings to any data object before the module will fully unload. This would seem to indicate that MXML binding (via curly braces) isn't going to allow this. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Pedro Sena Sent: Thursday, April 23, 2009 8:43 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Unloading Modules - Binding is the Enemy? Jeff, Calling GC programmatically does not mean that it will be executed. Like java, the GC in flex is not under programmer's control. You may call it, but it won't be executed if it is not necessary. Clicking the Run Garbage Collector button does not guarantee that all objects that are eligible for garbage collection will be garbage collected. Garbage collection is typically triggered by the allocation of memory for new resources. http://livedocs.adobe.com/flex/3/html/help.html?content=profiler_6.html Regards, Pedro Sena On Thu, Apr 23, 2009 at 9:34 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: Pedro, I've been running the GC immediately after unload - programmatically. The module instance is released immediately if binding is inactive. The moment binding becomes active to a UI element of the Module, the instance will not be released. I was thinking that having the model object I'm binding to be local to the module would address the behavior, but sadly it does not appear to work. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Pedro Sena Sent: Thursday, April 23, 2009 8:26 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Unloading Modules - Binding is the Enemy? Hi Jeff, The fact that you unload a module does not mean that it will be garbage collected(the memory won't be released as soon as you unload your module). Unload the module makes it available for garbage collection. As far as I know, the module 'garbage' will be collected by the GC when necessary, so don't think that unload a module means free memory in the exactly same moment. I'm supposing that you are testing in your development machine(probably a good machine) so I suggest you to test it in a limited machine to see if this memory is released when it is necessary , that is the point. HTH, Pedro Sena On Thu, Apr 23, 2009 at 9:09 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: In testing via the Profiler, binding UI objects in a module to a model (even if local to the module) appears to be causing a module's failure
RE: [flexcoders] Unloading Modules - Binding is the Enemy?
Gregor, Very interesting indeed. If I login, load the module, interact with the combobox, logout, the instance remains in the profiler. However if I do all that and THEN load another module and logout, the number of instances of the first module goes to zero. These modules are being loaded into a ViewStack, BTW. Is this the FocusManager bug you described? Is there a workaround? I'd be thrilled to discover that Binding was not the culprit here. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gregor Kiddie Sent: Thursday, April 23, 2009 9:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? It does sound like you are describing the bug where the focus manager holds onto the reference of the combo box and stops the module unloading... If you lose the combobox focus, does the module unload? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: 23 April 2009 14:32 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? Thanks Pedro, I've seen what your describing in the docs - I'm looking at this via the profiler which is giving me feedback as to number of live instances, etc. Here's what I'm basing my statements on:. 1) I start up my app, which loads modules at runtime based upon user choice from a menu. 2) Module exectues Cairngorm Event/Command/Delegate to get array to populate a combo box. I'm passing a reference to the module's model in my Cairngorm event and the model is updated upon completion of the Command. 3) Combobox is bound (via MXML) to the model. 4) If I don't interact with the combobox, I can then logout and unload the module successfully. The profiler tells me there was previously 1 instance of the module and now there are zero instances. 5) If I make the combobox active (by interacting with it in any way), and then logout, the module remains in memory, with the profiler reporting one instance instead of zero. 6) If I then login again, the Profiler reports 2 active instances of the module. Note that any model objects are duplicated as well. For example, if my list of suppliers (used to popuate my combobox) (a strongly typed AS class) was previously 64, the profiler now reports there are 128 instances. There's my behavior. When my UI object (in this case ComboBox), becomes active, the binding becomes active and then the module will not unload, even if I set the modules model to null before attempting to unload. It would appear that I need to invalidate all outstanding bindings to any data object before the module will fully unload. This would seem to indicate that MXML binding (via curly braces) isn't going to allow this. Jeff
RE: [flexcoders] Unloading Modules - Binding is the Enemy?
I'm creating new ApplicationDomain just for the modules. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Marvin Froeder Sent: Thursday, April 23, 2009 2:19 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Unloading Modules - Binding is the Enemy? Hi Jeff, Just curiosity, what Application Domain are you using? http://livedocs.adobe.com/flex/3/html/help.html?content=18_Client_System _Environment_5.html http://livedocs.adobe.com/flex/3/html/help.html?content=18_Client_Syste m_Environment_5.html VELO On Thu, Apr 23, 2009 at 11:13 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: Gregor, Very interesting indeed. If I login, load the module, interact with the combobox, logout, the instance remains in the profiler. However if I do all that and THEN load another module and logout, the number of instances of the first module goes to zero. These modules are being loaded into a ViewStack, BTW. Is this the FocusManager bug you described? Is there a workaround? I'd be thrilled to discover that Binding was not the culprit here. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gregor Kiddie Sent: Thursday, April 23, 2009 9:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? It does sound like you are describing the bug where the focus manager holds onto the reference of the combo box and stops the module unloading... If you lose the combobox focus, does the module unload? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: 23 April 2009 14:32 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unloading Modules - Binding is the Enemy? Thanks Pedro, I've seen what your describing in the docs - I'm looking at this via the profiler which is giving me feedback as to number of live instances, etc. Here's what I'm basing my statements on:. 1) I start up my app, which loads modules at runtime based upon user choice from a menu. 2) Module exectues Cairngorm Event/Command/Delegate to get array to populate a combo box. I'm passing a reference to the module's model in my Cairngorm event and the model is updated upon completion of the Command. 3) Combobox is bound (via MXML) to the model. 4) If I don't interact with the combobox, I can then logout and unload the module successfully. The profiler tells me there was previously 1 instance of the module and now there are zero instances. 5) If I make the combobox active (by interacting with it in any way), and then logout, the module remains in memory, with the profiler reporting one instance instead of zero. 6) If I then login again, the Profiler reports 2 active instances of the module. Note that any model
[flexcoders] DataGrid Children Prevent Module Unload?
I'm using the profiler to get handle on what's causing a given module to fail to unload and it appears that the datagrid is the culprit. Specifically when the data grid is unpopulated, I can successfully unload the module. When it is populated, it won't. I have the datagrid bound to a local model object. It appears that as soon as the datagrid has children, the module won't unload completely. There must be some reference that the datagrid has that is causing this - I am using some custom item renderers/editors. Any advice greatly appreciated. Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] DataGrid Children Prevent Module Unload?
I've done a bit more research. At this point it doesn't appear to be the renderers - I took them out for testing and it looks like that the way I'm injecting model objects into Module that might be at fault. Right now, I've defined a model interface that I'm passing back to the Commands inside of the Cairngorm events. I'm kind of hacking my way through this. Driving me crazy, though. Shouldn't be rocket science to unload a freakin' module. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Pedro Sena Sent: Wednesday, April 22, 2009 9:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid Children Prevent Module Unload? Hi Jeff, Do your renderers have some reference to module data? How are your grid and your module related? I think we need more info to help you. Regards, Pedro Sena On Wed, Apr 22, 2009 at 9:03 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: I'm using the profiler to get handle on what's causing a given module to fail to unload and it appears that the datagrid is the culprit. Specifically when the data grid is unpopulated, I can successfully unload the module. When it is populated, it won't. I have the datagrid bound to a local model object. It appears that as soon as the datagrid has children, the module won't unload completely. There must be some reference that the datagrid has that is causing this - I am using some custom item renderers/editors. Any advice greatly appreciated. Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com mailto:jeff.battershall%40dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */