RE: [flexcoders] HTTPService: how to dynamically add params.
Title: Mercury Email Signature Thanks Matt and Tracy , works like a charm BUT - why the hell the documentation does not talk about this. Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy SprattSent: Tuesday, November 29, 2005 20:50To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] HTTPService: how to dynamically add params. Use bracket notation. Try: var oRequest:Object = new Object() oRequest[paramName] = value; Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi CohenSent: Tuesday, November 29, 2005 12:23 PMTo: 'flexcoders@yahoogroups.com'Subject: [flexcoders] HTTPService: how to dynamically add params. Hi I have an application that gets a callback URL and a callback Parameter name. now after user do something i need to send the info to that URL and use the given external Parameter name - remember i don't know its name so an object cannot be constructed to pass to the http service. for example var paramName:String = "result"; // this one changes upon request var oRequest:Object = new Object({paramName ???: value}) - what do i put there ? it takes the paramName as a string not as its value. srv.send(oRequest) even tried using eval to evaluate a dynamic _expression_ on oRequest - didn't help. even tried using the oRequest.addProperty(paramName); then evaluate and assign - didn't help . any ideas ? Shlomi __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Interesting trick
Mapping SOAP results to ActionScript classes - the easy way http://www.richinternet.de/blog/index.cfm?mode=entryentry=C67113D1-EF48-403E-AEB3F29BC7078553 http://www.richinternet.de/blog/index.cfm?mode=entryentry=C67113D1-EF48-403E-AEB3F29BC7078553 //Philippe -- **STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. -- Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ winmail.dat
Re: [flexcoders] concurrency=last
Matt, They are 4 different methods being called on the same service. RichOn 11/30/05, Matt Chotin [EMAIL PROTECTED] wrote: I believe concurrency should be done on an operation basis but the setting is inherited from the service you don't assign one. The default is multiple. Are you making 4 different method calls or 4 calls to the same method? If the same method then obviously a setting of last should only return 1 instead of all of them, but if they're different methods that would sound like a bug. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ben Lucyk Sent: Tuesday, November 29, 2005 8:16 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] concurrency=last Hey Rich, I haven't tested, but looks to be that concurrency is set per service: Value that indicates how to handle multiple calls to the same service. The default value is multiple. The following values are permitted... I guess you could work around it by defining a service for each method if you really needed this functionality, but I'm curious about this one as well. Does anyone have any more details as to how Flex ...cancels any previous requests, while honoringthe new one for aconcurrency=last situation? -Ben On 11/29/05, Rich Tretola [EMAIL PROTECTED] wrote: Does the service concurrency work on a per method basis or per service ? Here is the situation (Flex 1.5): I have a piece of data in my model that when changed will fire off 4 method calls using the same service (Remote object call to java) with concurrency=last. It seems that I never get all 4 responding and that the concurrency is per service id ? Am I correct in this ? I always assumed that the concurrency set to last would be last call to a specific methd to avoid double calls to a specific method and not a specific service. Rich -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] button
Hi Jeremy, I understood what you are trying to do. Here is a conversation snippet discussing the same issue. - It turns out that if you want add components to the stage, you have to set up our infrastructure first. On the other hand, if you just want to add Sprites and other non-framework DisplayObjects, it is pretty simple. Basically, you need to start with a SystemManager, specify an Application, then set up styles used by the components before adding components.This is the basic button example.-Original Message- Subject: Example of Adding a component via ActionScript?Anyone have an example of adding a Component (say a button) to the stage via ActionScript?I am specifically looking for an example in an ActionScript only project.Lots of people seem to be trying to do this, and are getting tripped up on it. If you are interested I can send you the AS file. (Ithas nearly 600 lines as it has not been trimmed down) -Sreenivas On 11/30/05, Jeremy Tooley [EMAIL PROTECTED] wrote: Hi SreenivasI should have been more clear. I am using flex 2.0 to comile an Actionscript project. and using the as button components Sreenivas R wrote: -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] listen a custom event from a dialog(Flex 2.0)
My application has popup window which is triggered from the main application. var popup:Object = PopUpManager.popUpWindow(sWindow, this, modal); PopUpManager.centerPopUp(popup); Pop-uped dialog has a form and a submit button. When user fills and submit the form, data will be updated via my webservice. Also this dialog will be closed. After closing the dialog, main application should invoke another webservice to refresh a TileList that refers updated data by the dialog form. I thought i should (1) diapatch a custom event when the dialog closed. (dialogwindow.mxml) ... mx:Metadata [Event(RELOAD_DATA)] /mx:Metadata ... mx:Script ![CDATA[ // submit form here... dispatchEvent(new Event(RELOAD_DATA)); ]] /mx:Script (2) and listen the event and invoke handle function to refresh the TileList. (main.mxml) private function onCreationComplete() { addEventListener(RELOAD_DATA, loadData); } private function loadData() { // logic to invoke a webservice here... } When i run this application no error is reported, and the TileList is not refreshed Of course, the webservice works well. So i'm wrong at some point handling custom event... Please correct me. TIA, Keishichi Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Maintaining Session Data/Passing data to other apps
Hi, I'm developing an app at the moment which maintains user info for a suite of applications. It works by authenticating and retrieving user information then redirecting to the target application. The problem is i was hoping the session data would be maintained between the apps, as i would use redirection ( getUrl('http://www.hotmail.com') within the same browser, but the session data gets destroyed between the two. How can i maintain the session data? An alternative would be some method to pass data between the apps, but the data is sensitive, so i can't use query string parameters e.g http://localhost:8101/flex/charts/PieChart1.mxml? fname=Reinerlname=Knizia The app i am redirecting to is another j2ee instance on the same server. I am using CF7 and Flex 1.5 Can anyone help? Regards, Scott Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] New user
Hello i'm new on flex. I made a learning week on Flex 1.5. I've got a project to build for the new 6 months and i've got a first question in order to start, it's do i choose the 1.5 version or wait the new Flex 2.0? What are your ideas ? Laurent Yahoo! Groups Sponsor ~-- AIDS in India: A lurking bomb. Click and help stop AIDS now. http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] New user
Hello i'm new on flex. I made a learning week on Flex 1.5. I've got a project to build for the new 6 months and i've got a first question in order to start, it's do i choose the 1.5 version or wait the new Flex 2.0? What are your ideas ? Laurent Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Maintaining Session Data/Passing data to other apps
Hi, Well if the both apps are under the same context (say /myapp ), then they share the same session data... you can just use a RemoteObject call to retrieve the data. If however both apps are under different contexts ( say / myapp and /myotherapp ), they won't share the same session data. You will have to load it each case. Question is, why do you really need two apps? Can't one app do the work fro you, and have it in such a way that it displays one view versus another depending on what role the user has? Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of smi295Sent: Wednesday, November 30, 2005 5:35 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Maintaining Session Data/Passing data to other apps Hi,I'm developing an app at the moment which maintains user info for a suite of applications. It works by authenticating and retrieving user information then redirecting to the target application. The problem is i was hoping the session data would be maintained between the apps, as i would use redirection ( getUrl('http://www.hotmail.com') within the same browser, but the session data gets destroyed between the two. How can i maintain the session data? An alternative would be some method to pass data between the apps, but the data is sensitive, so i can't use query string parameters e.g http://localhost:8101/flex/charts/PieChart1.mxml?fname=Reinerlname=KniziaThe app i am redirecting to is another j2ee instance on the same server.I am using CF7 and Flex 1.5Can anyone help?Regards,Scott -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex2 :: XML-RPC (char replacement nuisance)
Hey Jesse, The XMLRPC already contains CDATA, and nested CDATA is not allowed. Also this is what the specs have to say: What characters are allowed in strings? Non-printable characters? Null characters? Can a string be used to hold an arbitrary chunk of binary data? Any characters are allowed in a string except and , which are encoded as lt; and amp;. A string can be used to encode binary data. ( http://www.xmlrpc.com/spec) So i guess the question is, how do one return a xml-type in a XmlRPC reply? Thanks for your time, and suggetion Jesse! Cheers -michael On 11/30/05, JesterXL [EMAIL PROTECTED] wrote: All jacked character data is supposed to use CDATA, like so: string![CDATA[lt;taggt;testinglt;/taggt;]]/string Like the script tag in Flex. Is there not a way to intercept .NET's response and wrap it? - Original Message - From: Michael Hansen To: flexcoders@yahoogroups.com Sent: Tuesday, November 29, 2005 6:01 PM Subject: Re: [flexcoders] Flex2 :: XML-RPC (char replacement nuisance) Thanks for the reply Matt,I got a hold on what's going on.When sending a RPC request to the .net, it replies something like the following:?xml version=1.0?methodResponse params param value string[HERE BE THE REPLY/PAYLOAD]/string /value /param /params/methodResponseNow because .net regards what is inbetween string/string as a 'payload' wrapped in a RPC protocol, the data inside these tags cannot have chars like '',and '', since this would potentially invalidate the xml structure of the reply as a whole. Therefore whatever is between string/string is html-encoded, e.g. translated to lt;Example: If the service was to return a xml dodument liketagtesting/tagthe reply from the service would be:?xml version=1.0?methodResponse params param value stringlt;taggt;testinglt;/taggt;/string /value /param /params/methodResponsewhich is decoded by flex to a string (Flex correctly interprets the data received as 'raw' data as has no other choice) and _not_ a xml document. Therefore the data is not passed, and the Object tree is not created. I guess other rpc services do not html-encode the 'payload'?? Flickr(PHP??) seems to work just fine... Is Microsoft right in doing this encoding?Anybody out there a genius on RPC?? (less may also do it :)Cheers-michaelPS. The linefeeds are definetly not the problem in this case. There's only one type (CRLF), and tests show that this works just fine. :) On 11/29/05, Matt Chotin [EMAIL PROTECTED] wrote: Probably less people are testing against .NET right now. We do have tests that did pass but we've also seen some issues with the player (well also the compiler). The issue that we had internally was one of line-endings where the XML was mixed in using Windows line endings (CRLF or \r\n) and Unix (LF or \n). Any way of checking how the service is coming back (I'd assume since it's .NET that it's CRLF)? Matt From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Michael HansenSent: Tuesday, November 29, 2005 10:06 AMTo: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 :: XML-RPC (char replacement nuisance) Hi list,I'm doing some Xml RPC to .net backend, and having problems with char replacements.I call the service, and it replies something like:lt;?xml version=1.0 encoding=utf-8?gt;lt;taggt;lt;/taggt;where e.g., is replaced by lt;As a result flex do _not_ decoding into the desired object-array.If a do a .aspx page that write the xml to the document stream i receive?xml version=1.0 encoding=utf-8?tag/tagand all is well.If a do a .net webservice, the payload (i.e. the result) is also 'char-replaced' and once again flex2 chokes. If I do a .net client that connects to the webservice all is well.Who's at 'fault' here? and is there a way to fix it without writing a custom xmlDecoder? (either on .net or flex2)Am I really the only one that have had problems with this or am I stupid (gotta be realistic sometimes :o)Cheers -michael--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --
[flexcoders] Flex 2.0 : How to validate form fields ?
Title: Flex 2.0 : How to validate form fields ? Hi ! I've tried to find an approuch to validate fields of a data form. Actually, my form looks like: ?xml version=1.0 encoding=utf-8? mx:Canvas creationComplete=onComplete() mx:Metadata [Event(validate)] /mx:Metadata mx:Script public function validate(event:Object) : Void { validator.validate(); } public function onComplete() : Void { this.addEventListener(validate,this.validate); this.dispatchEvent(new Event(validate)); } /mx:Script mx:StringValidator id=validator source={name} property=text required=true requiredFieldError=Field is empty./ mx:Form label=test mx:FormItem label=Name fontWeight=bold mx:TextInput id=name editable=true maxChars=30 width=300/ /mx:FormItem . Running this code I have ever had a Flash Player error: Error: The source attribute must be specified when the property attribute is specified.. I'm using Flash Player 8.5. Any ideas ? Thanks in advance ! Michel. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex2 :: XML-RPC (char replacement nuisance)
Nested CDATA is not allowed!? What crackhead wrote that spec? Weird dude, I connected to SOAP with Flash no problem back in MX, and MX 2004. I know both had different classes, but... I never actually tried a .NET XML-RPC, but I did try a LiveJournal one. Not sure what theirs is written in, but I'd get the XML back correctly, whether I was using my own custom parsing, or Central's built-in support. I fail to see why Flex can't handle it; hopefully Matt'll catch this on the next run through. - Original Message - From: Michael Hansen To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 8:28 AM Subject: Re: [flexcoders] Flex2 :: XML-RPC (char replacement nuisance) Hey Jesse,The XMLRPC already contains CDATA, and nested CDATA is not allowed.Also this is what the specs have to say: What characters are allowed in strings? Non-printable characters? Null characters? Can a "string" be used to hold an arbitrary chunk of binary data? Any characters are allowed in a string except and , which are encoded as lt; and amp;. A string can be used to encode binary data. ( http://www.xmlrpc.com/spec) So i guess the question is, how do one return a xml-type in a XmlRPC reply? Thanks for your time, and suggetion Jesse!Cheers-michael On 11/30/05, JesterXL [EMAIL PROTECTED] wrote: All jacked character data is supposed to use CDATA, like so: string![CDATA[lt;taggt;testinglt;/taggt;]]/string Like the script tag in Flex. Is there not a way to intercept .NET's response and wrap it? - Original Message - From: Michael Hansen To: flexcoders@yahoogroups.com Sent: Tuesday, November 29, 2005 6:01 PM Subject: Re: [flexcoders] Flex2 :: XML-RPC (char replacement nuisance) Thanks for the reply Matt,I got a hold on what's going on.When sending a RPC request to the .net, it replies something like the following:?xml version="1.0"?methodResponse params param value string[HERE BE THE REPLY/PAYLOAD]/string /value /param /params/methodResponseNow because .net regards what is inbetween string/string as a 'payload' wrapped in a RPC protocol, the data inside these tags cannot have chars like '',and '', since this would potentially invalidate the xml structure of the reply as a whole. Therefore whatever is between string/string is html-encoded, e.g. translated to lt;Example: If the service was to return a xml dodument liketagtesting/tagthe reply from the service would be:?xml version="1.0"?methodResponse params param value stringlt;taggt;testinglt;/taggt;/string /value /param /params/methodResponsewhich is decoded by flex to a string (Flex correctly interprets the data received as 'raw' data as has no other choice) and _not_ a xml document. Therefore the data is not passed, and the Object tree is not created. I guess other rpc services do not html-encode the 'payload'?? Flickr(PHP??) seems to work just fine... Is Microsoft right in doing this encoding?Anybody out there a genius on RPC?? (less may also do it :)Cheers-michaelPS. The linefeeds are definetly not the problem in this case. There's only one type (CRLF), and tests show that this works just fine. :) On 11/29/05, Matt Chotin [EMAIL PROTECTED] wrote: Probably less people are testing against .NET right now. We do have tests that did pass but we've also seen some issues with the player (well also the compiler). The issue that we had internally was one of line-endings where the XML was mixed in using Windows line endings (CRLF or \r\n) and Unix (LF or \n). Any way of checking how the service is coming back (I'd assume since it's .NET that it's CRLF)? Matt From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Michael HansenSent: Tuesday, November 29, 2005 10:06 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex2 :: XML-RPC (char replacement nuisance) Hi list,I'm doing some Xml RPC to .net backend, and having problems with char replacements.I call the service, and it replies something like:lt;?xml version="1.0" encoding="utf-8"?gt;lt;taggt;lt;/taggt;where e.g., is replaced by lt;As a result flex do _not_ decoding into the desired object-array.If a do a .aspx page that write the xml to the document stream i receive?xml version="1.0" encoding="utf-8"?tag/tagand all is well.If a do a .net webservice, the payload (i.e. the result) is also 'char-replaced' and once again flex2 chokes. If I do a .net client that connects to the webservice all is well.Who's at 'fault' here? and is there a way to fix it without writing a custom xmlDecoder? (either on .net or flex2)Am I really the only one that have had problems with this or am I stupid (gotta be realistic
[flexcoders] FlexHibernate lazy fetching
Hi, I'm using Flex with Hibernate3 for data persistence and I'm having issues with the lazy fetching for one to many object relations. Have you seen this before? Any suggeestions? Thanks, Valy __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Design Pattern Questions(With code), Java Internals Questions Added in this site ..
Hi AllSome very important Design patterns and the Java internals Questions have been added at http://agirish.50webs.com Note: My site is best viewd in firefox, if you don't have it then download it from my site http://agirish.50webs.comHave a look and clear your interviews...All the best Girish Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002
There is a new design stencil available for MS Visio 2002 (and higher) that allows Macromedia RIA developers to mockup Coldfusion MX Flash cfforms and Flex 1.5 applications using the HaloGreen look and feel. Much better than trying to mockup RIA's using Windows UI stencils or Dreamweaver's limited Design Mode. There's more information here. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002
The page doesn't show anything in Firefox, nor IE? - Original Message - From: Darren Houle To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 10:08 AM Subject: [flexcoders] Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002 There is a new design stencil available for MS Visio 2002 (and higher) that allows Macromedia RIA developers to mockup Coldfusion MX Flash cfforms and Flex 1.5 applications using the HaloGreen look and feel. Much better than trying to mockup RIA's using Windows UI stencils or Dreamweaver's limited Design Mode. There's more information here. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002
I smell spam, but I could be wrong. --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: The page doesn't show anything in Firefox, nor IE? - Original Message - From: Darren Houle To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 10:08 AM Subject: [flexcoders] Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002 There is a new design stencil available for MS Visio 2002 (and higher) that allows Macromedia RIA developers to mockup Coldfusion MX Flash cfforms and Flex 1.5 applications using the HaloGreen look and feel. Much better than trying to mockup RIA's using Windows UI stencils or Dreamweaver's limited Design Mode. There's more information here. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS a.. Visit your group flexcoders on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex Builder 1.5 Expiry Woes
I'm a enterprise developer who is starting a company focused on RIA development. Flex is my tool of choice. For the past five months, I've been learning the platform, best practices (love you i::2!), prototyping and promoting applications for my target industry, trying to gain mindshare for this wonderful product we call Flex. I'm not yet developing anything for profit or deployment. My dilema is that I don't yet have the capital to buy the very costly licence for Flex so that I can continue to explore and prototype. That will come soon. Until then, my trial copy of Flex Builder v1.5 expires regularly and I am left scrambling to get it going again. Although the Flex 2 alpha is available and I eagerly await it's full Enterprise glory many months from now, all of my prototypes have been developed in v1.5 and some of them use the YahooMaps Flex component which requires v1.5 as far as I know. I believe I've tried all options to continue to use Flex Builder 1.5. I've requested a free copy for single/non-profit developers...denied.I've wiped down my hard drive and reinstalled Flex Builder...doesn't work (but the Flex server is quite happy to give me another 60 days). It's been quite painful begging my Macromedia rep for Flex Builder licence extensions over the past few months. My Flex Builder trial is up once again. My Macromedia rep won't even respond to my email requests this time round and it's been 10 days and a few follow-ups since I've asked. Making things worse, I'm going to present some of my prototypes next week and don't really want to resort to a text editor to modify my projects. Are other licence-less developers here experiencing this frustration? Is there a less painful way to deal with the expiration/renewal process until my company needs to commercially develop and deploy a product? Looking forward to your feedback. Tom Sobut RIA LABS London, Ontario Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002
I'm getting the same. Oh well. Anyone got another link?On 30/11/05, JesterXL [EMAIL PROTECTED] wrote: The page doesn't show anything in Firefox, nor IE? - Original Message - From: Darren Houle To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 10:08 AM Subject: [flexcoders] Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002 There is a new design stencil available for MS Visio 2002 (and higher) that allows Macromedia RIA developers to mockup Coldfusion MX Flash cfforms and Flex 1.5 applications using the HaloGreen look and feel. Much better than trying to mockup RIA's using Windows UI stencils or Dreamweaver's limited Design Mode. There's more information here. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Niklas RichardsonPrismix LtdFlex and ColdFusion Experts! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002
Mike Nimer from MM has been using them for the last week so I think it's legit! ;)On 30/11/05, Jeremy Rottman [EMAIL PROTECTED] wrote:I smell spam, but I could be wrong.--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: The page doesn't show anything in Firefox, nor IE? - Original Message - From: Darren Houle To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 10:08 AM Subject: [flexcoders] Rich Internet Application (HaloGreen) Stencilfor Microsoft Visio 2002 There is a new design stencil available for MS Visio 2002 (andhigher) that allows Macromedia RIA developers to mockup Coldfusion MXFlash cfforms and Flex 1.5 applications using the HaloGreen look and feel. Much better than trying to mockup RIA's using Windows UIstencils or Dreamweaver's limited Design Mode. There's moreinformation here. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design developmentComputer softwaredevelopmentSoftware design and development Macromedia flexSoftware development best practice YAHOO! GROUPS LINKS a..Visit your group flexcoders on the web. b..To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c..Your use of Yahoo! Groups is subject to the Yahoo! Terms ofService. Yahoo! Groups Sponsor ~--Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM~--- Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/-- Niklas RichardsonPrismix LtdFlex and ColdFusion Experts! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Newbie Question
If this type of question has been answered before, I appologize, but the new Yahoo! Groups message search really sucks! Anyway, I'm fairly new to Flex and am working on a project using the Cairngorm framework. In the project I have a form that is bounded to a sharedObject in order to save the user's responses in case they do not complete the form in one sitting. When the user returns to the form, I reload the fields with the values stored in the sharedObject. All works fine with text fields and check boxes. The problem comes with a couple drop-down fields. Basically, when the form is loaded I call back to the CF server to retrieve a list of values to populate the drop-down, and set an array variable in my ModelLocator, which is bound as the data provider to the drop-down. The problem I have is that I can't figure out how to set the selectedItem after the drop-down is populated. I tried to create a function that accepted the ModelLocator Array and set it then, but that does not seem to work. Anyone else have any suggestions? Thanks, Sean --- View --- mx:Panel xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:GroupFormHelpers = com.hopeequity.view.form.helpers.* width=100% height=100% title=Group Manager Information creationComplete=GroupFormStep1Helper.initalizeForm(); mx:Script ![CDATA[ import com.hopeequity.model.ModelLocator; import com.hopeequity.vo.CountryVO; import com.hopeequity.vo.StateVO; public var formModel:Object; ]] /mx:Script GroupFormHelpers:Step1Helper id=GroupFormStep1Helper / ... mx:ComboBox id=Country editable=false dataProvider={ModelLocator.countries.sortOn(['OUTPUTORDER'],16)} labelField=COUNTRYNAME width={FirstName.width}/ ... --- View Helper --- ... public function initalizeForm() { EventBroadcaster.getInstance().broadcastEvent(getCountriesWithStates); } ... --- Command File --- class com.hopeequity.command.GetCountriesWithStatesCMD implements Command, Responder { public function GetCountriesWithStatesCMD() { } public function execute( event : Event ):Void { if (ModelLocator.countries.length 1) { var delegate : CountryDelegate = new CountryDelegate( this ); delegate.getCountriesWithStates(event); } } public function onResult( event : Object ) : Void { ModelLocator.countries = event.result; } public function onFault( event : Object ) : Void { mx.core.Application.alert( event.fault.faultstring ); } } --- Model Locator --- ... public static function initialise() : Void { ModelLocator.countries = new Array(); } public static var countries : Array; Yahoo! Groups Sponsor ~-- AIDS in India: A lurking bomb. Click and help stop AIDS now. http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002
my nasal hairs twitched too, the ip address is running a site for "InterAmerican Restoration Corporation"?? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy RottmanSent: 30 November 2005 16:15To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002 I smell spam, but I could be wrong. --- In flexcoders@yahoogroups.com, "JesterXL" [EMAIL PROTECTED] wrote: The page doesn't show anything in Firefox, nor IE? - Original Message - From: Darren Houle To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 10:08 AM Subject: [flexcoders] Rich Internet Application (HaloGreen) Stencilfor Microsoft Visio 2002 There is a new design stencil available for MS Visio 2002 (andhigher) that allows Macromedia RIA developers to mockup Coldfusion MXFlash cfforms and Flex 1.5 applications using the HaloGreen look andfeel. Much better than trying to mockup RIA's using Windows UIstencils or Dreamweaver's limited Design Mode. There's moreinformation here. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer softwaredevelopment Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS a.. Visit your group "flexcoders" on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms ofService. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Socket (not XMLSocket) Issue
Hi there, I have a fairly simple idea and need help: I want to build a simple socket connection (not XMLSocket!) to a server to exchange simple text based commands. The Flash Client sends a text command, the server answers with a response (text based). While this is very easy in e.g. C# I run into threading issues with Flash. Somehow it seems impossible to wait for the server response. Why? Obviously the entire scenario is asynchronously. I have extended the Socket class and added a function for the data receive event: aDispatcher.addEventListener(ProgressEventType.SOCKET_DATA, onDataReceived); In the onDataReceived() I read all incoming data (via readUTFBytes(_length)) parse it and put it into a responseQueue (an Array). Now comes the difficult part in question here: I want to create a function SendCommand(cmd:String):String which takes a Command string as a parameter and returns the result. So basically the function should look somewhat like this: function SendCommand(cmd:String):String { writeUTFBytes(cmd); var result:String = undefined; // code to wait for result and assign it return result; } In another area of the application I want to call it like this: response = SendCommand(login name); Alert.show(response), Here is the problem: SendCommand() is called, sends the data and immediately returns. The returned response is undefined. Alert shows undefined. THEN the dataReceive event fires. Response gets processed. However, there seems to be no way of waiting (idle) right after the writeUTFBytes call. I have tried everything. If I do a long lasting ro loop, it seems as if Flash handles it single threaed, so the OnReceiveData Event gets fired immediatley after my idle for loop finishes. Any idea? Ralf -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002
Yes, I own and run that site but that company has nothing at all to do with the Stencil, I'm just using some space there to host a few info pages because it has CFMX running behind it. That's why I just linked to the IP. Darren --- In flexcoders@yahoogroups.com, Nick Weekes [EMAIL PROTECTED] wrote: my nasal hairs twitched too, the ip address is running a site for InterAmerican Restoration Corporation?? _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: 30 November 2005 16:15 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002 I smell spam, but I could be wrong. --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: The page doesn't show anything in Firefox, nor IE? - Original Message - From: Darren Houle To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 10:08 AM Subject: [flexcoders] Rich Internet Application (HaloGreen) Stencil for Microsoft Visio 2002 There is a new design stencil available for MS Visio 2002 (and higher) that allows Macromedia RIA developers to mockup Coldfusion MX Flash cfforms and Flex 1.5 applications using the HaloGreen look and feel. Much better than trying to mockup RIA's using Windows UI stencils or Dreamweaver's limited Design Mode. There's more information here. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS a.. Visit your group flexcoders on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com _ YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . _ Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Newbie Question
I usually use the selectedIndex property and use a function to return the index of item corresponding to my id. mx:ComboBox dataProvider={myDp} selectedIndex={myfunction(myDp,idfield,idvalue)} So each item any of those changes, my selecedIndex get updated. João Fernandes Secção de Desenvolvimento Departamento de Informática -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of im_sean_s Sent: quarta-feira, 30 de Novembro de 2005 15:11 To: flexcoders@yahoogroups.com Subject: [flexcoders] Newbie Question If this type of question has been answered before, I appologize, but the new Yahoo! Groups message search really sucks! Anyway, I'm fairly new to Flex and am working on a project using the Cairngorm framework. In the project I have a form that is bounded to a sharedObject in order to save the user's responses in case they do not complete the form in one sitting. When the user returns to the form, I reload the fields with the values stored in the sharedObject. All works fine with text fields and check boxes. The problem comes with a couple drop-down fields. Basically, when the form is loaded I call back to the CF server to retrieve a list of values to populate the drop-down, and set an array variable in my ModelLocator, which is bound as the data provider to the drop-down. The problem I have is that I can't figure out how to set the selectedItem after the drop-down is populated. I tried to create a function that accepted the ModelLocator Array and set it then, but that does not seem to work. Anyone else have any suggestions? Thanks, Sean --- View --- mx:Panel xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:GroupFormHelpers = com.hopeequity.view.form.helpers.* width=100% height=100% title=Group Manager Information creationComplete=GroupFormStep1Helper.initalizeForm(); mx:Script ![CDATA[ import com.hopeequity.model.ModelLocator; import com.hopeequity.vo.CountryVO; import com.hopeequity.vo.StateVO; public var formModel:Object; ]] /mx:Script GroupFormHelpers:Step1Helper id=GroupFormStep1Helper / ... mx:ComboBox id=Country editable=false dataProvider={ModelLocator.countries.sortOn(['OUTPUTORDER'],16)} labelField=COUNTRYNAME width={FirstName.width}/ ... --- View Helper --- ... public function initalizeForm() { EventBroadcaster.getInstance().broadcastEvent(getCountriesWithStates); } ... --- Command File --- class com.hopeequity.command.GetCountriesWithStatesCMD implements Command, Responder { public function GetCountriesWithStatesCMD() { } public function execute( event : Event ):Void { if (ModelLocator.countries.length 1) { var delegate : CountryDelegate = new CountryDelegate( this ); delegate.getCountriesWithStates(event); } } public function onResult( event : Object ) : Void { ModelLocator.countries = event.result; } public function onFault( event : Object ) : Void { mx.core.Application.alert( event.fault.faultstring ); } } --- Model Locator --- ... public static function initialise() : Void { ModelLocator.countries = new Array(); } public static var countries : Array; Yahoo! Groups Sponsor ~-- AIDS in India: A lurking bomb. Click and help stop AIDS now. http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ:
Re: [flexcoders] Socket (not XMLSocket) Issue
You need an asyncronous data read. You'll see I created a listener for the 'socketData' event to perform a callback to getMessage(), which performs the readUTF(), in my SocketClient constructor: package com.imagetrend.net {import flash.net.*;import flash.errors.*; import flash.events.*;import flash.util.*;public class SocketClient { private var socket:Socket ; public function SocketClient(host:String, port:int/*, Log log*/) { try { socket = new Socket(host, port); //Set function to catch reply socket.addEventListener(socketData, getMessage); //Set function to catch errors socket.addEventListener(ioError, getIOError); //trace(SocketClient. socket : +socket); } catch ( x:IOError ) { trace(SocketClient.error: + x); } } public function chat(request:String) { try {//send message sendMessage(request);} catch (e:IOError) {trace(Client.chat.exception : +e);} //catch (InterruptedException e) {//e.printStackTrace();//} //return resp; } public function sendMessage(msg:String) { socket.writeUTF(msg);socket.flush();trace(Client.sendMessage( + msg); } public function getIOError(evtObj:ErrorEvent) { trace( Client.IOError: +evtObj.type); for (var c:Object in evtObj) { trace(evtObj[+c+]: +evtObj[c]); }} public function getMessage(evtObj:ProgressEvent) { //trace(getMessage.evtObj.type: +evtObj.type); //for (var c in evtObj) { //trace(evtObj[+c+]: +evtObj[c]); //} var resp:String = socket.readUTF ();trace(Client received: +resp); } public function disconnect():Void { //throws IOError { trace(Client.disonnect()); chat(GOODBYE);socket.close(); }}}: : ) Scott On 11/30/05, Ralf Rottmann [EMAIL PROTECTED] wrote: Hi there,I have a fairly simple idea and need help:I want to build a simple socket connection (not XMLSocket!) to a server to exchange simple text based commands. The Flash Client sends a text command, the server answers with a response (text based). While this is very easy in e.g. C# I run into threading issues with Flash. Somehow it seems impossible to wait for the server response.Why? Obviously the entire scenario is asynchronously. I have extended the Socket class and added a function for the data receive event: aDispatcher.addEventListener(ProgressEventType.SOCKET_DATA, onDataReceived);In the onDataReceived() I read all incoming data (via readUTFBytes(_length)) parse it and put it into a responseQueue (an Array). Now comes the difficult part in question here:I want to create a function SendCommand(cmd:String):String which takes a Command string as a parameter and returns the result.So basically the function should look somewhat like this: function SendCommand(cmd:String):String{writeUTFBytes(cmd);var result:String = undefined;// code to wait for result and assign itreturn result;}In another area of the application I want to call it like this: response = SendCommand(login name);Alert.show(response),Here is the problem:SendCommand() is called, sends the data and immediately returns.The returned response is undefined. Alert shows undefined. THEN the dataReceive event fires. Response gets processed.However, there seems to be no way of waiting (idle) right after the writeUTFBytes call.I have tried everything. If I do a long lasting ro loop, it seems as if Flash handles it single threaed, so the OnReceiveData Event gets fired immediatley after my idle for loop finishes. Any idea? Ralf --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Changing the size of a .swf file
Is it possible to make a .swf file bigger? I am asking because I tried increasing the width and height but it did not change anything? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Socket (not XMLSocket) Issue
Ralf Rottmann wrote: In another area of the application I want to call it like this: response = SendCommand(login name); Alert.show(response), Welcome to the world of asynchronous socket programming. In short, you can't do what you want to do in the manner in which you have it coded above. There is no way to make the Flash Player block until the socket returns a value, so you're only choice is to move everything into event handlers. Essentially, this was the biggest hurdle for me in developing FlashVNC. I was so used to doing thing synchronously that having to deal with event handlers and callbacks for socket data threw a monkey wrench into my master plan. The main issues I ran into: 1. Not sure which socket write the onSocketData event handler is triggered by (if any). 2. Not enough data in the socket to finish processing (i.e. you need to call 4 readBytes but only 3 bytes are available, so you get an EOFError when trying to read the 4th byte and your program dies). To fix #1, a simple solution is to use a state variable: // send the login command state = SENT_LOGIN; SendCommand( login name ); // event handler private function onSocketData( pe:ProgressEvent ):Void { switch ( state ) { // recevied data back after the login was sent, handle the response case SENT_LOGIN: processLoginResponse( pe ); break; case OTHER_STATE: processSomeOtherState( pe ); break; } } Somewhere down the line, update the state and write some more data in the socket so when data is received as a response you can call the appropriate handler in the switch. This isn't quite100% how I'd implement it, but you get the idea. #2 above is potentially a LOT harder to handle. The gist of it is you need to know how many bytes of data you need in the socket before starting to read the data in the socket. That is, the first line in the method body should be: // method called from within onSocketData private function processLoginResponse( pe:ProgressEvent ):Void { if ( socket.bytesAvailable = BYTES_NEEDED ) { // have enough data, ok to process } // else not enough data, so just wait for onSocketData to be called again when more data arrives } The trick is knowing how many bytes are needed. After talking with Spike about this - the best thing you can do is send the number of bytes in the response as the first element in the response. That way the client can read how many bytes the server sent, see how many bytes are in the socket, and only process if all of the data has reached the client. If you want an example of an application built with asynchronous sockets, I recommend purchasing IFBIN's Flex By Example and looking at the FlashVNC source code. Also, Ely and Sho at Macromedia have some ideas on how to write easier to read code for dealing with asynchronous events. Maybe they'll contribute to this thread? -d Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex Builder 1.5 Expiry Woes
Johannes Nel wrote: we don't use flex builder at workbut rather eclipse and Oxygen xml plugin. get oxegyn to point to the mxml schema, and with a wee bit more jigging (i can mail you the settings file we import) you haver code hinting for your mxml in eclipse. granted there is no design view, but i never use that anyway so... I, too, use Eclipse for Flex development. If you'd rather not pay for the Oxygen plugin, the WebTools platform has a great alternative. I wrote a little tutorial on how to set up eclipse for Flex development here: http://www.darronschall.com/weblog/archives/000182.cfm And yeah.. there's no design view using WebTools either, but with MXML I've found laying out interfaces in code is just as easy with a good editor. -d Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] HTTPService: how to dynamically add params.
Title: Mercury Email Signature Well, it does, just not all in the same place! Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi Cohen Sent: Wednesday, November 30, 2005 4:03 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] HTTPService: how to dynamically add params. Thanks Matt and Tracy , works like a charm BUT - why the hell the documentation does not talk about this. Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, November 29, 2005 20:50 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] HTTPService: how to dynamically add params. Use bracket notation. Try: var oRequest:Object = new Object() oRequest[paramName] = value; Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi Cohen Sent: Tuesday, November 29, 2005 12:23 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] HTTPService: how to dynamically add params. Hi I have an application that gets a callback URL and a callback Parameter name. now after user do something i need to send the info to that URL and use the given external Parameter name - remember i don't know its name so an object cannot be constructed to pass to the http service. for example var paramName:String = result; // this one changes upon request var oRequest:Object = new Object({paramName ???: value}) - what do i put there ? it takes the paramName as a string not as its value. srv.send(oRequest) even tried using eval to evaluate a dynamic _expression_ on oRequest - didn't help. even tried using the oRequest.addProperty(paramName); then evaluate and assign - didn't help . any ideas ? Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Changing the size of a .swf file
Im not sure what youre trying to do. You can set the height and width of an application in the mx:Application tag as well as setting it in the object tag when you embed your flash movie. -Ryan From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, November 30, 2005 12:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Changing the size of a .swf file Is it possible to make a .swf file bigger? I am asking because I tried increasing the width and height but it did not change anything? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex Builder 1.5 Expiry Woes
Lots of folks use other editors, Eclipse is popular, plus it is the native editor for Flex 2. If you like FlexBuilder (I do), perhaps you could buy a copy of Dreamweaver and get MM to let you have a FB license? The fact that FB is Dreamweaver is the reason you can't have it free. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Sobut Sent: Wednesday, November 30, 2005 11:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Builder 1.5 Expiry Woes I'm a enterprise developer who is starting a company focused on RIA development. Flex is my tool of choice. For the past five months, I've been learning the platform, best practices (love you i::2!), prototyping and promoting applications for my target industry, trying to gain mindshare for this wonderful product we call Flex. I'm not yet developing anything for profit or deployment. My dilema is that I don't yet have the capital to buy the very costly licence for Flex so that I can continue to explore and prototype. That will come soon. Until then, my trial copy of Flex Builder v1.5 expires regularly and I am left scrambling to get it going again. Although the Flex 2 alpha is available and I eagerly await it's full Enterprise glory many months from now, all of my prototypes have been developed in v1.5 and some of them use the YahooMaps Flex component which requires v1.5 as far as I know. I believe I've tried all options to continue to use Flex Builder 1.5. I've requested a free copy for single/non-profit developers...denied.I've wiped down my hard drive and reinstalled Flex Builder...doesn't work (but the Flex server is quite happy to give me another 60 days). It's been quite painful begging my Macromedia rep for Flex Builder licence extensions over the past few months. My Flex Builder trial is up once again. My Macromedia rep won't even respond to my email requests this time round and it's been 10 days and a few follow-ups since I've asked. Making things worse, I'm going to present some of my prototypes next week and don't really want to resort to a text editor to modify my projects. Are other licence-less developers here experiencing this frustration? Is there a less painful way to deal with the expiration/renewal process until my company needs to commercially develop and deploy a product? Looking forward to your feedback. Tom Sobut RIA LABS London, Ontario -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] instanceof on Object
I have some VO's, and I use their class type to render a form. My Dialogue I'm passing this VO into is bound to an object, like so: private var formData:Object; mx:TextInput text={formData.label} / When I call this method externally: myDialogue.setFormData(someVO); Function looks something like this: function setFormData(o) { for(var p in o) { formData[p] = o[p]; } } My bindings work great. However, instanceof does not. If I do this: formData = o; It DOES work; naturally because it's just a reference. However, this dialogue works like a preferences. As such, I need to create my own local copy; the above for loop is actually more involved since I need a deep copy, and thus get a true, deep copy, not a reference. However, this in turn breaks my instanceof code. I've tried: formData.__proto__ = o.prototype formData.__proto__ = o.__proto__ ...none of which work. Frankly, I really don't care formData is truly a sub-class, I just want my instanceof to work, even if it's taked. ??? Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] addTreeNode Parameters question
Hello, Can someone point me in the direction of how I would go about adding more Parameters to addTreeNode beside the regular (label, data) arguments. (examp.(label, data, url, etc.)) Thanks in advance for all your help. -Augie Marcello Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] instanceof on Object
...I guess I'll have to implement a clone method on all of my VO's. Any other solution/hack? - Original Message - From: JesterXL [EMAIL PROTECTED] To: Flexcoders flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 1:40 PM Subject: [flexcoders] instanceof on Object I have some VO's, and I use their class type to render a form. My Dialogue I'm passing this VO into is bound to an object, like so: private var formData:Object; mx:TextInput text={formData.label} / When I call this method externally: myDialogue.setFormData(someVO); Function looks something like this: function setFormData(o) { for(var p in o) { formData[p] = o[p]; } } My bindings work great. However, instanceof does not. If I do this: formData = o; It DOES work; naturally because it's just a reference. However, this dialogue works like a preferences. As such, I need to create my own local copy; the above for loop is actually more involved since I need a deep copy, and thus get a true, deep copy, not a reference. However, this in turn breaks my instanceof code. I've tried: formData.__proto__ = o.prototype formData.__proto__ = o.__proto__ ...none of which work. Frankly, I really don't care formData is truly a sub-class, I just want my instanceof to work, even if it's taked. ??? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] instanceof on Object
http://www.mail-archive.com/cgi-bin/htsearch?config=flexcoders_yahoogroups_comrestrict=exclude=words=mx.utils.ObjectCopy On 11/30/05, JesterXL [EMAIL PROTECTED] wrote: ...I guess I'll have to implement a clone method on all of my VO's.Anyother solution/hack?- Original Message - From: JesterXL [EMAIL PROTECTED]To: Flexcoders flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 1:40 PMSubject: [flexcoders] instanceof on ObjectI have some VO's, and I use their class type to render a form.My DialogueI'm passing this VO into is bound to an object, like so: private var formData:Object;mx:TextInput text={formData.label} /When I call this method externally:myDialogue.setFormData(someVO);Function looks something like this: function setFormData(o){ for(var p in o) { formData[p] = o[p]; }}My bindings work great.However, instanceof does not.If I do this:formData = o;It DOES work; naturally because it's just a reference.However, this dialogue works like a preferences.As such, I need to create my own localcopy; the above for loop is actually more involved since I need a deep copy,and thus get a true, deep copy, not a reference.However, this in turn breaks my instanceof code.I've tried: formData.__proto__ = o.prototypeformData.__proto__ = o.__proto__...none of which work.Frankly, I really don't care formData is truly asub-class, I just want my instanceof to work, even if it's taked. ???--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back!http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] addTreeNode Parameters question
You can do something like var node:Object = new Object(); node.label = LABELTEST; node.data = DATATEST; node.url = url node.index =1; node.state =VI; var root = treeDP.addTreeNode(node); You can later access the values using the getProperty method. |-+- | | | | | augie| | | [EMAIL PROTECTED] | | | Sent by: | | | flexcoders@yahoogroups.com | | | 11/30/2005 12:54 PM| | | Please respond to | | | flexcoders | | | | |-+- -| | | | To: flexcoders@yahoogroups.com | | cc: | | Subject: [flexcoders] addTreeNode Parameters question | -| Hello, Can someone point me in the direction of how I would go about adding more Parameters to addTreeNode beside the regular (label, data) arguments. (examp.(label, data, url, etc.)) Thanks in advance for all your help. -Augie Marcello -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: addTreeNode Parameters question
hi, use the dataProvider for that tree var myNewNode = { label: label, url: http://...;, etc: ...} myTree.dataProvider.addTreeNode(myNewNode, data); yours, eddy --- In flexcoders@yahoogroups.com, augie [EMAIL PROTECTED] wrote: Hello, Can someone point me in the direction of how I would go about adding more Parameters to addTreeNode beside the regular (label, data) arguments. (examp.(label, data, url, etc.)) Thanks in advance for all your help. -Augie Marcello Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] addTreeNode Parameters question
try node.setProperty(param, value); so maybe node.setProperty('url','http://ww.foo.goo'); DK On 11/30/05, augie [EMAIL PROTECTED] wrote: Hello, Can someone point me in the direction of how I would go about adding more Parameters to addTreeNode beside the regular (label, data) arguments. (examp.(label, data, url, etc.)) Thanks in advance for all your help. -Augie Marcello -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] instanceof on Object
mx.utils.ObjectCopy does not do deep copies, nor work right: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09275.html She's got array's in her too, so that definately rules in it, and I need prototype integrity (subclass vs. superclass). - Original Message - From: Clint Modien To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 2:09 PM Subject: Re: [flexcoders] instanceof on Object http://www.mail-archive.com/cgi-bin/htsearch?config=flexcoders_yahoogroups_comrestrict=exclude=words=mx.utils.ObjectCopy On 11/30/05, JesterXL [EMAIL PROTECTED] wrote: ...I guess I'll have to implement a clone method on all of my VO's.Anyother solution/hack?- Original Message - From: "JesterXL" [EMAIL PROTECTED]To: "Flexcoders" flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 1:40 PMSubject: [flexcoders] instanceof on ObjectI have some VO's, and I use their class type to render a form.My DialogueI'm passing this VO into is bound to an object, like so: private var formData:Object;mx:TextInput text="{formData.label}" /When I call this method externally:myDialogue.setFormData(someVO);Function looks something like this: function setFormData(o){ for(var p in o) { formData[p] = o[p]; }}My bindings work great.However, instanceof does not.If I do this:formData = o;It DOES work; naturally because it's just a reference.However, this dialogue works like a preferences.As such, I need to create my own localcopy; the above for loop is actually more involved since I need a deep copy,and thus get a true, deep copy, not a reference.However, this in turn breaks my instanceof code.I've tried: formData.__proto__ = o.prototypeformData.__proto__ = o.__proto__...none of which work.Frankly, I really don't care formData is truly asub-class, I just want my instanceof to work, even if it's taked. ???--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back!http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Datagrid header renderer (F 1.5)
Can anyone point to a working example of a header renderer for a dataGrid? I'd like to be able to style the type and the background color for an individual dataGrid column header. I've looked through the docs and can't locate any code that works. - Tom Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] instanceof on Object
Then ya I guess I'd recommend a clone method but not in each VO. I think I remember (at least in Java) running into difficulty a while back when I tried to put any functions in a VO. They try to serialize the functions back and forth between the server and the flash player. You might be able to write single function that recursivley instantiates the class (and child classes) and copies the data from the orginal to the newly instantiated one. Assuming you have the code to recursively copy properties and arrays (for (var prop in obj))already you might be able to use this code to create the classes on the fly... http://www.mail-archive.com/flexcoders@yahoogroups.com/msg13178.html and since I'm sure your already calling Object.registerClass() on all your VO's you already have the className property set that you can use for instantiation. On 11/30/05, JesterXL [EMAIL PROTECTED] wrote: mx.utils.ObjectCopy does not do deep copies, nor work right: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09275.html She's got array's in her too, so that definately rules in it, and I need prototype integrity (subclass vs. superclass). - Original Message - From: Clint Modien To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 2:09 PM Subject: Re: [flexcoders] instanceof on Object http://www.mail-archive.com/cgi-bin/htsearch?config=flexcoders_yahoogroups_comrestrict=exclude=words=mx.utils.ObjectCopy On 11/30/05, JesterXL [EMAIL PROTECTED] wrote: ...I guess I'll have to implement a clone method on all of my VO's.Anyother solution/hack?- Original Message - From: JesterXL [EMAIL PROTECTED]To: Flexcoders flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 1:40 PMSubject: [flexcoders] instanceof on ObjectI have some VO's, and I use their class type to render a form.My DialogueI'm passing this VO into is bound to an object, like so: private var formData:Object;mx:TextInput text={formData.label} /When I call this method externally:myDialogue.setFormData(someVO);Function looks something like this: function setFormData(o){ for(var p in o) { formData[p] = o[p]; }}My bindings work great.However, instanceof does not.If I do this:formData = o;It DOES work; naturally because it's just a reference.However, this dialogue works like a preferences.As such, I need to create my own localcopy; the above for loop is actually more involved since I need a deep copy,and thus get a true, deep copy, not a reference.However, this in turn breaks my instanceof code.I've tried: formData.__proto__ = o.prototypeformData.__proto__ = o.__proto__...none of which work.Frankly, I really don't care formData is truly asub-class, I just want my instanceof to work, even if it's taked. ???--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] instanceof on Object
...using CF, which can't use VO's. Wejust have CF send me a strut,and thebizz-nass delegate converts it to the knownVO. The back-end gent and I use them to effectively communicate what we are passing back and forth, but there is currently no way to validate it, hehe, so no worries there. - Original Message - From: Clint Modien To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 3:49 PM Subject: Re: [flexcoders] instanceof on Object Then ya I guess I'd recommend a clone method but not in each VO. I think I remember (at least in Java) running into difficulty a while back when I tried to put "any" functions in a VO. They try to serialize the functions back and forth between the server and the flash player. You might be able to write single function that recursivley instantiates the class (and child classes) and copies the data from the orginal to the newly instantiated one. Assuming you have the code to recursively copy properties and arrays (for (var prop in obj))already you might be able to use this code to create the classes on the fly... http://www.mail-archive.com/flexcoders@yahoogroups.com/msg13178.html and since I'm sure your already calling Object.registerClass() on all your VO's you already have the className property set that you can use for instantiation. On 11/30/05, JesterXL [EMAIL PROTECTED] wrote: mx.utils.ObjectCopy does not do deep copies, nor work right: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09275.html She's got array's in her too, so that definately rules in it, and I need prototype integrity (subclass vs. superclass). - Original Message - From: Clint Modien To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 2:09 PM Subject: Re: [flexcoders] instanceof on Object http://www.mail-archive.com/cgi-bin/htsearch?config=flexcoders_yahoogroups_comrestrict=exclude=words=mx.utils.ObjectCopy On 11/30/05, JesterXL [EMAIL PROTECTED] wrote: ...I guess I'll have to implement a clone method on all of my VO's.Anyother solution/hack?- Original Message - From: "JesterXL" [EMAIL PROTECTED]To: "Flexcoders" flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 1:40 PMSubject: [flexcoders] instanceof on ObjectI have some VO's, and I use their class type to render a form.My DialogueI'm passing this VO into is bound to an object, like so: private var formData:Object;mx:TextInput text="{formData.label}" /When I call this method externally:myDialogue.setFormData(someVO);Function looks something like this: function setFormData(o){ for(var p in o) { formData[p] = o[p]; }}My bindings work great.However, instanceof does not.If I do this:formData = o;It DOES work; naturally because it's just a reference.However, this dialogue works like a preferences.As such, I need to create my own localcopy; the above for loop is actually more involved since I need a deep copy,and thus get a true, deep copy, not a reference.However, this in turn breaks my instanceof code.I've tried: formData.__proto__ = o.prototypeformData.__proto__ = o.__proto__...none of which work.Frankly, I really don't care formData is truly asub-class, I just want my instanceof to work, even if it's taked. ???--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back!http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS
[flexcoders] dynamically created HBOX
What would be the best way to go about creating a function that will dynamically create rows (HBOX) for data input? I want an HBOX with various text input fields to be succesively added when the user pushes an add button. I am thinking of using a repeater, but just wondering if there is a better way to do this? Also, if someone knows of some examples of this being I would appreciate it. Thanks, Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] dynamically created HBOX
import mx.core.View; import mx.containers.HBox; function createHBox(targetView:View):HBox { var ref:HBox = HBox(targetView.createChild(HBox)); return ref; } - Original Message - From: rgwilson26 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 3:59 PM Subject: [flexcoders] dynamically created HBOX What would be the best way to go about creating a function that will dynamically create rows (HBOX) for data input? I want an HBOX with various text input fields to be succesively added when the user pushes an add button. I am thinking of using a repeater, but just wondering if there is a better way to do this? Also, if someone knows of some examples of this being I would appreciate it. Thanks, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Quick style question...
Can you use a gradient on the background of a panel? Sincerely, Zach Stepek User Experience Architect, Crave Media Manager, Stateline Macromedia User Group Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Java Pojo to AS pojo conversion with xdoclet2
Awesome! We were just thinking about starting to do that. Do you have any solution for lazy-loading relationships? I guess this would be impossible to do, given the asynchronous nature of flex remoting...Do you need some help with the testing? Can you send us your code even if it's still rough? Cheers, Tiago http://tiago.webstartpoint.net/flash/--- In flexcoders@yahoogroups.com, Joe Berkovitz [EMAIL PROTECTED] wrote: I recently reviewed the group and saw a thread on automating POJO conversion from Java to AS. I've just developed an XDoclet2 plugin thatdoes this and will make it available shortly after it gets some testing. It also converts static final fields from Java into static vars in AS, and works for both AS2 and AS3. Pretty handy! ... . .. .j Jim Schneider wrote: I'm looking to automatically generate actionscript pojos from java pojos (ejb3 annotations) using Ant. I saw the AS2vogenerator, but it was my understanding that was done in an IDE and was dependent on hbm files. Maybe I misunderstand the capabilities. On a related note, has anyone been able to generate DDL using the hibernate-tools ant task without having to list out all of the annotated classes in the hibernate.cfg.xml file? Seems like there should be a way to "pass in" the class files to the annotationconfiguration ant element, but after searching for a couple hours, I didn't see that this was supported. Ideally, this should read from a "par" file and not really need the cfg.xml file (except for database dialect). While I'm asking for everything, does anyone else have some useful code generation tools (using ant) that they can share? Specifically, from an ejb3 annotated set of pojos, and a business service interface (ejb3 stateless session interface), I would like to:1. Generate DDL for any given database dialect 2. Generate actionscript pojos from java pojos 3. Generate server-side java business delegate (remote object) from abusiness service interface (ejb3 stateless session interface) 4. Generate client-side actionscript business delegate from that sameinterface (for cairngorm framework) Again, I want to do this all from ant, not from an IDE. Maybe these are just a set of velocity templates? Any examples of these (and how to invoke in ant) would be great as I'd rather not have to learn the velocity template language (yet!). Thanks, Jim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS* Visit your group "flexcodershttp://groups.yahoo.com/group/flexcoders" on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms ofService http://docs.yahoo.com/info/terms/. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your
RE: [flexcoders] setFocus() problem.
Selection.setSelection(len,len) is not working for me. I am attaching my test mxml for your ref. please help me. I would like to know how to get ride off the highlight and place the curser at the end of the text? Thanks! Hari -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, November 28, 2005 3:42 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] setFocus() problem. Try: this.tobdetail_ti.setFocus(); var len:Number = this.tobdetail_ti.text.length; Selection.setSelection(len, len); - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:33 PM Subject: [flexcoders] setFocus() problem. Hi all, I am having problems with setFocus( ) function. What I am doing is I have a textInput control with id name tobdetail_ti and in the .as file I am calling the following line of code so that if user press tab the cursor should be in this field. Focus is transferred as desired but the problem is it highlight the entire existing text. I dont want this. I want the cursor should be place at the end of the text. this.tobdetail_ti.setFocus(); Thanks! Hari -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. test_Events.mxml Description: test_Events.mxml
[flexcoders] Collapsable title window
I'm trying to create a collapsable TitleWindow to use as a popup. I'm loosely basing it on Christophe Coenraets' Pod.as code, which extends the Panel component. The problem I'm having is with the code that actually makes the window open and close, based on a state variable. Here's the relevant excerpt: private var __state: Number=1; // 0=Minimized 1=Maximized function set state(_state) { __state=_state; if (_state==0) // Minimized { this.height=getStyle(headerHeight)+5; sbStateDown.visible=false; sbStateUp.visible=true; dispatchEvent({type: minimize, target: this}); } else { this.height=100%; sbStateUp.visible=false; sbStateDown.visible=true; dispatchEvent({type: maximize, target: this}); } } function get state(): Number { return __state; } -- Everything works fine when the component is merely instantiated, but not when it's called as a popup. In that case, the button switches correctly but the window doesn't change open and close. Must be something with the way this is defined in the targeting in the above code. Can anyone suggest a solution? - Tom Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] setFocus() problem.
Mantra for Flash is, "When in doubt, wait a frame." You should apply that to Flex, too. Apparently, some code runs, probably via a doLater, 1 frame (or screen-repaint) after you focus on the text field. Therefore, your setSelection call actually DOES work, but is quickly changed. If you run your OWN setSelction an additional frame later, it'll re-select it. Check it, use these modified fucntions, and then type in "asdf", tab out, and then back in. function gotoend(event:Object){trace("gotoend");var len:Number = event.target.text.length;doLater(this, "setSelectionLater", [2, 3]);} function setSelectionLater(startIndex, endIndex){Selection.setSelection(startIndex, endIndex);} - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 4:13 PM Subject: RE: [flexcoders] setFocus() problem. Selection.setSelection(len,len) is not working for me. I am attaching my test mxml for your ref…. please help me…. I would like to know how to get ride off the highlight and place the curser at the end of the text? Thanks! Hari -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXLSent: Monday, November 28, 2005 3:42 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] setFocus() problem. Try: this.tobdetail_ti.setFocus(); var len:Number = this.tobdetail_ti.text.length; Selection.setSelection(len, len); - Original Message - From: Doodi, Hari - BLS CTR To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 3:33 PM Subject: [flexcoders] setFocus() problem. Hi all, I am having problems with setFocus( ) function. What I am doing is – I have a textInput control with id name tobdetail_ti and in the .as file I am calling the following line of code so that if user press tab the cursor should be in this field. Focus is transferred as desired but the problem is it highlight the entire existing text. I don’t want this. I want the cursor should be place at the end of the text. this.tobdetail_ti.setFocus(); Thanks! Hari -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Mac theme for Flex
Hi, Little OT: I generally don't post stuff which can be seen in MXNA or on blogs. But this one is really cool. Beam Jive guys have just posted a sample of Flex with Mac theme. I think, they would post the fla soon... Check out: http://www.beamjive.com/weblog.php?a=1id=131 -abdul Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Mac theme for Flex
You mean 132, hehe! http://www.beamjive.com/weblog.php?a=1id=132 - Original Message - From: Abdul Qabiz [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 4:31 PM Subject: [flexcoders] Mac theme for Flex Hi, Little OT: I generally don't post stuff which can be seen in MXNA or on blogs. But this one is really cool. Beam Jive guys have just posted a sample of Flex with Mac theme. I think, they would post the fla soon... Check out: http://www.beamjive.com/weblog.php?a=1id=131 -abdul -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Mac theme for Flex
Thanks Jesse.. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Thursday, December 01, 2005 3:11 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Mac theme for Flex You mean 132, hehe! http://www.beamjive.com/weblog.php?a=1id=132 - Original Message - From: Abdul Qabiz [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 4:31 PM Subject: [flexcoders] Mac theme for Flex Hi, Little OT: I generally don't post stuff which can be seen in MXNA or on blogs. But this one is really cool. Beam Jive guys have just posted a sample of Flex with Mac theme. I think, they would post the fla soon... Check out: http://www.beamjive.com/weblog.php?a=1id=131 -abdul -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: addTreeNode Parameters question
For future thread searchers all 3 responses to my original question work. Thank you guys for helping me out. Much appreciated. We have a great group of knowledgeable people @ Flexcoders. Looking forward to repaying the group, -Augie Marcello --- In flexcoders@yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: try node.setProperty(param, value); so maybe node.setProperty('url','http://ww.foo.goo'); DK On 11/30/05, augie [EMAIL PROTECTED] wrote: Hello, Can someone point me in the direction of how I would go about adding more Parameters to addTreeNode beside the regular (label, data) arguments. (examp.(label, data, url, etc.)) Thanks in advance for all your help. -Augie Marcello -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Datagrid header renderer (F 1.5)
http://www.flexauthority.com/samplesIndex.cfm Intermediate DataGrid Custom HeaderRenderer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Fitzpatrick Sent: Wednesday, November 30, 2005 12:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid header renderer (F 1.5) Can anyone point to a working example of a header renderer for a dataGrid? I'd like to be able to style the type and the background color for an individual dataGrid column header. I've looked through the docs and can't locate any code that works. - Tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Changing the size of a .swf file
Make sure if you are changing it in the HTML that you are changing both the object and embedded sizes... sj Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] datagrid column sorting
Hi, When you sort columns in a datagrid, I assume that data in a column is sorted according to its natural sorting order (whatever that may be). In my case it's a string. For some reason, the sorting on this column behaves differently. I have data that begins with uppercase and lowercase letters, and columns that are just blank. When I sort on this column I get uppercase, blank, and lowercase (and vice versa when sorting in the reverse order). I'm expecting the sort to be uppercase, lowercase, and blank (and vice versa). Is anyone aware of such a behavior? It's hard for me to pinpoint because I don't have this behavior on my local build, but it's there in a staging build. Thanks, George Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to create XML Object from string (AS3: E4X)
try var myxml:XML = {xmlstring}; Cheers -michael On 12/1/05, Ralf Rottmann [EMAIL PROTECTED] wrote: Quick question: I have valid XML in a :String variable. How can I create an XML Object from it? This did NOT work: 1. var tempXml:XML; tempXml = XML(s); 2. var tempXml:XML = new XML(s); Any idea? Ralf Rottmann -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] How to create XML Object from string (AS3: E4X)
Sorry.. that doesn't work, but doing a XML construct from the string ought to work?? http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2041.html cheers -michaelOn 12/1/05, Michael Hansen [EMAIL PROTECTED] wrote: try var myxml:XML = {xmlstring}; Cheers -michael On 12/1/05, Ralf Rottmann [EMAIL PROTECTED] wrote: Quick question: I have valid XML in a :String variable. How can I create an XML Object from it? This did NOT work: 1. var tempXml:XML; tempXml = XML(s); 2. var tempXml:XML = new XML(s); Any idea? Ralf Rottmann -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] instanceof on Object
Hmm might be missing something here but Joe's suggestion in http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09275.html works ok. eg.. Fred.as class Fred { public function Fred() {} } App.mxml mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" initialize="myInitialize()"mx:Script![CDATA[import Fred;var f:Fred;function myInitialize():Void{f = new Fred();var g = Object(f);var _t; _t = new g.__constructor__();trace("_t instanceof Fred = " + (_t instanceof Fred));}]]/mx:Script/mx:Application ... produces 'true' for me. Cheers, Paul. -Original Message-From: JesterXL [mailto:[EMAIL PROTECTED]Sent: Thursday, 1 December 2005 05:55To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] instanceof on Object mx.utils.ObjectCopy does not do deep copies, nor work right: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09275.html She's got array's in her too, so that definately rules in it, and I need prototype integrity (subclass vs. superclass). - Original Message - From: Clint Modien To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 2:09 PM Subject: Re: [flexcoders] instanceof on Object http://www.mail-archive.com/cgi-bin/htsearch?config=flexcoders_yahoogroups_comrestrict=exclude=words=mx.utils.ObjectCopy On 11/30/05, JesterXL [EMAIL PROTECTED] wrote: ...I guess I'll have to implement a clone method on all of my VO's.Anyother solution/hack?- Original Message - From: "JesterXL" [EMAIL PROTECTED]To: "Flexcoders" flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 1:40 PMSubject: [flexcoders] instanceof on ObjectI have some VO's, and I use their class type to render a form.My DialogueI'm passing this VO into is bound to an object, like so: private var formData:Object;mx:TextInput text="{formData.label}" /When I call this method externally:myDialogue.setFormData(someVO);Function looks something like this: function setFormData(o){ for(var p in o) { formData[p] = o[p]; }}My bindings work great.However, instanceof does not.If I do this:formData = o;It DOES work; naturally because it's just a reference.However, this dialogue works like a preferences.As such, I need to create my own localcopy; the above for loop is actually more involved since I need a deep copy,and thus get a true, deep copy, not a reference.However, this in turn breaks my instanceof code.I've tried: formData.__proto__ = o.prototypeformData.__proto__ = o.__proto__...none of which work.Frankly, I really don't care formData is truly asub-class, I just want my instanceof to work, even if it's taked. ???--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back!http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ *~~~DISCLAIMER~~~* This e-mail may contain confidential information. If you are not the intended recipient, please notify the sender immediately and delete this e-mail from your system. You must not disclose this email to anyone without express permission from the sender. The contents of all emails sent to, and received from, Optus may be scanned, stored, or disclosed to others by Optus at Optus' discretion. Optus has exercised care to avoid errors in the information contained in this e-mail but does not warrant that the information is error or omission free. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] How to create XML Object from string (AS3: E4X)
var _str:String = rootchildtext/child/root; var _xml:XML = XML (_str); flash.util.trace (String (_xml.child)); From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ralf Rottmann Sent: Wednesday, November 30, 2005 6:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to create XML Object from string (AS3: E4X) Quick question: I have valid XML in a :String variable. How can I create an XML Object from it? This did NOT work: 1. var tempXml:XML; tempXml = XML(s); 2. var tempXml:XML = new XML(s); Any idea? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] mx:Style don't work
mx:Style tag can't works inside mx:Canvascontainer.it need to be called outside Canvastag if wanna make it effective..as i observed.. Anybody agree with this, Why??? thanx, jignesh -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] datagrid column sorting
The sorting relies on ASCII values. In the ASCII table Uppercase comes before lowercase. If you need something beyond this, youll have to write the sorting logic yourself and update the dataProvider accordingly. HTH, Jason __ Jason Weiss Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: jasonDOTweissATcynergysystemsDOTcom __nospam Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of george_lui Sent: Wednesday, November 30, 2005 4:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] datagrid column sorting Hi, When you sort columns in a datagrid, I assume that data in a column is sorted according to its natural sorting order (whatever that may be). In my case it's a string. For some reason, the sorting on this column behaves differently. I have data that begins with uppercase and lowercase letters, and columns that are just blank. When I sort on this column I get uppercase, blank, and lowercase (and vice versa when sorting in the reverse order). I'm expecting the sort to be uppercase, lowercase, and blank (and vice versa). Is anyone aware of such a behavior? It's hard for me to pinpoint because I don't have this behavior on my local build, but it's there in a staging build. Thanks, George -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] How to create XML Object from string (AS3: E4X)
Worked perfectly well. Thanks! Ralf Rottmann | Director Sales Marketing | VoicInt Telecommunications GmbH m:+49-(0)170-914-5495 | f: +49-(0)231-557402-99 | e: [EMAIL PROTECTED] --- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Hansen Sent: Donnerstag, 1. Dezember 2005 01:25 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to create XML Object from string (AS3: E4X) try var myxml:XML = {xmlstring}; Cheers -michael On 12/1/05, Ralf Rottmann [EMAIL PROTECTED] wrote: Quick question: I have valid XML in a :String variable. How can I create an XML Object from it? This did NOT work: 1. var tempXml:XML; tempXml = XML(s); 2. var tempXml:XML = new XML(s); Any idea? Ralf Rottmann -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Passing Object to MXML Component?
I am trying to pass an Object to an MXML Component in Flex 2 Alpha. It seems not to work. Your help is greatly appreciated. Here is the scenario: 1. I have added an AS Class File UserObject.as. In the main application I create an instance of UserObject: mx:Script ![CDATA[ import rottmann.net.*; import flash.events.*; import mx.controls.*; private var userObject:UserObject; private function init():Void { userObject = new UserObject(); } The private init() function is triggered by the applications creationComplete event. Debugger indicates that the userObject gets successfully created. 2. I have added an MXML Component Login.mxml which mainly contains a couple of Label and TextInput controls. At the beginning of this MXML Component I have added a private property to hold the UserObject: mx:Script ![CDATA[ import rottmann.net.*; import mx.controls.*; import mx.events.*; var u:UserObject; 3. Now, back in the main application I use the MXML Component as follows: rottmann:Login u={this.userObject}/ My assumption was, that the u={this.userObject} passes the instance of my main application UserObject object to the MXML Component and inside the MXML Component I could access properties of this object via u.getLastname(); etc. However the Debugger tells me, that u is null in the MXML Component. Whats going wrong? Ralf Rottmann -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] concurrency=last
Sounds like a bug then, the workaround Ben suggested might be what you need to do then. Also Im assuming that youre setting concurrency in the tag, not via ActionScript. Concurrency in 1.5 is through constant ints via code-gen, if youre assigning in AS maybe the value is being ignored. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola Sent: Wednesday, November 30, 2005 4:25 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] concurrency=last Matt, They are 4 different methods being called on the same service. Rich On 11/30/05, Matt Chotin [EMAIL PROTECTED] wrote: I believe concurrency should be done on an operation basis but the setting is inherited from the service you don't assign one. The default is multiple. Are you making 4 different method calls or 4 calls to the same method? If the same method then obviously a setting of last should only return 1 instead of all of them, but if they're different methods that would sound like a bug. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ben Lucyk Sent: Tuesday, November 29, 2005 8:16 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] concurrency=last Hey Rich, I haven't tested, but looks to be that concurrency is set per service: Value that indicates how to handle multiple calls to the same service. The default value is multiple. The following values are permitted... I guess you could work around it by defining a service for each method if you really needed this functionality, but I'm curious about this one as well. Does anyone have any more details as to how Flex ...cancels any previous requests, while honoringthe new one for aconcurrency=last situation? -Ben On 11/29/05, Rich Tretola [EMAIL PROTECTED] wrote: Does the service concurrency work on a per method basis or per service ? Here is the situation (Flex 1.5): I have a piece of data in my model that when changed will fire off 4 method calls using the same service (Remote object call to java) with concurrency=last. It seems that I never get all 4 responding and that the concurrency is per service id ? Am I correct in this ? I always assumed that the concurrency set to last would be last call to a specific methd to avoid double calls to a specific method and not a specific service. Rich -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex2 :: XML-RPC (char replacement nuisance)
Well if .NET returned the data with lt; and gt; Flex wont do anything to decode it. Youll need to go through and replace the entities with and (maybe the RegEx classes can help speed that up) and then go ahead and do new XML passing in that string to get it parsed. So going with a custom decoder might be the thing to do here. In the next build the decoder might be better documented for you to create some stuff on your own to get it working. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Wednesday, November 30, 2005 6:55 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex2 :: XML-RPC (char replacement nuisance) Nested CDATA is not allowed!? What crackhead wrote that spec? Weird dude, I connected to SOAP with Flash no problem back in MX, and MX 2004. I know both had different classes, but... I never actually tried a .NET XML-RPC, but I did try a LiveJournal one. Not sure what theirs is written in, but I'd get the XML back correctly, whether I was using my own custom parsing, or Central's built-in support. I fail to see why Flex can't handle it; hopefully Matt'll catch this on the next run through. - Original Message - From: Michael Hansen To: flexcoders@yahoogroups.com Sent: Wednesday, November 30, 2005 8:28 AM Subject: Re: [flexcoders] Flex2 :: XML-RPC (char replacement nuisance) Hey Jesse, The XMLRPC already contains CDATA, and nested CDATA is not allowed. Also this is what the specs have to say: What characters are allowed in strings? Non-printable characters? Null characters? Can a string be used to hold an arbitrary chunk of binary data? Any characters are allowed in a string except and , which are encoded as lt; and amp;. A string can be used to encode binary data. ( http://www.xmlrpc.com/spec) So i guess the question is, how do one return a xml-type in a XmlRPC reply? Thanks for your time, and suggetion Jesse! Cheers -michael On 11/30/05, JesterXL [EMAIL PROTECTED] wrote: All jacked character data is supposed to use CDATA, like so: string![CDATA[lt;taggt;testinglt;/taggt;]]/string Like the script tag in Flex. Is there not a way to intercept .NET's response and wrap it? - Original Message - From: Michael Hansen To: flexcoders@yahoogroups.com Sent: Tuesday, November 29, 2005 6:01 PM Subject: Re: [flexcoders] Flex2 :: XML-RPC (char replacement nuisance) Thanks for the reply Matt, I got a hold on what's going on. When sending a RPC request to the .net, it replies something like the following: ?xml version=1.0? methodResponse params param value string[HERE BE THE REPLY/PAYLOAD]/string /value /param /params /methodResponse Now because .net regards what is inbetween string/string as a 'payload' wrapped in a RPC protocol, the data inside these tags cannot have chars like '',and '', since this would potentially invalidate the xml structure of the reply as a whole. Therefore whatever is between string/string is html-encoded, e.g. translated to lt; Example: If the service was to return a xml dodument like tagtesting/tag the reply from the service would be: ?xml version=1.0? methodResponse params param value stringlt;taggt;testinglt;/taggt;/string /value /param /params /methodResponse which is decoded by flex to a string (Flex correctly interprets the data received as 'raw' data as has no other choice) and _not_ a xml document. Therefore the data is not passed, and the Object tree is not created. I guess other rpc services do not html-encode the 'payload'?? Flickr(PHP??) seems to work just fine... Is Microsoft right in doing this encoding? Anybody out there a genius on RPC?? (less may also do it :) Cheers -michael PS. The linefeeds are definetly not the problem in this case. There's only one type (CRLF), and tests show that this works just fine. :) On 11/29/05, Matt Chotin [EMAIL PROTECTED] wrote: Probably less people are testing against .NET right now. We do have tests that did pass but we've also seen some issues with the player (well also the compiler). The issue that we had internally was one of line-endings where the XML was mixed in using Windows line endings (CRLF or \r\n) and Unix (LF or \n). Any way of checking how the service is coming back (I'd assume since it's .NET that it's CRLF)? Matt From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Michael Hansen Sent: Tuesday, November 29, 2005 10:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 :: XML-RPC (char replacement nuisance) Hi list, I'm doing some Xml RPC to .net backend, and having problems with char replacements. I call the service, and it replies something like: lt;?xml version=1.0 encoding=utf-8?gt; lt;taggt; lt;/taggt; where e.g., is
RE: [flexcoders] Passing Object to MXML Component?
You need userObject to be [Bindable] and for this build that also means it needs to be public (this is in the application). Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ralf Rottmann Sent: Wednesday, November 30, 2005 4:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Passing Object to MXML Component? I am trying to pass an Object to an MXML Component in Flex 2 Alpha. It seems not to work. Your help is greatly appreciated. Here is the scenario: 1. I have added an AS Class File UserObject.as. In the main application I create an instance of UserObject: mx:Script ![CDATA[ import rottmann.net.*; import flash.events.*; import mx.controls.*; private var userObject:UserObject; private function init():Void { userObject = new UserObject(); } The private init() function is triggered by the applications creationComplete event. Debugger indicates that the userObject gets successfully created. 2. I have added an MXML Component Login.mxml which mainly contains a couple of Label and TextInput controls. At the beginning of this MXML Component I have added a private property to hold the UserObject: mx:Script ![CDATA[ import rottmann.net.*; import mx.controls.*; import mx.events.*; var u:UserObject; 3. Now, back in the main application I use the MXML Component as follows: rottmann:Login u={this.userObject}/ My assumption was, that the u={this.userObject} passes the instance of my main application UserObject object to the MXML Component and inside the MXML Component I could access properties of this object via u.getLastname(); etc. However the Debugger tells me, that u is null in the MXML Component. Whats going wrong? Ralf Rottmann -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Mapping Java HashMap to Flex Actionscript
When you send back to the server if you declare the parameter to the method as a HashMap youll get one back (it will really be an ASObject which is a subclass of HashMap I believe). Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, November 30, 2005 7:55 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Mapping Java HashMap to Flex Actionscript You can read it like this: for (var key in myObjmap){ var myItem=myObjmap[key]; Do something myItem.property } One question on this topic how do we send them back to Java? Let's say you added a new key to the HashMap in Flex and want to send it back for processing |-+- | | | | | Matt Chotin | | | [EMAIL PROTECTED] | | | Sent by: | | | flexcoders@yahoogroups.com | | | 11/29/2005 11:56 PM | | | Please respond to | | | flexcoders | | | | |-+- -| | | | To: flexcoders@yahoogroups.com | | cc: | | Subject: RE: [flexcoders] Mapping Java HashMap to Flex Actionscript | -| When a HashMap is sent back to Flex it will simply be an Object. You can access a value by doing myObj[key] Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of prasanthasi Sent: Saturday, November 26, 2005 7:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Mapping Java HashMap to Flex Actionscript Hi, I am trying map Java HashMap to Flex Actionscript. I have tried Object mapping and Arrays with Associative keys. Nothing worked for some reason. Please post a sample code if anyone knows how to do this. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design Computer software Software design and development development development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] gateway-config.xml configuration file description in Flex 1.5
What are you trying to do, create a new adapter? I dont really know the config file that well but I think if you dont see an example of what youre trying to do it may not be possible. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mykola Paliyenko Sent: Wednesday, November 30, 2005 3:11 AM To: flexcoders Subject: [flexcoders] gateway-config.xml configuration file description in Flex 1.5 Hello flexcoders, I was looking for docs about how to configure the subj. I found nothing found in google about it, can anyone tell me some usefull links about it, I'm especially interested in file format and service-adapters section where it comes to adapter configuration, Can I pass some value to the adapter from that xml file? how can I do it? etc. Sure I can decompile Flex server and knew about it but I think theere might be some easier way :). WBR, Mykola -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: datagrid column sorting
Not entirely sure about why it in the middle of your order. But I've handled this in Flash by doing the following: For display, set up a custom cellRenderer (listItemRenderer) that checks for undefined values and gives them a default display value: e.g. NA (Not Available) etc. For sort, provide a custom sort function (this is where you can do a toUpper or toLower conversion for case insensitive sorting). When you encounter a null value (blank) assign a value in the sort function that is higher/lower to put it where you want it. An example is: function dateSort1(a:Object, b:Object, index:Number){ a=a.datemodified.getTime(); b=b.datemodified.getTime(); if(a == null) a=0; if(b == null) b=0; if(asc1){ trace(ascend); if(a b){ return 1; }else if (a b){ return -1; }else{ return 0; } }else{ trace(descend); if(a b){ return -1; }else if (a b){ return 1; }else{ return 0; } } } This was for date object in Flash (asc1 is boolean that keeps track of which direction your sort was last time), but I think it will apply with editing. You also then need to point to this function by setting your myGrid.dataGridColumns sortOnHeaderRelease=false; myGrid.sortCompareFunction=dateSort1(); Then make a listener: myGrid.addEventListener(headerRelease, headerListener); and supply the function that distinguishes the selectedIndex of the column of interest: var headerListener = new Object(); headerListener.headerRelease = function(eventObj){ if(eventObj.columnIndex==4){ Grid.dataProvider.sortItems(dateSort1); The last two steps can be combined, and you'll have to alter the event types as necessary to comply with Flex data types (look at the addEventListener docs), but this should give you a leg up. I know it's a pain, but then what isn't? (someone probaly can do this in 5 lines). Good Luck - hope this helps. --- In flexcoders@yahoogroups.com, george_lui [EMAIL PROTECTED] wrote: Hi, When you sort columns in a datagrid, I assume that data in a column is sorted according to its natural sorting order (whatever that may be). In my case it's a string. For some reason, the sorting on this column behaves differently. I have data that begins with uppercase and lowercase letters, and columns that are just blank. When I sort on this column I get uppercase, blank, and lowercase (and vice versa when sorting in the reverse order). I'm expecting the sort to be uppercase, lowercase, and blank (and vice versa). Is anyone aware of such a behavior? It's hard for me to pinpoint because I don't have this behavior on my local build, but it's there in a staging build. Thanks, George Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 2.0 : How to validate form fields ?
--- In flexcoders@yahoogroups.com, Michel Bertrand [EMAIL PROTECTED] wrote: Hi ! I've tried to find an approuch to validate fields of a data form. chech this: http://www.macromedia.com/cfusion/webforums/forum/categories.cfm?forumid=72catid=582flcache=2109871 Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Maintaining Session Data/Passing data to other apps
The right way to do this is to establish single sign-on at the J2EE container level between your two deployed applications. Depending on the state being maintained, storing that data on the client using a SharedObject could be the worst solution in the world for security reasons. In Tomcat you can use the crossContext attribute on the connector to allow session state for authenticated sessions to be shared among all of the web applications deployed in that engine. Macromedia even provides documentation of deploying CF and using the crossContext attribute Im suggesting (other containers have equivalents- check your containers docs for more details): http://www.macromedia.com/support/coldfusion/j2ee/cfmx7j2ee_tomcat_deploy.html If you already have the apps in a single J2EE instance as youve described, this solution is the right choice if you have any data that is remotely sensitive in the session. For example, on some of the apps Ive been involved with here at Cynergy Systems we leverage single sign-on extensively. Our web services are in a different web context then the main application. When web service calls are made from the Flex client, we dont transmit any user data whatsoever. Instead, the web service receives the raw data and turns around and asks Tomcat Hey Tomcat, which authenticated user is making this request? and then uses their credentials as managed on the server by the server to fulfill the request. In architecture like this one, if someone should manage to hack their way into your web services they wont be able to get at any real data because retrieves and updates ask the container for the user details, not the caller. The only way around this is to obtain compromised login credentials. Jason __ Jason Weiss Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: jasonDOTweissATcynergysystemsDOTcom__nospam Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Wednesday, November 30, 2005 10:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Maintaining Session Data/Passing data to other apps Have you looked into SharedObject, if youre hitting the same domain that should allow you to share data across SWFs. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of smi295 Sent: Wednesday, November 30, 2005 2:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Maintaining Session Data/Passing data to other apps Hi, I'm developing an app at the moment which maintains user info for a suite of applications. It works by authenticating and retrieving user information then redirecting to the target application. The problem is i was hoping the session data would be maintained between the apps, as i would use redirection ( getUrl('http://www.hotmail.com') within the same browser, but the session data gets destroyed between the two. How can i maintain the session data? An alternative would be some method to pass data between the apps, but the data is sensitive, so i can't use query string parameters e.g http://localhost:8101/flex/charts/PieChart1.mxml? fname=Reinerlname=Knizia The app i am redirecting to is another j2ee instance on the same server. I am using CF7 and Flex 1.5 Can anyone help? Regards, Scott -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Flex 2.0 : How to validate form fields ?
--- In flexcoders@yahoogroups.com, Michel Bertrand [EMAIL PROTECTED] wrote: Hi ! I've tried to find an approuch to validate fields of a data form. chech this: http://www.macromedia.com/cfusion/webforums/forum/categories.cfm?forumid=72catid=582flcache=2109871 Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/