[flexcoders] Large XML /w E4X vs. serialized objects /w tree traversal
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 hierarchical data traversal (e.g. rooted tree). Another option is to keep everything in memory as XML and accessed the node data via E4X. The third option is to take a hybrid approach, won't consider this route right now unless this appears to be the best. My concern is that instantiating thousands of objects will create a performance issue (happened at another project that dealt with thousands of dto's), not to mention it's very slow to instantiate lots of objects. At the same time, I am not sure how fast E4X is at dealing with large XML. Which approach would you take? Which one is likely to scale better? Large in-memory XML + E4X traversal or data structure with lots of objects + algorthmic tree traversal? - boon
[flexcoders] Re: Large XML /w E4X vs. serialized objects /w tree traversal
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 can embed your own events and errors. This means (unit-) testing becomes more effective. The cons: * You have to implement a parser. Best regards from Germany. --- In flexcoders@yahoogroups.com, Boon Chew [EMAIL PROTECTED] wrote: 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 hierarchical data traversal (e.g. rooted tree). Another option is to keep everything in memory as XML and accessed the node data via E4X. The third option is to take a hybrid approach, won't consider this route right now unless this appears to be the best. My concern is that instantiating thousands of objects will create a performance issue (happened at another project that dealt with thousands of dto's), not to mention it's very slow to instantiate lots of objects. At the same time, I am not sure how fast E4X is at dealing with large XML. Which approach would you take? Which one is likely to scale better? Large in-memory XML + E4X traversal or data structure with lots of objects + algorthmic tree traversal? - boon
[flexcoders] Re: Large XML /w E4X vs. serialized objects /w tree traversal
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 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 either way we have to write code to process/transform the incoming data, in this case it would be just code that transforms whatever format it comes in as into XML. There is also no need for events in this case as well since they are plain vanilla data objects with only public properties in it. - boon --- On Sun, 8/3/08, florian.salihovic [EMAIL PROTECTED] wrote: From: florian.salihovic [EMAIL PROTECTED] Subject: [flexcoders] Re: Large XML /w E4X vs. serialized objects /w tree traversal To: flexcoders@yahoogroups.com Date: Sunday, August 3, 2008, 12:53 AM 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 can embed your own events and errors. This means (unit-) testing becomes more effective. The cons: * You have to implement a parser. Best regards from Germany. --- In [EMAIL PROTECTED] ups.com, Boon Chew waspfish@ . wrote: 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 hierarchical data traversal (e.g. rooted tree). Another option is to keep everything in memory as XML and accessed the node data via E4X. The third option is to take a hybrid approach, won't consider this route right now unless this appears to be the best. My concern is that instantiating thousands of objects will create a performance issue (happened at another project that dealt with thousands of dto's), not to mention it's very slow to instantiate lots of objects. At the same time, I am not sure how fast E4X is at dealing with large XML. Which approach would you take? Which one is likely to scale better? Large in-memory XML + E4X traversal or data structure with lots of objects + algorthmic tree traversal? - boon
Re: [flexcoders] Re: Large XML /w E4X vs. serialized objects /w tree traversal
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 either way we have to write code to process/transform the incoming data, in this case it would be just code that transforms whatever format it comes in as into XML. There is also no need for events in this case as well since they are plain vanilla data objects with only public properties in it. - boon --- On Sun, 8/3/08, florian.salihovic [EMAIL PROTECTED] wrote: From: florian.salihovic [EMAIL PROTECTED] Subject: [flexcoders] Re: Large XML /w E4X vs. serialized objects /w tree traversal To: flexcoders@yahoogroups.com Date: Sunday, August 3, 2008, 12:53 AM 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 can embed your own events and errors. This means (unit-) testing becomes more effective. The cons: * You have to implement a parser. Best regards from Germany. --- In [EMAIL PROTECTED] ups.com, Boon Chew [EMAIL PROTECTED] . wrote: 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 hierarchical data traversal (e.g. rooted tree). Another option is to keep everything in memory as XML and accessed the node data via E4X. The third option is to take a hybrid approach, won't consider this route right now unless this appears to be the best. My concern is that instantiating thousands of objects will create a performance issue (happened at another project that dealt with thousands of dto's), not to mention it's very slow to instantiate lots of objects. At the same time, I am not sure how fast E4X is at dealing with large XML. Which approach would you take? Which one is likely to scale better? Large in-memory XML + E4X traversal or data structure with lots of objects + algorthmic tree traversal? - boon
[flexcoders] Re: snapshots of TabNavigator tabs
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 = BarChart(this.barChartDispaly); instead of : cloneBarChart = this.barChartDisplay as BarChart; -TH --- In flexcoders@yahoogroups.com, dannyvenier [EMAIL PROTECTED] wrote: Hi, Perhaps someone has tried to do this and has figured it out. Me...no. The objective is to take image snapshots from the display objects on individual tabs (children) of the tab navigator and use them for a tile list in another container...preferrably on another tab of the TabNavigator. The problem seems to be that only the visible tab can be snapped. Taking snapshots of the other non selected children produces what appears to be a very narrow slice of display... Stepping through the children, selectedIndex = i, setting that child to be visible, taking a snapshot, all programmatically without user interaction does not work. Again, one valid snapshot, and the rest are some machination of some image with positive size, but only a slice. I've done quite a bit with snapshots before so I'm confident in that part of the code (getting the snapshot of bitmapData, using it to form a Bitmap Object, wrapping in UIComponent, adding as child to container), and I'm picking up one successfully but no luck on picking them all up. I set breakpoints at the first point of the snapshot and the size tells me its not the full display object. I'm sticking the snapshots in a model and using to source the list. The copy in the model has only the single full image. I've even tried making a copy of the display objects themselves and presenting them in the tile list but for whatever reason, the instant I add the child to the tilelist container, it is no longer visible in the original tab. Its a barchart image I'm trying to capture so I try var cloneBarChart:BarChart = new BarChart(); cloneBarChart = this.barChartDisplay as BarChart; but as I mentioned, the minute I add the cloneBarChart as a child to the tilelist container, the original barchart disappears from the original tab. I didn't include code cause its a bit spread out. I'm just wondering if I'm missing some characteristic of the tab navigator or a viewstack that makes hidden children inaccessible? It could be a creation sequence problem but setting the selected index and visibility should force creation, no? thanks, Danny
[flexcoders] Air App State Index
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 views:new_capture width=100% height=100% /views:new_capture /mx:AddChild /mx:State mx:State name=Login /mx:State mx:State name=Synchronise /mx:State /mx:states mx:ApplicationControlBar dock=true id=mainCB mx:LinkButton label=Captures click=currentState=''/ mx:LinkButton label=New click=currentState='NewCapture'/ mx:LinkButton label=Synchronise click=currentState='Login'/ /mx:ApplicationControlBar /mx:WindowedApplication When I run the app and click on mx:LinkButton label=New click=currentState='NewCapture'/ I get the following error, RangeError: Error #2006: The supplied index is out of bounds. at flash.display::DisplayObjectContainer/addChildAt() at mx.core::Container/addChildAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2206] at mx.states::AddChild/apply()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\states\AddChild.as:377] at mx.core::UIComponent/applyState()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7199] at mx.core::UIComponent/commitCurrentState()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7019] at mx.core::UIComponent/setCurrentState()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6948] at mx.core::UIComponent/set currentState()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:4260] Any ideas? -- Eugene Louw
[flexcoders] How do I add selectedItems in the PopUp window?
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 -- Setting a new landmark. Blog: http://joshuajava.wordpress.com/
[flexcoders] Re: snapshots of TabNavigator tabs
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 not yet drawn on the screen? The way I got it to work is, after the first tab content is rendered, force calling updateDisplayList() for each of the other tab's content child object passing in the unscaledWidth and unscaledHeight of the first tab child. After all tab contents are created and sized (although not yet drawn on the screen), snapshots using the ImageSnapshot's captureBitmapData() work fine. I do have very custom components and rely less on the Flex fwk for sizing etc. but it should work the same. Hope that helps. Vijay --- In flexcoders@yahoogroups.com, dannyvenier [EMAIL PROTECTED] wrote: Hi, Perhaps someone has tried to do this and has figured it out. Me...no. The objective is to take image snapshots from the display objects on individual tabs (children) of the tab navigator and use them for a tile list in another container...preferrably on another tab of the TabNavigator. The problem seems to be that only the visible tab can be snapped. Taking snapshots of the other non selected children produces what appears to be a very narrow slice of display... Stepping through the children, selectedIndex = i, setting that child to be visible, taking a snapshot, all programmatically without user interaction does not work. Again, one valid snapshot, and the rest are some machination of some image with positive size, but only a slice. I've done quite a bit with snapshots before so I'm confident in that part of the code (getting the snapshot of bitmapData, using it to form a Bitmap Object, wrapping in UIComponent, adding as child to container), and I'm picking up one successfully but no luck on picking them all up. I set breakpoints at the first point of the snapshot and the size tells me its not the full display object. I'm sticking the snapshots in a model and using to source the list. The copy in the model has only the single full image. I've even tried making a copy of the display objects themselves and presenting them in the tile list but for whatever reason, the instant I add the child to the tilelist container, it is no longer visible in the original tab. Its a barchart image I'm trying to capture so I try var cloneBarChart:BarChart = new BarChart(); cloneBarChart = this.barChartDisplay as BarChart; but as I mentioned, the minute I add the cloneBarChart as a child to the tilelist container, the original barchart disappears from the original tab. I didn't include code cause its a bit spread out. I'm just wondering if I'm missing some characteristic of the tab navigator or a viewstack that makes hidden children inaccessible? It could be a creation sequence problem but setting the selected index and visibility should force creation, no? thanks, Danny
Re: [flexcoders] Air App State Index
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: mx:LinkButton label=Button Before Control Bar / mx:ApplicationControlBar dock=true id=mainCB. It puts the button AFTER the control bar Eugene Louw wrote: 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 views:new_capture width=100% height=100% /views:new_capture /mx:AddChild /mx:State mx:State name=Login /mx:State mx:State name=Synchronise /mx:State /mx:states mx:ApplicationControlBar dock=true id=mainCB mx:LinkButton label=Captures click=currentState=''/ mx:LinkButton label=New click=currentState='NewCapture'/ mx:LinkButton label=Synchronise click=currentState='Login'/ /mx:ApplicationControlBar /mx:WindowedApplication When I run the app and click on mx:LinkButton label=New click=currentState='NewCapture'/ I get the following error, RangeError: Error #2006: The supplied index is out of bounds. at flash.display::DisplayObjectContainer/addChildAt() at mx.core::Container/addChildAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2206] at mx.states::AddChild/apply()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\states\AddChild.as:377] at mx.core::UIComponent/applyState()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7199] at mx.core::UIComponent/commitCurrentState()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7019] at mx.core::UIComponent/setCurrentState()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6948] at mx.core::UIComponent/set currentState()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:4260] Any ideas? -- Eugene Louw Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.5.10/1587 - Release Date: 8/2/2008 5:30 PM
[flexcoders] cookies and getremote
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
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 validation (adding in another field for the remote object that would verify that the request was coming from my SWF and not someone else's (possibly malicious) code. However, if someone can decompile my SWF files then all of that would be for nothing. What can people say about flex code decompiling and protecting my code from prying eyes? Regards, Scott
Re: [flexcoders] SWF/Flex security
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 with some other non-commercial techniques you can use on your own. http://www.360conferences.com/360flex/2008/04/360flex-san-jose-schedule.html -Andrew Westberg On Sun, Aug 3, 2008 at 4:51 PM, Scott [EMAIL PROTECTED] wrote: 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 validation (adding in another field for the remote object that would verify that the request was coming from my SWF and not someone else's (possibly malicious) code. However, if someone can decompile my SWF files then all of that would be for nothing. What can people say about flex code decompiling and protecting my code from prying eyes? Regards, Scott
Re: [flexcoders] SWF/Flex security
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 Sent: Sunday, August 03, 2008 5:45 PM To: flexcoders@yahoogroups.com Subject: {Disarmed} Re: [flexcoders] SWF/Flex security 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 with some other non-commercial techniques you can use on your own. http://www.360conferences.com/360flex/2008/04/360flex-san-jose-schedule. html http://www.360conferences.com/360flex/2008/04/360flex-san-jose-schedule .html -Andrew Westberg On Sun, Aug 3, 2008 at 4:51 PM, Scott [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: 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/ http://blog.everythingflex.com/2008/02/29/check-you-as3-code/ I'd like to do some remote object validation (adding in another field for the remote object that would verify that the request was coming from my SWF and not someone else's (possibly malicious) code. However, if someone can decompile my SWF files then all of that would be for nothing. What can people say about flex code decompiling and protecting my code from prying eyes? Regards, Scott -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/ , and is believed to be clean.
[flexcoders] Re: Flex Tree having 20000 nodes crashes
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] wrote: On Aug 2, 2008, at 7:25 AM, profiles_arun wrote: I have a tree, which has 21000 plus nodes, when i load the .swf file in IE, it crashes. As such i dont get any error messages, so i checked into widows application error log and found this error Faulting application iexplore.exe, version 7.0.6000.16674, faulting module fldbg9f.ocx, version 9.0.124.0, fault address 0x00241305. Your first problem is how much data you are loading into a tree. In my opinion, there is no reason to be doing that. Second problem, IE 7. It's the absolute worst browser on the planet with CPU and memory management. Try this in Firefox. Although you might crash, it will probably take longer to crash (unless there's a bug in the debug flash player). Below is the snippet of my impl. Please suggest a solution, to overcome this issue. Your solution to overcome the issue is as you already found - don't try to load that much information into a Tree. cheers, jon
[flexcoders] Re: Tabbing children from custom item renderer inside List
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; implements=mx.managers.IFocusManagerComponent width=100% height=100% verticalAlign=middle .. skins and other stuff .. mx:Script ![CDATA[ import mx.managers.IFocusManagerComponent; import mx.collections.ArrayCollection; import mx.controls.List; /** EVENT HANDLERS **/ private function itemRendererDeleteButtonHandler(event:MouseEvent) : void { // lista va fi tot timpul si in toate situatiile itemRenderer.parent.parent var parentList : List = this.parent.parent as List; var parentListDataProvider:ArrayCollection = parentList.dataProvider as ArrayCollection; var itemIndex:int = parentList.itemRendererToIndex(this); parentListDataProvider.removeItemAt(itemIndex); } public override function set data (val : Object) : void { super.data = val; } override protected function focusInHandler(event:FocusEvent):void { trace(FocusHandler); addEventListener(keyFocusChange, keyFocusChangeHandler); } protected function keyFocusChangeHandler(event:FocusEvent):void { event.preventDefault(); trace(event.target); stepperTwo.setFocus(); } ]] /mx:Script mx:Spacer width=10 / mx:NumericStepper id=stepperOne minimum=2 maximum=100 width=46 height=20 cornerRadius=3 backgroundColor=white borderStyle=solid borderThickness=0 tabEnabled=true /mx:NumericStepper mx:Spacer width=10 / mx:NumericStepper id=stepperTwo minimum=2 maximum=100 width=46 height=20 cornerRadius=3 backgroundColor=white borderStyle=solid borderThickness=0 tabEnabled=true /mx:NumericStepper mx:Button tabEnabled=false id=buttonRemoveItem width=15 height=14 styleName=removeItemButtonSkin click=itemRendererDeleteButtonHandler(event) buttonMode=true / mx:Spacer width=5 / /mx:HBox As said before the only components that I am interested in being in the tabloop are the 2 numeric steppers. Maybe I'm missing something but when the focus is on the stepperTwo and I hit tab it goes away. I have no idea how to send the focus on the second item in the list, eg the first numeric stepper of the second item... I have tried to do stuff in the focuOut evt handler for the second numeric stepper but it doesn't seem to work TIA, Claudiu
[flexcoders] Re: Tabbing children from custom item renderer inside List
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; implements=mx.managers.IFocusManagerComponent width=100% height=100% verticalAlign=middle .. skins and other stuff .. mx:Script ![CDATA[ import mx.managers.IFocusManagerComponent; import mx.collections.ArrayCollection; import mx.controls.List; /** EVENT HANDLERS **/ private function itemRendererDeleteButtonHandler(event:MouseEvent) : void { // lista va fi tot timpul si in toate situatiile itemRenderer.parent.parent var parentList : List = this.parent.parent as List; var parentListDataProvider:ArrayCollection = parentList.dataProvider as ArrayCollection; var itemIndex:int = parentList.itemRendererToIndex(this); parentListDataProvider.removeItemAt(itemIndex); } public override function set data (val : Object) : void { super.data = val; } override protected function focusInHandler(event:FocusEvent):void { trace(FocusHandler); addEventListener(keyFocusChange, keyFocusChangeHandler); } protected function keyFocusChangeHandler(event:FocusEvent):void { event.preventDefault(); trace(event.target); stepperTwo.setFocus(); } ]] /mx:Script mx:Spacer width=10 / mx:NumericStepper id=stepperOne minimum=2 maximum=100 width=46 height=20 cornerRadius=3 backgroundColor=white borderStyle=solid borderThickness=0 tabEnabled=true /mx:NumericStepper mx:Spacer width=10 / mx:NumericStepper id=stepperTwo minimum=2 maximum=100 width=46 height=20 cornerRadius=3 backgroundColor=white borderStyle=solid borderThickness=0 tabEnabled=true /mx:NumericStepper mx:Button tabEnabled=false id=buttonRemoveItem width=15 height=14 styleName=removeItemButtonSkin click=itemRendererDeleteButtonHandler(event) buttonMode=true / mx:Spacer width=5 / /mx:HBox As said before the only components that I am interested in being in the tabloop are the 2 numeric steppers. Maybe I'm missing something but when the focus is on the stepperTwo and I hit tab it goes away. I have no idea how to send the focus on the second item in the list, eg the first numeric stepper of the second item... I have tried to do stuff in the focuOut evt handler for the second numeric stepper but it doesn't seem to work TIA, Claudiu
[flexcoders] Flex Trademarks: How do we play nice?
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 lawyer I need in my life- so I want to know whom I need to talk to in order to get permission to use the word Flex as part of the name (it's obviously satire, and in no way looks like any *Adobe* logos or trademarks), and how to word the Flex is pwn3d by adobe text. Decided not to email off-list as I'm sure some other people will be interested in the same info! -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Flex Trademarks: How do we play nice?
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: 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 lawyer I need in my life- so I want to know whom I need to talk to in order to get permission to use the word Flex as part of the name (it's obviously satire, and in no way looks like any *Adobe* logos or trademarks), and how to word the Flex is pwn3d by adobe text. Decided not to email off-list as I'm sure some other people will be interested in the same info! -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Flex Trademarks: How do we play nice?
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 project). I think the lawyers only get involved after a few yo, that's not really cool type of emails. The other thing that was mentioned is that they've been fairly lax with Flex (as opposed to being hardasses with AIR). Matt mentioned that stuff like the flex show probably falls under the Adobe should do something umbrella but that they haven't pursued the Flex stuff at all. There are a ton of examples, FlexLib, Flex Box, etc etc. So I'd say don't use AIR cause someone seems to get all riled up when it comes to that trademark, but I haven't seen anyone fucked with for using the word Flex. And I'd also say don't look for any official adobe advice on this list other than telling you to read the legalese. On Sun, Aug 3, 2008 at 6:31 PM, 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: 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: 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 lawyer I need in my life- so I want to know whom I need to talk to in order to get permission to use the word Flex as part of the name (it's obviously satire, and in no way looks like any *Adobe* logos or trademarks), and how to word the Flex is pwn3d by adobe text. Decided not to email off-list as I'm sure some other people will be interested in the same info! -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Downloading a file from a server in AIR
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; ); req.method = URLRequestMethod.POST; //var f:FileReference = new FileReference(); //f.download( req ); var f:File = new File(); f.download( req, bla.pdf ); Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L’expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s’il est retransmis sans son autorisation. Si vous n’êtes pas le destinataire visé du présent message ou si vous l’avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l’expéditeur.
Re: [flexcoders] Flex Trademarks: How do we play nice?
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: 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: 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 lawyer I need in my life- so I want to know whom I need to talk to in order to get permission to use the word Flex as part of the name (it's obviously satire, and in no way looks like any *Adobe* logos or trademarks), and how to word the Flex is pwn3d by adobe text. Decided not to email off-list as I'm sure some other people will be interested in the same info! -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Flex Trademarks: How do we play nice?
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 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 project). I think the lawyers only get involved after a few yo, that's not really cool type of emails. The other thing that was mentioned is that they've been fairly lax with Flex (as opposed to being hardasses with AIR). Matt mentioned that stuff like the flex show probably falls under the Adobe should do something umbrella but that they haven't pursued the Flex stuff at all. There are a ton of examples, FlexLib, Flex Box, etc etc. So I'd say don't use AIR cause someone seems to get all riled up when it comes to that trademark, but I haven't seen anyone fucked with for using the word Flex. And I'd also say don't look for any official adobe advice on this list other than telling you to read the legalese. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Flex Trademarks: How do we play nice?
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 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 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 project). I think the lawyers only get involved after a few yo, that's not really cool type of emails. The other thing that was mentioned is that they've been fairly lax with Flex (as opposed to being hardasses with AIR). Matt mentioned that stuff like the flex show probably falls under the Adobe should do something umbrella but that they haven't pursued the Flex stuff at all. There are a ton of examples, FlexLib, Flex Box, etc etc. So I'd say don't use AIR cause someone seems to get all riled up when it comes to that trademark, but I haven't seen anyone fucked with for using the word Flex. And I'd also say don't look for any official adobe advice on this list other than telling you to read the legalese.
[flexcoders] Multiple Lists
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 vice-versa. list3 can jusst receive from list4 and vice-versa. list5 from list6. and so on. What is the best way to work with drag and drop between lists? the native one or using the dragmanager? Thanks :p
RE: [flexcoders] Re: Tabbing children from custom item renderer inside List
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 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Tabbing children from custom item renderer inside List 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; implements=mx.managers.IFocusManagerComponent width=100% height=100% verticalAlign=middle .. skins and other stuff .. mx:Script ![CDATA[ import mx.managers.IFocusManagerComponent; import mx.collections.ArrayCollection; import mx.controls.List; nb! sp; /** EVENT HANDLERS **/ private function itemRendererDeleteButtonHandler(event:MouseEvent) : void { // lista va fi tot timpul si in toate situatiile itemRenderer.parent.parent var parentList : List = this.parent.parent as List; var parentListDataProvider:ArrayCollection = parentList.dataProvider as ArrayCollection; var itemIndex:int = parentList.itemRendererToIndex(this); parentListDataProvider.removeItemAt(itemIndex); } public override function set data (val : Object) : void { super.data = val; } override protected function focusInHandler(even! t:FocusEvent):void { trace(Focu! sHandler ); addEventListener(keyFocusChange, keyFocusChangeHandler); } protected function keyFocusChangeHandler(event:FocusEvent):void { event.preventDefault(); trace(event.target); stepperTwo.setFocus(); } ]] /mx:Script mx:Spacer width=10 / mx:NumericStepper id=stepperOne minimum=2 maximum=100 width=46 height=20 cornerRadius=3 nbs! p; backgroundColor=white borderStyle=solid borderThickness=0 tabEnabled=true /mx:NumericStepper mx:Spacer width=10 / mx:NumericStepper id=stepperTwo minimum=2 maximum=100 width=46 height=20 cornerRadius=3 backgroundColor=white borderStyle=solid borderThickness=0 tabEnabled=true ! /mx:NumericStepper n! bsp;nbs p; mx:Button tabEnabled=false id=buttonRemoveItem width=15 height=14 styleName=removeItemButtonSkin click=itemRendererDeleteButtonHandler(event) buttonMode=true / mx:Spacer width=5 / /mx:HBox As said before the only components that I am interested in being in the tabloop are the 2 numeric steppers. Maybe I'm missing something but when the focus is on the stepperTwo and I hit tab it goes away. I have no idea how to send the focus on the second item in the list, eg the first numeric stepper of! the second item... I have tried to do stuff in the focuOut evt handler for the second numeric stepper but it doesn't seem to work TIA, Claudiu
RE: [flexcoders] Multiple Lists
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 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 vice-versa. list3 can jusst receive from list4 and vice-versa. list5 from list6. and so on. What is the best way to work with drag and drop between lists? the native one or using the dragmanager? Thanks :p
[flexcoders] document[value]
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
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(); stream.readBytes(fileData,0,stream.bytesAvailable); var file:File = File.applicationStorageDirectory.resolvePath(app.air); var fileStream:FileStream = new FileStream(); fileStream.open(file, FileMode.WRITE); fileStream.writeBytes(fileData,0,fileData.length); fileStream.close(); } 2008/8/3 Dimitrios Gianninas [EMAIL PROTECTED] 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;); req.method = URLRequestMethod.POST; *//var f:FileReference = new FileReference();* *//f.download( req );* *var* f:File = *new* File(); f.download( req, *bla.pdf* ); *Dimitrios Gianninas* *RIA Developer and Team Lead* *Optimal Payments Inc.* *AVIS IMPORTANT* *WARNING* Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. -- Ryan Gravener http://twitter.com/ryangravener
Re: [flexcoders] document[value]
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 is in somevalue. -Josh On Mon, Aug 4, 2008 at 12:44 PM, flexaustin [EMAIL PROTECTED] wrote: 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? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: Multiple Lists
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 builtin dragdrop events and just specify the list i want to interact? DragManager.showFeedback(DragManager.MOVE) doesn't seem to be working if you don't put the DragManager in the Enter event. =/ var dumm:ArrayCollection = new ArrayCollection(['Test1','Test2','Test3']); var hhbox:HBox = new HBox(); hhbox.percentWidth = 100; var list1:List = new List(); list1.percentWidth = 50; list1.dataProvider = dumm; list1.allowMultipleSelection = true; list1.dropEnabled = false; list1.dragEnabled = true; list1.dragMoveEnabled = true; list1.setStyle(alternatingItemColors,[#FF, #EE]); list1.name = value.fieldname + '_source'; list1.id = value.fieldname + '_source'; list1.addEventListener(DragEvent.DRAG_ENTER,function(e:DragEvent):void { DragManager.acceptDragDrop(UIComponent(e.currentTarget)); }); list1.addEventListener(DragEvent.DRAG_OVER,function(e:DragEvent):void { if (e.target.id == List(e.dragInitiator).id + '_source') { DragManager.showFeedback(DragManager.MOVE); } else { DragManager.showFeedback(DragManager.NONE); return; } }); var list2:List = new List(); list2.percentWidth = 50; list2.dataProvider = new ArrayCollection(); list2.allowMultipleSelection = true; list2.dropEnabled = false; list2.dragEnabled = true; list2.dragMoveEnabled = true; list2.setStyle(alternatingItemColors,[#FF, #EE]); list2.name = value.fieldname; list2.id = value.fieldname; list2.addEventListener(DragEvent.DRAG_ENTER,function(e:DragEvent):void { DragManager.acceptDragDrop(UIComponent(e.currentTarget)); }); list2.addEventListener(DragEvent.DRAG_OVER,function(e:DragEvent):void { if (e.target.id == List(e.dragInitiator).id.replace('_source','')) { DragManager.showFeedback(DragManager.MOVE); } else { DragManager.showFeedback(DragManager.NONE); return; } }); hhbox.addChild(list1); hhbox.addChild(list2); --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: 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 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 vice-versa. list3 can jusst receive from list4 and vice-versa. list5 from list6. and so on. What is the best way to work with drag and drop between lists? the native one or using the dragmanager? Thanks :p