[flexcoders] Alex Harui DataGrid and DTO question
Hi Alex is there somway to force the datagird to use the DTO getters and setters insted of columns ? ex: mx:DataGrid FileDTO /FileDTO /mx:DataGrid
[flexcoders] Re: filter arraycollection with checkbox acting wired
i have tried every advise provide so far and still doesn't work. this is the senario, in my database i have a column(Field Name) for pizza with Data Type YES/NO. i display everything in a flex app through a arraycollection and want to filter that data. i use a checkbox to filter data if there is pizza or not. when the pizza checkbox is checked i want to show only entries with pizza. hope that details what i wanna do.
[flexcoders] Socket communications in Flex
I am trying to understand how socket communications work in flex. This code will connect to a port 8080 on a local computer: var xmlsock:XMLSocket = new XMLSocket(); xmlsock.connect(127.0.0.1, 8080); But what I dont understand is what would be sending data to that port? Thanks
Re: [flexcoders] Socket communications in Flex
Well...nothing would, normally. You'd have to set up a server to talk to you on that socket, develop a protocol for conversing over the socket, etc. An XML socket is just a pipe to communicate over. Unlike normal http requests which encapsulate the http conversation so you don't see it, a raw XML socket requires you to define what messages are going to be sent by whom and what those messages mean. Does that help, or have I misunderstood your question? Guy On 14/02/2009, at 10:50 PM, markgoldin_2000 wrote: I am trying to understand how socket communications work in flex. This code will connect to a port 8080 on a local computer: var xmlsock:XMLSocket = new XMLSocket(); xmlsock.connect(127.0.0.1, 8080); But what I dont understand is what would be sending data to that port? Thanks
[flexcoders] Re: Alex Harui DataGrid and DTO question
Even if it would be possible, wouldn't it break the model/view seperation? You are much more restricted to the data then you are using the common way to display data. - What about formating the displayed data. This would be needed to be done by the DTO. - Other orders... without columns not possible. - displaying complex content... renderer needed and this is something the DTO shouldn't care about either. --- In flexcoders@yahoogroups.com, Cato Paus ca...@... wrote: Hi Alex is there somway to force the datagird to use the DTO getters and setters insted of columns ? ex: mx:DataGrid FileDTO /FileDTO /mx:DataGrid
[flexcoders] Re: Memory consumption. Part 2. ItemRenderers
Thanks, Alex! --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: ListItemRenderer.as adds and removes its icon in commitProperties. If it is the same 3 icons, and they are small, they should be embedded and then you don't need the Image class and will save lots of memory that way too.
[flexcoders] Re: HTML advice please
Awesome, exactly what I was looking for...thanks! --- In flexcoders@yahoogroups.com, Maya Tulchinsky maya...@... wrote: Check out this one: http://www.deitte.com/IFrameDemo3/IFrameDemo.html Here is blog about Iframe use in flex: http://www.themidnightcoders.com/blog/2006/12/mixing-html-and-flex-using-iframe.html Good luck, Maya --- On Fri, 2/13/09, aphexyuri yuriv...@... wrote: From: aphexyuri yuriv...@... Subject: [flexcoders] HTML advice please To: flexcoders@yahoogroups.com Date: Friday, February 13, 2009, 5:31 AM Hi All As far as I know, we can't load complex HTML pages into a Flex control, but I was wondering if anybody has had experience with this. Its for a dashboard app that has flex elements, but must be able to load full websites into specific containers of the dashboard. I'm not sure what other technologies would be able to do this, Ajax, JavaScript? Any suggestions would be appreciated. ..thanks Yuri
Re: [flexcoders] AIR Application is not Appearing
I've seen this occur if there is some sort of startup error. ( No global exception handler, eh? ). For example, if your Air app is looking for a config file using static inatialiser on startup and can't find it, it could just hang there. Check the flashlog for errors. DK On 2/13/09, Alex Harui aha...@adobe.com wrote: Did they try uninstalling and re-installing? 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 Ashish Verma Sent: Friday, February 13, 2009 7:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] AIR Application is not Appearing Hello All, I created an AIR Application which was previously based on AIR 1.0 and I am some more features in that application and compiling with the update of Flex 3 and targeting it for AIR 1.5. After making air file I am putting it onto sever to access by users. But when any user trying to run it after uploading it's not displaying any window only showing task-bar button and doing noting. When I use the task-bar context to move command I can see the dotted rectangle on the desktop. I also checked for the installation folder of the application in C:\Documents and Settings\username\Local Settings but there was no any folder for it. Please help me out. Best, Ashish -- Sent from my mobile device Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] Re: [Req] What do you (love|hate|wish for) about (mx.*|Cairngorm|PureMVC|Mate|Prana|BlazeDS)?
Hi Josh I'm also pleased with Mate. I like how they've gone to great lengths to allow views to be framework-agnostic. The dependency-injection that sets up bindings rather than purely injecting values is nifty too. This makes MVP or model adaptors simpler. One downside is a loss of type safety in the event map, but they have good debugging output in the console. Darron Schall just contributed a DelegateInvoker (in the recently released 0.86b) which can be used with methods returning AsyncToken, so I can still have a distinct service layer if I wish. As for the rest, it's usually singletonitis or boilerplateitis that keeps me away. On Fri, Feb 13, 2009 at 11:29 AM, jim.abbott45 jim.abbot...@yahoo.comwrote: Just as a suggestion, Why not take Maté and add Java/BlazeDS support to it? (OK, I admit it, I really like what I've seen of Maté so far--IMHO a Developer could do a lot worse using another framework.) --Jim --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald j...@... wrote: Hey guys, I have a small request: I'd like to know what grinds your gears, and what makes you smile about the Flex library, and about whatever other libraries you use on a daily basis to get your work done. If you have time, please post here or to me off-list a quick summary of your thoughts, some bullet points, or even a link to somebody else's blog posting that sums up your ideas. Anything you've got to say, even if it's no more than PureMVC ftw!, I'd like to hear it. I have a keen interest in frameworks, and I'm planning on building something that takes the best ideas I can find (and cook up) from these and my experiences maintaining a mostly-closed-source framework at my 9-5. It's for my own apps, I'll be dog-fooding it, but it will be open source. It's going to be a full-stack framework with an optional Java+Warp+BlazeDS component, so if you think you've got some good ideas, or would like to help, please drop me a line. Cheers, -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@... - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
Re: [flexcoders] AIR Application is not Appearing
Please be aware of a very simple issue that I don't believe is well documented... When you go through an upgrade of an existing project from SDK 3.1 to 3.2 where Air is involved, the compiler links the appropriate Air objects based on what is contained in the app.xml file (YOUR APPLICATION NAME-app.xml) in the project home directory. You will find either (the compiler usually crabs about this if you rely on objects not in the chosen library though) application xmlns=http://ns.adobe.com/air/application/1.1; or application xmlns=http://ns.adobe.com/air/application/1.5; Make sure this is set correctly for your target environment. KFB From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Douglas Knudsen Sent: Saturday, February 14, 2009 7:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AIR Application is not Appearing I've seen this occur if there is some sort of startup error. ( No global exception handler, eh? ). For example, if your Air app is looking for a config file using static inatialiser on startup and can't find it, it could just hang there. Check the flashlog for errors. DK On 2/13/09, Alex Harui aha...@adobe.com mailto:aharui%40adobe.com wrote: Did they try uninstalling and re-installing? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Ashish Verma Sent: Friday, February 13, 2009 7:03 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] AIR Application is not Appearing Hello All, I created an AIR Application which was previously based on AIR 1.0 and I am some more features in that application and compiling with the update of Flex 3 and targeting it for AIR 1.5. After making air file I am putting it onto sever to access by users. But when any user trying to run it after uploading it's not displaying any window only showing task-bar button and doing noting. When I use the task-bar context to move command I can see the dotted rectangle on the desktop. I also checked for the installation folder of the application in C:\Documents and Settings\username\Local Settings but there was no any folder for it. Please help me out. Best, Ashish -- Sent from my mobile device Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/ , and is believed to be clean.
[flexcoders] Re: Socket communications in Flex
I am not sure myself about my question :). First, can Flex be listening to a socket that is created within any program? I mean, if a vb program creates a socket using Winsock will Flex be able to listen to such socket? Second, if yes, how would data actually be transfered? Thanks --- In flexcoders@yahoogroups.com, Guy Morton g...@... wrote: Well...nothing would, normally. You'd have to set up a server to talk to you on that socket, develop a protocol for conversing over the socket, etc. An XML socket is just a pipe to communicate over. Unlike normal http requests which encapsulate the http conversation so you don't see it, a raw XML socket requires you to define what messages are going to be sent by whom and what those messages mean. Does that help, or have I misunderstood your question? Guy On 14/02/2009, at 10:50 PM, markgoldin_2000 wrote: I am trying to understand how socket communications work in flex. This code will connect to a port 8080 on a local computer: var xmlsock:XMLSocket = new XMLSocket(); xmlsock.connect(127.0.0.1, 8080); But what I dont understand is what would be sending data to that port? Thanks
RE: [flexcoders] Re: Socket communications in Flex
Yes. I wrote a socket server in VB.Net that talked to a Flex app. It was years ago but I'll send you the code if you like. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Saturday, February 14, 2009 11:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Socket communications in Flex I am not sure myself about my question :). First, can Flex be listening to a socket that is created within any program? I mean, if a vb program creates a socket using Winsock will Flex be able to listen to such socket? Second, if yes, how would data actually be transfered? Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Guy Morton g...@... wrote: Well...nothing would, normally. You'd have to set up a server to talk to you on that socket, develop a protocol for conversing over the socket, etc. An XML socket is just a pipe to communicate over. Unlike normal http requests which encapsulate the http conversation so you don't see it, a raw XML socket requires you to define what messages are going to be sent by whom and what those messages mean. Does that help, or have I misunderstood your question? Guy On 14/02/2009, at 10:50 PM, markgoldin_2000 wrote: I am trying to understand how socket communications work in flex. This code will connect to a port 8080 on a local computer: var xmlsock:XMLSocket = new XMLSocket(); xmlsock.connect(127.0.0.1, 8080); But what I dont understand is what would be sending data to that port? Thanks
[flexcoders] Re: Socket communications in Flex
I would very much appreciate any code sample. --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Yes. I wrote a socket server in VB.Net that talked to a Flex app. It was years ago but I'll send you the code if you like. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Saturday, February 14, 2009 11:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Socket communications in Flex I am not sure myself about my question :). First, can Flex be listening to a socket that is created within any program? I mean, if a vb program creates a socket using Winsock will Flex be able to listen to such socket? Second, if yes, how would data actually be transfered? Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Guy Morton guy@ wrote: Well...nothing would, normally. You'd have to set up a server to talk to you on that socket, develop a protocol for conversing over the socket, etc. An XML socket is just a pipe to communicate over. Unlike normal http requests which encapsulate the http conversation so you don't see it, a raw XML socket requires you to define what messages are going to be sent by whom and what those messages mean. Does that help, or have I misunderstood your question? Guy On 14/02/2009, at 10:50 PM, markgoldin_2000 wrote: I am trying to understand how socket communications work in flex. This code will connect to a port 8080 on a local computer: var xmlsock:XMLSocket = new XMLSocket(); xmlsock.connect(127.0.0.1, 8080); But what I dont understand is what would be sending data to that port? Thanks
RE: [flexcoders] Re: Alex Harui DataGrid and DTO question
I'm confused. The DataGrid uses the dataField in the DataGridColumn to determine which property in the DTO/VO it is going to get. If you don't specify any DataGridColumn, the DTO's properties are introspected and used, but you don't get to control the order and usually the property name is not really what you want to display in the header (firstName instead of First Name). 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 florian.salihovic Sent: Saturday, February 14, 2009 5:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Alex Harui DataGrid and DTO question Even if it would be possible, wouldn't it break the model/view seperation? You are much more restricted to the data then you are using the common way to display data. - What about formating the displayed data. This would be needed to be done by the DTO. - Other orders... without columns not possible. - displaying complex content... renderer needed and this is something the DTO shouldn't care about either. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Cato Paus ca...@... wrote: Hi Alex is there somway to force the datagird to use the DTO getters and setters insted of columns ? ex: mx:DataGrid FileDTO /FileDTO /mx:DataGrid
[flexcoders]Class path alias
Is there a method to alias a class name to short class name? it was something like: import com.domain.class; public var MyAlias = ClassAlias(com.domain.class); var instance:MyAlias = new MyAlias(); I thought I read about it somewhere around Flex 2.0 but haven't seen it anywhere since.
[flexcoders] Re: sprite.startDrag() - Only one sprite is draggable at a time :-(
Here are some links I've book marked on drag and drop: - Adobe help http://livedocs.adobe.com/flex/3/html/help.html? content=05_Display_Programming_14.html About half way through this page, they talk about what to do when you need to work around the limitation of startDrag only working on one thing at a time. - earlier post in this group from Doug McCune about this topic http://tech.groups.yahoo.com/group/flexcoders/message/126160 I think they are both similar approaches, but haven't really read them in a while.
[flexcoders] How to stop Flex from compiling my Java source files
I'm using Flex 3.0.2 along with Tomcat 5.0. I code my Java using Eclipse 3.1, and I was having problems which I later discovered was being caused because Flex Builder was compiling my Java source files. I have my Flex source files in C:\Tomcat5\webapps\FlexApp\src, and my Java source files are in C:\Tomcat5\webapps\FlexApp\WEB-INF\src. When I build my Flex application, it tries to recompile the Java source files. Is there a way I can tell Flex Builder to leave my Java source files alone? It's causing me servlet errors. Thanks.
Re: [flexcoders] Re: Socket communications in Flex
As Tracy said, yes. A socket is just a network connection. Your flex XMLSocket doesn't know or care what language the program listening on the other was written in. A socket connection is like a call connected between two telephones - if no-one at either end talks or neither end understands the other nothing much will happen. It's up to you to make conversation by defining how you will pass messages back and forth and how you will process them at either end. On 15/02/2009, at 3:41 AM, markgoldin_2000 wrote: I am not sure myself about my question :). First, can Flex be listening to a socket that is created within any program? I mean, if a vb program creates a socket using Winsock will Flex be able to listen to such socket? Second, if yes, how would data actually be transfered? Thanks --- In flexcoders@yahoogroups.com, Guy Morton g...@... wrote: Well...nothing would, normally. You'd have to set up a server to talk to you on that socket, develop a protocol for conversing over the socket, etc. An XML socket is just a pipe to communicate over. Unlike normal http requests which encapsulate the http conversation so you don't see it, a raw XML socket requires you to define what messages are going to be sent by whom and what those messages mean. Does that help, or have I misunderstood your question? Guy On 14/02/2009, at 10:50 PM, markgoldin_2000 wrote: I am trying to understand how socket communications work in flex. This code will connect to a port 8080 on a local computer: var xmlsock:XMLSocket = new XMLSocket(); xmlsock.connect(127.0.0.1, 8080); But what I dont understand is what would be sending data to that port? Thanks
[flexcoders] Re: sprite.startDrag() - Only one sprite is draggable at a time :-(
Thanks! Exactly what I need. --- In flexcoders@yahoogroups.com, sunild99 sunilbd...@... wrote: Here are some links I've book marked on drag and drop: - Adobe help http://livedocs.adobe.com/flex/3/html/help.html? content=05_Display_Programming_14.html About half way through this page, they talk about what to do when you need to work around the limitation of startDrag only working on one thing at a time. - earlier post in this group from Doug McCune about this topic http://tech.groups.yahoo.com/group/flexcoders/message/126160 I think they are both similar approaches, but haven't really read them in a while.
Re: [flexcoders] Re: Socket communications in Flex
Have a look at: http://www.innerfuse.biz/dropbox/WebDU 2007 Leveraging Apollo Runtime.zip Shows how you can make a socket server in Ruby and talk with a Bluetooth GPS device.