[flexcoders] Large XML /w E4X vs. serialized objects /w tree traversal

2008-08-03 Thread Boon Chew
Hi, I am building an app that deals with a fair bit of people relationship data coming down as XML, so the hierarchical nature of XML actually comes in handy here.  I have a few options: one is to serialize each person XML node into an object, and setup the appropriate data structure for

[flexcoders] Re: Large XML /w E4X vs. serialized objects /w tree traversal

2008-08-03 Thread florian.salihovic
I would choose the class hierachy approach. Write your own classes for relationships, people etc. The pros of this approach: * You do not depend on a datasource: it does not matter where the data comes from ((different) XML sources, remoting [,...]). * You have strong typed objects and you

[flexcoders] Re: Large XML /w E4X vs. serialized objects /w tree traversal

2008-08-03 Thread florian.salihovic
Well, here it would be interessting for me how and when the XML object creates its descendants. My approach might be a bit outdated, since i might have the old DOM model in mind. Best regards --- In flexcoders@yahoogroups.com, Boon Chew [EMAIL PROTECTED] wrote: Thanks Florian.  Problem

Re: [flexcoders] Re: Large XML /w E4X vs. serialized objects /w tree traversal

2008-08-03 Thread Boon Chew
Thanks Florian.  Problem is the performance actually degrades quite a bit when there are a lot of objects in memory.  Instantiating a lot of objects is dog slow as well. Also, there would really be no dependency with the datasource even if we go XML (assuming this is the best option) because

[flexcoders] Re: snapshots of TabNavigator tabs

2008-08-03 Thread Tim Hoff
Hi Danny, Not sure about the snapshots; without seeing some code. But, the children are disappearing because you're creating references (not copies) to the original display objects and then reparenting them with addChild(). You might try this instead; to make a copy: cloneBarChart =

[flexcoders] Air App State Index

2008-08-03 Thread Eugene Louw
Hi All, This should be somehting extremely simple, ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:views=views.* mx:states mx:State name=NewCapture mx:AddChild relativeTo={mainCB} position=before

[flexcoders] How do I add selectedItems in the PopUp window?

2008-08-03 Thread Joshua Jackson
Dear all, In the parent window I have a List targetComponent and in the pop up window I also have a List component. The question is how do I add the selectedItems in the popup window to the listData of the targetComponent/parent window? Could anyone give me a hint on this? Many thanks --

[flexcoders] Re: snapshots of TabNavigator tabs

2008-08-03 Thread Vijay Ganesan
Hi Danny, I've done this where I show thumbnails of the tab content in each tab. The problem I faced originally was similar to what you allude to - initially only the first tab's contents are drawn and the other tab contents are not yet rendered. So how do you take a snapshot of something that is

Re: [flexcoders] Air App State Index

2008-08-03 Thread [EMAIL PROTECTED]
It looks like you are trying to put something before the Application Control Bar mx:AddChild relativeTo={mainCB} position=before if you just want to add it after the control bar, a simple mx:AddChild will work if you try to make a lay out with anything before the control bar as in:

[flexcoders] cookies and getremote

2008-08-03 Thread Scott
Does anyone know if getRemote() works with CF8? I'm looking for a good Flex/Cookie discussion blog somewhere if anyone knows of one... Also, are Flex cookies subject to the security settings in IE like HTML cookies? Thanks Scott

[flexcoders] SWF/Flex security

2008-08-03 Thread Scott
In preparing for securing the site before I code the main site functions I thought I'd read up a bit on security. I was thinking that flex/swf code could not be decompiled. But then I found this: http://blog.everythingflex.com/2008/02/29/check-you-as3-code/ I'd like to do some remote object

Re: [flexcoders] SWF/Flex security

2008-08-03 Thread Andrew Westberg
I'll be speaking on this topic at 360 Flex San Jose. At the basic level, you can embed or even encrypt secure information such as usernames/passwords. If you need a full blown authentication and encryption system, I'd look into nitrolm.com. This will be discussed at the 360 presentation along

Re: [flexcoders] SWF/Flex security

2008-08-03 Thread Scott
Is there going to be an archived webcast afterwards? I'd love to go to that but unfortunately; August is the busiest time of the year for me and my clients. Scott From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Westberg

[flexcoders] Re: Flex Tree having 20000 nodes crashes

2008-08-03 Thread profiles_arun
Hi Jon, Thanks for you response, but basically i have the requirement to load the complete tree. Since am new, can you give me a snippet of code, which will load the sub-nodes of the tree on demand ? Thanks in advance. arun --- In flexcoders@yahoogroups.com, Jon Bradley [EMAIL PROTECTED]

[flexcoders] Re: Tabbing children from custom item renderer inside List

2008-08-03 Thread Claudiu Ursica
Ok, I managed to send the focus to the second numeric stepper, but when I hit tab again I loose the tab and cannot sent the focus to the second item in the list on the first numeric stepper. Now my code looks something like this: mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;

[flexcoders] Re: Tabbing children from custom item renderer inside List

