RE: [flexcoders] Re: Silent Print from Flex on Kiosk
I agree, more than anything Adobe could do, being over zealous on the security front could inhibit Flash as a platform taking off (yes I'm still annoyed about not getting to load remote modules in AIR). It wasn't exactly a winner for Vista! If they can work out a comfortable security model that... 1. Stops drive by swfs owning your machine and, 2. allows trusted applications to do more with less security, they will be onto a winner. The Flash Player is maturing into number 1 nicely, but AIR has still a ways to go to meet number 2. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeremi Bergman Sent: 30 January 2009 20:51 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Silent Print from Flex on Kiosk Thanks for the info. It would be nice to be able to add an app as a Trusted application, so that the application would have the option to print silently.
RE: [flexcoders] Re: ItemEditors and rowHeight
Yeah, I had variableRowHeight set to true, and I tried a whole bunch of things to try and get the row resized, but I've run out of time to get it working! I'll just have to stick the changes in a form at the side and be done. Thanks to everyone for the suggestions! Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: 31 January 2009 05:46 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: ItemEditors and rowHeight Can you get the row to resize in other ways outside of an edit session? I assume you have variableRowHeight=true? From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gregor Kiddie Sent: Friday, January 30, 2009 8:23 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: ItemEditors and rowHeight That's what I've been playing with today, but again, once the Grid is rendered, I can't seem to make it re-layout the rows. I took a look at the AdvancedDataGridRendererProviders that Johannes suggested, but it falls under the same category. I feel I'm missing something totally obvious, but no-one else seems to have found a decent solution either, so maybe not...
[flexcoders] Re: Generated html page backgroundcolour
Does that property actually change the background color in the wrapper, or does the Flex app just cover the entire browser? I do not know offhand. Sorry for the late response (the weekend had begun) Yes it does. If you look at the source for the generated wrapper it shows bgcolor, #ff, One reason why I was struggling (which lead to my posted question) My Application.backgroundColor was defined in an external stylesheet (with all my other styles). But this does not get picked up. It only seems to work when you define it in the mxml tag. --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Does that property actually change the background color in the wrapper, or does the Flex app just cover the entire browser? I do not know offhand. In a recent thread, someone noted that the browser background stayed the original color for a brief time before the Flex app loaded, and suggested adding an entry to the Additional Compiler Options in the Flex Builder Properties, to actually compile the background color into the wrapper. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of bhaq1972 Sent: Friday, January 30, 2009 10:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Generated html page backgroundcolour I just realized mx:Application backgroundColor=white etc generates the white background in the generated html wrapper --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , bhaq1972 mbhaque@ wrote: I have my Flexbuilder set to the default settings. How can I make sure the generated HTML wrapper has a white backgroundColor. I know its something to do with ${bgcolor}. But how do I set this? Any help would be appreciated.
[flexcoders] Installing an AIR APP with configuration
What's the best practice here? I need my app to know the username of the user who install it. So I'm thinking of adding it as a parameter to the app in the installer badge, and then saving it in a properties file locally in the app's directory. -- http://www.juicability.com - flex blog http://www.nospoiler.com - link to youtube videos without the spoilers
[flexcoders] Calling web service from flex
Hie I created a web service in Jdeveloper and deployed it in the jdeveloper. When I am trying to invoke it gives error as: Error# 1085: The element type meta must be terminated by matching end tag /meta. In my ws I am not returning anything like that. Also I tested the ws in http analyzer of jdeveloper and it returns the good expected result. any help will be appreciated. Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com
[flexcoders] Re: BlazeDS - Best practice for determining if server session is invalid.
Hi - Sorry, I know this was a while ago, but this is a link to creating a LoginCommand that uses Spring Security(Acegi) http://code.google.com/p/igenko/source/browse/trunk//blazeds-spring/src/main/java/flex/messaging/security/AcegiLoginCommand.java?r=267 --- In flexcoders@yahoogroups.com, Seth Hodgson shodg...@... wrote: Hi Fotis, The client library caches credentials in order to support seamless fallback through channels in your ChannelSet that preserves your desired authenticated identity both at connect time, as well as for automatic failover across peer servers in a cluster at any point after you've initially connected. However, when you use a simple AMF channel, where we don't know your session (connection) has timed out until a remoting call is made but fails due to an auth constraint check, we didn't originally handle that scenario seamlessly. Now we do, when you turn on the config flag I mentioned below, and it applies to remoting calls, producer messages sends, DMS operations, etc. (basically, any outbound message that fails in processing due to an auth fault when you were previously successfully authenticated). In order for this to work though, you'd need to be logging in from within the Flex app so that it has access to your creds. We provide server-side LoginCommand impls for supported app servers that plug into their various custom authentication layers and that's what Flex login requests are processed by, but we don't ship an official AcegiLoginCommand currently. I think folks in the community have implemented that though, so try Googling for it, or perhaps someone else who's written one will post a link? There's more detail here: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/help.html?content=services_security_2.html And here: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/help.html?content=services_security_5.html#348164 Best, Seth From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Fotis Chatzinikos Sent: Tuesday, November 25, 2008 3:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] BlazeDS - Best practice for determining if server session is invalid. Hi Seth, the following line looks quite promising: It should handle this case seamlessly, removing the need to re-prompt the user with a login dialog. Can you elaborate a bit? How is that possible? In my case I use spring-acegi to login, prior to the flash component, but if there is another way - ie via a flash login box and automatic re-authentication i would love a pointer on how to do it... Thanks, Fotis On Tue, Nov 25, 2008 at 11:15 PM, Seth Hodgson shodg...@... wrote: Hi, In your services-config.xml file, within the properties for the channel/endpoint you app is using to issue remoting calls to the server, try turning on the following config option: !-- Optional. Default is false. Setting this flag to true will cause clients to automatically attempt to re-authenticate themselves with the server when they send a message that fails because credentials have been reset due to server session timeout. The failed message will be resent after re-authentication making the session timeout transparent to the client with respect to authentication. -- login-after-disconnecttrue/login-after-disconnect This is also exposed as the 'loginAfterDisconnect' property on Channel, if you're building your channels and ChannelSet directly in ActionScript. It should handle this case seamlessly, removing the need to re-prompt the user with a login dialog. If you really want to reprompt the user, in your fault handler for your RemoteObject calls, you could watch for faults with an underlying ErrorMessage with a faultCode of Client.Authentication and use that to trigger transition back to your login view. The reason that the authenticated property doesn't change on the client is that there's no way guaranteed way for the server to notify the client when the session times out. So, it's not until you send your next request to the server that we discover that. Best, Seth From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of rydellfinn Sent: Wednesday, November 05, 2008 6:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] BlazeDS - Best practice for determining if server session is invalid. Currently I am running BlazeDS on Tomcat, and I have a flex client that is authenticating against a set of Remote Objects using channelset.login(). As expected, if I walk away from the client for 30 minutes, the Tomcat server invalidates the session, which of course effectively logs out the client. What I would like to happen is when the server invalidates the session, the client is returned to the login page. I can think of different ways to accomplish this, but I was wondering if there is an established pattern for this? I tried creating a timer on the
Re: [flexcoders] Charting: Adding a horizontal line
On Thursday 29 Jan 2009, flex_coders wrote: I'd like to add a few horizontal lines to my area chart, a solid line std devs away. is there a simple way to add a line to the chart indicating y = [some value] or rather do i need to need to Add another data set. programatically just draw the line? Have a google for 'data drawing canvas'. -- Tom Chiverton Helping to revolutionarily embrace internet eye-catching sticky technologies 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: checkbox itemEditor in DataGrid
Set the selectedIndices array to the array of indexes you want selected. Of course you must set multiple select on the data grid. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markflex2007 Sent: Saturday, January 31, 2009 3:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: checkbox itemEditor in DataGrid how to keep many rows highlighted in datagrid with AS code? Thanks Mark
RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?
Trace earlier. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Saturday, January 31, 2009 6:02 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? I dunno. I pasted the code I have below and when I try to either trace it or pop up and Alert, it comes up blank. public function loginHandler(e:ResultEvent):void { var oLoginInfo:Object = new Object(); var xmlResult = XML(e.result) var xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType; for (var i:int=0;ixlNames.length();i++) { oLoginInfo[xlNames[i]] = xlValues[i]; } Alert.show(oLoginInfo.lastName,'Last Name'); ---comes up blank } From: Tracy Spratt tspr...@lariatinc.com Sent: Saturday, January 31, 2009 10:44 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? No, that was a typo. Change columns to names. Why is it blank? What is not working? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Saturday, January 31, 2009 12:04 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? I tried this (slight modification) and it came up blank. In your loop, you have xlColumns[i] but you declared 'xlNames'. Are they the same? Did I miss something? public function loginHandler(e:ResultEvent):void { var oLoginInfo:Object = new Object(); var xmlResult = XML(e.result) var xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType; for (var i:int=0;ixlNames.length();i++) { oLoginInfo[xlNames[i]] = xlValues[i]; } Alert.show(oLoginInfo.lastName,'Last Name'); } From: Tracy Spratt tspr...@lariatinc.com Sent: Saturday, January 31, 2009 7:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? Yeah that is not pretty xml. Since your data is not really a list, but more properties of an object, here is what I would do: var oLoginInfo:Object = new Object(); var xmlResult = XML(event.result) var xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType; for (var i:int=0;ixlNames.length();i++) { oLoginInfo[xlColumns[i]] = xlValues[i]; } To see a value do: trace(oLoginInfo.lastName); //will trace 'Kolcz' But also, don't forget to compare the result from both servers, to see if you get the same result. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Friday, January 30, 2009 9:00 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? This is what get from E4X. I have no idea on how to this to an easier format to use like what I get from an ArrayCollection with a RemoteObject. Do I use XMLListCollection? Any hint on how? If I declare my userData variable as public var userData:XMLListCollection = new XMLListCollection(); What do I set it to? Thanks! Result loginResponse xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/um ich/security xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; loginResult columnList xmlns=http://www.newatlanta.com/bluedragon; stringuniqname/string stringpassword/string stringlastName/string stringfirstName/string stringposition/string stringdepartment/string stringrole/string stringisActive/string /columnList data xmlns=http://www.newatlanta.com/bluedragon; ArrayOfAnyType anyType xsi:type=xsd:stringwkolcz/anyType anyType xsi:type=xsd:string2113/anyType anyType xsi:type=xsd:stringKolcz/anyType anyType xsi:type=xsd:stringWally/anyType anyType xsi:type=xsd:stringColdFusion / Flex Developer/anyType anyType xsi:type=xsd:stringPRMC/anyType anyType xsi:type=xsd:stringadmin/anyType anyType xsi:type=xsd:double1/anyType /ArrayOfAnyType /data /loginResult /loginResponse
RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?
I traced xlmResult and e.result. They both came out with the returned XML.. I then traced after the name and values were attempted to be assigned. They came up blank. From: Tracy Spratt tspr...@lariatinc.com Sent: Monday, February 02, 2009 7:10 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? Trace earlier. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Saturday, January 31, 2009 6:02 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? I dunno. I pasted the code I have below and when I try to either trace it or pop up and Alert, it comes up blank. public function loginHandler(e:ResultEvent):void { var oLoginInfo:Object = new Object(); var xmlResult = XML(e.result) var xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType; for (var i:int=0;ixlNames.length();i++) { oLoginInfo[xlNames[i]] = xlValues[i]; } Alert.show(oLoginInfo.lastName,'Last Name'); ---comes up blank } From : Tracy Spratt tspr...@lariatinc.com Sent: Saturday, January 31, 2009 10:44 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? No, that was a typo. Change columns to names. Why is it blank? What is not working? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Saturday, January 31, 2009 12:04 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? I tried this (slight modification) and it came up blank. In your loop, you have xlColumns[i] but you declared 'xlNames'. Are they the same? Did I miss something? public function loginHandler(e:ResultEvent):void { var oLoginInfo:Object = new Object(); var xmlResult = XML(e.result) var xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType; for (var i:int=0;ixlNames.length();i++) { oLoginInfo[xlNames[i]] = xlValues[i]; } Alert.show(oLoginInfo.lastName,'Last Name'); } From : Tracy Spratt tspr...@lariatinc.com Sent: Saturday, January 31, 2009 7:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? Yeah that is not pretty xml. Since your data is not really a list, but more properties of an object, here is what I would do: var oLoginInfo:Object = new Object(); var xmlResult = XML(event.result) var xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType; for (var i:int=0;ixlNames.length();i++) { oLoginInfo[xlColumns[i]] = xlValues[i]; } To see a value do: trace(oLoginInfo.lastName); //will trace ' Kolcz'But also, don't forget to compare the result from both servers, to see if you get the same result. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Friday, January 30, 2009 9:00 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? This is what get from E4X. I have no idea on how to this to an easier format to use like what I get from an ArrayCollection with a RemoteObject. Do I use XMLListCollection? Any hint on how? If I declare my userData variable as public var userData:XMLListCollection = new XMLListCollection(); What do I set it to? Thanks! Result loginResponse xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; loginResult columnList xmlns=http://www.newatlanta.com/bluedragon; stringuniqname/string stringpassword/string stringlastName/string stringfirstName/string stringposition/string stringdepartment/string stringrole/string stringisActive/string /columnList data xmlns=http://www.newatlanta.com/bluedragon; ArrayOfAnyType anyType xsi:type=xsd:stringwkolcz/anyType anyType
RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?
That means those e4x expressions are not correct. Start by tracing the xmlResult, then work your way down into the xml a step at a time, tracing at each step to be sure you have the ccorrect data. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Sunday, February 01, 2009 8:02 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? The problem seems to be here. I tried to trace each item and the length of each and they come up null and blank. var xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType; From: Tracy Spratt tspr...@lariatinc.com Sent: Saturday, January 31, 2009 10:44 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? No, that was a typo. Change columns to names. Why is it blank? What is not working? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Saturday, January 31, 2009 12:04 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? I tried this (slight modification) and it came up blank. In your loop, you have xlColumns[i] but you declared 'xlNames'. Are they the same? Did I miss something? public function loginHandler(e:ResultEvent):void { var oLoginInfo:Object = new Object(); var xmlResult = XML(e.result) var xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType; for (var i:int=0;ixlNames.length();i++) { oLoginInfo[xlNames[i]] = xlValues[i]; } Alert.show(oLoginInfo.lastName,'Last Name'); } From: Tracy Spratt tspr...@lariatinc.com Sent: Saturday, January 31, 2009 7:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? Yeah that is not pretty xml. Since your data is not really a list, but more properties of an object, here is what I would do: var oLoginInfo:Object = new Object(); var xmlResult = XML(event.result) var xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType; for (var i:int=0;ixlNames.length();i++) { oLoginInfo[xlColumns[i]] = xlValues[i]; } To see a value do: trace(oLoginInfo.lastName); //will trace 'Kolcz' But also, don't forget to compare the result from both servers, to see if you get the same result. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Friday, January 30, 2009 9:00 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? This is what get from E4X. I have no idea on how to this to an easier format to use like what I get from an ArrayCollection with a RemoteObject. Do I use XMLListCollection? Any hint on how? If I declare my userData variable as public var userData:XMLListCollection = new XMLListCollection(); What do I set it to? Thanks! Result loginResponse xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/um ich/security xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; loginResult columnList xmlns=http://www.newatlanta.com/bluedragon; stringuniqname/string stringpassword/string stringlastName/string stringfirstName/string stringposition/string stringdepartment/string stringrole/string stringisActive/string /columnList data xmlns=http://www.newatlanta.com/bluedragon; ArrayOfAnyType anyType xsi:type=xsd:stringwkolcz/anyType anyType xsi:type=xsd:string2113/anyType anyType xsi:type=xsd:stringKolcz/anyType anyType xsi:type=xsd:stringWally/anyType anyType xsi:type=xsd:stringColdFusion / Flex Developer/anyType anyType xsi:type=xsd:stringPRMC/anyType anyType xsi:type=xsd:stringadmin/anyType anyType xsi:type=xsd:double1/anyType /ArrayOfAnyType /data /loginResult /loginResponse From: Tracy Spratt tspr...@lariatinc.com Sent: Thursday, January 29, 2009 8:29 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster
RE: [flexcoders] Calling web service from flex
Perhaps Flex has more stringent requirements for valid xml. You could use a tcp sniffer(charles, ServiceCapture) to look at the data traffic, or you could set resultFormat to text, and perhaps see it that way Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Vik Sent: Monday, February 02, 2009 9:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Calling web service from flex Hie I created a web service in Jdeveloper and deployed it in the jdeveloper. When I am trying to invoke it gives error as: Error# 1085: The element type meta must be terminated by matching end tag /meta. In my ws I am not returning anything like that. Also I tested the ws in http analyzer of jdeveloper and it returns the good expected result. any help will be appreciated. Thankx and Regards Vik Founder www.sakshum.com http://www.sakshum.com www.sakshum.blogspot.com http://www.sakshum.blogspot.com
RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?
Thanks, but how do you walk down this? ns1:loginResponse soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=http://security.umich.edu.prmcprojects; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; loginReturn xsi:type=ns2:QueryBean xmlns:ns2=http://rpc.xml.coldfusion; columnList soapenc:arrayType=xsd:string[8] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; columnList xsi:type=xsd:string UNIQNAME /columnList columnList xsi:type=xsd:string PASSWORD /columnList columnList xsi:type=xsd:string LASTNAME /columnList columnList xsi:type=xsd:string FIRSTNAME /columnList columnList xsi:type=xsd:string POSITION /columnList columnList xsi:type=xsd:string DEPARTMENT /columnList columnList xsi:type=xsd:string ROLE /columnList columnList xsi:type=xsd:string ISACTIVE /columnList /columnList data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; data soapenc:arrayType=xsd:anyType[8] xsi:type=soapenc:Array data xsi:type=soapenc:string wkolcz /data data xsi:type=soapenc:string 2113 /data data xsi:type=soapenc:string Kolcz /data data xsi:type=soapenc:string Wally /data data xsi:type=soapenc:string Senior ColdFusion Architect /data data xsi:type=soapenc:string PRMC /data data xsi:type=soapenc:string admin /data data xsi:type=soapenc:int 1 /data /data /data /loginReturn /ns1:loginResponse Do I set var xlNames:XMLList = xmlResult.loginResponse.loginReturn.columnList.columnList; and var xlValues:XMLList = xmlResult.loginResponse.loginReturn.data.data.data? From: Tracy Spratt tspr...@lariatinc.com Sent: Monday, February 02, 2009 7:17 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? That means those e4x expressions are not correct. Start by tracing the xmlResult, then work your way down into the xml a step at a time, tracing at each step to be sure you have the ccorrect data. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Sunday, February 01, 2009 8:02 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? The problem seems to be here. I tried to trace each item and the length of each and they come up null and blank. var xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType; From : Tracy Spratt tspr...@lariatinc.com Sent: Saturday, January 31, 2009 10:44 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? No, that was a typo. Change columns to names. Why is it blank? What is not working? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Saturday, January 31, 2009 12:04 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? I tried this (slight modification) and it came up blank. In your loop, you have xlColumns[i] but you declared 'xlNames'. Are they the same? Did I miss something? public function loginHandler(e:ResultEvent):void { var oLoginInfo:Object = new Object(); var xmlResult = XML(e.result) var xlNames:XMLList = xmlResult..columnList.string; var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType; for (var i:int=0;ixlNames.length();i++) { oLoginInfo[xlNames[i]] = xlValues[i]; } Alert.show(oLoginInfo.lastName,'Last Name'); } From : Tracy Spratt tspr...@lariatinc.com Sent: Saturday, January 31, 2009 7:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)? Yeah that is not pretty xml. Since your data is not really a list, but more properties of an object, here is what I would do: var oLoginInfo:Object = new Object(); var xmlResult = XML(event.result) var xlNames:XMLList =
[flexcoders] Tree Control Drag and Drop Help
This is a two part question. 1 - How can I keep a child from being dropped outside of it's parent? I want to be able to drag and drop within a nodes parent. 2 - How do I get a handle on the new index of the node that has been dropped. I can get the current index, the parents name, but not the location it was dropped. I am using an ArrayCollection to populate the tree, using the children attribute to create the child nodes. I am stuck with having to use the ArrayCollection. Any pointers would be great.
[flexcoders] Re: Flex/BlazeDS/Hibernate - serialization question
We are still dealing with this problem on a daily basis on my current project, and there still doesn't seem to be a good answer, at least as far as BlazeDS goes. The way that web frameworks deal with the issue is lazy loading, so that the data access to load the child objects doesn't happen until you actually access those objects, but because we're serializing the objects when we send them acrossed the wire in BlazeDS, the entire object graph gets realized, leading to some HUGE amounts of data possible, depending on how complex your data is. Now supposedly they have fixed this, meaning enabled lazy loading, in GraniteDS, and many are hoping for a similar solution coming out of the Spring/BlazeDS integration project. I say supposedly because I haven't personally tested it, we're 7 months into an 8 month project, not a good time to be thinking about changing out such a major part of our project! Good luck! Mike --- In flexcoders@yahoogroups.com, max.bruchmann So now everytime we send a person object back to the blazeds/hibernate backend all the groups he belongs to are getting serialized as well. This means a lot of overhead gets send to backend when I only modify some primitve data like the name. Even more problematic would be if in addition the group objects themselves would have list of persons that belongs to them. I guess I could use the [Transient] Metatag to not send the collection fields, but then I could not modify the groups in a person object easily. So if there is any best practice for these kind of problems, please let me know. Thanks in advance Max
Re: [flexcoders] Re: Flex/BlazeDS/Hibernate - serialization question
I had the same problem and solved it by using a superclass that contains only the subset of data the client really needs... For example: PersonRPC { id name } Person extends PersonRPC { lots of other data the flex client really do not need, but is usefull in the backend... } if you do not like this you could drop the inheritance and do something like: PersonRPC { id name PersonRPC(Person p) { this.id = p.id ; this.name = p.name } } and then serialize / return PersonRPC to the client... On Mon, Feb 2, 2009 at 5:47 PM, mmormando m...@mormando.com wrote: We are still dealing with this problem on a daily basis on my current project, and there still doesn't seem to be a good answer, at least as far as BlazeDS goes. The way that web frameworks deal with the issue is lazy loading, so that the data access to load the child objects doesn't happen until you actually access those objects, but because we're serializing the objects when we send them acrossed the wire in BlazeDS, the entire object graph gets realized, leading to some HUGE amounts of data possible, depending on how complex your data is. Now supposedly they have fixed this, meaning enabled lazy loading, in GraniteDS, and many are hoping for a similar solution coming out of the Spring/BlazeDS integration project. I say supposedly because I haven't personally tested it, we're 7 months into an 8 month project, not a good time to be thinking about changing out such a major part of our project! Good luck! Mike --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, max.bruchmann So now everytime we send a person object back to the blazeds/hibernate backend all the groups he belongs to are getting serialized as well. This means a lot of overhead gets send to backend when I only modify some primitve data like the name. Even more problematic would be if in addition the group objects themselves would have list of persons that belongs to them. I guess I could use the [Transient] Metatag to not send the collection fields, but then I could not modify the groups in a person object easily. So if there is any best practice for these kind of problems, please let me know. Thanks in advance Max -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
RE: [flexcoders] Re: Bug in ADG?, possible to bind labelFunction to editor with no dataField?
This is where I also manualy populate the event.itemRenderer.data = some text... I don't think you want to do that. You want to update the dataProvider item, and let the framework handle the itemRenderer. ... (the itemEnd handler expects this to be XML it seems)... In that sentence, what does this refer to? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of tntomek Sent: Friday, January 30, 2009 8:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Bug in ADG?, possible to bind labelFunction to editor with no dataField? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspr...@... wrote: If you know that var data:Object = event.itemRenderer.data; contains a string, why not just use toString() to put the string value in a string variable?: And I am not quite following you otherwise. What are you truing to do with describeType()? That is usually used with non-dynamic objects, but you have a simple 2d indexed array, correct? You said, array of rows and array of cells. Do you mean array or do you mean you have nested dynamic objects? If you have nested dynamic ovjects, you can examine them with a for-each or for-in loop. Note, describeType is costly. That means slow, so be sure you need it. It seems like a dangerous thing to do in a lableFunction. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of tntomek Sent: Thursday, January 29, 2009 6:07 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Bug in ADG?, possible to bind labelFunction to editor with no dataField? Hi, Does anyone have any idea how to edit data that does not come from fixed object properties i.e. myObject.Name but myObject.Attributes[2] which might be name? I have a 2D array, array of rows and array of cells for each row, both are arbitrary. I have this successfully displayed my data in AdvancedDataGrid via labelFunction. public function getContentLabel(item:GridRow, column:CustomLabelColumn) : String { if(item != null) { return item.Cells.getGridLabelCellAt(column.columnIndex).Label; } else { return null; } } How do I edit the data in these columns? I looked at http://www.adobe.com/livedocs/flex/3/html/help.html?content=celleditor_8 http://www.adobe.com/livedocs/flex/3/html/help.html?content=celleditor_ 8 .html#197235 http://www.adobe.com/livedocs/flex/3/html/help.html?content=celleditor_ http://www.adobe.com/livedocs/flex/3/html/help.html?content=celleditor_ 8.html#197235 and tried messing around with itemEditBegin and itemEditEnd. I have itemEditBegin working successfully where I am able to display my label in a text box. The itemEditEnd for ADG seems to crash because I'm using typed objects instead of plan strings or XML. In fact I'm convinced there is a bug in the itemEnd base handler. I tried calling preventDefault from the grids itemEnd function but no luck, I am forced to overwrite the event.reason so that the base class doesnt destroy my itemEditor. My issue is here: In AdvancedDataGridBaseEx.as private function itemEditorItemEditEndHandler(event:AdvancedDataGridEvent):void ... var newData:Object = itemEditorInstance[_columns[event.columnIndex].editorDataField]; var property:String = _columns[event.columnIndex].dataField; var data:Object = event.itemRenderer.data; var typeInfo:String = ; //WHY is this only XML??? my data variable has plan String text and yet I never make it into the typeInfo == String part since typeInfo is because the XML loop never executes on an object; for each(var variable:XML in describeType(data).variable) { if (property == variab...@... mailto:variable.%40name.toString ()) { typeInfo = variab...@... mailto:variable.%40type.toString (); break; } } if (typeInfo == String) { //NEVER make it here if (!(newData is String)) newData = newData.toString(); } //.. //CRASH HERE since property is null. // data = Some Text; if (data[property] != newData) { bChanged = true; data[property] = newData; } The code I described is in Flex DMV code, AdvancedDataGridBaseEx.as itemEndHandler. This is a private method and contains some private class variables so I'm not able to modify it's implementation. At first I tried to event.preventDefault() in my local handler but this implementation seems to do important stuff, I dont feel comfortable skipping this code but maybe I should. In addition, this method seems to make use of event.reason in addition to preventDefault. The array is not simple in that its a typed
RE: [flexcoders] enabling slider using radio button
On change of the radio button group, set the enabled property of the slider according to the selectedValue. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of johndoematrix Sent: Monday, February 02, 2009 5:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] enabling slider using radio button hi how can i enable a slider control by using a radio button group selection?
[flexcoders] SWFLoader problems (Loading flex swf into flex application)
Hi, I have build several flex widgets and am now developing an admin website also in flex into which i will load and edit the widgets. I am coming across several issues when doing this: 1) CSS styles clash. The parent application inherits some of the child's styles and the child inherits some of the parents styles when i load the child. How do i make sure styles don't get inherited either up or down? 2) datatips of graphs are placed in the wrong coordinates. If a datatip is supposed to be show at coordinate 20,20 of the child, it shows at coordinate 20,20 of the parent instead. I am using the SWFLoader object to load the widgets and passing parameters using flashvars. ie http://swfurl?blah=bligbloh=blug Thanks in advance! /Eric
[flexcoders] Re: This is kind of Wonderfl
And I jacked the url: http://wonderfl.kayac.com On Mon, Feb 2, 2009 at 8:57 AM, Steve Mathews happy...@gmail.com wrote: Spotted a post over at Techcrunch about wonderfl.kayack.com . Looks like a pretty cool project. And if the creator(s) happen to see this, a big thumbs up! Steve
Re: [flexcoders] This is kind of Wonderfl
I think the word for this is SPAM. Don't waste your time. - Original Message - From: Steve Mathews To: azf...@googlegroups.com ; flexcoders@yahoogroups.com ; Flash Coders List Sent: Monday, February 02, 2009 3:57 PM Subject: [flexcoders] This is kind of Wonderfl
[flexcoders] Validation question
I am working on a generic program that would validate user entries. If validation fails how do I inforce Flex's generic red border for the validated field? Thanks
[flexcoders] Re: How to create .doc files (Word files) with Flex ?
--- In flexcoders@yahoogroups.com, Mathieu Fernandez mathieu.fernan...@... wrote: Hi everybody, My question is very easy : how can Icreate .doc file using Flex 3 ? Is there any library ? component ? module that I can use to ? Thank you in advance. I've created an rtf library that allows you to save RTF files. If you save an RTF file as .doc, Microsoft Word will open it like a normal doc. It's still very feature limited, but it might help: http://code.google.com/p/rtflex/
Re: [flexcoders] sizing dinamically the screen
do you know where I can get examples of this ExternalInterface? Regards, Gustavo On Feb 2, 2009, at 10:45 AM, Tracy Spratt wrote: If that works in javascript, in different browsers, then you can get those values through ExternalInterface Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gustavo Duenas LRS Sent: Monday, February 02, 2009 9:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sizing dinamically the screen Ok, Coders, this is my problem I have set the width and height of my application to 1024 to 768 , it works on mac, but in pc you know what would happen with the IE7... well I just think this, just addind a creationComplete code like function initSize(){ screen.width= screen.availWidth; screen.height= screen/availHeight; this think works in Javascript there is counterpart on flex or it works on flex? I'd appreciate your help. Gus
Re: [flexcoders] Calling web service from flex
Hie how to set the type to text? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Mon, Feb 2, 2009 at 9:03 PM, Tracy Spratt tspr...@lariatinc.com wrote: Perhaps Flex has more stringent requirements for valid xml. You could use a tcp sniffer(charles, ServiceCapture) to look at the data traffic, or you could set resultFormat to text, and perhaps see it that way Tracy Spratt Lariat Services Flex development bandwidth available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Vik *Sent:* Monday, February 02, 2009 9:30 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Calling web service from flex Hie I created a web service in Jdeveloper and deployed it in the jdeveloper. When I am trying to invoke it gives error as: Error# 1085: The element type meta must be terminated by matching end tag /meta. In my ws I am not returning anything like that. Also I tested the ws in http analyzer of jdeveloper and it returns the good expected result. any help will be appreciated. Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com
[flexcoders] Re: Datagrid bound to XMLListCollection not updating properly - ItemRenderer issue?
To put it more simply, how do I force an itemRenderer bound to an image to refresh itself? --- In flexcoders@yahoogroups.com, flexcoder2008 djohnso...@... wrote: I am having trouble getting a datagrid that is bound to an XMLListCollection to update properly. The datagrid uses item renderers for a couple of the columns which display a simple colored image. mx:itemRenderer mx:Component mx:Canvas mx:Image source={data.MyImage} / /mx:Canvas /mx:Component /mx:itemRenderer This datagrid's dataProvider is set to bind to an XMLListCollection variable which contains XML with one of the nodes being MyImage This datagrid is a part of a module that gets loaded into a TabNavigator control. When the module initializes I loop through each row in the datagrid and check the values of the XML, and depending on certain values, I update the content of the MyImage node, which in turn will change the image source property. When the module first loads, everything works fine and the grid displays correctly. The problem happens when I load a different module into the tabNavigator. In a seperate module I do an update to this same XMLListCollection. (I am using the Cairngorm framework and all my shared data is stored in the model. ) When I reload the first module, and the initialization logic fires, as I am looping through to do the calculations to update the MyImage node I can see that everything is updating in the XMLListCollection correctly. However, when the dataGrid displays, the row that corresponds to the updated XML in the XMLListCollection is displaying a blank row, even though the underlying values are correct. I believe this is a problem with the ItemRenderer not updating itself. How do I force it to invalidate? I have tried doing a dataGrid.dataProvider.refresh() and calling invalidateDisplayList() etc. but cannot figure this one out. One workaround I discovered is that when I reload the first module after updating the underlying XMLListCollection, if I append a new empty node to the XML like so: myXML.* += empty /Then the updated row displays correctly! Has anybody else out there ran into this problem?
[flexcoders] generic toolbar
I am putting together a form and a toolbar for basic data operations: Save, New, Delete. The toolbar is a separate mxml file (tempEmplMaintToolbar). A fragment of my form looks like this: mx:FormItem tempEmplMaintToolbar id=toolbar /tempEmplMaintToolbar /mx:FormItem The toolbar code (prototype): ?xml version=1.0 encoding=utf-8? customToolbar xmlns=modulecode.* xmlns:mx=http://www.adobe.com/2006/mxml; width=100 height=300 mx:Script ![CDATA[ public function saveClick():void { } ]] /mx:Script mx:Button width=16 height=15 id=newbtn icon=@Embed(source='../assets/newsmall.png') toolTip=New /mx:Button mx:Button width=16 height=15 id=savebtn click=saveClick() icon=@Embed(source='../assets/savesmall.png') toolTip=Save /mx:Button mx:Button width=16 height=15 id=deletebtn icon=@Embed(source='../assets/delete.png') toolTip=Delete /mx:Button /customToolbar How do I provide a custom code for toolbar's buttons clicks? Or is there a better approach for what I am doing? Thanks
[flexcoders] Browser | PopUp | Resize Event | new height and new width
Hi I want to resize the popup when the browser is resized. I am using the event mx.events.ResizeEvent . The mx.events.ResizeEvent has oldHeight and oldWidth but i want to know the new height and new width. How can i get the new height and new width? I know it is simple but does not know where to look. Thanks ilikeflex
RE: [flexcoders] Tree Control Drag and Drop Help
Adrian, I am up against the same problem. Please share your knowledge on it so far. kramer.da...@consultant.com Many thanks. David _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of adrianpomilio Sent: Monday, February 02, 2009 8:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree Control Drag and Drop Help This is a two part question. 1 - How can I keep a child from being dropped outside of it's parent? I want to be able to drag and drop within a nodes parent. 2 - How do I get a handle on the new index of the node that has been dropped. I can get the current index, the parents name, but not the location it was dropped. I am using an ArrayCollection to populate the tree, using the children attribute to create the child nodes. I am stuck with having to use the ArrayCollection. Any pointers would be great.
Re: [flexcoders] Calling web service from flex
Hie Tracy Thankx for replying.. but even after changing the format to object/ text/ e4x and xml I get the same error just in different wording like xml parsing error for meta etc etc any suggestions? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Mon, Feb 2, 2009 at 9:03 PM, Tracy Spratt tspr...@lariatinc.com wrote: Perhaps Flex has more stringent requirements for valid xml. You could use a tcp sniffer(charles, ServiceCapture) to look at the data traffic, or you could set resultFormat to text, and perhaps see it that way Tracy Spratt Lariat Services Flex development bandwidth available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Vik *Sent:* Monday, February 02, 2009 9:30 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Calling web service from flex Hie I created a web service in Jdeveloper and deployed it in the jdeveloper. When I am trying to invoke it gives error as: Error# 1085: The element type meta must be terminated by matching end tag /meta. In my ws I am not returning anything like that. Also I tested the ws in http analyzer of jdeveloper and it returns the good expected result. any help will be appreciated. Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com
[flexcoders] Re: Browser | PopUp | Resize Event | new height and new width
Hi I got it event.currentTarget.width Thanks ilikeflex --- In flexcoders@yahoogroups.com, ilikeflex ilikef...@... wrote: Hi I want to resize the popup when the browser is resized. I am using the event mx.events.ResizeEvent . The mx.events.ResizeEvent has oldHeight and oldWidth but i want to know the new height and new width. How can i get the new height and new width? I know it is simple but does not know where to look. Thanks ilikeflex
Re: [flexcoders] Encrypted html
But what about the links? There will be links to other encrypted html files and I don't want to decrypt them all at once. Paul - Original Message - From: Kevin Benz To: flexcoders@yahoogroups.com Sent: Monday, February 02, 2009 4:25 PM Subject: RE: [flexcoders] Encrypted html No reason why you couldn't do it locally without the web server. Open a file, decrypt it, display it, no need for http as it ultimately is a file servlet. K From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Paul Andrews Sent: Sunday, February 01, 2009 3:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Encrypted html In an ideal world, I'd have an AIR app displaying HTML pages sourced from encrypted data installed on the same machine. Seems to me that the only way to keep the data encrypted would be to install a web server which decrypts the pages on the fly. Am I missing a something simple? Paul
RE: [flexcoders] Tree Control Drag and Drop Help
When a drag drop operation occurs on a tree, the drag drop handlers call the public calculateDropIndex() function. This function stores all the properties that you want in an mx_internal variable called _dropData of Object data type. So, make sure that your class import and use the mx_internal namespace and attach a listener to the tree's dragDrop event. In the event handler, look up the _dropData variable and specifically the parent and index properties. If this drop operation should not be allowed, call the preventDefault() method on the event. That should do the trick. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of David Kramer Sent: Monday, February 02, 2009 12:34 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Tree Control Drag and Drop Help Adrian, I am up against the same problem. Please share your knowledge on it so far. kramer.da...@consultant.com mailto:kramer.da...@consultant.com Many thanks. David From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of adrianpomilio Sent: Monday, February 02, 2009 8:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree Control Drag and Drop Help This is a two part question. 1 - How can I keep a child from being dropped outside of it's parent? I want to be able to drag and drop within a nodes parent. 2 - How do I get a handle on the new index of the node that has been dropped. I can get the current index, the parents name, but not the location it was dropped. I am using an ArrayCollection to populate the tree, using the children attribute to create the child nodes. I am stuck with having to use the ArrayCollection. Any pointers would be great.
Re: [flexcoders] Validation question
If you set errorString property of the validated field, the red border will plot automatically. -- Marco Catunda On Mon, Feb 2, 2009 at 2:05 PM, markgoldin_2000 markgoldin_2...@yahoo.com wrote: I am working on a generic program that would validate user entries. If validation fails how do I inforce Flex's generic red border for the validated field? Thanks
Re: [flexcoders] Buttonbar not centering at startup
Ben, horizontalCenter=0?? It should be horizontalAlign=center, shouldn't it? -- Marco Catunda On Sun, Feb 1, 2009 at 10:29 PM, Ben Cessa bce...@gmail.com wrote: Hi again, right now I'm just playing a little with AIR and PV3D writing a little useless app as an exercise. I'm having an odd problem with ButtonBar, the thing don't get the horizontal center when the apps starts, is aligned to the left, however, as soon as I start resizing the main window it works very nice. Any ideas about what could this be? The actual portion of code I'm using is this: mx:ButtonBar id=figSelector width=100% height=100% horizontalGap=20 horizontalCenter=0 verticalAlign=middle buttonWidth=50 buttonHeight=50 And here's a little screencap of what the component shows at startup By the way, I'm also having problems removing that ugly background from the buttons, can't figure out the skin needed, I was thinking in use a 100% transparent PNG as background image but I'm not sure, just in case someone know how to remove that too :P Well, thanx a lot for your attention and I hope someone can give me hand with this
[flexcoders] Re: sizing dinamically the screen
Gustavo: Sorry, but I don't think the approach you are taking is necessarily advisable, or even technically correct (in one regard). Specifically: 1) screen.width (and screen.height, and screen.availableWidth, etc.) allow JavaScript (DOM) code to discover the size of the user's monitor (screen hardware), not of the browser window in which your Flex application is running. (The available* properties then subtract from that size any operating system 'reserved' screen real estate, such as the Windows task bar.) 2) I would be very surprised if JavaScript code could alter the value of any of these properties--by definition they could not be under the control of a browser window, so they should be read-only. Therefore, code like screen.width = 1024; should not be expected to work. Even if that code _does_ happen to work with one Browser or Operating System, I wouldn't rely on it! 3) A reasonably reliable way to ensure that your application is running in a browser window of the size that you want, is to use the JavaScript/browser DOM Window.open() method to open a new window, which gives you the opportunity to specify the size of browser window that you want your application to have. Be sure to note that you are specifying the overall (e.g., outer) size of the window; you are NOT specifying how much (client) area that your application will get. *** Different brands (and versions) of browsers will use different amounts of space for their own 'chrome' (UI elements such as the URL/address bar, etc.). I don't know of any way other than cross-browser testing to discover the exact values, and they may change when a new version of a browser is released! 4) If you don't want to open a new browser window, then you can use the Window.resizeTo() DOM call in order to modify the size of the current window. For both 3) and 4), security policy in modern browsers may affect: the success of opening a new window (i.e., pop-up blockers), and to place limits on net window size. 5) You can call the JavaScript/DOM code from your Flex application using the Flash ExternalInterface API. For more information, see (for example): http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_4.html 6) For more information about the Window.resizeTo() browser DOM API, see (for example): http://msdn.microsoft.com/en-us/library/ms536723(VS.85).aspx 7) My _recommendation_ is that you consider abandoning the notion of a fixed-size application window. Flex containers support liquid layout very nicely and it is not much (extra) work to let your application work that way. In other words, if/when the user resizes their browser window, have your application adjust its layout accordingly. If you do that, I think that it is also reasonable to specify a (window) size below which your application won't be able to re-size itself to (and, thus, scroll bars may appear). Good luck! --Jim --- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gdue...@... wrote: do you know where I can get examples of this ExternalInterface? Regards, Gustavo On Feb 2, 2009, at 10:45 AM, Tracy Spratt wrote: If that works in javascript, in different browsers, then you can get those values through ExternalInterface Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gustavo Duenas LRS Sent: Monday, February 02, 2009 9:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sizing dinamically the screen Ok, Coders, this is my problem I have set the width and height of my application to 1024 to 768 , it works on mac, but in pc you know what would happen with the IE7... well I just think this, just addind a creationComplete code like function initSize(){ screen.width= screen.availWidth; screen.height= screen/availHeight; this think works in Javascript there is counterpart on flex or it works on flex? I'd appreciate your help. Gus
[flexcoders] formIsValid and formIsEmpty
How do we use these flags? Are they properties of a form? Thanks
[flexcoders] Air/Flex/Html roundtrip?
If this were an ideal world I'd be able to specify a function in my flex/AIR app as an html link in an html page rendered by the application. Any ideas about how I might achieve this? Paul
RE: [flexcoders] Re: Datagrid bound to XMLListCollection not updating properly - ItemRenderer issue?
Usually this means you are not using the Collection API to update the dataProvider, but are directly assigning a value to an item property. Using the API to update the dataProvider will ensure the necessary events are dispatched to ensure your visible UI gets updated. Another alternative is to call Collection.itemUpdated(item) after each update. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexcoder2008 Sent: Monday, February 02, 2009 11:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Datagrid bound to XMLListCollection not updating properly - ItemRenderer issue? To put it more simply, how do I force an itemRenderer bound to an image to refresh itself? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , flexcoder2008 djohnso...@... wrote: I am having trouble getting a datagrid that is bound to an XMLListCollection to update properly. The datagrid uses item renderers for a couple of the columns which display a simple colored image. mx:itemRenderer mx:Component mx:Canvas mx:Image source={data.MyImage} / /mx:Canvas /mx:Component /mx:itemRenderer This datagrid's dataProvider is set to bind to an XMLListCollection variable which contains XML with one of the nodes being MyImage This datagrid is a part of a module that gets loaded into a TabNavigator control. When the module initializes I loop through each row in the datagrid and check the values of the XML, and depending on certain values, I update the content of the MyImage node, which in turn will change the image source property. When the module first loads, everything works fine and the grid displays correctly. The problem happens when I load a different module into the tabNavigator. In a seperate module I do an update to this same XMLListCollection. (I am using the Cairngorm framework and all my shared data is stored in the model. ) When I reload the first module, and the initialization logic fires, as I am looping through to do the calculations to update the MyImage node I can see that everything is updating in the XMLListCollection correctly. However, when the dataGrid displays, the row that corresponds to the updated XML in the XMLListCollection is displaying a blank row, even though the underlying values are correct. I believe this is a problem with the ItemRenderer not updating itself. How do I force it to invalidate? I have tried doing a dataGrid.dataProvider.refresh() and calling invalidateDisplayList() etc. but cannot figure this one out. One workaround I discovered is that when I reload the first module after updating the underlying XMLListCollection, if I append a new empty node to the XML like so: myXML.* += empty / Then the updated row displays correctly! Has anybody else out there ran into this problem?
RE: [flexcoders] generic toolbar
Have the toolbar dispatch events, like mainTBSave, mainTBDelete.. Listen for those events in each component that uses the toolbar, and perform the specific action needed by that component+action Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Monday, February 02, 2009 12:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] generic toolbar I am putting together a form and a toolbar for basic data operations: Save, New, Delete. The toolbar is a separate mxml file (tempEmplMaintToolbar). A fragment of my form looks like this: mx:FormItem tempEmplMaintToolbar id=toolbar /tempEmplMaintToolbar /mx:FormItem The toolbar code (prototype): ?xml version=1.0 encoding=utf-8? customToolbar xmlns=modulecode.* xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=100 height=300 mx:Script ![CDATA[ public function saveClick():void { } ]] /mx:Script mx:Button width=16 height=15 id=newbtn icon=@Embed(source='../assets/newsmall.png') toolTip=New /mx:Button mx:Button width=16 height=15 id=savebtn click=saveClick() icon=@Embed(source='../assets/savesmall.png') toolTip=Save /mx:Button mx:Button width=16 height=15 id=deletebtn icon=@Embed(source='../assets/delete.png') toolTip=Delete /mx:Button /customToolbar How do I provide a custom code for toolbar's buttons clicks? Or is there a better approach for what I am doing? Thanks
Re: [flexcoders] Re: sizing dinamically the screen
OK,,I have this using the external interface let me know if I'm wrong...:) mx:script import flash.external.*; publicFunction resizerFlash():void{ var h:uint; var w:uint; if (ExternalInterface.available){ var availableHeight:uint = browserHeight ; h= ExternalInterface.call(availableHeight, stage.height); } if (ExternalInterface.available){ var availableWidth:uint = browserWidth; w=ExternalInterface.call(availableHeight, stage.width); } } in the html: script type=javascript var browserHeight= screen.availHeight; var browserWidth = screen.availWidth; /script I'm just adapting something I found about using the external interface let me know if I'm wrong or this is going to be a fiasco Gustavo On Feb 2, 2009, at 1:33 PM, Gustavo Duenas LRS wrote: Ok, jim, my flex ste: is: http://leftandrightsolutions.com/lrsad/bin/lrsad.html please check it on a pc with windows and let me know if this one looks good on windows/vista/xp borwsers, prefenrently IE. Regards, Gustavo P.d: the aplication for mac computer has a window.open() but problem is the windows browsers, so instead of that I've been trying to apporach the windows, not much of success right now. On Feb 2, 2009, at 1:13 PM, jim.abbott45 wrote: Gustavo: Sorry, but I don't think the approach you are taking is necessarily advisable, or even technically correct (in one regard). Specifically: 1) screen.width (and screen.height, and screen.availableWidth, etc.) allow JavaScript (DOM) code to discover the size of the user's monitor (screen hardware), not of the browser window in which your Flex application is running. (The available* properties then subtract from that size any operating system 'reserved' screen real estate, such as the Windows task bar.) 2) I would be very surprised if JavaScript code could alter the value of any of these properties--by definition they could not be under the control of a browser window, so they should be read-only. Therefore, code like screen.width = 1024; should not be expected to work. Even if that code _does_ happen to work with one Browser or Operating System, I wouldn't rely on it! 3) A reasonably reliable way to ensure that your application is running in a browser window of the size that you want, is to use the JavaScript/browser DOM Window.open() method to open a new window, which gives you the opportunity to specify the size of browser window that you want your application to have. Be sure to note that you are specifying the overall (e.g., outer) size of the window; you are NOT specifying how much (client) area that your application will get. *** Different brands (and versions) of browsers will use different amounts of space for their own 'chrome' (UI elements such as the URL/address bar, etc.). I don't know of any way other than cross-browser testing to discover the exact values, and they may change when a new version of a browser is released! 4) If you don't want to open a new browser window, then you can use the Window.resizeTo() DOM call in order to modify the size of the current window. For both 3) and 4), security policy in modern browsers may affect: the success of opening a new window (i.e., pop-up blockers), and to place limits on net window size. 5) You can call the JavaScript/DOM code from your Flex application using the Flash ExternalInterface API. For more information, see (for example): http://livedocs.adobe.com/flex/3/html/help.html? content=passingarguments_4.html 6) For more information about the Window.resizeTo() browser DOM API, see (for example): http://msdn.microsoft.com/en-us/library/ms536723(VS.85).aspx 7) My _recommendation_ is that you consider abandoning the notion of a fixed-size application window. Flex containers support liquid layout very nicely and it is not much (extra) work to let your application work that way. In other words, if/when the user resizes their browser window, have your application adjust its layout accordingly. If you do that, I think that it is also reasonable to specify a (window) size below which your application won't be able to re-size itself to (and, thus, scroll bars may appear). Good luck! --Jim --- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gdue...@... wrote: do you know where I can get examples of this ExternalInterface? Regards, Gustavo On Feb 2, 2009, at 10:45 AM, Tracy Spratt wrote: If that works in javascript, in different browsers, then you can get those values through ExternalInterface Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gustavo Duenas LRS Sent: Monday, February 02, 2009 9:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sizing dinamically the screen Ok, Coders, this is my problem I have set the width and height of my application to 1024 to 768 , it works on mac, but in pc you know what would
Re: [flexcoders] sizing dinamically the screen
well actually the problem with the javascript it seems not to work properly on IE7+ vista or even in the xp, so I'm looking for better ways to do this inside the actionscript, I mean to change the entire height and width of the application, because since it is set actually on 1024 x 768, in the low resolution screens or in windows, it appears totally blow out or bigger... Thanks. Gustavo On Feb 2, 2009, at 10:45 AM, Tracy Spratt wrote: If that works in javascript, in different browsers, then you can get those values through ExternalInterface Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gustavo Duenas LRS Sent: Monday, February 02, 2009 9:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sizing dinamically the screen Ok, Coders, this is my problem I have set the width and height of my application to 1024 to 768 , it works on mac, but in pc you know what would happen with the IE7... well I just think this, just addind a creationComplete code like function initSize(){ screen.width= screen.availWidth; screen.height= screen/availHeight; this think works in Javascript there is counterpart on flex or it works on flex? I'd appreciate your help. Gus
[flexcoders] XML walkdown Help
I am getting a weird return from Blue Dragon's CFC wsdl as my e.result. I need to set this to 2 local XMLList variables but am having a devil of a time walking down this path to the core nodes. Any ideas on how to make this usable? Tracy has been trying to help me, but this return item is impossible to work with. I tried xmlColumns = loginReponse.loginReturn.columnList.columnList but it doesn't work. Neither does the same for data. Here is the result that is returned from Blue Dragon: ns1:loginResponse soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=http://security.umich.edu.prmcprojects; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; loginReturn xsi:type=ns2:QueryBean xmlns:ns2=http://rpc.xml.coldfusion; columnList soapenc:arrayType=xsd:string[8] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; columnList xsi:type=xsd:string UNIQNAME /columnList columnList xsi:type=xsd:string PASSWORD /columnList columnList xsi:type=xsd:string LASTNAME /columnList columnList xsi:type=xsd:string FIRSTNAME /columnList columnList xsi:type=xsd:string POSITION /columnList columnList xsi:type=xsd:string DEPARTMENT /columnList columnList xsi:type=xsd:string ROLE /columnList columnList xsi:type=xsd:string ISACTIVE /columnList /columnList data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; data soapenc:arrayType=xsd:anyType[8] xsi:type=soapenc:Array data xsi:type=soapenc:string wkolcz /data data xsi:type=soapenc:string 2113 /data data xsi:type=soapenc:string Kolcz /data data xsi:type=soapenc:string Wally /data data xsi:type=soapenc:string Senior ColdFusion Architect /data data xsi:type=soapenc:string PRMC /data data xsi:type=soapenc:string admin /data data xsi:type=soapenc:int 1 /data /data /data /loginReturn /ns1:loginResponse
Re: [flexcoders] SWFLoader problems (Loading flex swf into flex application)
Depending on how you load your external swf, specifying a child ApplicationDomain might solve your problem. You should probably base it off the top level domain, but if that also doesn't work you can create a new one. // Create child var appDomain : ApplicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); // Create new var appDomain : ApplicationDomain = new ApplicationDomain(null); You specify the application domain in the LoaderContext that you supply to the loader. Hope this helps, Richard On Mon, Feb 2, 2009 at 3:55 PM, ericbichara ericbich...@yahoo.com wrote: Hi, I have build several flex widgets and am now developing an admin website also in flex into which i will load and edit the widgets. I am coming across several issues when doing this: 1) CSS styles clash. The parent application inherits some of the child's styles and the child inherits some of the parents styles when i load the child. How do i make sure styles don't get inherited either up or down? 2) datatips of graphs are placed in the wrong coordinates. If a datatip is supposed to be show at coordinate 20,20 of the child, it shows at coordinate 20,20 of the parent instead. I am using the SWFLoader object to load the widgets and passing parameters using flashvars. ie http://swfurl?blah=bligbloh=blughttp://swfurl/?blah=bligbloh=blug Thanks in advance! /Eric
[flexcoders] Need Details Creating Custom UIComponents with AS3
Can someone send me some links to information on all the ins and outs of creating good visual custom Flex UIComponents with Actionscript (NOT MXML)? (i.e. a class that extends UIComponent) I've actually done it before, but had some bugs and headaches because I didn't fully understand all the intricacies of method overriding you have to/should do - things like measure(), clone(), updateDisplayList (), etc. - so that it looks/works right and the UIComponent stays within its container (for example, you create a UIComponent that draws a large circle, but you want the circle to remain within the bounds of a scrollpane component it is a child of). I've googled all over the place, including adobe devnet and the Flexcoders archives and have come up short. Seems to be bits and pieces - I'm looking for some kind of explanation or simple example of writing a visual component I understand the AS3 drawing API and databinding, I just want info on the rest of best practices for extending UIComponent. Seems like I had seen a tutorial on this before on devnet, but I can't locate it now (the search on that thing is terrible!) - also others have made some good posts on that here as well, but can't find those either. Thanks!
[flexcoders] Broken pipe error when uploading file with Flex
I'm getting a broken pipe error in my Java server log when trying to upload a file using Flex. I've got a progress bar attached to the upload and it goes to 100% and then gets stuck while uploading. The file resides on a network drive rather than a local drive. Could this be causing the issue? Is it a security problem? But it's able to handle other files from that same location without any issues. The other weird thing: If I wait a moment and refresh the Flex page, it shows that the file uploaded fine. Is there an event I can listen for to determine what's happening? Help!
[flexcoders] resize the popup window according to browser
Hi I am trying to 1.resize the popup window 2.center the pop up when the browser is resized. I am trying to get the ref of the pop up window through systemManager.popUpChildren.numChildren. But this does not return the correct numbers.It display two though there is only one popup. Copy paste the code and resize the browser to see the result. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=onComplete() mx:Script ![CDATA[ import mx.events.ResizeEvent; import mx.controls.Alert; import mx.containers.TitleWindow; import mx.containers.Tile; import mx.managers.PopUpManager; import mx.managers.PopUpManagerChildList; private function onComplete() : void { addEventListener (ResizeEvent.RESIZE,onCountPopups); } private function onNewPopup() : void { PopUpManager.createPopUp(this, TitleWindow,true, PopUpManagerChildList.POPUP) } private function onCountPopups(event:Event) : void { var nChildren : int = systemManager.popUpChildren.numChildren; trace(number of popups: + nChildren); } ]] /mx:Script mx:Button label=new Popup click=onNewPopup()/ mx:Button label=count popups click=onCountPopups(event)/ /mx:Application How to get the correct number??? Any pointer?? Thanks ilikeflex
[flexcoders] Re: Calling web service from flex
Can you post the actual XML response from the web service? --- In flexcoders@yahoogroups.com, Vik vik@... wrote: Hie Tracy Thankx for replying.. but even after changing the format to object/ text/ e4x and xml I get the same error just in different wording like xml parsing error for meta etc etc any suggestions? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Mon, Feb 2, 2009 at 9:03 PM, Tracy Spratt tspr...@... wrote: Perhaps Flex has more stringent requirements for valid xml. You could use a tcp sniffer(charles, ServiceCapture) to look at the data traffic, or you could set resultFormat to text, and perhaps see it that way Tracy Spratt Lariat Services Flex development bandwidth available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Vik *Sent:* Monday, February 02, 2009 9:30 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Calling web service from flex Hie I created a web service in Jdeveloper and deployed it in the jdeveloper. When I am trying to invoke it gives error as: Error# 1085: The element type meta must be terminated by matching end tag /meta. In my ws I am not returning anything like that. Also I tested the ws in http analyzer of jdeveloper and it returns the good expected result. any help will be appreciated. Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com
RE: [flexcoders] resize the popup window according to browser
Why not store a reference to the popup in an instance variable instead of what you are trying? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex Sent: Monday, February 02, 2009 2:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] resize the popup window according to browser Hi I am trying to 1.resize the popup window 2.center the pop up when the browser is resized. I am trying to get the ref of the pop up window through systemManager.popUpChildren.numChildren. But this does not return the correct numbers.It display two though there is only one popup. Copy paste the code and resize the browser to see the result. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical creationComplete=onComplete() mx:Script ![CDATA[ import mx.events.ResizeEvent; import mx.controls.Alert; import mx.containers.TitleWindow; import mx.containers.Tile; import mx.managers.PopUpManager; import mx.managers.PopUpManagerChildList; private function onComplete() : void { addEventListener (ResizeEvent.RESIZE,onCountPopups); } private function onNewPopup() : void { PopUpManager.createPopUp(this, TitleWindow,true, PopUpManagerChildList.POPUP) } private function onCountPopups(event:Event) : void { var nChildren : int = systemManager.popUpChildren.numChildren; trace(number of popups: + nChildren); } ]] /mx:Script mx:Button label=new Popup click=onNewPopup()/ mx:Button label=count popups click=onCountPopups(event)/ /mx:Application How to get the correct number??? Any pointer?? Thanks ilikeflex
RE: [flexcoders] XML walkdown Help
Is what you posted the result of doing trace(xmlResult.toXMLString)? What happens if you trace(xmlResult.loginReturn.toXMLString())? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Monday, February 02, 2009 2:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML walkdown Help I am getting a weird return from Blue Dragon's CFC wsdl as my e.result. I need to set this to 2 local XMLList variables but am having a devil of a time walking down this path to the core nodes. Any ideas on how to make this usable? Tracy has been trying to help me, but this return item is impossible to work with. I tried xmlColumns = loginReponse.loginReturn.columnList.columnList but it doesn't work. Neither does the same for data. Here is the result that is returned from Blue Dragon: ns1:loginResponse soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=http://security.umich.edu.prmcprojects; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; loginReturn xsi:type=ns2:QueryBean xmlns:ns2=http://rpc.xml.coldfusion; columnList soapenc:arrayType=xsd:string[8] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; columnList xsi:type=xsd:string UNIQNAME /columnList columnList xsi:type=xsd:string PASSWORD /columnList columnList xsi:type=xsd:string LASTNAME /columnList columnList xsi:type=xsd:string FIRSTNAME /columnList columnList xsi:type=xsd:string POSITION /columnList columnList xsi:type=xsd:string DEPARTMENT /columnList columnList xsi:type=xsd:string ROLE /columnList columnList xsi:type=xsd:string ISACTIVE /columnList /columnList data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; data soapenc:arrayType=xsd:anyType[8] xsi:type=soapenc:Array data xsi:type=soapenc:string wkolcz /data data xsi:type=soapenc:string 2113 /data data xsi:type=soapenc:string Kolcz /data data xsi:type=soapenc:string Wally /data data xsi:type=soapenc:string Senior ColdFusion Architect /data data xsi:type=soapenc:string PRMC /data data xsi:type=soapenc:string admin /data data xsi:type=soapenc:int 1 /data /data /data /loginReturn /ns1:loginResponse
[flexcoders] Re: resize the popup window according to browser
Hi I have couple of modules in my application and each module will different popups. So i have to change the code in all the modules for storing the instance and passing to main application which i do not want to do. And as all my popus are modal so systemManager.popUpChildren.numChildren should solve my problem. Thanks ilikeflex --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Why not store a reference to the popup in an instance variable instead of what you are trying? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex Sent: Monday, February 02, 2009 2:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] resize the popup window according to browser Hi I am trying to 1.resize the popup window 2.center the pop up when the browser is resized. I am trying to get the ref of the pop up window through systemManager.popUpChildren.numChildren. But this does not return the correct numbers.It display two though there is only one popup. Copy paste the code and resize the browser to see the result. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical creationComplete=onComplete() mx:Script ![CDATA[ import mx.events.ResizeEvent; import mx.controls.Alert; import mx.containers.TitleWindow; import mx.containers.Tile; import mx.managers.PopUpManager; import mx.managers.PopUpManagerChildList; private function onComplete() : void { addEventListener (ResizeEvent.RESIZE,onCountPopups); } private function onNewPopup() : void { PopUpManager.createPopUp(this, TitleWindow,true, PopUpManagerChildList.POPUP) } private function onCountPopups(event:Event) : void { var nChildren : int = systemManager.popUpChildren.numChildren; trace(number of popups: + nChildren); } ]] /mx:Script mx:Button label=new Popup click=onNewPopup()/ mx:Button label=count popups click=onCountPopups(event)/ /mx:Application How to get the correct number??? Any pointer?? Thanks ilikeflex
Re: [flexcoders] Re: sizing dinamically the screen
Ok, jim, my flex ste: is: http://leftandrightsolutions.com/lrsad/bin/lrsad.html please check it on a pc with windows and let me know if this one looks good on windows/vista/xp borwsers, prefenrently IE. Regards, Gustavo P.d: the aplication for mac computer has a window.open() but problem is the windows browsers, so instead of that I've been trying to apporach the windows, not much of success right now. On Feb 2, 2009, at 1:13 PM, jim.abbott45 wrote: Gustavo: Sorry, but I don't think the approach you are taking is necessarily advisable, or even technically correct (in one regard). Specifically: 1) screen.width (and screen.height, and screen.availableWidth, etc.) allow JavaScript (DOM) code to discover the size of the user's monitor (screen hardware), not of the browser window in which your Flex application is running. (The available* properties then subtract from that size any operating system 'reserved' screen real estate, such as the Windows task bar.) 2) I would be very surprised if JavaScript code could alter the value of any of these properties--by definition they could not be under the control of a browser window, so they should be read-only. Therefore, code like screen.width = 1024; should not be expected to work. Even if that code _does_ happen to work with one Browser or Operating System, I wouldn't rely on it! 3) A reasonably reliable way to ensure that your application is running in a browser window of the size that you want, is to use the JavaScript/browser DOM Window.open() method to open a new window, which gives you the opportunity to specify the size of browser window that you want your application to have. Be sure to note that you are specifying the overall (e.g., outer) size of the window; you are NOT specifying how much (client) area that your application will get. *** Different brands (and versions) of browsers will use different amounts of space for their own 'chrome' (UI elements such as the URL/address bar, etc.). I don't know of any way other than cross-browser testing to discover the exact values, and they may change when a new version of a browser is released! 4) If you don't want to open a new browser window, then you can use the Window.resizeTo() DOM call in order to modify the size of the current window. For both 3) and 4), security policy in modern browsers may affect: the success of opening a new window (i.e., pop-up blockers), and to place limits on net window size. 5) You can call the JavaScript/DOM code from your Flex application using the Flash ExternalInterface API. For more information, see (for example): http://livedocs.adobe.com/flex/3/html/help.html? content=passingarguments_4.html 6) For more information about the Window.resizeTo() browser DOM API, see (for example): http://msdn.microsoft.com/en-us/library/ms536723(VS.85).aspx 7) My _recommendation_ is that you consider abandoning the notion of a fixed-size application window. Flex containers support liquid layout very nicely and it is not much (extra) work to let your application work that way. In other words, if/when the user resizes their browser window, have your application adjust its layout accordingly. If you do that, I think that it is also reasonable to specify a (window) size below which your application won't be able to re-size itself to (and, thus, scroll bars may appear). Good luck! --Jim --- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gdue...@... wrote: do you know where I can get examples of this ExternalInterface? Regards, Gustavo On Feb 2, 2009, at 10:45 AM, Tracy Spratt wrote: If that works in javascript, in different browsers, then you can get those values through ExternalInterface Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gustavo Duenas LRS Sent: Monday, February 02, 2009 9:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sizing dinamically the screen Ok, Coders, this is my problem I have set the width and height of my application to 1024 to 768 , it works on mac, but in pc you know what would happen with the IE7... well I just think this, just addind a creationComplete code like function initSize(){ screen.width= screen.availWidth; screen.height= screen/availHeight; this think works in Javascript there is counterpart on flex or it works on flex? I'd appreciate your help. Gus
[flexcoders] Re: Bug in ADG?, possible to bind labelFunction to editor with no dataField?
--- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote: Hi, Does anyone have any idea how to edit data that does not come from fixed object properties i.e. myObject.Name but myObject.Attributes[2] which might be name? I have a 2D array, array of rows and array of cells for each row, both are arbitrary. I have this successfully displayed my data in AdvancedDataGrid via labelFunction. public function getContentLabel(item:GridRow, column:CustomLabelColumn) : String { if(item != null) { return item.Cells.getGridLabelCellAt(column.columnIndex).Label; } else { return null; } } How do I edit the data in these columns? I looked at http://www.adobe.com/livedocs/flex/3/html/help.html?content=celleditor_8.html#197235 and tried messing around with itemEditBegin and itemEditEnd. I have itemEditBegin working successfully where I am able to display my label in a text box. The itemEditEnd for ADG seems to crash because I'm using typed objects instead of plan strings or XML. In fact I'm convinced there is a bug in the itemEnd base handler. I tried calling preventDefault from the grids itemEnd function but no luck, I am forced to overwrite the event.reason so that the base class doesnt destroy my itemEditor. My issue is here: In AdvancedDataGridBaseEx.as private function itemEditorItemEditEndHandler(event:AdvancedDataGridEvent):void ... var newData:Object = itemEditorInstance[_columns[event.columnIndex].editorDataField]; var property:String = _columns[event.columnIndex].dataField; var data:Object = event.itemRenderer.data; var typeInfo:String = ; //WHY is this only XML??? my data variable has plan String text and yet I never make it into the typeInfo == String part since typeInfo is because the XML loop never executes on an object; for each(var variable:XML in describeType(data).variable) { if (property == variab...@...()) { typeInfo = variab...@...(); break; } } if (typeInfo == String) { //NEVER make it here if (!(newData is String)) newData = newData.toString(); } //.. //CRASH HERE since property is null. // data = Some Text; if (data[property] != newData) { bChanged = true; data[property] = newData; } To add, the following line expects a dataField to be provided (I have not) var property:String = _columns[event.columnIndex].dataField; but the code should not get there if its just a string.
RE: [flexcoders] XML walkdown Help
Ok, here is the skinny...I changed the traces to Alerts (they weren't working for me) and this is what I got. the result from the xmlResult = loginResponse xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; loginResult columnList xmlns=http://www.newatlanta.com/bluedragon; stringuniqname/string stringrole/string stringfirstName/string stringlastName/string /columnList data xmlns=http://www.newatlanta.com/bluedragon; ArrayOfAnyType anyType xsi:type=xsd:stringwkolcz/anyType anyType xsi:type=xsd:stringadmin/anyType anyType xsi:type=xsd:stringWally/anyType anyType xsi:type=xsd:stringKolcz/anyType /ArrayOfAnyType /data /loginResult /loginResponse Everything else came up blank. From: Tracy Spratt tspr...@lariatinc.com Sent: Monday, February 02, 2009 11:56 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] XML walkdown Help Is what you posted the result of doing trace(xmlResult.toXMLString)? What happens if you trace(xmlResult.loginReturn.toXMLString())? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Monday, February 02, 2009 2:08 PM To:flexcoders@yahoogroups.com Subject: [flexcoders] XML walkdown Help I am getting a weird return from Blue Dragon's CFC wsdl as my e.result. I need to set this to 2 local XMLList variables but am having a devil of a time walking down this path to the core nodes. Any ideas on how to make this usable? Tracy has been trying to help me, but this return item is impossible to work with. I tried xmlColumns = loginReponse.loginReturn.columnList.columnList but it doesn't work. Neither does the same for data. Here is the result that is returned from Blue Dragon: ns1:loginResponse soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=http://security.umich.edu.prmcprojects; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; loginReturn xsi:type=ns2:QueryBean xmlns:ns2=http://rpc.xml.coldfusion; columnList soapenc:arrayType=xsd:string[8] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; columnList xsi:type=xsd:string UNIQNAME /columnList columnList xsi:type=xsd:string PASSWORD /columnList columnList xsi:type=xsd:string LASTNAME /columnList columnList xsi:type=xsd:string FIRSTNAME /columnList columnList xsi:type=xsd:string POSITION /columnList columnList xsi:type=xsd:string DEPARTMENT /columnList columnList xsi:type=xsd:string ROLE /columnList columnList xsi:type=xsd:string ISACTIVE /columnList /columnList data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; data soapenc:arrayType=xsd:anyType[8] xsi:type=soapenc:Array data xsi:type=soapenc:string wkolcz /data data xsi:type=soapenc:string 2113 /data data xsi:type=soapenc:string Kolcz /data data xsi:type=soapenc:string Wally /data data xsi:type=soapenc:string Senior ColdFusion Architect /data data xsi:type=soapenc:string PRMC /data data xsi:type=soapenc:string admin /data data xsi:type=soapenc:int 1 /data /data /data /loginReturn /ns1:loginResponse
[flexcoders] Re: [Fwd: UPDATE: how to forcibly minimize a window via flexmdi window]
This small example works for me (Using FlexLib 2.4): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=onCreationComplete() mx:Script ![CDATA[ import flexlib.mdi.containers.MDIWindow; import flexlib.mdi.managers.MDIManager; import flexlib.mdi.effects.effectsLib.MDIVistaEffects; private var newWindow:MDIWindow; private function onCreationComplete():void { MDIManager.global.effects = new MDIVistaEffects(); } private function openWindow():void { newWindow = new MDIWindow(); MDIManager.global.add(newWindow); } private function minimizeWindow():void { newWindow.minimize(); } ]] /mx:Script mx:Button label=openWindow id=openWindowButton click=openWindow()/ mx:Button label=minimizeWindow id=minimizeWindowButton click=minimizeWindow()/ /mx:Application --- In flexcoders@yahoogroups.com, Adrian Williams adri...@... wrote: Ok, So once my morning caffeine jolt hit me, I realized that I already know how to force a mouseclick in the event: newPanel.minimize(new MouseEvent(MouseEvent.CLICK, true, false)); So, I fire the event and even walked the code thru the debugger to watch it go into the function and act normally...but my window still defiantly sits un-minimizedsigh... Adrian Original Message Subject: how to forcibly minimize a window via flexmdi window Date: Mon, 02 Feb 2009 09:12:40 -0600 From: Adrian Williams adri...@... To: flexcoders@yahoogroups.com Hi gang, I've been toying with the outstanding flexmdi component from flexlib and have found something challenging... One of the pieces of the MDIWindow is the minimize() function. I'm creating the windows on the canvas dynamically based on the users last know settings...including whether they have minimized any of the windows on their dashboard. I have a variable in their record for each window called isCollapsed (bit/bool). What I'm trying to do is when the records are read and the windows are dynamically created, I check to see if the isCollapsed == true and if so, I'm trying to fire the MDIWindow.minimize() function. However, it's expecting a mouseEvent and I'm not sure how to force a non-existent event into the function??? Basically, I need to programmatically emulate a mouseclick on the minimize button of the window. I've tried a number of alternative methods without success, including these: newWindow.minimize(); newWindow.minimize(null); newWindow.dispatchEvent(MDIWindowEvent.MINIMIZE); dispatchEvent(new MDIWindowEvent(MDIWindowEvent.MINIMIZE, newWindow)); Here is the minimize function: public function minimize(event:MouseEvent = null):void { // if the panel is floating, save its state if(windowState == MDIWindowState.NORMAL) { savePanel(); } dispatchEvent(new MDIWindowEvent(MDIWindowEvent.MINIMIZE, this)); windowState = MDIWindowState.MINIMIZED; showControls = false; } Has anyone tried to do this or have any ideas on what to try next? Thanks, Adrian
Re: [flexcoders] Buttonbar not centering at startup
Hi, so, right now is working, but I have to do it like this: mx:ButtonBar id=figSelector width=330 height=100% horizontalGap=20 horizontalCenter=0 verticalAlign=middle buttonWidth=50 buttonHeight=50 Seems that using the width=100% was the problem ( even adding horizontalAlign=center ) :P thnx a lot for your attention here, see ya' around. On Feb 2, 2009, at 10:05 AM, Tracy Spratt wrote: It sort of does not make sense to have something be width=”100%”, then set horizontalCenter. The width setting will make the component be the same width as the container, so it will automatically be “centered”, but again, that does not really make sense. Marco is probably right. In this case, since your button bar fill the whole horizontal space, what you really want is to center the buttons within it, by setting horizontalalign=”center” Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Marco Catunda Sent: Monday, February 02, 2009 5:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Buttonbar not centering at startup Ben, horizontalCenter=0?? It should be horizontalAlign=center, shouldn't it? -- Marco Catunda On Sun, Feb 1, 2009 at 10:29 PM, Ben Cessa bce...@gmail.com wrote: Hi again, right now I'm just playing a little with AIR and PV3D writing a little useless app as an exercise. I'm having an odd problem with ButtonBar, the thing don't get the horizontal center when the apps starts, is aligned to the left, however, as soon as I start resizing the main window it works very nice. Any ideas about what could this be? The actual portion of code I'm using is this: mx:ButtonBar id=figSelector width=100% height=100% horizontalGap=20 horizontalCenter=0 verticalAlign=middle buttonWidth=50 buttonHeight=50 And here's a little screencap of what the component shows at startup By the way, I'm also having problems removing that ugly background from the buttons, can't figure out the skin needed, I was thinking in use a 100% transparent PNG as background image but I'm not sure, just in case someone know how to remove that too :P Well, thanx a lot for your attention and I hope someone can give me hand with this
re: [flexcoders] XML walkdown Help
Here is a more accurate output on the Blue Dragon server: loginResponse xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; loginResult columnList xmlns=http://www.newatlanta.com/bluedragon; stringuniqname/string stringrole/string stringfirstName/string stringlastName/string /columnList data xmlns=http://www.newatlanta.com/bluedragon; ArrayOfAnyType anyType xsi:type=xsd:stringwkolcz/anyType anyType xsi:type=xsd:stringadmin/anyType anyType xsi:type=xsd:stringWally/anyType anyType xsi:type=xsd:stringKolcz/anyType /ArrayOfAnyType /data /loginResult /loginResponse I tried var xmlResult:XML = XML(e.result); which gives me the above. var xlColumns:XMLList = xmlResult.loginResponse; which comes up blank. From: Wally Kolcz wko...@isavepets.com Sent: Monday, February 02, 2009 11:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML walkdown Help I am getting a weird return from Blue Dragon's CFC wsdl as my e.result. I need to set this to 2 local XMLList variables but am having a devil of a time walking down this path to the core nodes. Any ideas on how to make this usable? Tracy has been trying to help me, but this return item is impossible to work with. I tried xmlColumns = loginReponse.loginReturn.columnList.columnList but it doesn't work. Neither does the same for data. Here is the result that is returned from Blue Dragon: ns1:loginResponse soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=http://security.umich.edu.prmcprojects; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; loginReturn xsi:type=ns2:QueryBean xmlns:ns2=http://rpc.xml.coldfusion; columnList soapenc:arrayType=xsd:string[8] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; columnList xsi:type=xsd:string UNIQNAME /columnList columnList xsi:type=xsd:string PASSWORD /columnList columnList xsi:type=xsd:string LASTNAME /columnList columnList xsi:type=xsd:string FIRSTNAME /columnList columnList xsi:type=xsd:string POSITION /columnList columnList xsi:type=xsd:string DEPARTMENT /columnList columnList xsi:type=xsd:string ROLE /columnList columnList xsi:type=xsd:string ISACTIVE /columnList /columnList data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; data soapenc:arrayType=xsd:anyType[8] xsi:type=soapenc:Array data xsi:type=soapenc:string wkolcz /data data xsi:type=soapenc:string 2113 /data data xsi:type=soapenc:string Kolcz /data data xsi:type=soapenc:string Wally /data data xsi:type=soapenc:string Senior ColdFusion Architect /data data xsi:type=soapenc:string PRMC /data data xsi:type=soapenc:string admin /data data xsi:type=soapenc:int 1 /data /data /data /loginReturn /ns1:loginResponse
re: [flexcoders] XML walkdown Help
Here is a more accurate output on the Blue Dragon server: loginResponse xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; loginResult columnList xmlns=http://www.newatlanta.com/bluedragon; stringuniqname/string stringrole/string stringfirstName/string stringlastName/string /columnList data xmlns=http://www.newatlanta.com/bluedragon; ArrayOfAnyType anyType xsi:type=xsd:stringwkolcz/anyType anyType xsi:type=xsd:stringadmin/anyType anyType xsi:type=xsd:stringWally/anyType anyType xsi:type=xsd:stringKolcz/anyType /ArrayOfAnyType /data /loginResult /loginResponse I tried var xmlResult:XML = XML(e.result); which gives me the above. var xlColumns:XMLList = xmlResult.loginResponse; which comes up blank. From: Wally Kolcz wko...@isavepets.com Sent: Monday, February 02, 2009 11:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML walkdown Help I am getting a weird return from Blue Dragon's CFC wsdl as my e.result. I need to set this to 2 local XMLList variables but am having a devil of a time walking down this path to the core nodes. Any ideas on how to make this usable? Tracy has been trying to help me, but this return item is impossible to work with. I tried xmlColumns = loginReponse.loginReturn.columnList.columnList but it doesn't work. Neither does the same for data. Here is the result that is returned from Blue Dragon: ns1:loginResponse soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=http://security.umich.edu.prmcprojects; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; loginReturn xsi:type=ns2:QueryBean xmlns:ns2=http://rpc.xml.coldfusion; columnList soapenc:arrayType=xsd:string[8] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; columnList xsi:type=xsd:string UNIQNAME /columnList columnList xsi:type=xsd:string PASSWORD /columnList columnList xsi:type=xsd:string LASTNAME /columnList columnList xsi:type=xsd:string FIRSTNAME /columnList columnList xsi:type=xsd:string POSITION /columnList columnList xsi:type=xsd:string DEPARTMENT /columnList columnList xsi:type=xsd:string ROLE /columnList columnList xsi:type=xsd:string ISACTIVE /columnList /columnList data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; data soapenc:arrayType=xsd:anyType[8] xsi:type=soapenc:Array data xsi:type=soapenc:string wkolcz /data data xsi:type=soapenc:string 2113 /data data xsi:type=soapenc:string Kolcz /data data xsi:type=soapenc:string Wally /data data xsi:type=soapenc:string Senior ColdFusion Architect /data data xsi:type=soapenc:string PRMC /data data xsi:type=soapenc:string admin /data data xsi:type=soapenc:int 1 /data /data /data /loginReturn /ns1:loginResponse
Re: [flexcoders] Highlighting Label text characters
Hi Alex, My ItemRenderer is actually a VBox with an Image, Label and TextInput so it is all wired up differently. Still not sure the best way to do this, but maybe adding truncating functionality to a TextField/TextArea would be easier... Cheers, Greg On Sat, Jan 31, 2009 at 12:40 AM, Alex Harui aha...@adobe.com wrote: A Label as a renderer will be trying to reset its .text from the dataprovider data unless you've wired it up differently. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Greg Hess Sent: Friday, January 30, 2009 12:50 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Highlighting Label text characters Well, once I can get the text to highlight in the Label, I will need to do the same in the truncated tooltip. On Fri, Jan 30, 2009 at 3:46 PM, Tracy Spratt tspr...@lariatinc.com wrote: What will happen if the matched characters are in the truncated part? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Greg Hess Sent: Friday, January 30, 2009 2:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Highlighting Label text characters Hi All, I am displaying search results in a DataGrid and I have a custom ItemRenderer for the Name column and I need to highlight the text in the Label that matched the search query. I have seen support for this in TextArea and TextField.setSelection(..) and also done with HTML text however I need the truncating feature of the Label. I tried extending Label and providing a highlight( text:String ) function that calls down to the Label internal TextField.setSelection(..) but it is not working...not sure why... Does anyone know how I can achieve this? Any help much appreciated, Greg
[flexcoders] DataGrid mouseover
I have a data grid, and one of the columns I used ItemRenderer to have a vbox and an image inside as a button. Everything looks good except the entire column where that ItemRenderer is used does not invoke the same mouseover events as the other columns. The mouseover event I was looking for is highlighting the row on mouseover and selection (with a darker hue). How do I get the column to do mouseover again for the whole row? Thanks in advance.
RE: [flexcoders] XML walkdown Help
Looks like you're having namespace issues. The default namespace is http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/sec urity, so you need to use this when drilling down... Something like: var ns:Namespace = new Namespace(http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/ed u/umich/security); trace(xmlResult.ns::loginResult.toXMLString()); You can do this for all nodes with a namespace defined... HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Monday, February 02, 2009 1:42 PM To: flexcoders@yahoogroups.com Subject: re: [flexcoders] XML walkdown Help Here is a more accurate output on the Blue Dragon server: loginResponse xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/um ich/security xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; loginResult columnList xmlns=http://www.newatlanta.com/bluedragon; stringuniqname/string stringrole/string stringfirstName/string stringlastName/string /columnList data xmlns=http://www.newatlanta.com/bluedragon; ArrayOfAnyType anyType xsi:type=xsd:stringwkolcz/anyType anyType xsi:type=xsd:stringadmin/anyType anyType xsi:type=xsd:stringWally/anyType anyType xsi:type=xsd:stringKolcz/anyType /ArrayOfAnyType /data /loginResult /loginResponse I tried var xmlResult:XML = XML(e.result); which gives me the above. var xlColumns:XMLList = xmlResult.loginResponse; which comes up blank. From: Wally Kolcz wko...@isavepets.com Sent: Monday, February 02, 2009 11:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML walkdown Help I am getting a weird return from Blue Dragon's CFC wsdl as my e.result. I need to set this to 2 local XMLList variables but am having a devil of a time walking down this path to the core nodes. Any ideas on how to make this usable? Tracy has been trying to help me, but this return item is impossible to work with. I tried xmlColumns = loginReponse.loginReturn.columnList.columnList but it doesn't work. Neither does the same for data. Here is the result that is returned from Blue Dragon: ns1:loginResponse soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=http://security.umich.edu.prmcprojects; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; loginReturn xsi:type=ns2:QueryBean xmlns:ns2=http://rpc.xml.coldfusion; columnList soapenc:arrayType=xsd:string[8] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; columnList xsi:type=xsd:string UNIQNAME /columnList columnList xsi:type=xsd:string PASSWORD /columnList columnList xsi:type=xsd:string LASTNAME /columnList columnList xsi:type=xsd:string FIRSTNAME /columnList columnList xsi:type=xsd:string POSITION /columnList columnList xsi:type=xsd:string DEPARTMENT /columnList columnList xsi:type=xsd:string ROLE /columnList columnList xsi:type=xsd:string ISACTIVE /columnList /columnList data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; data soapenc:arrayType=xsd:anyType[8] xsi:type=soapenc:Array data xsi:type=soapenc:string wkolcz /data data xsi:type=soapenc:string 2113 /data data xsi:type=soapenc:string Kolcz /data data xsi:type=soapenc:string Wally /data data xsi:type=soapenc:string Senior ColdFusion Architect /data data xsi:type=soapenc:string PRMC /data data xsi:type=soapenc:string admin /data data xsi:type=soapenc:int 1 /data /data /data /loginReturn /ns1:loginResponse This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
[flexcoders] Need to render rows in a heterogeneous mx:List differently based on each row's item data Type
Does anyone have a code sample of how I can supply a different itemRenderer to a List based on the data Type of the item in any given row? I have a heterogeneous collection of Types in an ArrayCollection (Property Sheet or User Preferences list) and want to render each row differently based on the data Type of the row item. For those of you familiar with MS WPF, it includes the notion of something called a DataTemplate which is essentially an Item Renderer that is used by the framework to render a particular data Type in a heterogeneous collection or on a form. I'd like to do the same thing in Flex within a List. Is there such a notion in Flex? Can it be done simply? I've tried implementing a Factory pattern where I supply a single itemRenderer (VBox) class to the List component which is an ActionScript class that simply overrides the data setter, and tests the Type of the data property (the row item type) and if it's a certain Type it instantiates or replaces a child container that properly renders the data based on its Type. This is not a simple pattern to follow or communicate. I'd like to find a simpler way. I've also tried using a single renderer with multiple top level components that use data binding to dynamically set includeInLayout and visible so only one of the top level components will render. This works, but the performance on a large list is abysmal in our ad hoc tests. Simple renderers not using includeInLayout were much faster. I've also tried using States to determine which part of the mxml to render based on the Type, but the pattern is just too complicated and too verbose. I'm in search of the cleanest possible pattern to recreate what you get out of the box with WPF, as I am sure someone at Adobe thought of this (it's an amazingly common use case), but it's just a matter of my learning how to do this. Thanks for your suggestions! Erik Erik Thomas | Small Business Group, Intuit | Staff Engineer | 650-944-2602
[flexcoders] Re: Tree Control Drag and Drop Help
Yves, THANK YOU , THANK YOU , THANK YOU... life is good. Worked like a champ. I had never done the mx_internal piece, great pointer thank you very much. Here is a sample of the function I created, David I hope this helps: private function dropData( event:DragEvent ) : void { var parent:String = event.dragInitiator.mx_internal::_dropData.parent.label; var childParent:String = item.parentComp; if(parent == BOXC){ trace(moved through the match); }else{ event.preventDefault(); trace(moved out of the match); } } Put this in your import statement area: import mx.core.mx_internal; use namespace mx_internal; Thanks again Yves! --- In flexcoders@yahoogroups.com, Yves Riel r...@... wrote: When a drag drop operation occurs on a tree, the drag drop handlers call the public calculateDropIndex() function. This function stores all the properties that you want in an mx_internal variable called _dropData of Object data type. So, make sure that your class import and use the mx_internal namespace and attach a listener to the tree's dragDrop event. In the event handler, look up the _dropData variable and specifically the parent and index properties. If this drop operation should not be allowed, call the preventDefault() method on the event. That should do the trick. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of David Kramer Sent: Monday, February 02, 2009 12:34 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Tree Control Drag and Drop Help Adrian, I am up against the same problem. Please share your knowledge on it so far. kramer.da...@... mailto:kramer.da...@... Many thanks. David From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of adrianpomilio Sent: Monday, February 02, 2009 8:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree Control Drag and Drop Help This is a two part question. 1 - How can I keep a child from being dropped outside of it's parent? I want to be able to drag and drop within a nodes parent. 2 - How do I get a handle on the new index of the node that has been dropped. I can get the current index, the parents name, but not the location it was dropped. I am using an ArrayCollection to populate the tree, using the children attribute to create the child nodes. I am stuck with having to use the ArrayCollection. Any pointers would be great.
[flexcoders] Re: XML walkdown Help
I can categorically say this is not best practice (I'm not really very good with XML) but it does work: var loginResult:XMLList = XML(String(event.result)).elements(); var columnsAndData:XMLList = loginResult.elements(); var columns:XML = columnsAndData[0] as XML; var columnList:XMLList = columns.elements();; for(var i:int = 0 ; i columnList.length() ; i++) { trace(columnList[i]); } var theData:XML = columnsAndData[1] as XML; var dataList:XMLList = theData.elements();; var data:XML = dataList[0] as XML; dataList = data.elements(); for(var j:int = 0 ; j dataList.length() ; j++) { trace(dataList[j]); } --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I am getting a weird return from Blue Dragon's CFC wsdl as my e.result. I need to set this to 2 local XMLList variables but am having a devil of a time walking down this path to the core nodes. Any ideas on how to make this usable? Tracy has been trying to help me, but this return item is impossible to work with. I tried xmlColumns = loginReponse.loginReturn.columnList.columnList but it doesn't work. Neither does the same for data. Here is the result that is returned from Blue Dragon: ns1:loginResponse soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=http://security.umich.edu.prmcprojects; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; loginReturn xsi:type=ns2:QueryBean xmlns:ns2=http://rpc.xml.coldfusion; columnList soapenc:arrayType=xsd:string[8] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; columnList xsi:type=xsd:string UNIQNAME /columnList columnList xsi:type=xsd:string PASSWORD /columnList columnList xsi:type=xsd:string LASTNAME /columnList columnList xsi:type=xsd:string FIRSTNAME /columnList columnList xsi:type=xsd:string POSITION /columnList columnList xsi:type=xsd:string DEPARTMENT /columnList columnList xsi:type=xsd:string ROLE /columnList columnList xsi:type=xsd:string ISACTIVE /columnList /columnList data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; data soapenc:arrayType=xsd:anyType[8] xsi:type=soapenc:Array data xsi:type=soapenc:string wkolcz /data data xsi:type=soapenc:string 2113 /data data xsi:type=soapenc:string Kolcz /data data xsi:type=soapenc:string Wally /data data xsi:type=soapenc:string Senior ColdFusion Architect /data data xsi:type=soapenc:string PRMC /data data xsi:type=soapenc:string admin /data data xsi:type=soapenc:int 1 /data /data /data /loginReturn /ns1:loginResponse
[flexcoders] mx.controls.* vs mx.control.TextInput affect SWF size
Is the Flex compiler smart enough not to include dependent objects that are not used? Does this apply to SDK and custom classes in the same way? What about DMV? Do any of my unused custom classes get compiled? If I have a Utility/Helper project that is quite large will it affect my SWF size if i only use 5% on a particular Flex app?
[flexcoders] Re: model locator population too late
How the hell do you bound a progress bar to a model? I have the same problem. Which I execute a cairngrom event and it populates the the model variable. But before i show my form I need the model variable to be populated. How do you handle this type of situation. Thanks --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: Surely the progress bar is bound to the model, not part of the model itself? - Original Message - From: dnk d.k.emailli...@... To: Flexcoder List flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 11:14 PM Subject: [flexcoders] model locator population too late Hi there, I have an app that uses a model locator class. Now I have a component that is passed in a reference to another component (A progress bar in my case). Now my problem is that the component is being created prior to the model locator being populated with the reference to the progress bar. So then obviously my component does not work as expected as it needs that reference. I have no idea on how to get around this issue. I can't populate the model locator (manually) any earlier as the progress bar has not yet been created. Ideas? d -- 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] XML walkdown Help
var xlColumns:XMLList = xmlResult.loginResponse Yes, of course that comes up blank, it should. What do you expect to see? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Monday, February 02, 2009 3:42 PM To: flexcoders@yahoogroups.com Subject: re: [flexcoders] XML walkdown Help Here is a more accurate output on the Blue Dragon server: loginResponse xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/um ich/security xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; loginResult columnList xmlns=http://www.newatlanta.com/bluedragon; stringuniqname/string stringrole/string stringfirstName/string stringlastName/string /columnList data xmlns=http://www.newatlanta.com/bluedragon; ArrayOfAnyType anyType xsi:type=xsd:stringwkolcz/anyType anyType xsi:type=xsd:stringadmin/anyType anyType xsi:type=xsd:stringWally/anyType anyType xsi:type=xsd:stringKolcz/anyType /ArrayOfAnyType /data /loginResult /loginResponse I tried var xmlResult:XML = XML(e.result); which gives me the above. var xlColumns:XMLList = xmlResult.loginResponse; which comes up blank. From: Wally Kolcz wko...@isavepets.com Sent: Monday, February 02, 2009 11:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML walkdown Help I am getting a weird return from Blue Dragon's CFC wsdl as my e.result. I need to set this to 2 local XMLList variables but am having a devil of a time walking down this path to the core nodes. Any ideas on how to make this usable? Tracy has been trying to help me, but this return item is impossible to work with. I tried xmlColumns = loginReponse.loginReturn.columnList.columnList but it doesn't work. Neither does the same for data. Here is the result that is returned from Blue Dragon: ns1:loginResponse soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=http://security.umich.edu.prmcprojects; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; loginReturn xsi:type=ns2:QueryBean xmlns:ns2=http://rpc.xml.coldfusion; columnList soapenc:arrayType=xsd:string[8] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; columnList xsi:type=xsd:string UNIQNAME /columnList columnList xsi:type=xsd:string PASSWORD /columnList columnList xsi:type=xsd:string LASTNAME /columnList columnList xsi:type=xsd:string FIRSTNAME /columnList columnList xsi:type=xsd:string POSITION /columnList columnList xsi:type=xsd:string DEPARTMENT /columnList columnList xsi:type=xsd:string ROLE /columnList columnList xsi:type=xsd:string ISACTIVE /columnList /columnList data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; data soapenc:arrayType=xsd:anyType[8] xsi:type=soapenc:Array data xsi:type=soapenc:string wkolcz /data data xsi:type=soapenc:string 2113 /data data xsi:type=soapenc:string Kolcz /data data xsi:type=soapenc:string Wally /data data xsi:type=soapenc:string Senior ColdFusion Architect /data data xsi:type=soapenc:string PRMC /data data xsi:type=soapenc:string admin /data data xsi:type=soapenc:int 1 /data /data /data /loginReturn /ns1:loginResponse
[flexcoders] Help with Flex Jeopardy code!
I'm trying to use the open source flex jeopardy game ( http://code.google.com/p/flexjeopardy/downloads/list ) for our nutrition education website and realized there's a bug with the Final Jeopardy round. It pulls the question from the Double Jeopardy round (round 2). I've looked at the mxml file but I'm a newbie to Flex and action script and cannot figure out how to fix it. If anyone can figure out what the problem is and let me know I would really appreciate it. Thank you, David
RE: [flexcoders] SWFLoader problems (Loading flex swf into flex application)
When you load an app in SWFLoader, it becomes part of the parent application so onw would normally want styles to apply. I think you will need to override the styles specifically in the loaded app. Are you sure that the styles inherit up? I have not seen that. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ericbichara Sent: Monday, February 02, 2009 10:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWFLoader problems (Loading flex swf into flex application) Hi, I have build several flex widgets and am now developing an admin website also in flex into which i will load and edit the widgets. I am coming across several issues when doing this: 1) CSS styles clash. The parent application inherits some of the child's styles and the child inherits some of the parents styles when i load the child. How do i make sure styles don't get inherited either up or down? 2) datatips of graphs are placed in the wrong coordinates. If a datatip is supposed to be show at coordinate 20,20 of the child, it shows at coordinate 20,20 of the parent instead. I am using the SWFLoader object to load the widgets and passing parameters using flashvars. ie http://swfurl?blah=bligbloh=blug http://swfurl?blah=bligbloh=blug Thanks in advance! /Eric
RE: [flexcoders] XML walkdown Help
Yes, darn it, missed that, Ryan is correct, there will a namespace problem. You can define a default namespace, and not have to use the prefix in all of the expressions. default xml namespace = http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/sec urity ; But you will still need to get the expression right. Look close at your expression and at your xml. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ryan Graham Sent: Monday, February 02, 2009 4:01 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] XML walkdown Help Looks like you're having namespace issues. The default namespace is http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/sec urity http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/se curity , so you need to use this when drilling down... Something like: var ns:Namespace = new Namespace(http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/ed u/umich/security); trace(xmlResult.ns::loginResult.toXMLString()); You can do this for all nodes with a namespace defined... HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Monday, February 02, 2009 1:42 PM To: flexcoders@yahoogroups.com Subject: re: [flexcoders] XML walkdown Help Here is a more accurate output on the Blue Dragon server: loginResponse xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/um ich/security xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; loginResult columnList xmlns=http://www.newatlanta.com/bluedragon; stringuniqname/string stringrole/string stringfirstName/string stringlastName/string /columnList data xmlns=http://www.newatlanta.com/bluedragon; ArrayOfAnyType anyType xsi:type=xsd:stringwkolcz/anyType anyType xsi:type=xsd:stringadmin/anyType anyType xsi:type=xsd:stringWally/anyType anyType xsi:type=xsd:stringKolcz/anyType /ArrayOfAnyType /data /loginResult /loginResponse I tried var xmlResult:XML = XML(e.result); which gives me the above. var xlColumns:XMLList = xmlResult.loginResponse; which comes up blank. From: Wally Kolcz wko...@isavepets.com Sent: Monday, February 02, 2009 11:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML walkdown Help I am getting a weird return from Blue Dragon's CFC wsdl as my e.result. I need to set this to 2 local XMLList variables but am having a devil of a time walking down this path to the core nodes. Any ideas on how to make this usable? Tracy has been trying to help me, but this return item is impossible to work with. I tried xmlColumns = loginReponse.loginReturn.columnList.columnList but it doesn't work. Neither does the same for data. Here is the result that is returned from Blue Dragon: ns1:loginResponse soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=http://security.umich.edu.prmcprojects; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; loginReturn xsi:type=ns2:QueryBean xmlns:ns2=http://rpc.xml.coldfusion; columnList soapenc:arrayType=xsd:string[8] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; columnList xsi:type=xsd:string UNIQNAME /columnList columnList xsi:type=xsd:string PASSWORD /columnList columnList xsi:type=xsd:string LASTNAME /columnList columnList xsi:type=xsd:string FIRSTNAME /columnList columnList xsi:type=xsd:string POSITION /columnList columnList xsi:type=xsd:string DEPARTMENT /columnList columnList xsi:type=xsd:string ROLE /columnList columnList xsi:type=xsd:string ISACTIVE /columnList /columnList data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; data soapenc:arrayType=xsd:anyType[8] xsi:type=soapenc:Array data xsi:type=soapenc:string wkolcz /data data xsi:type=soapenc:string 2113 /data data xsi:type=soapenc:string Kolcz /data data xsi:type=soapenc:string Wally /data data xsi:type=soapenc:string Senior ColdFusion Architect /data data xsi:type=soapenc:string PRMC /data data xsi:type=soapenc:string admin /data data xsi:type=soapenc:int 1 /data /data /data /loginReturn
[flexcoders] Subclassing nested (private ns) classes at runtime
A question for the AVM2 engineers here. I am the author of asmock http://asmock.sourceforge.net/ , a dynamic object mocking framework, and am looking at a few features to add before 1.0. One of the biggest features I'd like to support is the ability to mock a nested (private namespace) class. I know that subclassing a nested class outside the code file is illegal, but I have assumed that the AVM will let me do it as long as I setup the DoABC tag correctly. I am currently generating the child class only, assuming the the parent class multiname will be resolved in the application domain hierarchy. This technique works with all other classes I generate. The child class I am generating is declared with a private ns multiname (0x05) and with the protected namespace flag as part of it's instance data. Everything appears fine when compared to a Flexbuilder Compiled SWF. However, during loadBytes, I get a ValidateError: Class MockRepositoryNestedClassIntegrationFixture.as$452::NestedClass could not be found. Is there anything I might have missed? Or, alternatively, is there an explicit AVM restriction that nested classes can only be subclassed within the SWF they were loaded from? Many thanks, Richard
RE: [flexcoders] Re: model locator population too late
But before i show my form I need the model variable to be populated. How do you handle this type of situation. Could you use ChangeWatcher to watch that variable and show the form when it changes? ChangeWatcher.watch(yourModel,yourModelVariable,showYourForm); I'm sure there are other ways , it probably depends on your situation which would be best, however. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jerry_gagliano Sent: 02 February 2009 21:18 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: model locator population too late How the hell do you bound a progress bar to a model? I have the same problem. Which I execute a cairngrom event and it populates the the model variable. But before i show my form I need the model variable to be populated. How do you handle this type of situation. Thanks --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: Surely the progress bar is bound to the model, not part of the model itself? - Original Message - From: dnk d.k.emailli...@... To: Flexcoder List flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 11:14 PM Subject: [flexcoders] model locator population too late Hi there, I have an app that uses a model locator class. Now I have a component that is passed in a reference to another component (A progress bar in my case). Now my problem is that the component is being created prior to the model locator being populated with the reference to the progress bar. So then obviously my component does not work as expected as it needs that reference. I have no idea on how to get around this issue. I can't populate the model locator (manually) any earlier as the progress bar has not yet been created. Ideas? d -- 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 __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
RE: [flexcoders] Encrypted html
No reason why you couldn't do it locally without the web server. Open a file, decrypt it, display it, no need for http as it ultimately is a file servlet. K From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Paul Andrews Sent: Sunday, February 01, 2009 3:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Encrypted html In an ideal world, I'd have an AIR app displaying HTML pages sourced from encrypted data installed on the same machine. Seems to me that the only way to keep the data encrypted would be to install a web server which decrypts the pages on the fly. Am I missing a something simple? Paul image001.jpgimage002.jpg
Re: [flexcoders] Flex/BlazeDS/Hibernate - serialization question
You could make a PersonRPC class that contains only the fields you want to pass to the client... You could also make PersonRPC the parent class of your Person class. On Mon, Feb 2, 2009 at 2:00 AM, max.bruchmann max.bruchm...@yahoo.comwrote: Hi, I read a lot of time that flex/blazeds/hibernate is a cool combo. But I there is one thing that troubles me. So let's asume I have a Person class public class Person { public var name:String; public var id; } It's no problem to send objects from this class between client and server. But let's assume the Person class has furthermore a list of groups he belongs to. public class Person { public var name:String public var id; public var groups:ArrayCollection; } public class Group { public var name:String; public var id; } So now everytime we send a person object back to the blazeds/hibernate backend all the groups he belongs to are getting serialized as well. This means a lot of overhead gets send to backend when I only modify some primitve data like the name. Even more problematic would be if in addition the group objects themselves would have list of persons that belongs to them. I guess I could use the [Transient] Metatag to not send the collection fields, but then I could not modify the groups in a person object easily. So if there is any best practice for these kind of problems, please let me know. Thanks in advance Max -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
RE: [flexcoders] sizing dinamically the screen
If that works in javascript, in different browsers, then you can get those values through ExternalInterface Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gustavo Duenas LRS Sent: Monday, February 02, 2009 9:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sizing dinamically the screen Ok, Coders, this is my problem I have set the width and height of my application to 1024 to 768 , it works on mac, but in pc you know what would happen with the IE7... well I just think this, just addind a creationComplete code like function initSize(){ screen.width= screen.availWidth; screen.height= screen/availHeight; this think works in Javascript there is counterpart on flex or it works on flex? I'd appreciate your help. Gus
[flexcoders] MouseOver Event Not Firing
I have a Button that doesn't seem to know the mouse is over it. It doesn't dispatch MouseOver/Out/click events. I have a Panel that has an HBox(Label/Spacer/Button) and a Canvas. the Canvas gets stuff added to it dynamically via Actionscript. pre mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% mx:HBox id=titleBox verticalAlign=middle width=100% height=24 mx:Label text=Your Tasks/ mx:Spacer width=100%/ mx:Button id=backButton click=onClick(event) width=24 height=20/ /mx:HBox mx:Canvas id=dynamicContainer width=100% height=100%/ /mx:Panel /pre This component is displayed after a transition effect that 'swishes' it in from the right. I've done some debugging and it seems that everything is getting mouseOver events except everything within the HBox. Any ideas? Because I have run out of ideas. Thanks, Geoff
[flexcoders] Re: Shared Objects And Modules
http://livedocs.adobe.com/flex/3/html/lsos_5.html --- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote: --- In flexcoders@yahoogroups.com, Marco Catunda marco.catunda@ wrote: Lorenzo, When the doc says the same domain it means that flash player should get module from the same URL domain for security reason. About shared objects, it is cool but has size limitation like cookies. You can save whatever you want... -- Marco Catunda On Mon, Feb 2, 2009 at 7:27 AM, thelordsince1984 loreboa@ wrote: Hi, i'm reading about shared objects...they are like html cookies but with improved performances...very cool!!but if i use modules can i always save the state of each modules? Infact i read that modules are used for the same domain..what domain means? that I can save the state for a single application (so a single swf files), is it true? thanks in advance Regards Lorenzo Thanks for the reply.. so is it possible to save a specific configuration with modules? suppose that i have a main application and here i have n modules (distinct swf files). then within modules i run my operations and finally when i closed the main application i would save the configuration for modules that i have modified.. At the succesive startup i would retrieve saved data. Is it possible to save the entire modules, so an entire complex object? or is possible to save only data, for example values properties? Do you know any example in the web? Thanks Again Regards Lorenzo
[flexcoders] Adding custom request headers to soap
Hello, Does anyone know a way to add headers to a soap request when: 1. The headers are not defined in the wsdl 2. We obviously don't want to change the generated flex builder classes. Thanks! Guy
RE: [flexcoders] Encrypted html
Certainly going to be an issue with standard HTML renderers unless you can override them and insert your own behavior to an anchor. I expect that webkit, when presented with a file://filepath file:///\\filepath , will go load that file regardless of any click-handlers running in Air. An approach would have every click, call a Javascript handler and pass in the target of that click which loads your decrypter and returning the resulting page as the calling page source. Of course, that assumes that you have control of the page content, although I assume you could load and parse the DOM regardless. I expect a JS approach might imply security issues over a dedicated web server. I've used AppWeb before to build custom http based services but that always ends up being an effort of significant complexity. K From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Paul Andrews Sent: Monday, February 02, 2009 9:40 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Encrypted html But what about the links? There will be links to other encrypted html files and I don't want to decrypt them all at once. Paul - Original Message - From: Kevin Benz mailto:kb...@passalongnetworks.com To: flexcoders@yahoogroups.com Sent: Monday, February 02, 2009 4:25 PM Subject: RE: [flexcoders] Encrypted html No reason why you couldn't do it locally without the web server. Open a file, decrypt it, display it, no need for http as it ultimately is a file servlet. K From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Paul Andrews Sent: Sunday, February 01, 2009 3:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Encrypted html In an ideal world, I'd have an AIR app displaying HTML pages sourced from encrypted data installed on the same machine. Seems to me that the only way to keep the data encrypted would be to install a web server which decrypts the pages on the fly. Am I missing a something simple? Paul image001.jpgimage002.jpg
RE: [flexcoders] MouseOver Event Not Firing
You need to define handlers for those components in the HBox if you want them to listen for those specific mouse events. Right now the button in the HBox is only listening for click events. Try writing handler functions for those additional events to start debugging: mx:Button id=backButton click=onClick(event) mouseOver=onMouseOver(event) mouseOut=onMouseOut(event) width=24 height=20/ ... private function onMouseOver(event:MouseEvent):void { trace(mouseOver); } private function onMouseOut(event:MouseEvent):void { trace(mouseOut); } HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Geoffrey Sent: Monday, February 02, 2009 3:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] MouseOver Event Not Firing I have a Button that doesn't seem to know the mouse is over it. It doesn't dispatch MouseOver/Out/click events. I have a Panel that has an HBox(Label/Spacer/Button) and a Canvas. the Canvas gets stuff added to it dynamically via Actionscript. pre mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% mx:HBox id=titleBox verticalAlign=middle width=100% height=24 mx:Label text=Your Tasks/ mx:Spacer width=100%/ mx:Button id=backButton click=onClick(event) width=24 height=20/ /mx:HBox mx:Canvas id=dynamicContainer width=100% height=100%/ /mx:Panel /pre This component is displayed after a transition effect that 'swishes' it in from the right. I've done some debugging and it seems that everything is getting mouseOver events except everything within the HBox. Any ideas? Because I have run out of ideas. Thanks, Geoff This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
[flexcoders] [Fwd: UPDATE: how to forcibly minimize a window via flexmdi window]
Ok, So once my morning caffeine jolt hit me, I realized that I already know how to force a mouseclick in the event: newPanel.minimize(new MouseEvent(MouseEvent.CLICK, true, false)); So, I fire the event and even walked the code thru the debugger to watch it go into the function and act normally...but my window still defiantly sits un-minimizedsigh... Adrian Original Message Subject:how to forcibly minimize a window via flexmdi window Date: Mon, 02 Feb 2009 09:12:40 -0600 From: Adrian Williams adri...@familytreedna.com To: flexcoders@yahoogroups.com Hi gang, I've been toying with the outstanding flexmdi component from flexlib and have found something challenging... One of the pieces of the MDIWindow is the minimize() function. I'm creating the windows on the canvas dynamically based on the users last know settings...including whether they have minimized any of the windows on their dashboard. I have a variable in their record for each window called isCollapsed (bit/bool). What I'm trying to do is when the records are read and the windows are dynamically created, I check to see if the isCollapsed == true and if so, I'm trying to fire the MDIWindow.minimize() function. However, it's expecting a mouseEvent and I'm not sure how to force a non-existent event into the function??? Basically, I need to programmatically emulate a mouseclick on the minimize button of the window. I've tried a number of alternative methods without success, including these: newWindow.minimize(); newWindow.minimize(null); newWindow.dispatchEvent(MDIWindowEvent.MINIMIZE); dispatchEvent(new MDIWindowEvent(MDIWindowEvent.MINIMIZE, newWindow)); Here is the minimize function: public function minimize(event:MouseEvent = null):void { // if the panel is floating, save its state if(windowState == MDIWindowState.NORMAL) { savePanel(); } dispatchEvent(new MDIWindowEvent(MDIWindowEvent.MINIMIZE, this)); windowState = MDIWindowState.MINIMIZED; showControls = false; } Has anyone tried to do this or have any ideas on what to try next? Thanks, Adrian
[flexcoders] Re: sizing dinamically the screen
Gustavo: Your page _does_ render on IE (7) on Windows (XP). However, it does *not* appear to be re-sizing when the (Browser) window is re-sized. FYI: at 800 x 600 window size, I can see down to the line your target group... and ending at ...Right Solutions has t At 1024 x 768, all the text is seen, but the background image is clipped at about the lower right (visible) corner of the bridge. At 1280 x 1024, all of the content is seen _except_ the outer-most areas of the blue semi-circles on the far left and right. Regards, Jim --- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gdue...@... wrote: Ok, jim, my flex ste: is: http://leftandrightsolutions.com/lrsad/bin/lrsad.html please check it on a pc with windows and let me know if this one looks good on windows/vista/xp borwsers, prefenrently IE. Regards, Gustavo P.d: the aplication for mac computer has a window.open() but problem is the windows browsers, so instead of that I've been trying to apporach the windows, not much of success right now. On Feb 2, 2009, at 1:13 PM, jim.abbott45 wrote: Gustavo: Sorry, but I don't think the approach you are taking is necessarily advisable, or even technically correct (in one regard). Specifically: 1) screen.width (and screen.height, and screen.availableWidth, etc.) allow JavaScript (DOM) code to discover the size of the user's monitor (screen hardware), not of the browser window in which your Flex application is running. (The available* properties then subtract from that size any operating system 'reserved' screen real estate, such as the Windows task bar.) 2) I would be very surprised if JavaScript code could alter the value of any of these properties--by definition they could not be under the control of a browser window, so they should be read-only. Therefore, code like screen.width = 1024; should not be expected to work. Even if that code _does_ happen to work with one Browser or Operating System, I wouldn't rely on it! 3) A reasonably reliable way to ensure that your application is running in a browser window of the size that you want, is to use the JavaScript/browser DOM Window.open() method to open a new window, which gives you the opportunity to specify the size of browser window that you want your application to have. Be sure to note that you are specifying the overall (e.g., outer) size of the window; you are NOT specifying how much (client) area that your application will get. *** Different brands (and versions) of browsers will use different amounts of space for their own 'chrome' (UI elements such as the URL/address bar, etc.). I don't know of any way other than cross-browser testing to discover the exact values, and they may change when a new version of a browser is released! 4) If you don't want to open a new browser window, then you can use the Window.resizeTo() DOM call in order to modify the size of the current window. For both 3) and 4), security policy in modern browsers may affect: the success of opening a new window (i.e., pop-up blockers), and to place limits on net window size. 5) You can call the JavaScript/DOM code from your Flex application using the Flash ExternalInterface API. For more information, see (for example): http://livedocs.adobe.com/flex/3/html/help.html? content=passingarguments_4.html 6) For more information about the Window.resizeTo() browser DOM API, see (for example): http://msdn.microsoft.com/en-us/library/ms536723(VS.85).aspx 7) My _recommendation_ is that you consider abandoning the notion of a fixed-size application window. Flex containers support liquid layout very nicely and it is not much (extra) work to let your application work that way. In other words, if/when the user resizes their browser window, have your application adjust its layout accordingly. If you do that, I think that it is also reasonable to specify a (window) size below which your application won't be able to re-size itself to (and, thus, scroll bars may appear). Good luck! --Jim --- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gduenas@ wrote: do you know where I can get examples of this ExternalInterface? Regards, Gustavo On Feb 2, 2009, at 10:45 AM, Tracy Spratt wrote: If that works in javascript, in different browsers, then you can get those values through ExternalInterface Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gustavo Duenas LRS Sent: Monday, February 02, 2009 9:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sizing dinamically the screen Ok, Coders, this is my problem I have set the width and height of my application to 1024 to 768 , it works on mac, but in pc you know what
[flexcoders] Re: Bug in ADG?, possible to bind labelFunction to editor with no dataField?
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: If you know that var data:Object = event.itemRenderer.data; contains a string, why not just use toString() to put the string value in a string variable?: And I am not quite following you otherwise. What are you truing to do with describeType()? That is usually used with non-dynamic objects, but you have a simple 2d indexed array, correct? You said, array of rows and array of cells. Do you mean array or do you mean you have nested dynamic objects? If you have nested dynamic ovjects, you can examine them with a for-each or for-in loop. Note, describeType is costly. That means slow, so be sure you need it. It seems like a dangerous thing to do in a lableFunction. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of tntomek Sent: Thursday, January 29, 2009 6:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Bug in ADG?, possible to bind labelFunction to editor with no dataField? Hi, Does anyone have any idea how to edit data that does not come from fixed object properties i.e. myObject.Name but myObject.Attributes[2] which might be name? I have a 2D array, array of rows and array of cells for each row, both are arbitrary. I have this successfully displayed my data in AdvancedDataGrid via labelFunction. public function getContentLabel(item:GridRow, column:CustomLabelColumn) : String { if(item != null) { return item.Cells.getGridLabelCellAt(column.columnIndex).Label; } else { return null; } } How do I edit the data in these columns? I looked at http://www.adobe.com/livedocs/flex/3/html/help.html?content=celleditor_8 .html#197235 http://www.adobe.com/livedocs/flex/3/html/help.html?content=celleditor_ 8.html#197235 and tried messing around with itemEditBegin and itemEditEnd. I have itemEditBegin working successfully where I am able to display my label in a text box. The itemEditEnd for ADG seems to crash because I'm using typed objects instead of plan strings or XML. In fact I'm convinced there is a bug in the itemEnd base handler. I tried calling preventDefault from the grids itemEnd function but no luck, I am forced to overwrite the event.reason so that the base class doesnt destroy my itemEditor. My issue is here: In AdvancedDataGridBaseEx.as private function itemEditorItemEditEndHandler(event:AdvancedDataGridEvent):void ... var newData:Object = itemEditorInstance[_columns[event.columnIndex].editorDataField]; var property:String = _columns[event.columnIndex].dataField; var data:Object = event.itemRenderer.data; var typeInfo:String = ; //WHY is this only XML??? my data variable has plan String text and yet I never make it into the typeInfo == String part since typeInfo is because the XML loop never executes on an object; for each(var variable:XML in describeType(data).variable) { if (property == variab...@... mailto:variable.%40name.toString ()) { typeInfo = variab...@... mailto:variable.%40type.toString (); break; } } if (typeInfo == String) { //NEVER make it here if (!(newData is String)) newData = newData.toString(); } //.. //CRASH HERE since property is null. // data = Some Text; if (data[property] != newData) { bChanged = true; data[property] = newData; } The code I described is in Flex DMV code, AdvancedDataGridBaseEx.as itemEndHandler. This is a private method and contains some private class variables so I'm not able to modify it's implementation. At first I tried to event.preventDefault() in my local handler but this implementation seems to do important stuff, I dont feel comfortable skipping this code but maybe I should. In addition, this method seems to make use of event.reason in addition to preventDefault. The array is not simple in that its a typed ArrayCollection of rows which each row having a typed ArrayCollecton of cells. So to get at an instance of a cell I go: var cell:MyTypedCell = typedArrayCollectionRows.getMyTypedRowAt(0).Cells.getMyTypedCellAt(0) I was able to handle the itemBegin handler and put a cell.Label value and in TextInput.text. This is where I also manualy populate the event.itemRenderer.data = some text (the itemEnd handler expects thi to be XML it seems). So I can successfully display the editing portion of ADG. Where I get into trouble is the default handler for itemEnd. I'm not sure what to do in regards to cleanup and preventing the default from firing. Note that I'm only using the default ADG item renderer for now so I'd like to stick with default implementation as much as possible. I will try to upload a complete simplified project if you would be so kind as to take a look at this issue and maybe a better best practice. Thank you for the reply,
[flexcoders] enabling slider using radio button
hi how can i enable a slider control by using a radio button group selection?
Re: [flexcoders] Shared Objects And Modules
Lorenzo, When the doc says the same domain it means that flash player should get module from the same URL domain for security reason. About shared objects, it is cool but has size limitation like cookies. You can save whatever you want... -- Marco Catunda On Mon, Feb 2, 2009 at 7:27 AM, thelordsince1984 lore...@katamail.com wrote: Hi, i'm reading about shared objects...they are like html cookies but with improved performances...very cool!!but if i use modules can i always save the state of each modules? Infact i read that modules are used for the same domain..what domain means? that I can save the state for a single application (so a single swf files), is it true? thanks in advance Regards Lorenzo
[flexcoders] Re: model locator population too late
You can use the call back mechanism to load the data into model. And call that method in the creationComplete of that progress bar or any other kind. Call Back mechanism works like it will wait to process the next line of code. Because of asynchronous nature of flex we are running like this kind problems. --- In flexcoders@yahoogroups.com, Jim Hayes j...@... wrote: But before i show my form I need the model variable to be populated. How do you handle this type of situation. Could you use ChangeWatcher to watch that variable and show the form when it changes? ChangeWatcher.watch(yourModel,yourModelVariable,showYourForm); I'm sure there are other ways , it probably depends on your situation which would be best, however. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jerry_gagliano Sent: 02 February 2009 21:18 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: model locator population too late How the hell do you bound a progress bar to a model? I have the same problem. Which I execute a cairngrom event and it populates the the model variable. But before i show my form I need the model variable to be populated. How do you handle this type of situation. Thanks --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: Surely the progress bar is bound to the model, not part of the model itself? - Original Message - From: dnk d.k.emaillists@ To: Flexcoder List flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 11:14 PM Subject: [flexcoders] model locator population too late Hi there, I have an app that uses a model locator class. Now I have a component that is passed in a reference to another component (A progress bar in my case). Now my problem is that the component is being created prior to the model locator being populated with the reference to the progress bar. So then obviously my component does not work as expected as it needs that reference. I have no idea on how to get around this issue. I can't populate the model locator (manually) any earlier as the progress bar has not yet been created. Ideas? d -- 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 __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
Re: [flexcoders] ActionScript design patterns chapter pdf
I have the book sitting on my desk, it's a great article. I'm not sure where a PDF version of it resides though... maybe check scribd? On Sat, Jan 31, 2009 at 2:13 PM, Matthew Kim kimmatt...@yahoo.com wrote: Does anyone know where I can find a copy of the pdf of the chapter from the ActionScript 2.0 Dictionary entitled ActionScript Design Patterns for Rich Internet Application Development? It was previously posted on the now defunct richinternetapps site. I'm in the process of updating a pre-Cairngorm architecture based on the patterns it outlined, and would like to have it available for reference. Thanks, Matt -- Cheers, Nate http://blog.natebeck.net
[flexcoders] DataGrid space at top right of headers override?
Hi, I'm wondering if anyone can give me any pointers on whether i can change the DataGrid headers to use the spare space that appears above the vertical scrollbar (once enabled) within the datagrid control, i'd like to use this space to place a drop down menu to allow users to select which columns are visible in the grid I could of course just add a dummy column if this isn't possible but it would be useful to use that space if the scrollbar was visible? Many Thanks Jason Crummack Easysoft Limited
[flexcoders] Re: sizing dinamically the screen
Gustavo: Sorry, but I don't think you're coding this correctly. Specifically: 1) I don't see your browser size detection code in the HTML wrapper file at all. E.g., it is missing: script type=javascript var browserHeight= screen.availHeight; var browserWidth = screen.availWidth; /script 2) In any case, I'm not 100% clear as to what you are trying to accomplish via the external interface. However, to get the available screen width the following code will *probably* work (I haven't tried it or tested it): In ActionScript (note the quotation marks): var width:Number = ExternalInterface.call(getAvailWidth); assuming you have a JS function (in the HTML wrapper file) like this: function getAvailWidth() { return screen.availWidth; } Then write similar code for the height, etc. 3) BTW, as a general rule, I've found it most productive to debug JS code first (in isolation), _before_ attempting to call it from Flex. 4) Please look at the Adobe documentation for the ExternalInterface API and the HTMLWrapper file again. I think--for now--you've reached the limit as to what can reasonably be addressed via postings on FlexCoders. Good luck, Jim --- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gdue...@... wrote: OK,,I have this using the external interface let me know if I'm wrong...:) mx:script import flash.external.*; publicFunction resizerFlash():void{ var h:uint; var w:uint; if (ExternalInterface.available){ var availableHeight:uint = browserHeight ; h= ExternalInterface.call(availableHeight, stage.height); } if (ExternalInterface.available){ var availableWidth:uint = browserWidth; w=ExternalInterface.call(availableHeight, stage.width); } } in the html: script type=javascript var browserHeight= screen.availHeight; var browserWidth = screen.availWidth; /script I'm just adapting something I found about using the external interface let me know if I'm wrong or this is going to be a fiasco Gustavo On Feb 2, 2009, at 1:33 PM, Gustavo Duenas LRS wrote: Ok, jim, my flex ste: is: http://leftandrightsolutions.com/lrsad/bin/lrsad.html please check it on a pc with windows and let me know if this one looks good on windows/vista/xp borwsers, prefenrently IE. Regards, Gustavo P.d: the aplication for mac computer has a window.open() but problem is the windows browsers, so instead of that I've been trying to apporach the windows, not much of success right now. On Feb 2, 2009, at 1:13 PM, jim.abbott45 wrote: Gustavo: Sorry, but I don't think the approach you are taking is necessarily advisable, or even technically correct (in one regard). Specifically: 1) screen.width (and screen.height, and screen.availableWidth, etc.) allow JavaScript (DOM) code to discover the size of the user's monitor (screen hardware), not of the browser window in which your Flex application is running. (The available* properties then subtract from that size any operating system 'reserved' screen real estate, such as the Windows task bar.) 2) I would be very surprised if JavaScript code could alter the value of any of these properties--by definition they could not be under the control of a browser window, so they should be read-only. Therefore, code like screen.width = 1024; should not be expected to work. Even if that code _does_ happen to work with one Browser or Operating System, I wouldn't rely on it! 3) A reasonably reliable way to ensure that your application is running in a browser window of the size that you want, is to use the JavaScript/browser DOM Window.open() method to open a new window, which gives you the opportunity to specify the size of browser window that you want your application to have. Be sure to note that you are specifying the overall (e.g., outer) size of the window; you are NOT specifying how much (client) area that your application will get. *** Different brands (and versions) of browsers will use different amounts of space for their own 'chrome' (UI elements such as the URL/address bar, etc.). I don't know of any way other than cross-browser testing to discover the exact values, and they may change when a new version of a browser is released! 4) If you don't want to open a new browser window, then you can use the Window.resizeTo() DOM call in order to modify the size of the current window. For both 3) and 4), security policy in modern browsers may affect: the success of opening a new window (i.e., pop-up blockers), and to place limits on net window size. 5) You can call the JavaScript/DOM code from your Flex application using the Flash ExternalInterface API. For more information, see (for example): http://livedocs.adobe.com/flex/3/html/help.html? content=passingarguments_4.html 6) For more information about the Window.resizeTo() browser DOM API, see (for example):
[flexcoders] This is kind of Wonderfl
Spotted a post over at Techcrunch about wonderfl.kayack.com . Looks like a pretty cool project. And if the creator(s) happen to see this, a big thumbs up! Steve
RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)
Yes, all the data is in SQLite and available as an arraycollection to everything when creation complete kicks. I'm just trying to get the URL of an image that is already in a grid of images to be added to a presentation (within the presentation table) when the image is dropped on the presentation in the UI. _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jim Hayes Sent: Friday, January 30, 2009 5:30 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes) But I'm still puzzled as to how to fire the proper SQL statement for each drop; essentially it's an INSERT [URL from drop] INTO table WHERE column = [the drop acceptor's label string]. So it's [URL from drop] and [the drop acceptor's label string] values that you need, essentially?, or you've already got those and want to know how to pass them elsewhere/use them to update the database? -Original Message- From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of David Kramer Sent: 30 January 2009 21:20 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes) Yes! Last night around 2 AM I thought Oh, the item renderer should accept it and then I went to sleep. But I'm still puzzled as to how to fire the proper SQL statement for each drop; essentially it's an INSERT [URL from drop] INTO table WHERE column = [the drop acceptor's label string]. Example code rocks, of course, but small nudges will help me get through the fog. Thanks to all who keep illuminating... From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of Jim Hayes Sent: Friday, January 30, 2009 2:06 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes) So I think what you really need to be doing is to have the list item renderer accept the drop, rather than the list itself? I'm sure I did this with the datagrid about a year and a half ago, unfortunately I don't have that project to hand just now or I'd have a look and see how I did it. All I remember was it wasn't all that hard to do once I'd got that concept. -Original Message- From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of David Kramer Sent: 30 January 2009 20:52 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Cc: kramer.david@ mailto:kramer.david%40consultant.com consultant.com Subject: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes) Hello All. I've run into a problem, need other perspective(s)/solutions: Simply put: I want to implement drag and drop, like iTunes, in an AIR app. Seems easy, but...this particular scenario is puzzling. Right now, just like iTunes, I have two list-based controls (both are populated from collections of data within SQLite), one is a DataGrid and one is a List. Dragging and dropping from the Grid to the List is simple, yes, but I would like to drop on the list item's label/text/name in the List and perform another function (specifically an update to SQLite) and NOT simply drop the item and append to the list. Follow? As in iTunes, you can drag a song into a folder and it adds the song into the folder. (I would make that reference in SQLite in this case). It doesn't make a new folder by appending (wrongly) the dropped song to the folder list. (Which is what I have now: If I drag a item from the grid and drop it on the list, it's appended to the list, but I want it to become a value within the list item (pseudo nested) not a value in the list itself.) Is there a simple solution here I'm not seeing? Now, I can do all that neat stuff by dragging a grid item unto a mx:Button, but with only one button. Maybe I could loop/repeater to make a vertical stack of buttons from an array? But then it gets unclear as to how each button is created with the necessary dragEnter and dragDrop event handlers... any help here? This wheel has been invented before. So how in Flex? David (You can email me off of list if you'd like, I'll gladly post the solution at the end. kramer.david@ mailto:kramer.david%40consultant.com consultant.com) __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No.
[flexcoders] Re: Shared Objects And Modules
--- In flexcoders@yahoogroups.com, Marco Catunda marco.catu...@... wrote: Lorenzo, When the doc says the same domain it means that flash player should get module from the same URL domain for security reason. About shared objects, it is cool but has size limitation like cookies. You can save whatever you want... -- Marco Catunda On Mon, Feb 2, 2009 at 7:27 AM, thelordsince1984 lore...@... wrote: Hi, i'm reading about shared objects...they are like html cookies but with improved performances...very cool!!but if i use modules can i always save the state of each modules? Infact i read that modules are used for the same domain..what domain means? that I can save the state for a single application (so a single swf files), is it true? thanks in advance Regards Lorenzo Thanks for the reply.. so is it possible to save a specific configuration with modules? suppose that i have a main application and here i have n modules (distinct swf files). then within modules i run my operations and finally when i closed the main application i would save the configuration for modules that i have modified.. At the succesive startup i would retrieve saved data. Is it possible to save the entire modules, so an entire complex object? or is possible to save only data, for example values properties? Do you know any example in the web? Thanks Again Regards Lorenzo
[flexcoders] Re: Air/Flex/Html roundtrip?
not sure which part of the solution you're after but: - from AIR you can create hooks in your html page, using something like myHtml.htmlLoader.window.customJSHandler = this.onCustomJSHandler - customJSHandler can be called from within your htmlpage by a href=javascript:customJSHandler/ cheers, Dennis --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: If this were an ideal world I'd be able to specify a function in my flex/AIR app as an html link in an html page rendered by the application. Any ideas about how I might achieve this? Paul
[flexcoders] how to forcibly minimize a window via flexmdi window
Hi gang, I've been toying with the outstanding flexmdi component from flexlib and have found something challenging... One of the pieces of the MDIWindow is the minimize() function. I'm creating the windows on the canvas dynamically based on the users last know settings...including whether they have minimized any of the windows on their dashboard. I have a variable in their record for each window called isCollapsed (bit/bool). What I'm trying to do is when the records are read and the windows are dynamically created, I check to see if the isCollapsed == true and if so, I'm trying to fire the MDIWindow.minimize() function. However, it's expecting a mouseEvent and I'm not sure how to force a non-existent event into the function??? Basically, I need to programmatically emulate a mouseclick on the minimize button of the window. I've tried a number of alternative methods without success, including these: newWindow.minimize(); newWindow.minimize(null); newWindow.dispatchEvent(MDIWindowEvent.MINIMIZE); dispatchEvent(new MDIWindowEvent(MDIWindowEvent.MINIMIZE, newWindow)); Here is the minimize function: public function minimize(event:MouseEvent = null):void { // if the panel is floating, save its state if(windowState == MDIWindowState.NORMAL) { savePanel(); } dispatchEvent(new MDIWindowEvent(MDIWindowEvent.MINIMIZE, this)); windowState = MDIWindowState.MINIMIZED; showControls = false; } Has anyone tried to do this or have any ideas on what to try next? Thanks, Adrian
Re: [flexcoders] enabling slider using radio button
hi, try this, mx:Script ![CDATA[ import mx.events.ItemClickEvent; private function radioGroup_itemClick(evt:ItemClickEvent):void { if(evt.label == Enabled Slider) { slider.enabled = true; }else { slider.enabled = false; } } ]] /mx:Script mx:RadioButtonGroup id=radioGroup itemClick=radioGroup_itemClick(event); / mx:HBox mx:RadioButton id=radioButton1 label=Enabled Slider group={radioGroup} / mx:RadioButton id=radioButton2 label=Enabled component 2 group={radioGroup} / mx:RadioButton id=radioButton3 label=Enabled component 3 group={radioGroup} / /mx:HBox mx:HSlider id=slider enabled=false allowThumbOverlap=true dataTipPrecision=2 showTrackHighlight=true snapInterval=0.25 thumbCount=2 tickInterval=1 / From: johndoematrix johndoemat...@yahoo.com To: flexcoders@yahoogroups.com Sent: Monday, February 2, 2009 4:24:12 PM Subject: [flexcoders] enabling slider using radio button hi how can i enable a slider control by using a radio button group selection?
[flexcoders] RERENDER - Is there a way to force a canvas to re-render/refresh?
Hi everyone, is there a way to force a canvas to rerender/refresh? Thanks. David
Re: [flexcoders] Re: sizing dinamically the screen
actually I'm trying to pass the JS var with the availWidth to flex in order to be used on var h:number = ExternalInterface.call(getAvailWidth); var w:humber = ExternalInterface.call(getAvailHeight); root.stage.width = w root.stage.height=h assuming I have in the html wrapper function getAvailWidth{ and so on} This is exactly what I'm trying to accomplish. Gus On Feb 2, 2009, at 6:08 PM, jim.abbott45 wrote: Gustavo: Sorry, but I don't think you're coding this correctly. Specifically: 1) I don't see your browser size detection code in the HTML wrapper file at all. E.g., it is missing: script type=javascript var browserHeight= screen.availHeight; var browserWidth = screen.availWidth; /script 2) In any case, I'm not 100% clear as to what you are trying to accomplish via the external interface. However, to get the available screen width the following code will *probably* work (I haven't tried it or tested it): In ActionScript (note the quotation marks): var width:Number = ExternalInterface.call(getAvailWidth); assuming you have a JS function (in the HTML wrapper file) like this: function getAvailWidth() { return screen.availWidth; } Then write similar code for the height, etc. 3) BTW, as a general rule, I've found it most productive to debug JS code first (in isolation), _before_ attempting to call it from Flex. 4) Please look at the Adobe documentation for the ExternalInterface API and the HTMLWrapper file again. I think--for now--you've reached the limit as to what can reasonably be addressed via postings on FlexCoders. Good luck, Jim --- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gdue...@... wrote: OK,,I have this using the external interface let me know if I'm wrong...:) mx:script import flash.external.*; publicFunction resizerFlash():void{ var h:uint; var w:uint; if (ExternalInterface.available){ var availableHeight:uint = browserHeight ; h= ExternalInterface.call(availableHeight, stage.height); } if (ExternalInterface.available){ var availableWidth:uint = browserWidth; w=ExternalInterface.call(availableHeight, stage.width); } } in the html: script type=javascript var browserHeight= screen.availHeight; var browserWidth = screen.availWidth; /script I'm just adapting something I found about using the external interface let me know if I'm wrong or this is going to be a fiasco Gustavo On Feb 2, 2009, at 1:33 PM, Gustavo Duenas LRS wrote: Ok, jim, my flex ste: is: http://leftandrightsolutions.com/lrsad/bin/lrsad.html please check it on a pc with windows and let me know if this one looks good on windows/vista/xp borwsers, prefenrently IE. Regards, Gustavo P.d: the aplication for mac computer has a window.open() but problem is the windows browsers, so instead of that I've been trying to apporach the windows, not much of success right now. On Feb 2, 2009, at 1:13 PM, jim.abbott45 wrote: Gustavo: Sorry, but I don't think the approach you are taking is necessarily advisable, or even technically correct (in one regard). Specifically: 1) screen.width (and screen.height, and screen.availableWidth, etc.) allow JavaScript (DOM) code to discover the size of the user's monitor (screen hardware), not of the browser window in which your Flex application is running. (The available* properties then subtract from that size any operating system 'reserved' screen real estate, such as the Windows task bar.) 2) I would be very surprised if JavaScript code could alter the value of any of these properties--by definition they could not be under the control of a browser window, so they should be read-only. Therefore, code like screen.width = 1024; should not be expected to work. Even if that code _does_ happen to work with one Browser or Operating System, I wouldn't rely on it! 3) A reasonably reliable way to ensure that your application is running in a browser window of the size that you want, is to use the JavaScript/browser DOM Window.open() method to open a new window, which gives you the opportunity to specify the size of browser window that you want your application to have. Be sure to note that you are specifying the overall (e.g., outer) size of the window; you are NOT specifying how much (client) area that your application will get. *** Different brands (and versions) of browsers will use different amounts of space for their own 'chrome' (UI elements such as the URL/ address bar, etc.). I don't know of any way other than cross-browser testing to discover the exact values, and they may change when a new version of a browser is released! 4) If you don't want to open a new browser window, then you can use the Window.resizeTo() DOM call in order to modify the size of the current window. For both 3) and 4), security policy in modern browsers may affect: the
RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)
I've explored many many options, but still cannot seem to get the item rendered in a list (the label) to be the drop target. It's always the damn list itself I really stripped down code to bare bones and pasted it below for simplicity and clarity, but...no dice. Another set of eyes please? ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical initialize=init(); mx:Script ![CDATA[ import mx.controls.Label; import mx.collections.ArrayCollection; import mx.events.DragEvent; import mx.managers.DragManager; import mx.core.DragSource; import mx.utils.ObjectUtil; [Bindable] private var presentationDefaultCollection:ArrayCollection; [Bindable] private var imagesAcademicCollection:ArrayCollection; private function init():void { this.imagesAcademicCollection = new ArrayCollection(); this.imagesAcademicCollection.addItem({source:img/A01132009/highereducation 1-tn.jpg,title:Image 1,segment:Academic}); this.imagesAcademicCollection.addItem({source:img/A01132009/highereducation 2-tn.jpg,title:Image 2,segment:Academic}); this.imagesAcademicCollection.addItem({source:img/A01132009/highereducation 3-tn.jpg,title:Image 3,segment:Academic}); this.imagesAcademicCollection.addItem({source:img/A01132009/highereducation 4-tn.jpg,title:Image 4,segment:Academic}); this.imagesAcademicCollection.addItem({source:img/A01132009/highereducation 5-tn.jpg,title:Image 5,segment:Academic}); this.presentationDefaultCollection = new ArrayCollection(); this.presentationDefaultCollection.addItem({source:img/A01132009/highereduc ation1-tn.jpg,title:Presentation 1}); this.presentationDefaultCollection.addItem({source:img/A01132009/highereduc ation2-tn.jpg,title:Presentation 2}); this.presentationDefaultCollection.addItem({source:img/A01132009/highereduc ation3-tn.jpg,title:Presentation 3}); } private function dragEnterHandler(event:DragEvent):void { // Get the drop target component from the event object. var dropTarget:Label=event.currentTarget as Label; // Accept the drag only if the user is dragging data // identified by the 'value' format value. if (event.dragSource.hasFormat('value')) { // Accept the drop. DragManager.acceptDragDrop(dropTarget); trace('enter'); } } // Called if the target accepts the dragged object and the user // releases the mouse button while over the drop target. private function dragDropHandler(event:DragEvent):void { // Explicitly handle the dragDrop event. event.preventDefault(); // Get the data from the drag source. var value:String = event.dragSource.dataForFormat('value') as String; // Add Slide to the presentation sqlStuff(); } // Helper method for sql stuff private function sqlStuff():void { //the sql stuff trace('sql'); } ]] /mx:Script mx:HBox mx:DataGrid id=presentationGrid dataProvider={this.presentationDefaultCollection} width=200 mx:columns mx:DataGridColumn headerText=Presentations mx:itemRenderer mx:Component mx:Label text={data.title} dragEnter=dragEnterHandler(event); dragDrop=dragDropHandler(event); / /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:columns /mx:DataGrid mx:DataGrid id=slideGrid dataProvider={this.imagesAcademicCollection} dragEnabled=true width=200 mx:columns mx:DataGridColumn headerText=Slide dataField=title draggable=true / mx:DataGridColumn headerText=Segment dataField=segment draggable=true / /mx:columns /mx:DataGrid /mx:HBox /mx:WindowedApplication _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 30, 2009 4:15 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes) http://livedocs. http://livedocs.adobe.com/flex/3/html/dragdrop_8.html adobe.com/flex/3/html/dragdrop_8.html Now that only give you control over the drop functionality. You still need to extract the necessary key values form the source and target data, and build your update data structure and send it to the server, however you are doing that. Break this into steps. Make sure you can update the server with data from the source and target lists. Hard code the data as needed to test the Flex-server--database-server-flex process. You can choosw whether you want the drag operation to update the client target list or whether you want to return the new list data from the server and re-populate the list with that. When you can update the database successfully, implement the dragDrop handler, extract the key/data values form the source and target, and pass them to the function you created and tested in the step above. Tracy Spratt Lariat Services Flex development bandwidth available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of David Kramer Sent: Friday, January 30, 2009 4:10 PM To: flexcoders@yahoogroups.com Subject: RE:
[flexcoders] ActionScript design patterns chapter pdf
Does anyone know where I can find a copy of the pdf of the chapter from the ActionScript 2.0 Dictionary entitled ActionScript Design Patterns for Rich Internet Application Development? It was previously posted on the now defunct richinternetapps site. I'm in the process of updating a pre-Cairngorm architecture based on the patterns it outlined, and would like to have it available for reference. Thanks, Matt
Re: [flexcoders] RERENDER - Is there a way to force a canvas to re-render/refresh?
invalidateDisplayList(); sailorsea21 wrote: Hi everyone, is there a way to force a canvas to rerender/refresh? Thanks. 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 -- 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.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust