RE: [flexcoders] dynamic number of column in Advanced datagrid
You can dynamically build the DataGrid.columns array. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of senthilkumarirtt Sent: Tuesday, April 14, 2009 11:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] dynamic number of column in Advanced datagrid hi all, i need to create dynamic number of column in Advanced datagrid.
RE: [flexcoders] Re: Create mxml custom component in a actionscript event handler
The compiler compiles the function regardless of whether it is ever called, If you reference a class that it cannot find it will error. No, if you are using normal classes, then you must have a reference to that class in order for it to be linked in at compile. This is one of the problems the Modules are intended to address. Note, the reference can simply be a variable declaration typed as the class. But I am still more confused about your problem. Let's try again. Can you instantiate Form1 if you wanted to? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of raja_s_patil Sent: Wednesday, April 15, 2009 12:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Create mxml custom component in a actionscript event handler Thanks Tracy Spratt, Ok, what happens if you just try to instantiate a Form1? If the code is not finding this class then you certainly can't proceed. As I have stated in my earlier posts commenting the onItemClick function the Form1 can not be instantiated if I remove comment on onItemClick function Form1 gets instantiated Please refer my First Post in this Thread. I am not understanding what difference it makes when I comment out a unused function. Well to best my guess when Form1 is referred explicitly in onItemClick function the mxml class Form1 is being linked but when I comment onItemClick function Form1 Class is not being linked. Is there any way to Link this Form1 in application so that its available for dynamic Instantiation i.e. without having any explicit reference in main application. Thanks and Best Regards Raja
RE: [flexcoders] Mate and sharing data across files
How does Mate handle data models? Does it use singletons? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Seona Bellamy Sent: Wednesday, April 15, 2009 1:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Mate and sharing data across files Hi guys, I'm not sure that the subject line is all that clear, but I honestly can't think of how best to express it. My brain's just really tied in a knot over this one. Bear with me for a moment and I'll try and explain where I'm coming from and what I'm trying to do. I'm pretty new to Flex as a whole, and have been trying to rework an existing app into the Mate framework. The original app was built when both myself and the other developer were just learning Flex (actually, we learned as we went along) and it quickly spiralled out of control into this complete nightmare of code. It's been decided that Mate is going to be our framework of choice for future Flex development, so I decided to start trying to rebuild our app in it as a learning exercise. I used the Cafe Townsend example (http://mate. http://mate.asfusion.com/page/examples/cafe-townsend asfusion.com/page/examples/cafe-townsend) as a basis, and started off. So far so good - I managed to build a login interface, get the login function to call a CFC that looks up the details in the DB, and pass the user off to the main interface if they were in the DB. My problem now comes when I try to populate the main interface with the user's data. This would involve making more calls to other CFCs, passing them the user's ID, and getting back the records that are associated with the current user. The Cafe Townsend example didn't really help much with this, since once you're logged in you're logged in and it doesn't really do anything else with that information. I hunted around a bit and decided that the closest I could find to something that might do what I need is a Model and Injectors. The Weather Widget example (http://mate. http://mate.asfusion.com/page/examples/weather-widget asfusion.com/page/examples/weather-widget) works with this, and I tried working it into what I had, but I suspect I've tied myself in a bit of a knot. Despite the fact that FlexBuilder is not flagging any errors, the app crashes the browser every time to try to run it. So I'm obviously doing something wrong. I just can't figure out what. So to summarise: how do I go about storing some data in such a way that it will be accessible to other parts of my application? For example, the user data that is brought back by an event in the MainEventMap needs to be visible to events in the UserEventMap. For that matter, are there any other decent examples out there besides the ones on the Mate website? Cheers, Seona.
Re: [flexcoders] Mate and sharing data across files
To be honest, I'm not entirely certain. I've heard the word bandied around a bit, but I must confess that I don't fully understand what it means, what a singleton is, or how to identify if I've got them. I get the impression that they're something to do with an MVC approach, but I'm not 100% sure. Anyone here familiar enough with Mate and the attendant concepts to answer this one? Cheers, Seona. 2009/4/15 Tracy Spratt tspr...@lariatinc.com How does Mate handle data models? Does it use singletons? Tracy Spratt, Lariat Services, development services available
[flexcoders] Re: Mate and sharing data across files
Hi Seona, Let's start by taking a deep breath and don't freak out. Ok, wheeew! Mate is a little different than typical MVC; in that it seperates the model into managers and presentation models (a manager holds data and a presentation model holds an instance of the needed data and controls constituant views). Let me elaborate a little, in that these two factions of the model are also smart models; they don't just sit by and hold data., they can also manipulate data/state as well. Yes, both managers and presentation models are singletons; thus they persist. If you place your user data in a userManager, then you can easily inject that data into whatever object you want, be it a view or a presentation model, via a map. I know that there aren't a lot of mate examples out there yet. But, please be patient; more are coming.. -TH --- In flexcoders@yahoogroups.com, Seona Bellamy se...@... wrote: Hi guys, I'm not sure that the subject line is all that clear, but I honestly can't think of how best to express it. My brain's just really tied in a knot over this one. Bear with me for a moment and I'll try and explain where I'm coming from and what I'm trying to do. I'm pretty new to Flex as a whole, and have been trying to rework an existing app into the Mate framework. The original app was built when both myself and the other developer were just learning Flex (actually, we learned as we went along) and it quickly spiralled out of control into this complete nightmare of code. It's been decided that Mate is going to be our framework of choice for future Flex development, so I decided to start trying to rebuild our app in it as a learning exercise. I used the Cafe Townsend example ( http://mate.asfusion.com/page/examples/cafe-townsend) as a basis, and started off. So far so good - I managed to build a login interface, get the login function to call a CFC that looks up the details in the DB, and pass the user off to the main interface if they were in the DB. My problem now comes when I try to populate the main interface with the user's data. This would involve making more calls to other CFCs, passing them the user's ID, and getting back the records that are associated with the current user. The Cafe Townsend example didn't really help much with this, since once you're logged in you're logged in and it doesn't really do anything else with that information. I hunted around a bit and decided that the closest I could find to something that might do what I need is a Model and Injectors. The Weather Widget example ( http://mate.asfusion.com/page/examples/weather-widget) works with this, and I tried working it into what I had, but I suspect I've tied myself in a bit of a knot. Despite the fact that FlexBuilder is not flagging any errors, the app crashes the browser every time to try to run it. So I'm obviously doing something wrong. I just can't figure out what. So to summarise: how do I go about storing some data in such a way that it will be accessible to other parts of my application? For example, the user data that is brought back by an event in the MainEventMap needs to be visible to events in the UserEventMap. For that matter, are there any other decent examples out there besides the ones on the Mate website? Cheers, Seona.
Re: [flexcoders] Re: Mate and sharing data across files
Mate is not using Singleton but class-caching if I understood well. Romu Tim Hoff wrote: Hi Seona, Let's start by taking a deep breath and don't freak out. Ok, wheeew! Mate is a little different than typical MVC; in that it seperates the model into managers and presentation models (a manager holds data and a presentation model holds an instance of the needed data and controls constituant views). Let me elaborate a little, in that these two factions of the model are also smart models; they don't just sit by and hold data., they can also manipulate data/state as well. Yes, both managers and presentation models are singletons; thus they persist. If you place your user data in a userManager, then you can easily inject that data into whatever object you want, be it a view or a presentation model, via a map. I know that there aren't a lot of mate examples out there yet. But, please be patient; more are coming.. -TH --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Seona Bellamy se...@... wrote: Hi guys, I'm not sure that the subject line is all that clear, but I honestly can't think of how best to express it. My brain's just really tied in a knot over this one. Bear with me for a moment and I'll try and explain where I'm coming from and what I'm trying to do. I'm pretty new to Flex as a whole, and have been trying to rework an existing app into the Mate framework. The original app was built when both myself and the other developer were just learning Flex (actually, we learned as we went along) and it quickly spiralled out of control into this complete nightmare of code. It's been decided that Mate is going to be our framework of choice for future Flex development, so I decided to start trying to rebuild our app in it as a learning exercise. I used the Cafe Townsend example ( http://mate.asfusion.com/page/examples/cafe-townsend http://mate.asfusion.com/page/examples/cafe-townsend) as a basis, and started off. So far so good - I managed to build a login interface, get the login function to call a CFC that looks up the details in the DB, and pass the user off to the main interface if they were in the DB. My problem now comes when I try to populate the main interface with the user's data. This would involve making more calls to other CFCs, passing them the user's ID, and getting back the records that are associated with the current user. The Cafe Townsend example didn't really help much with this, since once you're logged in you're logged in and it doesn't really do anything else with that information. I hunted around a bit and decided that the closest I could find to something that might do what I need is a Model and Injectors. The Weather Widget example ( http://mate.asfusion.com/page/examples/weather-widget http://mate.asfusion.com/page/examples/weather-widget) works with this, and I tried working it into what I had, but I suspect I've tied myself in a bit of a knot. Despite the fact that FlexBuilder is not flagging any errors, the app crashes the browser every time to try to run it. So I'm obviously doing something wrong. I just can't figure out what. So to summarise: how do I go about storing some data in such a way that it will be accessible to other parts of my application? For example, the user data that is brought back by an event in the MainEventMap needs to be visible to events in the UserEventMap. For that matter, are there any other decent examples out there besides the ones on the Mate website? Cheers, Seona.
[flexcoders] AIR browse and Mac filetype
Hi, I'm facing a really annoying problem on Mac Leopard 10.5.6. I built an app with AIR and it requires that I select the path of an existing application, let's say Flash. To select the path, I wanted to select the application use a file.browse(). It works well on Windows but on Mac the Adobe Flash CS4.appremains grey and disabled, making me unable to select it to validate my path. I tried to change filters and the macType property of the FileFilter but nothing works, I'm not able to select my app... Is there anything I can do? Any hint? Romu
[flexcoders] ItemRenderer frustration! - What to invalidate??
Hello there, I have a DataGrid and one of the columns contains a custom CheckBox (item renderer/editor). When the user selects the CheckBox I want to over-ride a value in another column. The problem is that the value of the other column is not updating until AFTER the user has selected a different row or has taken focus away from the DataGrid by clicking on something else, but I would really like the column to update as soon as the CheckBox has been checked. Currently this is what I have: 1) User clicks checkbox ( I capture the 'onItemBegin' event and check that it's the CheckBox which is being edited... if (event.itemRenderer is CheckBox) ... 2) I examine the underlying data (in this case it's an XMLListCollection) and if conditions are correct I change the value of my data property, then call myDataGrid.invalidateList(); Nothing seems to update the DataGrid visually until the user has clicked something else! I have tried calling all the invalidation methods I can think of, as well as validateNow() So frustrated! Please help.
Re: [flexcoders] Why SharedObject.flush so slowly
On Wednesday 15 Apr 2009, iiley wrote: Finally, we found a way, first time request a big enough space by shareObject.flush(bigNumber), make use to allow the big number space, then later save, we do not need to call flush method, because if the space is enough, then the data will be save successful when GC or SWF closing. I think if the app crashes, you won't have saved the data though... -- Helping to elementarily brand interdependent best-of-breed interactive innovative bandwidth as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at 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.com.
Re: [flexcoders] Re: New Adobe forums coming!
On Thursday 09 Apr 2009, Matt Chotin wrote: I got spell check in the rich text editor to work in Firefox on the Mac, it's the checkbox in the upper right corner and you have to turn it on. It seems to run about every 20 seconds or so, not quite as instant as Firefox. It doesn't know about all the words I've added to my local dictionary (obv.). 'wayyy' doesn't count as misspelled. Neither does 'tooo'. It's not even pre-loaded with Adobe product names. We're working on updating the subject to be shorter and I'm still trying to investigate fixing the header which is more important than fixing the subject line itself. Ace news ! And the body text will be changed to have the actual message at the top too ? -- Helping to authoritatively evolve revolutionary dot-com value-added cross-media materials as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at 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.com.
[flexcoders] I need to set a label...???
Hi everyone, I need to set a label... The actual label is in a ArrayCollection. I can access is like this: parentApplication.MyLabelArray.getItemAt(0).label001 or parentApplication.MyLabelArray.getItemAt(0).label002 or parentApplication.MyLabelArray.getItemAt(0).label003 and so on... Is it possible to access the labels dynamically like this: var labelNames:Array = new Array(label001, label002, label003); for each(var getName:String in labelNames) { var radio00:RadioButton = new RadioButton(); radio00.label = this[parentApplication.MyLabelArray.getItemAt(0).getName; } I can't get this to work... Is there a better way to approach this? Thanks everyone! -David
[flexcoders] Re: Create mxml custom component in a actionscript event handler
Thanks Tracy Spratt, The compiler compiles the function regardless of whether it is ever called, If you reference a class that it cannot find it will error. No, if you are using normal classes, then you must have a reference to that class in order for it to be linked in at compile. This is one of the problems the Modules are intended to address. Note, the reference can simply be a variable declaration typed as the class. Well I Found the solution.. Flex compiler's artificial intelligence doesn't link all the imported classes unless those are refered somewhere in the code. So its necessary to refer the class somewhere in the application. So what i did was I declared a dummy variable var frm1:Form1 = null; var frm2:Form2 = null; and it worked like a magic now dynamic creation works like a charm. Please refer to this URL http://jwopitz.wordpress.com/2008/02/21/getdefinitionbyname-trick/ its claimed that this is a elegant way of achieving same result but I could not understand it properly. If possible can u elaborate the technique he has used in ur next post. But I am still more confused about your problem. Let's try again. Can you instantiate Form1 if you wanted to? I think u might have got exact problem from above mentioned text. If possible please comment on what I have done whether its a best practice or not and suggest better alternative. Thanks for interest shown and time spent on me. I feel that I have got another good friend now. Best regards RAJA
[flexcoders] Re: ItemRenderer frustration! - What to invalidate??
I was given the answer - I'll share it in case it helps anyone else. It was to use callLater callLater(myDataGrid.invalidateList); On Wed, Apr 15, 2009 at 12:20 PM, oopdog oop...@gmail.com wrote: Hello there, I have a DataGrid and one of the columns contains a custom CheckBox (item renderer/editor). When the user selects the CheckBox I want to over-ride a value in another column. The problem is that the value of the other column is not updating until AFTER the user has selected a different row or has taken focus away from the DataGrid by clicking on something else, but I would really like the column to update as soon as the CheckBox has been checked. Currently this is what I have: 1) User clicks checkbox ( I capture the 'onItemBegin' event and check that it's the CheckBox which is being edited... if (event.itemRenderer is CheckBox) ... 2) I examine the underlying data (in this case it's an XMLListCollection) and if conditions are correct I change the value of my data property, then call myDataGrid.invalidateList(); Nothing seems to update the DataGrid visually until the user has clicked something else! I have tried calling all the invalidation methods I can think of, as well as validateNow() So frustrated! Please help.
[flexcoders] building a dataprovider in Java
I posted a few weeks back about how to create a chart dataprovider in Java to pass to Flex and the response I got back was to use Maps. I got sidetracked with other aspects of the code and now that I'm trying to code it, I am really drawing a blank. How would you create the following dataprovider in Java without using a custom object (i.e., the next data structure may have more or less elements than this one and I would need to use generic names for each data pair)? public var expenses:ArrayCollection = new ArrayCollection([ {Month:Jan, Profit:2000, Expenses:1500}, {Month:Feb, Profit:1000, Expenses:200}, {Month:Mar, Profit:1500, Expenses:500} ]);
[flexcoders] Re: InteractiveObject Problem
--- In flexcoders@yahoogroups.com, lehaianh1986 lehaianh1...@... wrote: How? I don't understand what you say. If I click on header of AdvancedDataGrid or another area, it false because an object have no data property. But when I click on row item in AdvancedDataGrid, an object I collect have data property. I use code if (inObj.hasOwnProperty(data)) to avoid wrong case, after that I assign inObj.data to obj I don't know why I still see value of data, but I can't assign it Any one help me? Here, you've chosen to type your variable as InteractiveObject: var inObj:InteractiveObject; inObj = evt.mouseTarget; Yet you say that the actual data type of your object is this: inObj = inObj = (mx.controls.advancedDataGridClasses.AdvancedDataGridItemRenderer) mx.controls.advancedDataGridClasses.AdvancedDataGridItemRenderer (@9385479) AdvancedDataGridItemRenderer has a data property. InteractiveObject, its great-great-grandparent class, does not. So, you have the choice of typing this object as anything in its inheritance chain, plus the five interfaces it implements. You've chosen to type it as InteractiveObject, which doesn't have a data property, nor does UITextField, FlexTextField, DisplayObject, EventDispatcher, or Object. Change var inObj:InteractiveObject to var inObj:SomeClassOrInterfaceThatHasADataProperty HTH; Amy
Re: [flexcoders] building a dataprovider in Java
In my opinion, You should use a List of some object defined by you. Then you create a correspondent object in ActionScript , put it in ArrayCollection and use its attributes in your chart as you wish. If you want to build something more generic I believe that you will have more trouble, but if you have available time... It's all up to you. HTH, PS On Wed, Apr 15, 2009 at 10:03 AM, netdeep deep...@chartertn.net wrote: I posted a few weeks back about how to create a chart dataprovider in Java to pass to Flex and the response I got back was to use Maps. I got sidetracked with other aspects of the code and now that I'm trying to code it, I am really drawing a blank. How would you create the following dataprovider in Java without using a custom object (i.e., the next data structure may have more or less elements than this one and I would need to use generic names for each data pair)? public var expenses:ArrayCollection = new ArrayCollection([ {Month:Jan, Profit:2000, Expenses:1500}, {Month:Feb, Profit:1000, Expenses:200}, {Month:Mar, Profit:1500, Expenses:500} ]); -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */
Re: [flexcoders] I need to set a label...???
Davidu change the loop var labelNames:Array = [{label:Button0},{label:Button1},{label:Button2}]; var radio00:RadioButton = new RadioButton(); radio00.label = get_labelstring(0); public function get_labelstring(i:int):String { if ( i labelNames.length) return labelNames[i].valueOf().label; } -- Regards, Paresh M. More Senior Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@gmail.com On Wed, Apr 15, 2009 at 5:56 PM, sailorsea21 sailorse...@yahoo.com wrote: Hi everyone, I need to set a label... The actual label is in a ArrayCollection. I can access is like this: parentApplication.MyLabelArray.getItemAt(0).label001 or parentApplication.MyLabelArray.getItemAt(0).label002 or parentApplication.MyLabelArray.getItemAt(0).label003 and so on... Is it possible to access the labels dynamically like this: var labelNames:Array = new Array(label001, label002, label003); for each(var getName:String in labelNames) { var radio00:RadioButton = new RadioButton(); radio00.label = this[parentApplication.MyLabelArray.getItemAt(0).getName; } I can't get this to work... Is there a better way to approach this? Thanks everyone! -David
[flexcoders] Mousewheel scrolling entire html page not swf.
Wondering if anyone else has run into this issue and found a solution? I have an application that allows the user to zoom in/ zoom out using the mousewheel. The issue is that once the swf is in the page the mousewheel ends up scrolling the entire html page. If you view the swf without the html page, thus just loading the swf into the browser, the mousewheel zoomin works fine. Anyone know how to setup the html page to give control up the swf?
[flexcoders] Re: BlazeDS data push over SSL
We got it working, not with the actual streaming but via long poll. we had to set the poll length to under 5 minutes in order to placate Weblogic, but otherwise it works fine. --- In flexcoders@yahoogroups.com, pratima_jrao pratima_j...@... wrote: I have an application that uses the data push technology of blazeDS to send data to a Flex Client event 5 seconds. The application works fine when I run it via HTTP with or without a proxy. When I run it via https the data push doesn't work anymore. I get the following error rootCause [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: https://localhost/admin/messagebroker/streamingamfsecure?command=openversion=1 Has anyone successfully got streaming to work over SSL? Thanks, Pratima
Re: [flexcoders] Re: New Adobe forums coming!
We attemted to turn on the updated email format last friday. Since I'm out of the office I haven't looked, but give it a shot. Matt Sent from a phone, pardon the brevity or typos. From: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Sent: Wed Apr 15 04:39:16 2009 Subject: Re: [flexcoders] Re: New Adobe forums coming! On Thursday 09 Apr 2009, Matt Chotin wrote: I got spell check in the rich text editor to work in Firefox on the Mac, it's the checkbox in the upper right corner and you have to turn it on. It seems to run about every 20 seconds or so, not quite as instant as Firefox. It doesn't know about all the words I've added to my local dictionary (obv.). 'wayyy' doesn't count as misspelled. Neither does 'tooo'. It's not even pre-loaded with Adobe product names. We're working on updating the subject to be shorter and I'm still trying to investigate fixing the header which is more important than fixing the subject line itself. Ace news ! And the body text will be changed to have the actual message at the top too ? -- Helping to authoritatively evolve revolutionary dot-com value-added cross-media materials as part of the IT team of the year, '09 and '08 [http://service48.mimecast.com/mimecast/store?code=17f8a8249e46f802b971ce9b92683063file=17880134] Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.commailto:tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.comhttp://www.Halliwells.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at 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] how to access legacy flex 1.5 AMF service using Java AMF client?
hi, The BlazeDS provides the Java AMF client to consume the amf service. The example is based on Flex2. But I have a legacy app built on Flex1.5, how can I access the amf service with Java? Is there anyone can help me? Thank you.
[flexcoders] flexmdi tile on restore
So I'm fairly new to flex. I'm trying to use flexmdi to manage my dashboard layout. I want to tile with fillSpace = true on the minimize, restore, and close events of a mdiWindow. A auto-layout if you will. The code below only works on minimize after a second window is minimized. It also works on the restore of windows, but the sizes are being saved so the restore is to the previous size and location and some of the other windows move. Thanks for any help. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:flexmdi=flexlib.mdi.containers.* layout=vertical creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.collections.ArrayCollection; import flexlib.mdi.events.MDIWindowEvent; import flexlib.mdi.events.MDIManagerEvent; import flexlib.mdi.effects.effectsLib.*; private function onCreationComplete():void { mdiCanvas.windowManager.tile(true, 10); mdiCanvas.windowManager.addEventListener(MDIManagerEvent.WINDOW_MINIMIZE, onWindowMinimize); mdiCanvas.windowManager.addEventListener(MDIManagerEvent.WINDOW_RESTORE, onWindowRestore); mdiCanvas.windowManager.addEventListener(MDIManagerEvent.WINDOW_CLOSE, onWindowClose); } private function onWindowMinimize(event:MDIManagerEvent):void { mdiCanvas.windowManager.tile(true, 10); } private function onWindowRestore(event:MDIManagerEvent):void { mdiCanvas.windowManager.tile(true, 10); } private function onWindowClose(event:MDIManagerEvent):void { mdiCanvas.windowManager.tile(true, 10); } ]] /mx:Script mx:VBox width=100% height=100% mx:ApplicationControlBar mx:Button id=btnTile label=Tile Windows click={mdiCanvas.windowManager.tile(true, 10)} / mx:Button id=btnCascade label=Cascade Windows click={mdiCanvas.windowManager.cascade()} / /mx:ApplicationControlBar flexmdi:MDICanvas id=mdiCanvas width=100% height=100% effectsLib={flexlib.mdi.effects.effectsLib.MDIVistaEffects} flexmdi:MDIWindow id=window1 width=300 height=300 title=chart 1 / flexmdi:MDIWindow id=window2 width=300 height=300 title=chart 2 / flexmdi:MDIWindow id=window3 width=300 height=300 title=chart 3 / flexmdi:MDIWindow id=window4 width=300 height=300 title=chart 4 / flexmdi:MDIWindow id=window5 width=300 height=300 title=chart 5 / flexmdi:MDIWindow id=window6 width=300 height=300 title=chart 6 / /flexmdi:MDICanvas /mx:VBox /mx:Application
[flexcoders] Is there a way to mock stage?
My scenario: a user can click on a full screen button which calls Presenter's setFullScreen() method. I'd like to unit test this method but am not sure how. If the unit test wasn't required, I would probably do something like this in my Presenter: public function setFullScreen() : void { view.stage.displayState = StageDisplayState.FULL_SCREEN; // 'view' is a reference to the screen which Presenter looks after } However, this is hard to test. If I try this: [Test] public function can_set_normal_screen_mode() : void { var settingsPresenter : SettingsPresenter = new SettingsPresenter(new SettingsViewStub()); settingsPresenter.setFullScreen; var view : UIComponent = UIComponent(settingsPresenter.view); assertTrue(view.stage.displayState == StageDisplayState.FULL_SCREEN); } I get null reference error because the view hasn't been added to a display list yet and therefore stage is null. I don't really want to add the stub view to the display list because that's not the point of testing a Presenter, is it? So I thought I would mock view.stage to contain my implementation of Stage but calling new Stage() or new MySubclassOfStage() fails because Stage can't be instantiated using the new keyword. Right now, I am thinking about moving the actual call to stage.displayState = ... to the View itself and just call this method from the presenter. I won't be able to test if stage's property has been set correctly (or at least not easily) but I can see no better way at the moment. Any suggestions? Thanks, Borek
[flexcoders] How Could I not map a property to lcds object ?
I am developping a J2EE/Flex Application and we recently decided to switch to hibernate to handle our database management strategy. The java/as mapping worked real smoothly before. All properties declared in java objects were also declared in as object. When switching to hibernate, i had to add some properties to the java objects, in order to have all my fields declared in the object. So now, the java object has more properties than the actionscript object and therefore, i get a #1056 error when creating the object (Cannot create property XXX on object myObject). I do not wish to add these missing properties in actionscript so this is why I would like to know how to not map a java attribute to it's actionscript-sided object. sorry about my english, frenchy @ work ... -- View this message in context: http://www.nabble.com/How-Could-I-%22not%22-map-a-property-to-lcds-object---tp23059499p23059499.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Refreshing Advanced data grid with respect to changes in database
Hi, I want to refesh the data at regular interval of time in advanced data grid.I am using remote object to access data java function which retrives data from data base.if any body knows the sln.please reply ThanksRegards, Pon
[flexcoders] Hook/Event when Item Renderers visible in List?
Looking for an event/hook where non-visible item renderers are made visible. Item Renderers apparently don't respond to: 1. creationComplete (only works for the first group visible on list creation) 2. override set data (same)
Re: [flexcoders] I need to set a label...???
- Original Message - From: sailorsea21 sailorse...@yahoo.com To: flexcoders@yahoogroups.com Sent: Wednesday, April 15, 2009 1:26 PM Subject: [flexcoders] I need to set a label...??? Hi everyone, I need to set a label... The actual label is in a ArrayCollection. I can access is like this: parentApplication.MyLabelArray.getItemAt(0).label001 or parentApplication.MyLabelArray.getItemAt(0).label002 or parentApplication.MyLabelArray.getItemAt(0).label003 and so on... Is it possible to access the labels dynamically like this: var labelNames:Array = new Array(label001, label002, label003); for each(var getName:String in labelNames) { var radio00:RadioButton = new RadioButton(); radio00.label = this[parentApplication.MyLabelArray.getItemAt(0).getName; } I can't get this to work... Is there a better way to approach this? How about: parentApplication.MyLabelArray.getItemAt(0)[label003] Paul Thanks everyone! -David -- 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: New Adobe forums coming!
On Wednesday 15 Apr 2009, Matt Chotin wrote: We attemted to turn on the updated email format last friday. Since I'm out of the office I haven't looked, but give it a shot. That explains the change of subject lines :-) The body text is a lot better now, cheers ! Dropping 'New message:' is a big help (as it's obvious !), but what's the cryptic square-bracket part for ? No other web-to-email system I use needs this, for instance Adobe's own pre-release system. Maybe this is because that system supports 'in-reply-to' and 'references' headers, in which case these additions can be removed once the headers are fixed ? -- Helping to continually improve scalable web-enabled paradigms as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at 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.com.
Re: [flexcoders] Re: New Adobe forums coming!
Yeah, I'm hoping if we fix headers we may get that part out. However it will take a while for that to happen because it will likely require an update to Jive. Matt Sent from a phone, pardon the brevity or typos. From: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Sent: Wed Apr 15 07:19:10 2009 Subject: Re: [flexcoders] Re: New Adobe forums coming! On Wednesday 15 Apr 2009, Matt Chotin wrote: We attemted to turn on the updated email format last friday. Since I'm out of the office I haven't looked, but give it a shot. That explains the change of subject lines :-) The body text is a lot better now, cheers ! Dropping 'New message:' is a big help (as it's obvious !), but what's the cryptic square-bracket part for ? No other web-to-email system I use needs this, for instance Adobe's own pre-release system. Maybe this is because that system supports 'in-reply-to' and 'references' headers, in which case these additions can be removed once the headers are fixed ? -- Helping to continually improve scalable web-enabled paradigms as part of the IT team of the year, '09 and '08 [http://service47.mimecast.com/mimecast/store?code=17f8a8249e46f802b971ce9b92683063file=17880134] Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.commailto:tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.comhttp://www.Halliwells.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at 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.
Re: [flexcoders] I need to set a label...???
Hi Paresh Paul, both your ideas worked! Thanks again :) From: Paul Andrews p...@ipauland.com To: flexcoders@yahoogroups.com Sent: Wednesday, April 15, 2009 10:08:48 AM Subject: Re: [flexcoders] I need to set a label...??? - Original Message - From: sailorsea21 sailorsea21@ yahoo.com To: flexcod...@yahoogro ups.com Sent: Wednesday, April 15, 2009 1:26 PM Subject: [flexcoders] I need to set a label...??? Hi everyone, I need to set a label... The actual label is in a ArrayCollection. I can access is like this: parentApplication. MyLabelArray. getItemAt( 0).label001 or parentApplication. MyLabelArray. getItemAt( 0).label002 or parentApplication. MyLabelArray. getItemAt( 0).label003 and so on... Is it possible to access the labels dynamically like this: var labelNames:Array = new Array(label001 , label002, label003); for each(var getName:String in labelNames) { var radio00:RadioButton = new RadioButton( ); radio00.label = this[parentApplicat ion.MyLabelArray .getItemAt( 0).getName; } I can't get this to work... Is there a better way to approach this? How about: parentApplication. MyLabelArray. getItemAt( 0)[label003 ] Paul Thanks everyone! -David - - -- -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Alternative FAQ location: https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- b4cf-1e62079f684 7 Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups Links
[flexcoders] chart axis renderers
Hello, Is there a simple way to have axis rendered upon the series area, as overlays, so the whole chart area could display datapoints ? thomas -- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056
Re: [flexcoders] Flex Developer Needed (Fulltime)
Good luck getting a senior level Flex dev for that pay range. Most senior level guys I know are getting between 100-120k. Granted, that's in Chicago, not the middle of Utah. On Tue, Apr 14, 2009 at 2:37 PM, joshbuhler joshbuh...@gmail.com wrote: Rain in American Fork, Utah is currently looking for a (preferably senior level) Flex developer. This is a full-time position, with great benefits. Details can be found at: http://mediarain.com/us/employment/flexdeveloper
[flexcoders] Re: ItemRenderer frustration! - What to invalidate??
Did you try myXMLListCollection.refresh() ? --- In flexcoders@yahoogroups.com, oopdog oop...@... wrote: I was given the answer - I'll share it in case it helps anyone else. It was to use callLater callLater(myDataGrid.invalidateList); On Wed, Apr 15, 2009 at 12:20 PM, oopdog oop...@... wrote: Hello there, I have a DataGrid and one of the columns contains a custom CheckBox (item renderer/editor). When the user selects the CheckBox I want to over-ride a value in another column. The problem is that the value of the other column is not updating until AFTER the user has selected a different row or has taken focus away from the DataGrid by clicking on something else, but I would really like the column to update as soon as the CheckBox has been checked. Currently this is what I have: 1) User clicks checkbox ( I capture the 'onItemBegin' event and check that it's the CheckBox which is being edited... if (event.itemRenderer is CheckBox) ... 2) I examine the underlying data (in this case it's an XMLListCollection) and if conditions are correct I change the value of my data property, then call myDataGrid.invalidateList(); Nothing seems to update the DataGrid visually until the user has clicked something else! I have tried calling all the invalidation methods I can think of, as well as validateNow() So frustrated! Please help.
[flexcoders] Re: Refreshing Advanced data grid with respect to changes in database
myDataGridArrayCollection.refresh() ? --- In flexcoders@yahoogroups.com, v.ponvino pon_v...@... wrote: Hi, I want to refesh the data at regular interval of time in advanced data grid.I am using remote object to access data java function which retrives data from data base.if any body knows the sln.please reply ThanksRegards, Pon
[flexcoders] Re: How Could I not map a property to lcds object ?
If it were me, I would leave the java and as objects as they were and create a new class extending the java object. Now you can add all the properties that hibernate wants and send it. --- In flexcoders@yahoogroups.com, ouaqa a...@... wrote: I am developping a J2EE/Flex Application and we recently decided to switch to hibernate to handle our database management strategy. The java/as mapping worked real smoothly before. All properties declared in java objects were also declared in as object. When switching to hibernate, i had to add some properties to the java objects, in order to have all my fields declared in the object. So now, the java object has more properties than the actionscript object and therefore, i get a #1056 error when creating the object (Cannot create property XXX on object myObject). I do not wish to add these missing properties in actionscript so this is why I would like to know how to not map a java attribute to it's actionscript-sided object. sorry about my english, frenchy @ work ... -- View this message in context: http://www.nabble.com/How-Could-I-%22not%22-map-a-property-to-lcds-object---tp23059499p23059499.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] My Space API / FetchPersonRequest
hi there, I was trying to build a widget at myspace.com , I have read the doc at http://wiki.developer.myspace.com/index.php?title=Official_OpenSocial_Ac\ tionScript3_Library I got an error null for the fields object, I did some invesgation with the code, it looks like the INITcouldn't be set successfully == MySpaceContainer.instance.init(osToken, osSurfaceName); Does anyone had this error before? I appreciate for any hints. Thank you ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.Grouping; import MyOpenSpace.* import opensocial.* public function getViewer():void { var osToken:String = Application.application.parameters.openSocial_token; var osSurfaceName:String = Application.application.parameters.openSocial_surface; MySpaceContainer.instance.init(osToken, osSurfaceName); var dr:MSDataRequest = opensocial.newDataRequest() as MyOpenSpace.MSDataRequest; dr.add(dr.newFetchPersonRequest('VIEWER', ['BOOKS']), 'ViewerPerson'); dr.send(onLoadPerson); } public function onLoadPerson(dataResponse:DataResponse):void { var person:Person = opensocial.Person(dataResponse.get('ViewerPerson').getData()); var fields:Object = person.getFields(); } ]] /mx:Script mx:Button label=Get Person click=getViewer();/ /mx:Application
[flexcoders] Re: My Space API / FetchPersonRequest
The formatting looks odd here. You may click the link to view the code. http://www.privatepaste.com/441BSlgBV7 Thanks --- In flexcoders@yahoogroups.com, flexawesome flexawes...@... wrote: hi there, I was trying to build a widget at myspace.com , I have read the doc at http://wiki.developer.myspace.com/index.php?title=Official_OpenSocial_Ac\ tionScript3_Library I got an error null for the fields object, I did some invesgation with the code, it looks like the INITcouldn't be set successfully == MySpaceContainer.instance.init(osToken, osSurfaceName); Does anyone had this error before? I appreciate for any hints. Thank you ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.Grouping; import MyOpenSpace.* import opensocial.* public function getViewer():void { var osToken:String = Application.application.parameters.openSocial_token; var osSurfaceName:String = Application.application.parameters.openSocial_surface; MySpaceContainer.instance.init(osToken, osSurfaceName); var dr:MSDataRequest = opensocial.newDataRequest() as MyOpenSpace.MSDataRequest; dr.add(dr.newFetchPersonRequest('VIEWER', ['BOOKS']), 'ViewerPerson'); dr.send(onLoadPerson); } public function onLoadPerson(dataResponse:DataResponse):void { var person:Person = opensocial.Person(dataResponse.get('ViewerPerson').getData()); var fields:Object = person.getFields(); } ]] /mx:Script mx:Button label=Get Person click=getViewer();/ /mx:Application
Re: [flexcoders] How Could I not map a property to lcds object ?
This is an option but i was wondering if you couldn't use some special ninja keyword telling lcds not to map the field to lcds. Still, thanks for the suggestion, valdhor valdhor-3 wrote: If it were me, I would leave the java and as objects as they were and create a new class extending the java object. Now you can add all the properties that hibernate wants and send it. --- In flexcoders@yahoogroups.com, ouaqa a...@... wrote: I am developping a J2EE/Flex Application and we recently decided to switch to hibernate to handle our database management strategy. The java/as mapping worked real smoothly before. All properties declared in java objects were also declared in as object. When switching to hibernate, i had to add some properties to the java objects, in order to have all my fields declared in the object. So now, the java object has more properties than the actionscript object and therefore, i get a #1056 error when creating the object (Cannot create property XXX on object myObject). I do not wish to add these missing properties in actionscript so this is why I would like to know how to not map a java attribute to it's actionscript-sided object. sorry about my english, frenchy @ work ... -- View this message in context: http://www.nabble.com/How-Could-I-%22not%22-map-a-property-to-lcds-object---tp23059499p23059499.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/How-Could-I-%22not%22-map-a-property-to-lcds-object---tp23059499p23061699.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] employees.xml
Anyone know where I can get a copy of the employees.xml that Flex in a Week training uses? I like the vidoes but I learn easier playing around. Thanks
[flexcoders] Creating ArrayCollection from returned AMFPHP data
I am using amfphp to return a complex object / multi-dimensional array. In the past, I have been able to simply create an ArrayCollection of the returned results by doing the following: public function result(event:ResultEvent):void { var resources_ac:ArrayCollection = new ArrayCollection() resources_ac = event.result as ArrayCollection } In this particular case, if I try this method, the ArrayCollection does not contain any items. In order to create the ArrayCollection, I have done the following: var resources_arr:Array = new Array() for(var i:String in event.result) { event.result[i] = new ObjectProxy(event.result[i]); resources_arr.push(event.result[i]) } resources_ac.source = resources_arr; I am guessing it has to do with the fact that the returned item is a multi-dimensional array/complex object? While this method seems to work fine, is it the best/proper way to handle this type of returned data? Thanks for the insight.
Re: [flexcoders] building a dataprovider in Java
You probably want a List of Maps. Is this coming from a ResultSet from jdbc? In Java-ish pseudo-code, you'd do something like this: - ListMapString,Object list = new ArrayListMapString,Object(); - For each row in the result set -- MapString,Object row = new HashMap(); -- For each column in the result set metadata --- row.put(column name, row value) -- list.add(row) and then return the list to Flex. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: netdeep deep...@chartertn.net Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] building a dataprovider in Java Date: Wed, 15 Apr 2009 13:03:03 - I posted a few weeks back about how to create a chart dataprovider in Java to pass to Flex and the response I got back was to use Maps. I got sidetracked with other aspects of the code and now that I'm trying to code it, I am really drawing a blank. How would you create the following dataprovider in Java without using a custom object (i.e., the next data structure may have more or less elements than this one and I would need to use generic names for each data pair)? public var expenses:ArrayCollection = new ArrayCollection([ {Month:Jan, Profit:2000, Expenses:1500}, {Month:Feb, Profit:1000, Expenses:200}, {Month:Mar, Profit:1500, Expenses:500} ]);
Re: [flexcoders] employees.xml
Isn't there a download for the assets for that lesson? Paul - Original Message - From: Greg Morphis gmorp...@gmail.com To: flexcoders@yahoogroups.com Sent: Wednesday, April 15, 2009 4:58 PM Subject: [flexcoders] employees.xml Anyone know where I can get a copy of the employees.xml that Flex in a Week training uses? I like the vidoes but I learn easier playing around. 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] Re: Mate and sharing data across files
How does class-caching differ from the Singleton pattern? -TH --- In flexcoders@yahoogroups.com, Romuald Quantin soundstep.mail...@... wrote: Mate is not using Singleton but class-caching if I understood well. Romu Tim Hoff wrote: Hi Seona, Let's start by taking a deep breath and don't freak out. Ok, wheeew! Mate is a little different than typical MVC; in that it seperates the model into managers and presentation models (a manager holds data and a presentation model holds an instance of the needed data and controls constituant views). Let me elaborate a little, in that these two factions of the model are also smart models; they don't just sit by and hold data., they can also manipulate data/state as well. Yes, both managers and presentation models are singletons; thus they persist. If you place your user data in a userManager, then you can easily inject that data into whatever object you want, be it a view or a presentation model, via a map. I know that there aren't a lot of mate examples out there yet. But, please be patient; more are coming.. -TH --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Seona Bellamy seona@ wrote: Hi guys, I'm not sure that the subject line is all that clear, but I honestly can't think of how best to express it. My brain's just really tied in a knot over this one. Bear with me for a moment and I'll try and explain where I'm coming from and what I'm trying to do. I'm pretty new to Flex as a whole, and have been trying to rework an existing app into the Mate framework. The original app was built when both myself and the other developer were just learning Flex (actually, we learned as we went along) and it quickly spiralled out of control into this complete nightmare of code. It's been decided that Mate is going to be our framework of choice for future Flex development, so I decided to start trying to rebuild our app in it as a learning exercise. I used the Cafe Townsend example ( http://mate.asfusion.com/page/examples/cafe-townsend http://mate.asfusion.com/page/examples/cafe-townsend) as a basis, and started off. So far so good - I managed to build a login interface, get the login function to call a CFC that looks up the details in the DB, and pass the user off to the main interface if they were in the DB. My problem now comes when I try to populate the main interface with the user's data. This would involve making more calls to other CFCs, passing them the user's ID, and getting back the records that are associated with the current user. The Cafe Townsend example didn't really help much with this, since once you're logged in you're logged in and it doesn't really do anything else with that information. I hunted around a bit and decided that the closest I could find to something that might do what I need is a Model and Injectors. The Weather Widget example ( http://mate.asfusion.com/page/examples/weather-widget http://mate.asfusion.com/page/examples/weather-widget) works with this, and I tried working it into what I had, but I suspect I've tied myself in a bit of a knot. Despite the fact that FlexBuilder is not flagging any errors, the app crashes the browser every time to try to run it. So I'm obviously doing something wrong. I just can't figure out what. So to summarise: how do I go about storing some data in such a way that it will be accessible to other parts of my application? For example, the user data that is brought back by an event in the MainEventMap needs to be visible to events in the UserEventMap. For that matter, are there any other decent examples out there besides the ones on the Mate website? Cheers, Seona.
Re: [flexcoders] employees.xml
it has roomlist.xml in it.. rooms room nameColorado Room/name roomsize20x20/roomsize cateringserviceYes/cateringservice restroomlocationWestside near elevator/restroomlocation capacity150/capacitywindowsSouth wall all glass, garden view/windows wheelchair_accessibleYes/wheelchair_accessible publictelephone_locationEntry level: North wall/publictelephone_locationeventtypeseventWedding/event eventSeminar/event eventConference/event eventDinner Party/event eventDance/event eventMeeting/event/eventtypes maxroundtables15/maxroundtables maxsquaretables10/maxsquaretables roomimagecolorado.jpg/roomimage/room room nameMile High Room/name roomsize25x30/roomsize cateringserviceYes/cateringservice restroomlocationWestside near elevator/restroomlocation capacity100/capacity windowsOne window, north wall/windows wheelchair_accessibleYes/wheelchair_accessible publictelephone_locationEntry level: North wall/publictelephone_location eventtypeseventWedding/event eventSeminar/event eventDinner Party/event eventDance/event eventMeeting/event/eventtypes maxroundtables10/maxroundtables maxsquaretables8/maxsquaretables roomimagemilehigh.jpg/roomimage/room room ... ... But no employees.xml On Wed, Apr 15, 2009 at 11:14 AM, Paul Andrews p...@ipauland.com wrote: Isn't there a download for the assets for that lesson? Paul
Re: [flexcoders] employees.xml
Ah. Perhaps you can reverse-engineer the file from the lesson? Paul - Original Message - From: Greg Morphis gmorp...@gmail.com To: flexcoders@yahoogroups.com Sent: Wednesday, April 15, 2009 5:41 PM Subject: Re: [flexcoders] employees.xml it has roomlist.xml in it.. rooms room nameColorado Room/name roomsize20x20/roomsize cateringserviceYes/cateringservice restroomlocationWestside near elevator/restroomlocation capacity150/capacitywindowsSouth wall all glass, garden view/windows wheelchair_accessibleYes/wheelchair_accessible publictelephone_locationEntry level: North wall/publictelephone_locationeventtypeseventWedding/event eventSeminar/event eventConference/event eventDinner Party/event eventDance/event eventMeeting/event/eventtypes maxroundtables15/maxroundtables maxsquaretables10/maxsquaretables roomimagecolorado.jpg/roomimage/room room nameMile High Room/name roomsize25x30/roomsize cateringserviceYes/cateringservice restroomlocationWestside near elevator/restroomlocation capacity100/capacity windowsOne window, north wall/windows wheelchair_accessibleYes/wheelchair_accessible publictelephone_locationEntry level: North wall/publictelephone_location eventtypeseventWedding/event eventSeminar/event eventDinner Party/event eventDance/event eventMeeting/event/eventtypes maxroundtables10/maxroundtables maxsquaretables8/maxsquaretables roomimagemilehigh.jpg/roomimage/room room ... ... But no employees.xml On Wed, Apr 15, 2009 at 11:14 AM, Paul Andrews p...@ipauland.com wrote: Isn't there a download for the assets for that lesson? Paul -- 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: Hook/Event when Item Renderers visible in List?
Hi, There aren't any non-visible itemRenderers in a list; except for maybe one extra at the bottom. ItemRenderers are recycled; meaning that they are reused with just the data changing. When a list is scrolled, you should be able to catch the data change in the set data method. -TH --- In flexcoders@yahoogroups.com, liu_bai_un brian...@... wrote: Looking for an event/hook where non-visible item renderers are made visible. Item Renderers apparently don't respond to: 1. creationComplete (only works for the first group visible on list creation) 2. override set data (same)
Re: [flexcoders] anyone know of a good (free) flex component for playing video/swfs?
Depending on what you are doing, this could be a very bad idea. Loading an FLV is simple and easy. SWFs are very different, especially if it is outward facing, like people loading their own SWFs. What if the SWF wants its own controls? Will your wrapper/player assume a timeline-based playback only? If it's actionscript-based, how would you control it, or show progress? What if it's AS2, and you are loading it inside Flex? Will you maintain it to support newer versions of Flash later? What about FLVs embedded in the SWF timeline? Or Externally loaded FLVs from a SWF? I can think of dozens of reasons why this can become a nightmare trying to support infinite SWFs from your finite player. It sounds like a good thing to do, and a easy request to make. But when it comes to implementation and support, you have some serious questions to ask yourself. That's why you're not getting responses to a simple, one-size-fits-all Flex component for controlling SWFs. I would not recommend creating a Flex app with a customer expectation that it will load and control any SWF they can throw at it. You may want to consider just loading video files, FLVs and h.264 It's easy to support and it sounds like that's what you're trying to do in the first place. -- Cole - Original Message From: gmoniey22 gmonie...@yahoo.com To: flexcoders@yahoogroups.com Sent: Monday, April 13, 2009 7:34:31 PM Subject: [flexcoders] anyone know of a good (free) flex component for playing video/swfs? I'm looking for a simply (and reliable) flex component which can play a flv or a swf and has the basic controls (Play/Pause/Progress bar) Any suggestions? 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] Re: employees.xml
Try.. http://forums.adobe.com/message/231815#231815 or http://www.adobe.com/devnet/flex/articles/datamodel_09.html --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote: Anyone know where I can get a copy of the employees.xml that Flex in a Week training uses? I like the vidoes but I learn easier playing around. Thanks
[flexcoders] Re: Creating ArrayCollection from returned AMFPHP data
I tend to use the Array Utils... var myArrColl:ArrayCollection; myArrColl = new ArrayCollection(ArrayUtil.toArray(event.result)); --- In flexcoders@yahoogroups.com, azona26 azsl1326-em...@... wrote: I am using amfphp to return a complex object / multi-dimensional array. In the past, I have been able to simply create an ArrayCollection of the returned results by doing the following: public function result(event:ResultEvent):void { var resources_ac:ArrayCollection = new ArrayCollection() resources_ac = event.result as ArrayCollection } In this particular case, if I try this method, the ArrayCollection does not contain any items. In order to create the ArrayCollection, I have done the following: var resources_arr:Array = new Array() for(var i:String in event.result) { event.result[i] = new ObjectProxy(event.result[i]); resources_arr.push(event.result[i]) } resources_ac.source = resources_arr; I am guessing it has to do with the fact that the returned item is a multi-dimensional array/complex object? While this method seems to work fine, is it the best/proper way to handle this type of returned data? Thanks for the insight.
[flexcoders] relationship of mxml child tags and actionscript
Hi, I am still looking for some general documentations about the guidelines as to how to write ActionScript custom components. It's clear that you can expose public properties, styles and event listeners of your custom components as MXML properties. But what are the general rules if I want to allow my client developers to define a property in my custom component using a MXML child tag (as opposed to a property)? Like this: my:MyComp my:myChild color=0xFF width=300 mx:Label text={data}/ /my:myChild /my:MyComp Again, I am looking for _general_ guidelines. Thanks much. -geng
[flexcoders] Re: Creating ArrayCollection from returned AMFPHP data
That will work! Thank you very much. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I tend to use the Array Utils... var myArrColl:ArrayCollection; myArrColl = new ArrayCollection(ArrayUtil.toArray(event.result)); --- In flexcoders@yahoogroups.com, azona26 azsl1326-email@ wrote: I am using amfphp to return a complex object / multi-dimensional array. In the past, I have been able to simply create an ArrayCollection of the returned results by doing the following: public function result(event:ResultEvent):void { var resources_ac:ArrayCollection = new ArrayCollection() resources_ac = event.result as ArrayCollection } In this particular case, if I try this method, the ArrayCollection does not contain any items. In order to create the ArrayCollection, I have done the following: var resources_arr:Array = new Array() for(var i:String in event.result) { event.result[i] = new ObjectProxy(event.result[i]); resources_arr.push(event.result[i]) } resources_ac.source = resources_arr; I am guessing it has to do with the fact that the returned item is a multi-dimensional array/complex object? While this method seems to work fine, is it the best/proper way to handle this type of returned data? Thanks for the insight.
Re: [flexcoders] Re: New Adobe forums coming!
Matt Chotin wrote: We attemted to turn on the updated email format last friday. Since I'm out of the office I haven't looked, but give it a shot. the new email is cleaner but any messages replied to via email (tbird ) gets rendered as blank if you quote the original message. unpleasant surprise.
RE: [flexcoders] Re: ItemRenderer frustration! - What to invalidate??
XMLListCollection.refresh is not intended to work in this case. refresh just causes the filter or sort to be re-applied. If it works to refresh the UI, it is by accident. The documented way to handle this issue is to use the collection API to make the update, or, if you directly set a property on an item, call collection.itemUpdated(item) Tracy Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Wednesday, April 15, 2009 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ItemRenderer frustration! - What to invalidate?? Did you try myXMLListCollection.refresh() ? --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, oopdog oop...@... wrote: I was given the answer - I'll share it in case it helps anyone else. It was to use callLater callLater(myDataGrid.invalidateList); On Wed, Apr 15, 2009 at 12:20 PM, oopdog oop...@... wrote: Hello there, I have a DataGrid and one of the columns contains a custom CheckBox (item renderer/editor). When the user selects the CheckBox I want to over-ride a value in another column. The problem is that the value of the other column is not updating until AFTER the user has selected a different row or has taken focus away from the DataGrid by clicking on something else, but I would really like the column to update as soon as the CheckBox has been checked. Currently this is what I have: 1) User clicks checkbox ( I capture the 'onItemBegin' event and check that it's the CheckBox which is being edited... if (event.itemRenderer is CheckBox) ... 2) I examine the underlying data (in this case it's an XMLListCollection) and if conditions are correct I change the value of my data property, then call myDataGrid.invalidateList(); Nothing seems to update the DataGrid visually until the user has clicked something else! I have tried calling all the invalidation methods I can think of, as well as validateNow() So frustrated! Please help.
[flexcoders] Preserving cookies sent by the server?
Is there any way to read the set-cookie header from an URLRequest response so my Flex app can save a cookie being sent by the server? I know how to write a cooking using ExternalInterface, but I am wondering if there is any way to know when the server is asking me to write a cookie. All documentation I can find online points to no, but I just wanted to make sure. Thanks
RE: [flexcoders] Re: Refreshing Advanced data grid with respect to changes in database
The collection refresh method is not intended for this. If it works it is by accident. If you re-assign the data to the dataProvider property, or the bindable variable, the UI will update in its entirety. If you are updating only parts of the data, use the collection API. If you assign a property value on an item directly, use the collection itemUpdated() method Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Wednesday, April 15, 2009 11:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Refreshing Advanced data grid with respect to changes in database myDataGridArrayCollection.refresh() ? --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, v.ponvino pon_v...@... wrote: Hi, I want to refesh the data at regular interval of time in advanced data grid.I am using remote object to access data java function which retrives data from data base.if any body knows the sln.please reply ThanksRegards, Pon
RE: [flexcoders] Re: Hook/Event when Item Renderers visible in List?
Yep, and to follow on a bit: When working with data driven controls, like List, Tree, DataGrid, you always work with the *underlying data*, almost never with the rendered UI item instances. Do not attempt to create an interactive itemRenderer from scratch unless you are an expert. Find an example, thare many, and modify it to fit your needs. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 15, 2009 12:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Hook/Event when Item Renderers visible in List? Hi, There aren't any non-visible itemRenderers in a list; except for maybe one extra at the bottom. ItemRenderers are recycled; meaning that they are reused with just the data changing. When a list is scrolled, you should be able to catch the data change in the set data method. -TH --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, liu_bai_un brian...@... wrote: Looking for an event/hook where non-visible item renderers are made visible. Item Renderers apparently don't respond to: 1. creationComplete (only works for the first group visible on list creation) 2. override set data (same)
[flexcoders] Re: How Could I not map a property to lcds object ?
--- In flexcoders@yahoogroups.com, ouaqa a...@... wrote: This is an option but i was wondering if you couldn't use some special ninja keyword telling lcds not to map the field to lcds. Transient?
RE: [flexcoders] I need to set a label...???
Where is it failing? If you step into your getName() method, does it find and return the correct value? You have implemented such a method on your item class, correct? Further, you declare an initialize the array labelNames, but never use it. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of sailorsea21 Sent: Wednesday, April 15, 2009 8:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] I need to set a label...??? Hi everyone, I need to set a label... The actual label is in a ArrayCollection. I can access is like this: parentApplication.MyLabelArray.getItemAt(0).label001 or parentApplication.MyLabelArray.getItemAt(0).label002 or parentApplication.MyLabelArray.getItemAt(0).label003 and so on... Is it possible to access the labels dynamically like this: var labelNames:Array = new Array(label001, label002, label003); for each(var getName:String in labelNames) { var radio00:RadioButton = new RadioButton(); radio00.label = this[parentApplication.MyLabelArray.getItemAt(0).getName; } I can't get this to work... Is there a better way to approach this? Thanks everyone! -David
[flexcoders] Re: anyone know of a good (free) flex component for playing video/swfs?
--- In flexcoders@yahoogroups.com, Cole Joplin cole_jop...@... wrote: Depending on what you are doing, this could be a very bad idea. Loading an FLV is simple and easy. SWFs are very different, especially if it is outward facing, like people loading their own SWFs. What if the SWF wants its own controls? Will your wrapper/player assume a timeline-based playback only? If it's actionscript-based, how would you control it, or show progress? If you make any swf you're trying to load implement the same interface, this is pretty easy to handle. http://flexdiary.blogspot.com/2009/01/example-of-casting-contets-of-swfloader.html -Amy
[flexcoders] Re: How Could I not map a property to lcds object ?
Yep, here's an example: private var _myProperty:String; [Transient] [Bindable( event=myPropertyChange )] /** * myProperty. * @private */ public function get myProperty():String { return _myProperty; } /** @private */ public function set myProperty( value:String ):void { _myProperty = value; dispatchEvent( new Event( myPropertyChange ) ); } -TH --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, ouaqa ab@ wrote: This is an option but i was wondering if you couldn't use some special ninja keyword telling lcds not to map the field to lcds. Transient?
[flexcoders] Is it possible to do a right-click ContextMenu for a TabNavigator tab?
I have a requirement where a user can right-click any one of the tabs and have options to delete, duplicate, disable, etc. The tabs (children) of the mx:TabNavigator are VBoxs, and the tab name is pulled from the label attribute of the VBox. I can't put the ContextMenu against the VBox otherwise the entire area of the opened tab has the right-click menu. In fact, the ContextMenu only shows for the display area below the tab (not including the tab). Any ideas? thanks in advance for your help.
[flexcoders] Sub-applications and service calls
I have a large Flex 3.3 application configured to use LCDS within a JBOSS war. I've setup RemoteObject declarations using Cairngorm's ServiceLocator pattern. The application works great and is able to send and receive data on it's own just perfectly. I also have a separate smaller Flex 3.3 application in a different war configured similarly. Although both applications can be used individually, I'd like to load the smaller application into the first, larger application using SWFLoader (and setting the LoaderContext to use a new ApplicationDomain). Unfortunately, the sub-application cannot make any service calls now and I'm at a loss. I figure it might be some sort of sandbox issue but I'm not sure. The exception thrown via JBOSS looks like this: No destination with id 'null' is registered with any service. and the runtime exception in the browser looks like this: TypeError: Error #1034: Type Coercion failed: cannot convert obj...@1b434ad9 to mx.messaging.messages.ErrorMessage. Has anyone else run into this same situation?
[flexcoders] air: file upload (to sesame vault)
hey all I'm building an air app that will upload to sesame vault (I hope). It appears to work -- shows a file progress -- but upon completion throws a response that the user isn't logged in. In speaking to someone at Sesame Vault I was told: As for the body - when you are making a post request the body must be filled in. In your case, its a multi-part encoded form containing the actual data of the file you are uploading. Is this the way that File.upload() works? I've been trying to watch sockets using Charles on the mac but couldn't tell exactly how the upload is going out... Any help is greatly appreciated.
Re: [flexcoders] Sub-applications and service calls
Hi, In my opinion you should try to change your small application to a flex module. You could develop a very small shell that load this module, to use it standalone, and when using it from your big app, you simply loads this module. Just take care when you use this together: Cairngorm and Modules. PS On Wed, Apr 15, 2009 at 3:53 PM, Erich Cervantez f...@noofusion.com wrote: I have a large Flex 3.3 application configured to use LCDS within a JBOSS war. I've setup RemoteObject declarations using Cairngorm's ServiceLocator pattern. The application works great and is able to send and receive data on it's own just perfectly. I also have a separate smaller Flex 3.3 application in a different war configured similarly. Although both applications can be used individually, I'd like to load the smaller application into the first, larger application using SWFLoader (and setting the LoaderContext to use a new ApplicationDomain). Unfortunately, the sub-application cannot make any service calls now and I'm at a loss. I figure it might be some sort of sandbox issue but I'm not sure. The exception thrown via JBOSS looks like this: No destination with id 'null' is registered with any service. and the runtime exception in the browser looks like this: TypeError: Error #1034: Type Coercion failed: cannot convert obj...@1b434ad9 to mx.messaging.messages.ErrorMessage. Has anyone else run into this same situation? -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */
[flexcoders] Custom DataTip function and mouse cursor. Little gray forking lines.
I was wondering if anyone has seen an example or can tell me if I am on the correct track regarding datatips. What I am trying to achieve is create a line chart with two data series, thus two lines. The chart height will be low, like Edward Tuft's sparklines (google it if you aren't familiar). When the user mouses over the chart I want to send both data point of data for both the series to a datatip function. I then want nothing to show up for the datatip (blank and no gray lines forking out), as I am sending that hitData info to a function that displays the data series points on another panel. So far I have created a custom dataTipRenderer, that is empty, but I still get the gray lines forking out point to my empty/blank renderer. So it looks like a gray line sticking out to nothing. Second issue is that I always want both series to send their data to my datatip function. Sometimes it sends both if the mouse pointer happens to touch both lines. I was thinking if I make a custom mouse pointer for just the chart that is a long vertical line it will always touch both data points, which solves that problem. Unless anyone has another idea? The second issue with the gray forking lines I can't seem to get rid of those little suckers. Any ideas?
[flexcoders] Re: Flex Developer Needed (Fulltime)
Senior guys in Austin are 90k. --- In flexcoders@yahoogroups.com, Nick Collins ndcoll...@... wrote: Good luck getting a senior level Flex dev for that pay range. Most senior level guys I know are getting between 100-120k. Granted, that's in Chicago, not the middle of Utah. On Tue, Apr 14, 2009 at 2:37 PM, joshbuhler joshbuh...@... wrote: Rain in American Fork, Utah is currently looking for a (preferably senior level) Flex developer. This is a full-time position, with great benefits. Details can be found at: http://mediarain.com/us/employment/flexdeveloper
RE: [flexcoders] Is it possible to do a right-click ContextMenu for a TabNavigator tab?
Consider TabBar and Viewstack, it is more flexible than TabNavigator. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of e_baggg Sent: Wednesday, April 15, 2009 2:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is it possible to do a right-click ContextMenu for a TabNavigator tab? I have a requirement where a user can right-click any one of the tabs and have options to delete, duplicate, disable, etc. The tabs (children) of the mx:TabNavigator are VBoxs, and the tab name is pulled from the label attribute of the VBox. I can't put the ContextMenu against the VBox otherwise the entire area of the opened tab has the right-click menu. In fact, the ContextMenu only shows for the display area below the tab (not including the tab). Any ideas? thanks in advance for your help.
Re: [flexcoders] Re: New Adobe forums coming!
Yeah, make sure you eliminate any repeating dashes, the system parses them and stops reading. Some other patterns too I'm sure that I don't know. Matt Sent from a phone, pardon the brevity or typos. From: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Sent: Wed Apr 15 10:26:30 2009 Subject: Re: [flexcoders] Re: New Adobe forums coming! Matt Chotin wrote: We attemted to turn on the updated email format last friday. Since I'm out of the office I haven't looked, but give it a shot. the new email is cleaner but any messages replied to via email (tbird ) gets rendered as blank if you quote the original message. unpleasant surprise.
Re: [flexcoders] Re: Flex Developer Needed (Fulltime)
Lots of considerations in compensation not the least of which are location of job, cost of living in that area, and experience of person be hired. I question the wisdom of publicly calling a company out on that one aspect of their compensation scheme. flexaustin wrote: Senior guys in Austin are 90k. --- In flexcoders@yahoogroups.com, Nick Collins ndcoll...@... wrote: Good luck getting a senior level Flex dev for that pay range. Most senior level guys I know are getting between 100-120k. Granted, that's in Chicago, not the middle of Utah. On Tue, Apr 14, 2009 at 2:37 PM, joshbuhler joshbuh...@... wrote: Rain in American Fork, Utah is currently looking for a (preferably senior level) Flex developer. This is a full-time position, with great benefits. Details can be found at: http://mediarain.com/us/employment/flexdeveloper -- 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 -- 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
Re: [flexcoders] Re: Flex Developer Needed (Fulltime)
Hehe, well, everything costs more in Chicago... we do have a 10.25% sales tax On Wed, Apr 15, 2009 at 2:06 PM, flexaustin flexaus...@yahoo.com wrote: Senior guys in Austin are 90k. --- In flexcoders@yahoogroups.com, Nick Collins ndcoll...@... wrote: Good luck getting a senior level Flex dev for that pay range. Most senior level guys I know are getting between 100-120k. Granted, that's in Chicago, not the middle of Utah. On Tue, Apr 14, 2009 at 2:37 PM, joshbuhler joshbuh...@... wrote: Rain in American Fork, Utah is currently looking for a (preferably senior level) Flex developer. This is a full-time position, with great benefits. Details can be found at: http://mediarain.com/us/employment/flexdeveloper
[flexcoders] chart axis renderers
Hello, Is there a simple way to have axis rendered upon the series area, as overlays, so the whole chart area could display datapoints ? thomas -- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 -- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056
Re: [flexcoders] Dynamic Flex Stacked Column Chart
Did you have any luck with this? I have a binding function as follows mx:ColumnChart id=columnChart type=stacked height=100% width=100% dataProvider=model.chartData series={this.buildSeriesList(model.seriesSpec)} and the stacked columns are displayed, but not aligned with each other. Quite amusing, except when you have a deadline. This must be the known defect you referred to. Anyone know a workaround, or defect number? On Mon, Apr 6, 2009 at 9:20 AM, jeffreyr6915 jrwalk...@gmail.com wrote: I'd like to create a dynamic Flex Stacked Column Chart at runtime, based on values out of a database. The following are the steps that I currently follow (without success): 1. Query the database and populate chartIemArrayColl with ChartItem objects 2. Iterate through chartIemArrayColl and only create a a new columnseries object if there does not already exist on for that 'selection'. Add this columnseries to the columnset 3. Apply this to the chart Note: I used secondSeries instead of series because of a known defect in Flex that makes the charts off center if series is used. Problems: 1. The chartIemArrayColl contains items that contain the same 'name' but different 'value' and different 'selection'. However, in this case that particular 'name' is printed on the x-axis multiple times (not correct) 2. The 'selection' should be the legend, but when it is graphed it does not seem as though it is connected to the items actually charted What I'd like to achieve: 1. Column chart with a legend that contains only values of the 'selection' 2. Stacked Column chart that contains values where I can chart the following example: item1 (name=myName, selection=sel1, value=4) item2 (name=myName, selection=sel2, value=6) item3 (name=name3, selection=sel1, value=8) I expect a chart that has myName and name3 across the x-axis (myName should only appear once). A column should appear at myName that has one color/selection (value 4) stacked on top of another (value 6). A column should be at name3 with the same color/selection as item1 (value 8). Can you please help me with this? Thanks so much in advance ChartItem.as --- package com.dashboard.teamtrack.util { public class ChartItem { public var name:String; public var selection:String; public var value:int; public function ChartItem() { } } } Main.mxml --- for each(var currChartItem:ChartItem in chartIemArrayColl ) { if(!selectionArr.contains(currChartItem.selection)) { selectionArr.addItem(currChartItem.selection); var columnSeries:ColumnSeries = new ColumnSeries(); columnSeries.setStyle(itemRenderer, new ClassFactory(com.dashboard.itemrenderers.TriDiRenderer)); columnSeries.displayName = currChartItem.selection; columnSeries.yField = 'value'; columnSeries.xField = 'name'; columnSeries.dataProvider = chartIemArrayColl ; columnSet.series.push(columnSeries); } } columnSet.type = stacked; chart.secondSeries.push(columnSet); chart.invalidateSeriesStyles(); chart.secondSeries = chart.secondSeries; //More code here mx:ColumnChart id=chart height=100% width=100% fontSize=9 fontWeight=bold color=#01 showDataTips=true clipContent=false x=0 y=27 mx:verticalAxis mx:LinearAxis title=Open Count Total / /mx:verticalAxis mx:horizontalAxisRenderers itemrenderers:TriDiAxisRenderer axis={myHorizontalAxis} placement=bottom/ /mx:horizontalAxisRenderers mx:horizontalAxis mx:CategoryAxis id=myHorizontalAxis dataProvider={chartIemArrayColl} categoryField=name/ /mx:horizontalAxis /mx:ColumnChart mx:Legend id=openDefectChartLegend dataProvider={chart} fontSize=9 fontWeight=bold color=#01 width=100% height=64/
Re: [flexcoders] Re: Flex Developer Needed (Fulltime)
Just a curosity sake, Does anyone recommend any good website for looking for a Flex Developer job. If anyone can recommend any good website except Monster or Dice which is dedicated to Flex developer hiring , that will be helpful, Thanks On Wed, Apr 15, 2009 at 12:39 PM, Nick Collins ndcoll...@gmail.com wrote: Hehe, well, everything costs more in Chicago... we do have a 10.25% sales tax On Wed, Apr 15, 2009 at 2:06 PM, flexaustin flexaus...@yahoo.comflexaustin%40yahoo.com wrote: Senior guys in Austin are 90k. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Collins ndcoll...@... wrote: Good luck getting a senior level Flex dev for that pay range. Most senior level guys I know are getting between 100-120k. Granted, that's in Chicago, not the middle of Utah. On Tue, Apr 14, 2009 at 2:37 PM, joshbuhler joshbuh...@... wrote: Rain in American Fork, Utah is currently looking for a (preferably senior level) Flex developer. This is a full-time position, with great benefits. Details can be found at: http://mediarain.com/us/employment/flexdeveloper
Re: [flexcoders] Re: Flex Developer Needed (Fulltime)
LinkedIn is a great place... and http://flex.org/jobs On Wed, Apr 15, 2009 at 1:42 PM, geeky developer geekydevelo...@gmail.comwrote: Just a curosity sake, Does anyone recommend any good website for looking for a Flex Developer job. If anyone can recommend any good website except Monster or Dice which is dedicated to Flex developer hiring , that will be helpful, Thanks On Wed, Apr 15, 2009 at 12:39 PM, Nick Collins ndcoll...@gmail.comwrote: Hehe, well, everything costs more in Chicago... we do have a 10.25% sales tax On Wed, Apr 15, 2009 at 2:06 PM, flexaustin flexaus...@yahoo.comflexaustin%40yahoo.com wrote: Senior guys in Austin are 90k. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Collins ndcoll...@... wrote: Good luck getting a senior level Flex dev for that pay range. Most senior level guys I know are getting between 100-120k. Granted, that's in Chicago, not the middle of Utah. On Tue, Apr 14, 2009 at 2:37 PM, joshbuhler joshbuh...@... wrote: Rain in American Fork, Utah is currently looking for a (preferably senior level) Flex developer. This is a full-time position, with great benefits. Details can be found at: http://mediarain.com/us/employment/flexdeveloper -- Cheers, Nate http://blog.natebeck.net
[flexcoders] Re: Hook/Event when Item Renderers visible in List?
Thanks for the responses. It would help if Adobe documented the reuse concept better in their ListBase class. The reuse concept may be better optimized for performance, but it causes issues for code that is still running after the change in data. For example, I'm using an HTTPService response to parse the data, but the response comes 2-3 itemrenderer data sets later. Could you suggest any workarounds? Thanks! --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Yep, and to follow on a bit: When working with data driven controls, like List, Tree, DataGrid, you always work with the *underlying data*, almost never with the rendered UI item instances. Do not attempt to create an interactive itemRenderer from scratch unless you are an expert. Find an example, thare many, and modify it to fit your needs. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 15, 2009 12:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Hook/Event when Item Renderers visible in List? Hi, There aren't any non-visible itemRenderers in a list; except for maybe one extra at the bottom. ItemRenderers are recycled; meaning that they are reused with just the data changing. When a list is scrolled, you should be able to catch the data change in the set data method. -TH --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, liu_bai_un brianliu@ wrote: Looking for an event/hook where non-visible item renderers are made visible. Item Renderers apparently don't respond to: 1. creationComplete (only works for the first group visible on list creation) 2. override set data (same)
Re: [flexcoders] Re: RSS Feeds
I know this is an old thread but you can't just browse to it - a browser only displays html, but that html comes from a server at some point - i.e. a proxy. The same goes for ajax. The reason that they don't post a crossdomain.xml is because that would make developers put their secret key inside the flex app which can easily be decompiled and compromised. Still it would be nice to have a solution, without having to spin up your own servers. Baz On Mon, Jul 28, 2008 at 1:01 PM, George george_sm...@tksoftware.com wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, nathanpdaniel ndan...@... wrote: In my experience, Flex Builder Debug swfs have the same are subject to the same crossdomain access restrictions that production swfs have. I'm a bit suspicious of the claim that this is not the case. I think what is being said (if I'm understanding correctly) - running FB3 to load external XML (RSS, APIs, etc) - the security does not exist - crossdomain policy files are not required when running a SWF through FB3. However, when you deploy to production, crossdomain policy files ARE required. That being said - I think the issue lies with - why when we run test in development no security is required, but then to run the same application from a production site (running the swf in anything other than FB3 test). I (or anyone) may develope a fully functional site in FB3, thinking every thing is hunky dory, then move the SWF to production and crash - no crossdomain.xml file... then, as a developer I have to either 1) contact the publisher of the RSS, API, etc I'm trying to load, and ask them to kindly put up a crossdomain.xml policy file - which isn't likely to happen... or 2) Redevelop how my application loads data (no small thing). It kinda sucks I have to develop around an issue that doesn't exist in development but does in production. I understand the security concerns, but I think it's more on the side of - if I can do it in dev, why can't I do it in production? It'd be nice to at least be able to tell FB3 the app I'm developing will be loading from a site I have no control over which may or maynot have a crossdomain policy file... (ching, ching - my 2 cents)... This is exactly right. I would take it a step further though. If I can get to it with just a browser, then why is it that security is such that I cannot get to it without a crossdomain.xml file that authorizes it. Where is the security hole, if I can just browse to it with Firefox, I.E, Safari, or Opera?
[flexcoders] showDataTipsTargets without showing datatips?
Is their a way to force a flex chart to show datatiptargets even when datatips is set to false? I want the a datatiptarget like Google Financials chart, where the ball moves along the lineseries, but I don't want any datatips. Is this possible? TIA, J
[flexcoders] crossdomain proxy
Hi, Is there a solution out there for proxying public services like amazon's webservices (i.e. SimpleDB) that do not provide a crossdomain.xml? I understand that service providers purposely leave out crossdomain.xml policy files so that developers do not compile their secret keys into their swf's (since they can easily be decompiled and compromised) but is there an easier solution than spinning up an entire server simply to act as a proxy? Perhaps special/cheap proxy hosting, or some other secure solution? Cheers, Baz
Re: [flexcoders] showDataTipsTargets without showing datatips?
I've used a NullDataTip class (extending DataTip but not displaying anything) as dataTipRenderer... not very elegant but there doesnt seem to be any property or method to display only these targets... BTW dont know where to look at to customize them... thomas 2009/4/16 flexaustin flexaus...@yahoo.com Is their a way to force a flex chart to show datatiptargets even when datatips is set to false? I want the a datatiptarget like Google Financials chart, where the ball moves along the lineseries, but I don't want any datatips. Is this possible? TIA, J -- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056
Re: [flexcoders] Re: Flex Developer Needed (Fulltime)
Thanks Nate I will check that out On Wed, Apr 15, 2009 at 1:50 PM, Nate Beck n...@tldstudio.com wrote: LinkedIn is a great place... and http://flex.org/jobs On Wed, Apr 15, 2009 at 1:42 PM, geeky developer geekydevelo...@gmail.com wrote: Just a curosity sake, Does anyone recommend any good website for looking for a Flex Developer job. If anyone can recommend any good website except Monster or Dice which is dedicated to Flex developer hiring , that will be helpful, Thanks On Wed, Apr 15, 2009 at 12:39 PM, Nick Collins ndcoll...@gmail.comwrote: Hehe, well, everything costs more in Chicago... we do have a 10.25% sales tax On Wed, Apr 15, 2009 at 2:06 PM, flexaustin flexaus...@yahoo.comflexaustin%40yahoo.com wrote: Senior guys in Austin are 90k. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Collins ndcoll...@... wrote: Good luck getting a senior level Flex dev for that pay range. Most senior level guys I know are getting between 100-120k. Granted, that's in Chicago, not the middle of Utah. On Tue, Apr 14, 2009 at 2:37 PM, joshbuhler joshbuh...@... wrote: Rain in American Fork, Utah is currently looking for a (preferably senior level) Flex developer. This is a full-time position, with great benefits. Details can be found at: http://mediarain.com/us/employment/flexdeveloper -- Cheers, Nate http://blog.natebeck.net
[flexcoders] Re: anyone know of a good (free) flex component for playing video/swfs?
Either way, I ended up separating the two and creating some simple controls to handle either. Thanks for your help. --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, Cole Joplin cole_joplin@ wrote: Depending on what you are doing, this could be a very bad idea. Loading an FLV is simple and easy. SWFs are very different, especially if it is outward facing, like people loading their own SWFs. What if the SWF wants its own controls? Will your wrapper/player assume a timeline-based playback only? If it's actionscript-based, how would you control it, or show progress? If you make any swf you're trying to load implement the same interface, this is pretty easy to handle. http://flexdiary.blogspot.com/2009/01/example-of-casting-contets-of-swfloader.html -Amy
RE: [flexcoders] Re: Hook/Event when Item Renderers visible in List?
Yes, make everything event and/or data driven and you will not have any problems. I do not understand what you mean by, the response comes 2-3 itemrenderer data sets later. The result comes when it comes, you cannot predict or rely on when that is, but must use a result handler. Have the result handler update the data model, and bind the UI to the data Model. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of liu_bai_un Sent: Wednesday, April 15, 2009 5:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Hook/Event when Item Renderers visible in List? Thanks for the responses. It would help if Adobe documented the reuse concept better in their ListBase class. The reuse concept may be better optimized for performance, but it causes issues for code that is still running after the change in data. For example, I'm using an HTTPService response to parse the data, but the response comes 2-3 itemrenderer data sets later. Could you suggest any workarounds? Thanks! --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tspr...@... wrote: Yep, and to follow on a bit: When working with data driven controls, like List, Tree, DataGrid, you always work with the *underlying data*, almost never with the rendered UI item instances. Do not attempt to create an interactive itemRenderer from scratch unless you are an expert. Find an example, thare many, and modify it to fit your needs. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 15, 2009 12:48 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Re: Hook/Event when Item Renderers visible in List? Hi, There aren't any non-visible itemRenderers in a list; except for maybe one extra at the bottom. ItemRenderers are recycled; meaning that they are reused with just the data changing. When a list is scrolled, you should be able to catch the data change in the set data method. -TH --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, liu_bai_un brianliu@ wrote: Looking for an event/hook where non-visible item renderers are made visible. Item Renderers apparently don't respond to: 1. creationComplete (only works for the first group visible on list creation) 2. override set data (same)
RE: [flexcoders] crossdomain proxy
What server is serving your swf/application? Put a proxy on that server for all rpc calls. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Baz Sent: Wednesday, April 15, 2009 6:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] crossdomain proxy Hi, Is there a solution out there for proxying public services like amazon's webservices (i.e. SimpleDB) that do not provide a crossdomain.xml? I understand that service providers purposely leave out crossdomain.xml policy files so that developers do not compile their secret keys into their swf's (since they can easily be decompiled and compromised) but is there an easier solution than spinning up an entire server simply to act as a proxy? Perhaps special/cheap proxy hosting, or some other secure solution? Cheers, Baz
RE: [flexcoders] Re: Hook/Event when Item Renderers visible in List?
And I noticed a misunderstanding in your original post. The set data() function *is* called every time the underlying data changes and is the most important function in a itemRenderer. Note, you should not do the actual work in set data() but rather call invalidateProperties() and do the work in commitProperties(). As I said, find an example. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Wednesday, April 15, 2009 8:29 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Hook/Event when Item Renderers visible in List? Yes, make everything event and/or data driven and you will not have any problems. I do not understand what you mean by, the response comes 2-3 itemrenderer data sets later. The result comes when it comes, you cannot predict or rely on when that is, but must use a result handler. Have the result handler update the data model, and bind the UI to the data Model. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of liu_bai_un Sent: Wednesday, April 15, 2009 5:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Hook/Event when Item Renderers visible in List? Thanks for the responses. It would help if Adobe documented the reuse concept better in their ListBase class. The reuse concept may be better optimized for performance, but it causes issues for code that is still running after the change in data. For example, I'm using an HTTPService response to parse the data, but the response comes 2-3 itemrenderer data sets later. Could you suggest any workarounds? Thanks! --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tspr...@... wrote: Yep, and to follow on a bit: When working with data driven controls, like List, Tree, DataGrid, you always work with the *underlying data*, almost never with the rendered UI item instances. Do not attempt to create an interactive itemRenderer from scratch unless you are an expert. Find an example, thare many, and modify it to fit your needs. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 15, 2009 12:48 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Re: Hook/Event when Item Renderers visible in List? Hi, There aren't any non-visible itemRenderers in a list; except for maybe one extra at the bottom. ItemRenderers are recycled; meaning that they are reused with just the data changing. When a list is scrolled, you should be able to catch the data change in the set data method. -TH --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, liu_bai_un brianliu@ wrote: Looking for an event/hook where non-visible item renderers are made visible. Item Renderers apparently don't respond to: 1. creationComplete (only works for the first group visible on list creation) 2. override set data (same)
Re: [flexcoders] relationship of mxml child tags and actionscript
Geng, Use the DefaultProperty metadata tag in your AS class. Whatever property you specify will be the property to which your MXML children will be set. Here's a start: http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_141_07.html Aaron gwangdesign wrote: Hi, I am still looking for some general documentations about the guidelines as to how to write ActionScript custom components. It's clear that you can expose public properties, styles and event listeners of your custom components as MXML properties. But what are the general rules if I want to allow my client developers to define a property in my custom component using a MXML child tag (as opposed to a property)? Like this: my:MyComp my:myChild color=0xFF width=300 mx:Label text={data}/ /my:myChild /my:MyComp Again, I am looking for _general_ guidelines. Thanks much. -geng
Re: [flexcoders] Re: How Could I not map a property to lcds object ?
That still requires adding the fields to the Flex object. Marking the field @Transient in Java will affect Hibernate, unless Blaze / LCDS have their own @Transient I'm not aware of. There's also this blazeds annotations add-on: http://is.gd/sETx SmartyPants-J will do this, but it's nowhere near escaping yet :) -Josh 2009/4/16 Tim Hoff timh...@aol.com Yep, here's an example: * private * *var* _myProperty:String; [Transient] [*Bindable*( event=*myPropertyChange* )] /** * myProperty. * @private */ *public* *function* *get* myProperty():String { * return* _myProperty; } /** @private */ *public* *function* *set* myProperty( value:String ):*void *{ _myProperty = value; dispatchEvent( *new* Event( *myPropertyChange* ) ); } -TH --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, ouaqa ab@ wrote: This is an option but i was wondering if you couldn't use some special ninja keyword telling lcds not to map the field to lcds. Transient? -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
[flexcoders] Re: crossdomain proxy
You can create simple redirect script that redirects requests from your app to requester resource. Drawback - all traffic goes through your host. --- In flexcoders@yahoogroups.com, Baz thinkl...@... wrote: Hi, Is there a solution out there for proxying public services like amazon's webservices (i.e. SimpleDB) that do not provide a crossdomain.xml? I understand that service providers purposely leave out crossdomain.xml policy files so that developers do not compile their secret keys into their swf's (since they can easily be decompiled and compromised) but is there an easier solution than spinning up an entire server simply to act as a proxy? Perhaps special/cheap proxy hosting, or some other secure solution? Cheers, Baz
[flexcoders] Making ComboBox stay open after item select?
Does anyone know how to modify the ComboBox so that it stays open after selecting an item? I need such a ComboBox for a client that opens/closes only if the user clicks on the 'header area' of the ComboBox or that closes only if clicked outside the ComboBox. The use case for this is that the ComboBox will have custom item renderers that contain (for example) a CheckBox and a Label and the user should be able to make several selections without the ComboBox closing inbetween. I've made this before by wrapping all the stuff into a Panel and changing the Panels height on close so that only the header is visible but that method is rather suboptimal, especially for skinning. Would be great if somebody has a workaround for this! Thanks in advance! Sascha
RE: [flexcoders] Re: How Could I not map a property to lcds object ?
You can use the flex.messaging.io.PropertyProxy features. The BeanProxy class has a way to exclude properties from AMF serialization. You can either register these statically or wrap an instance. These should be in the docs. We really should have @FlexTransient or something so that can be turned on/off independently. I think there is an implementation in the BlazeDS bug base someone contributed I've been meaning to look at. You'd just need to write some service hook to check for the annotations, register property proxies to exclude the right properties on whatever class had the annotations and you'd be all set. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Josh McDonald Sent: Wednesday, April 15, 2009 6:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How Could I not map a property to lcds object ? That still requires adding the fields to the Flex object. Marking the field @Transient in Java will affect Hibernate, unless Blaze / LCDS have their own @Transient I'm not aware of. There's also this blazeds annotations add-on: http://is.gd/sETx SmartyPants-J will do this, but it's nowhere near escaping yet :) -Josh 2009/4/16 Tim Hoff timh...@aol.commailto:timh...@aol.com Yep, here's an example: private var _myProperty:String; [Transient] [Bindable( event=myPropertyChange )] /** * myProperty. * @private */ public function get myProperty():String { return _myProperty; } /** @private */ public function set myProperty( value:String ):void { _myProperty = value; dispatchEvent( new Event( myPropertyChange ) ); } -TH --- In flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com, ouaqa ab@ wrote: This is an option but i was wondering if you couldn't use some special ninja keyword telling lcds not to map the field to lcds. Transient? -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.infomailto:j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/ inline: image001.jpginline: image002.jpg
Re: [flexcoders] Re: Mate and sharing data across files
*grin* Thanks. I guess I was freaking out a little - I'd finally thought I was getting a handle on the whole Mate thing, and then I hit this problem and realised I was much further away from understanding than I thought. So let me see if I understand how this works, based on the examples I've seen: - I create a UserModel class which extends the InjectorTarget class. It has all of the user-related variables I want to pass around as bindable public variables, plus get and set functions. - As well as my regular Event Maps, I create a Model Event Map which has all of the different injectors that put data into the various models - When I perform the login function in the AuthorisationManager, the CFC returns me the details of the user who is logging in. I somehow call this UserModel and put all the data into the model's variables. - In the UserManager, when I want to run the GetKeywords function, for example, I can call on the data stored in the model to get the user's ID and pass it to the service I'm calling. Is that right? If it is, I think I need some help making the linkages between them all. I won't bother posting any code until I find out if I'm barking up the wrong tree, though. :) Thanks, Seona. 2009/4/15 Tim Hoff timh...@aol.com Hi Seona, Let's start by taking a deep breath and don't freak out. Ok, wheeew! Mate is a little different than typical MVC; in that it seperates the model into managers and presentation models (a manager holds data and a presentation model holds an instance of the needed data and controls constituant views). Let me elaborate a little, in that these two factions of the model are also smart models; they don't just sit by and hold data., they can also manipulate data/state as well. Yes, both managers and presentation models are singletons; thus they persist. If you place your user data in a userManager, then you can easily inject that data into whatever object you want, be it a view or a presentation model, via a map. I know that there aren't a lot of mate examples out there yet. But, please be patient; more are coming.. -TH
[flexcoders] Re: showDataTipsTargets without showing datatips?
I have tried what you suggested already, but didn't have any luck as my linechart has two lineseries and when you mouse over any area where the lineseries cross you get two grey lines that connect the datatiptargets to the datatip. So when you have empty or blank datatips the grey lines point to nothing. I can't get the grey lines to go away so the blank/empty datatips don't work. Thx --- In flexcoders@yahoogroups.com, thomas parquier mailingli...@... wrote: I've used a NullDataTip class (extending DataTip but not displaying anything) as dataTipRenderer... not very elegant but there doesnt seem to be any property or method to display only these targets... BTW dont know where to look at to customize them... thomas 2009/4/16 flexaustin flexaus...@... Is their a way to force a flex chart to show datatiptargets even when datatips is set to false? I want the a datatiptarget like Google Financials chart, where the ball moves along the lineseries, but I don't want any datatips. Is this possible? TIA, J -- http://www.web-attitude.fr/ msn : thomas.parqu...@... softphone : sip:webattit...@... sip%3awebattit...@... téléphone portable : +33601 822 056
[flexcoders] Shared Virtual Objects in multiple flex applications
I have multiple applications, and they all have to use SOME of the virtual objects I have created as they all need to update our database through rubyamf in one way or another. I was wondering what the best way to create classes / etc that multiple projects can use. What would be the best way to do this?
[flexcoders] Re: How Could I not map a property to lcds object ?
This is just the flex vo side. No change to the java transfer object is necessary; for transient fields that live only in the flex app. -TH --- In flexcoders@yahoogroups.com, Josh McDonald j...@... wrote: That still requires adding the fields to the Flex object. Marking the field @Transient in Java will affect Hibernate, unless Blaze / LCDS have their own @Transient I'm not aware of. There's also this blazeds annotations add-on: http://is.gd/sETx SmartyPants-J will do this, but it's nowhere near escaping yet :) -Josh 2009/4/16 Tim Hoff timh...@... Yep, here's an example: * private * *var* _myProperty:String; [Transient] [*Bindable*( event=*myPropertyChange* )] /** * myProperty. * @private */ *public* *function* *get* myProperty():String { * return* _myProperty; } /** @private */ *public* *function* *set* myProperty( value:String ):*void *{ _myProperty = value; dispatchEvent( *new* Event( *myPropertyChange* ) ); } -TH --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote: --- In flexcoders@yahoogroups.com, ouaqa ab@ wrote: This is an option but i was wondering if you couldn't use some special ninja keyword telling lcds not to map the field to lcds. Transient? -- 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/
[flexcoders] Re: Mate and sharing data across files
ha, I was just kidding around about the freaking out thing. So, you're getting close, but I would do it this way: First, you only need a userManager. It is the model, so you don't need a userModel. The userManager would have a currentUser property. In your CFC result handler, call a method in the userManager that sets that currentUser to the lastResult. Next, create another currentUser property in any presentationModel that needs the data. Now, in your userMap, simply inject the currentUser from the userManager into the presentationModels. When a new user is set, to the currentUser in the manager, the presentationModels will be automatically refreshed; through injection. Injectors targets={ [ UserPresentationModel, AnotherPresetationModel ] } PropertyInjector targetKey=currentUser source={ UserManager } sourceKey=currentUser / /Injectors -TH --- In flexcoders@yahoogroups.com, Seona Bellamy se...@... wrote: *grin* Thanks. I guess I was freaking out a little - I'd finally thought I was getting a handle on the whole Mate thing, and then I hit this problem and realised I was much further away from understanding than I thought. So let me see if I understand how this works, based on the examples I've seen: - I create a UserModel class which extends the InjectorTarget class. It has all of the user-related variables I want to pass around as bindable public variables, plus get and set functions. - As well as my regular Event Maps, I create a Model Event Map which has all of the different injectors that put data into the various models - When I perform the login function in the AuthorisationManager, the CFC returns me the details of the user who is logging in. I somehow call this UserModel and put all the data into the model's variables. - In the UserManager, when I want to run the GetKeywords function, for example, I can call on the data stored in the model to get the user's ID and pass it to the service I'm calling. Is that right? If it is, I think I need some help making the linkages between them all. I won't bother posting any code until I find out if I'm barking up the wrong tree, though. :) Thanks, Seona. 2009/4/15 Tim Hoff timh...@... Hi Seona, Let's start by taking a deep breath and don't freak out. Ok, wheeew! Mate is a little different than typical MVC; in that it seperates the model into managers and presentation models (a manager holds data and a presentation model holds an instance of the needed data and controls constituant views). Let me elaborate a little, in that these two factions of the model are also smart models; they don't just sit by and hold data., they can also manipulate data/state as well. Yes, both managers and presentation models are singletons; thus they persist. If you place your user data in a userManager, then you can easily inject that data into whatever object you want, be it a view or a presentation model, via a map. I know that there aren't a lot of mate examples out there yet. But, please be patient; more are coming.. -TH
Re: [flexcoders] Adobe Bug | http://bugs.adobe.com/jira/browse/SDK-17299
Hi Igor Thanks for your help. Actually i have a pop up in which i am using lot of components like Checkbox,Tree control, couple of text controls and few others. Everytime i create popup the new instance of the components are created. I wanted that if i can remove these components from memory then i would be great. Hope the statement below helps. PopUpManager. removePopUp( e.currentTarget. document as IFlexDisplayObject) ; thanks Rajan From: Igor Costa igorco...@gmail.com To: flexcoders@yahoogroups.com Sent: Tuesday, April 14, 2009 7:54:51 PM Subject: Re: [flexcoders] Adobe Bug | http://bugs.adobe.com/jira/browse/SDK-17299 Rajan Isn't a bug, Not a Bug the problem is the way of your code implementation works. The PopUpManager doesn't work to cast itself. Due to the dependecy of IFlexDisplayObject. Instead of current code example. NOT Right way //action1 if (myPopUp == null) { myPopUp = PopUpManager. createPopUp( this, MyMxmlComponent, false) as MyMxmlComponent; } else { PopUpManager. addPopUp( myPopUp, this, false); } //action1 if (!myPopUp.isPopUp) { myPopUp = PopUpManager. createPopUp( this, MyMxmlComponent, false) as MyMxmlComponent; } else { PopUpManager. addPopUp( myPopUp, this, false); } Remove you should do like PopUpManager. removePopUp( e.currentTarget. document as IFlexDisplayObject) ; regards Igor Costa On Tue, Apr 14, 2009 at 6:24 PM, ilikeflex ilikef...@yahoo. com wrote: Hi Adobe bug http://bugs.. adobe.com/ jira/browse/ SDK-17299 Does anybody has idea when Adobe is going to fix the above bug ot there is any workaround. Thanks Rajan -- - --- Igor Costa www.igorcosta. com www.igorcosta. org
[flexcoders] Re: Mate and sharing data across files
For a little more clarity, the CFC result handler in therMap would look something like this: EventHandlers type={ LoginEvent.LOGIN } debug=true HTTPServiceInvoker instance={ services.login } request={ event.userName } resultHandlers MethodInvoker generator={ UserManager } method=loginResult arguments={ resultObject }/ /resultHandlers /HTTPServiceInvoker /EventHandlers Sorry, I don't use CF but you get the picture. -TH --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: ha, I was just kidding around about the freaking out thing. So, you're getting close, but I would do it this way: First, you only need a userManager. It is the model, so you don't need a userModel. The userManager would have a currentUser property. In your CFC result handler, call a method in the userManager that sets that currentUser to the lastResult. Next, create another currentUser property in any presentationModel that needs the data. Now, in your userMap, simply inject the currentUser from the userManager into the presentationModels. When a new user is set, to the currentUser in the manager, the presentationModels will be automatically refreshed; through injection. Injectors targets={ [ UserPresentationModel, AnotherPresetationModel ] } PropertyInjector targetKey=currentUser source={ UserManager } sourceKey=currentUser / /Injectors -TH --- In flexcoders@yahoogroups.com, Seona Bellamy seona@ wrote: *grin* Thanks. I guess I was freaking out a little - I'd finally thought I was getting a handle on the whole Mate thing, and then I hit this problem and realised I was much further away from understanding than I thought. So let me see if I understand how this works, based on the examples I've seen: - I create a UserModel class which extends the InjectorTarget class. It has all of the user-related variables I want to pass around as bindable public variables, plus get and set functions. - As well as my regular Event Maps, I create a Model Event Map which has all of the different injectors that put data into the various models - When I perform the login function in the AuthorisationManager, the CFC returns me the details of the user who is logging in. I somehow call this UserModel and put all the data into the model's variables. - In the UserManager, when I want to run the GetKeywords function, for example, I can call on the data stored in the model to get the user's ID and pass it to the service I'm calling. Is that right? If it is, I think I need some help making the linkages between them all. I won't bother posting any code until I find out if I'm barking up the wrong tree, though. :) Thanks, Seona. 2009/4/15 Tim Hoff TimHoff@ Hi Seona, Let's start by taking a deep breath and don't freak out. Ok, wheeew! Mate is a little different than typical MVC; in that it seperates the model into managers and presentation models (a manager holds data and a presentation model holds an instance of the needed data and controls constituant views). Let me elaborate a little, in that these two factions of the model are also smart models; they don't just sit by and hold data., they can also manipulate data/state as well. Yes, both managers and presentation models are singletons; thus they persist. If you place your user data in a userManager, then you can easily inject that data into whatever object you want, be it a view or a presentation model, via a map. I know that there aren't a lot of mate examples out there yet. But, please be patient; more are coming.. -TH
[flexcoders] Re: InteractiveObject Problem
I know it, but I can't choice another Class because evt.mouseTarget is InteractiveObject I write code if (evt.mouseTarget.hasOwnProperty(data)) var inObj:AdvancedDataGridItemRenderer = evt.mouseTarget; The error message 1118: Implicit coercion of a value with static type flash.display:InteractiveObject to a possibly unrelated type mx.controls.advancedDataGridClasses:AdvancedDataGridItemRenderer. In debug mode I can see value of evt.mouseTarget but I can assign it to any variables in my knowledge :( Here, you've chosen to type your variable as InteractiveObject: var inObj:InteractiveObject; inObj = evt.mouseTarget; Yet you say that the actual data type of your object is this: inObj = inObj = (mx.controls.advancedDataGridClasses.AdvancedDataGridItemRenderer) mx.controls.advancedDataGridClasses.AdvancedDataGridItemRenderer (@9385479) AdvancedDataGridItemRenderer has a data property. InteractiveObject, its great-great-grandparent class, does not. So, you have the choice of typing this object as anything in its inheritance chain, plus the five interfaces it implements. You've chosen to type it as InteractiveObject, which doesn't have a data property, nor does UITextField, FlexTextField, DisplayObject, EventDispatcher, or Object. Change var inObj:InteractiveObject to var inObj:SomeClassOrInterfaceThatHasADataProperty HTH; Amy
Re: [flexcoders] Re: New Adobe forums coming!
Matt Chotin wrote: Yeah, make sure you eliminate any repeating dashes, the system parses them and stops reading. Some other patterns too I'm sure that I don't know. i trim replies like a demon lose those but it still croaks, i think, on the quote marker or maybe something in the header/boundary bits?? it's unpleasant for old folks who can't recall what they're replying to ;-)
[flexcoders] Re: Sub-applications and service calls
That's definitely an option. Still, I'd like to know why remoting isn't working from the sub-application. Is it Cairngorm design flaw or...? --- In flexcoders@yahoogroups.com, Pedro Sena sena.pe...@... wrote: Hi, In my opinion you should try to change your small application to a flex module. You could develop a very small shell that load this module, to use it standalone, and when using it from your big app, you simply loads this module. Just take care when you use this together: Cairngorm and Modules. PS On Wed, Apr 15, 2009 at 3:53 PM, Erich Cervantez f...@... wrote: I have a large Flex 3.3 application configured to use LCDS within a JBOSS war. I've setup RemoteObject declarations using Cairngorm's ServiceLocator pattern. The application works great and is able to send and receive data on it's own just perfectly. I also have a separate smaller Flex 3.3 application in a different war configured similarly. Although both applications can be used individually, I'd like to load the smaller application into the first, larger application using SWFLoader (and setting the LoaderContext to use a new ApplicationDomain). Unfortunately, the sub-application cannot make any service calls now and I'm at a loss. I figure it might be some sort of sandbox issue but I'm not sure. The exception thrown via JBOSS looks like this: No destination with id 'null' is registered with any service. and the runtime exception in the browser looks like this: TypeError: Error #1034: Type Coercion failed: cannot convert obj...@1b434ad9 to mx.messaging.messages.ErrorMessage. Has anyone else run into this same situation? -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */
[flexcoders] Fixing Flex's mouse wheel scroll
Flex's mouse wheel scrolls are unusually small compared to regular scrolls. Meaning, I have to scroll down about 8-10 cycles with my mouse wheel to read two pages in flex which in a normal browser can be read in 2-3 cycles. Is there a way to set how much a mouse wheel should scroll in Flex?