2008-08-03 Thread Claudiu Ursica
Ok, I managed to send the focus to the second numeric stepper, but when I hit tab again I loose the tab and cannot sent the focus to the second item in the list on the first numeric stepper. Now my code looks something like this: mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;

[flexcoders] Flex Trademarks: How do we play nice?

2008-08-03 Thread Josh McDonald
Hey guys, Just finished listening to the latest Flexshow with Matt, and realised that when I get around to uploading my new design, putting up more content and launching my blog publicly I'm likely to run afoul of Adobe's crack team of ninja lawyers. Dating a proto-lawyer is frankly all the

Re: [flexcoders] Flex Trademarks: How do we play nice?

2008-08-03 Thread Daniel Freiman
I'm sure you were looking for a plan English answer, but since I'm only an ex-proto-laywer myself, the best I'm going to do is this: http://www.adobe.com/misc/pdfs/TM_GuideforThirdPartiesFinalPrint.pdf - Daniel Freiman On Sun, Aug 3, 2008 at 7:13 PM, Josh McDonald [EMAIL PROTECTED] wrote:

Re: [flexcoders] Flex Trademarks: How do we play nice?

2008-08-03 Thread Doug McCune
I think it came across clearly in Matt's interview, but I'll just reiterate. The Flex dudes are nice and don't like being the bad guys. I've gotten contacted by Matt before for getting into a little trouble (I posted the Flex SDK codebase into a SVN repo before it was officially an open source

[flexcoders] Downloading a file from a server in AIR

2008-08-03 Thread Dimitrios Gianninas
I've used the code below in my AIR app to download a file from Java servlet on the server, but I get a Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error. error...what am I doing wrong? var req:URLRequest = new URLRequest( http://localhost:8080/orion/pdfdown; );

Re: [flexcoders] Flex Trademarks: How do we play nice?

2008-08-03 Thread Josh McDonald
That PDF seems to be what I'm after, cheers :) -Josh On Mon, Aug 4, 2008 at 11:31 AM, Daniel Freiman [EMAIL PROTECTED] wrote: I'm sure you were looking for a plan English answer, but since I'm only an ex-proto-laywer myself, the best I'm going to do is this:

Re: [flexcoders] Flex Trademarks: How do we play nice?

2008-08-03 Thread Josh McDonald
Thanks for that Doug. It seems like I'm not going to have any troubles, which is good to know :) On Mon, Aug 4, 2008 at 11:56 AM, Doug McCune [EMAIL PROTECTED] wrote: I think it came across clearly in Matt's interview, but I'll just reiterate. The Flex dudes are nice and don't like being the

Re: [flexcoders] Flex Trademarks: How do we play nice?

2008-08-03 Thread Matt Chotin
I mostly just like messing with Doug :-) That PDF should cover things :-) On 8/3/08 7:14 PM, Josh McDonald [EMAIL PROTECTED] wrote: Thanks for that Doug. It seems like I'm not going to have any troubles, which is good to know :) On Mon, Aug 4, 2008 at 11:56 AM, Doug McCune [EMAIL

[flexcoders] Multiple Lists

2008-08-03 Thread Rafael Faria
I have multiple lists and i want one drag to another. The drag and drop is already working. My problem is that i have like 10 lists and any of them can drag to any other. Is there an easy way to set what list it can come from? like list1 can just receive dragable item from list2 and

RE: [flexcoders] Re: Tabbing children from custom item renderer inside List

2008-08-03 Thread Alex Harui
You'll need more code in keyFocusChangeHandler. It has to not call preventDefault when it is time to transfer the tab to the next renderer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claudiu Ursica Sent: Sunday, August 03, 2008 5:52

RE: [flexcoders] Multiple Lists

2008-08-03 Thread Alex Harui
dragInitiator in the dragEvent From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Faria Sent: Sunday, August 03, 2008 7:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Multiple Lists I have multiple lists and i want one

[flexcoders] document[value]

2008-08-03 Thread flexaustin
What does it mean when you see this code? document[somevalue] Is that finding some value in your mxml with the name somevalue? Does document reference the parent application file or the current file you scope is in?

Re: [flexcoders] Downloading a file from a server in AIR

2008-08-03 Thread Ryan Gravener
Try something like this: var req:URLRequest = new URLRequest(url); stream = new URLStream(); stream.addEventListener(Event.COMPLETE, writeAirFile); stream.load(req); private function writeAirFile(evt:Event):void { var data:ByteArray = new ByteArray();

Re: [flexcoders] document[value]

2008-08-03 Thread Josh McDonald
AFAIK In an MXML component, document will usually point to the defining instance, which may be the application, or it could be another component. And in actionscript, foo[bar] is the same as: foo.bar So it's just dereferencing a public property of the document object with the name of whatever

[flexcoders] Re: Multiple Lists

2008-08-03 Thread Rafael Faria
I got this working, but if it doesnt use the builtin events when i drop it. I just disapear with the items i'm dragging. I don't want to create new function to the drop event, i want to use the builtin one. Any idea why?! Alex, anything you can help me with this code so i can keep using the