Re: [flexcoders] Subversion clients
Sam: Thanks for the explanation. Even though Gordon is looking for Mac, you gave me a hint on VisualSVN. I've never used it. I've always just left VS to go into Tortoise, but I'll have to give it a try. Thanks! Sam On Nov 30, 2007 9:38 AM, Samuel R. Neff [EMAIL PROTECTED] wrote: Not Mac, but hope this helps... For eclipse we use Subclipse. It's ok--get's job done--but a lot of times when we want to use more advanced features of Subversion we feel it's easier to open Windows Explorer and use TortoiseSVN. In Visual Studio we use VisualSVN which is a TortoiseSVN wrapper. It's very nice except for the icons. Integrates into Visual Studio very nicely and has full access to SVN features in clean interface and nice presentation (largely due to piggy backing on TortoiseSVN). In the past we've used PushOK's SVN SCC provider for Visual Studio integration. This is an actual SCC API implementation so would work with any product that follows the MS SCC API standards (all MS ide product and many third party like Borland and Sapien). This was a little buggy, always gave the impression of being poorly written, and since it followed the SCC API it was the Visual Source Safe model and didn't map to SVN very well (VSS uses checkin/checkout model whereas SVN/CVS is change/merge). At the time (prior to VisualSVN), PushOK SVN SCC was best option. One of our developers used a Mac for a while and was frustrated with lack of a good comparable GUI to TortoiseSVN. He eventually switched back to Windows (for a variety of reasons). He just got a new Mac though, so he may be revisiting that decision. ;) Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Friday, November 30, 2007 1:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Subversion clients What Subversion clients do you use, and what do you like or dislike about them? I'm especially interested in opinions about GUI clients on the Mac. Gordon Smith Adobe Flex SDK Team
[flexcoders] RemoteObject.setCredentials() and Hotfix 2
Has there been a change to setCredentials on RemoteObject from HotFix 2? I'm using Service capture to view the requests and after HotFix 2 and these are the following differences of the CommandMessage being sent to my gateway... DSId (String): nil - this is added to the headers object messageRefType (String): flex.messaging.messages.AuthenticationMessage - this is no longer in the commandMessage being sent after HotFix 2 Any ideas? Thanks Sam
Re: [flexcoders] RemoteObject.setCredentials() and Hotfix 2
Previously, I've never had FDS or LCDS installed and it worked without a problem. I know some FDS classes have been removed from the standard SDK after the hotfix. Is this a case where that could have happened? Seems unlikely because it seems to still be sending the CommandMessage, but I am not sure. Thanks Sam On 6/1/07, Carlos Rovira [EMAIL PROTECTED] wrote: I should say that remoteCredendials was not working for me in early versions of LCDS but now it works, so maybe you could try it now and see your credentials reaching your server classes 2007/6/1, Sam Shrefler [EMAIL PROTECTED]: Has there been a change to setCredentials on RemoteObject from HotFix 2? I'm using Service capture to view the requests and after HotFix 2 and these are the following differences of the CommandMessage being sent to my gateway... DSId (String): nil - this is added to the headers object messageRefType (String): flex.messaging.messages.AuthenticationMessage - this is no longer in the commandMessage being sent after HotFix 2 Any ideas? Thanks Sam -- ::| Carlos Rovira ::| http://www.carlosrovira.com ::| http://www.madeinflex.com
Re: [flexcoders] Re: timezone and dateformatter
I've also ran accross this, not so much a bug though. It works properly in its use case. The problem is, there are other use cases with timezones. Here is my scenario: I work with a legacy database. Unfortunately, all datetimes are saved into the database as UTC, but as the clients time zone. So say someone in the EST -5 UTC and someone at PST -8 UTC both saved at the same moment in time (5am EST). The database would have saved the dates as following: EST - 05:00 PST - 02:00 I can't change the behavior due to only being one piece in the grand scheme of the application. The problem is, the databse doesnt' know what timezone these are. The system was designed to just show that datetime to the user if they ask for it. Flash/Flex always converts AMF Dates to the local timezone. I've asked for a way to hook into that deserialization, but I haven't gotten a response. Therefore, I massage every date I receive and every date I send using the following... * public* *static* *function* getUTCDate(myDate:Date):Date { *if* (myDate == *null*) *return* *null*; *else * *return* *new* Date(myDate.fullYearUTC, myDate.monthUTC, myDate.dateUTC, myDate.hoursUTC, myDate.minutesUTC, myDate.secondsUTC, myDate.millisecondsUTC); } *public* *static* *function* sendUTCDate(myDate:Date):Date { *if* (myDate == *null*) *return* *null*; *else * { *var* sDate:Date = *new* Date(Date.UTC(myDate.fullYear, myDate.month, myDate.date, myDate.hours, myDate.minutes, myDate.seconds, myDate.milliseconds)); *return* sDate; } } Hope this helps, but I hope even more there is a better solution out there Sam On 13 Apr 2007 12:23:01 -0700, Douglas Knudsen [EMAIL PROTECTED] wrote: nope. I can't find any mention of this anywhere. Might be known to some flash pros, but a flash pro I am not. I suppose this is only a issue if you want times always displayed based on a fixed timezone regardless of where the user is. I have not confirmed this behavior using coldfusion on the back end, just Java. In our case, we are able to code around this by using rationals instead of date fields, a soon to be used fix. We just need a start time and end time between 6am to 10pm and have a separate field with only the date. so we can refactor to use some rational between 6 and 22. DK On 13 Apr 2007 12:05:00 -0700, Doug Lowder [EMAIL PROTECTED] wrote: Weird. Do you have any confirmation this is a bug in the Player? --- In [EMAIL PROTECTED] flexcoders%40yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: yes, but for some reason we see a difference for these AZ users. Their windows clock is correct, but the offset is off a hour in FP during DST. DK On 13 Apr 2007 11:42:41 -0700, Doug Lowder [EMAIL PROTECTED] wrote: I thought the Player got the timezone from the underlying OS. --- In [EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Douglas Knudsen douglasknudsen@ wrote: yes, we had big issues with a app in Flex 1.5 and now 2.0 because of this. We coded around it by massaging the dates in AS with the clients timezone offset. Works well, except for those folks living in Arizona. For some reason the Flash Player does NOT pick up their offset correctly. Outside of the Navajo Nation, Arizona does not follow day light savings, yet the Flash player seems to think they do. DK On 13 Apr 2007 10:52:07 -0700, Dimitrios Gianninas dimitrios.gianninas@ wrote: Just wondering if anyone experienced this, but we have a VO coming from Java that contains a date field. Well I format the field using the coe below: mx:DateFormatter id=df formatString=-MM-DD / * private * *function* displayLastBillingDate( item:Object, column:DataGridColumn ):String { * return* df.format( item.lastBillingDate ); } And what happens is that this code works almost to well. It takes into account the end-users PC timezone! So the date coming back from the server is 2007-05-01 00:00:00, so for someone in EST it shows properly as 2007-05-01 (cause we are in EST) but for someone in CST is shows 2007-04-30... anything we can do about this? How do I get the end- user timezone setting ? *Dimitrios Gianninas* *Developer* *Optimal Payments Inc.* *AVIS IMPORTANT* *WARNING* Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu
Re: [flexcoders] Re: Timezone of Date Object
Paul: I'm interested to know how your library will handle timezones. Are you trying to hook into all DateTimes or just writing some login to change datetimes and such. I submitted a long time ago a feature request to Adobe to allow hooking into AMF Deserialization to handle timezone changes. The problem that I face is that datetimes are always automaticaly deserialized from the server into the client local time even if i don't want them to be. Sam On 03 Apr 2007 10:52:37 -0700, Kevin [EMAIL PROTECTED] wrote: that would be great. I have been thinking over different ways to accomplish this. i look forward to seeing your library. thanks! - Kevin On Apr 3, 2007, at 10:50 AM, Paul DeCoursey wrote: short answer, no. But I have been working on a library that provides this option. It's not really ready for release yet. Give me a few more days to document it and I'll send you what I have. Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: is there a way to set the timezone of a date object to something other than the local timezone? I would would like to be able to allow the user to select a timezone when they enter a time in a field. - Kevin
Re: [flexcoders] How to DataBind to DateField when Null Values come into play??
Mike: What is the type of the property you are trying to bind to in your Value Object? A DateField selectedDate property can be sent to null and should give you an empty date. I've extended the DateField making my own DateField Component - EditDateField and I always use that whenever I use Date. My Component looks like this: mx:DateField xmlns:mx=http://www.adobe.com/2006/mxml; focusOut=checkFilterDate(); editable=true mx:Script ![CDATA[ *import* com.myDomain.util.DateValidate; *public* *var* defaultDate:Date; *private* *function* checkFilterDate():*void * { *if* (*this*.text.length == 0) { *this*.selectedDate = *null*; } *else* *if* (!DateValidate.validate(*this*.text)) { *this*.selectedDate = defaultDate; } *else * { *this*.selectedDate = DateValidate.format(*this*.text); } } ]] /mx:Script /mx:DateField Where my DateValidate class is some custom functions I've written that allow formats like mmddyy or mmdd to be input and automatically cast to a Date type. Hope this helps Sam On 19 Mar 2007 12:06:30 -0700, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, What is the proper way to bind Data to a DateField? I ask this, because I get an error when I bind a Variable contained within a ValueObject (which contains a Null Value), to a DateField Control. Is it safe to say, that this DateField doesn't act like a TextField? Do I require a regular Variable cast as a Date to serve as a go-between, when transferring the ValueObject data to the DateField? I hope I am properly asking this question :) Thanks in advance for your help, Mike
Re: [flexcoders] Storing Dates Times in VO's
Kevin: I dont' use AMFPHP so I can't specifically help you with that situation, but to your first question: I would recommend figuring out a way to get your PHP DateTypes to automatically transfer to Date type's in Flex. I went down both roads (Date and String in flex) and found that there is a Date Type in Flex for a reason. It makes your life easier when dealing with Dates, especially comparing, sorting and performing Date arithmetic. So my recommendation would be to make the extra effort to get your Object to transfer correctly typed properties... Sam On 19 Mar 2007 17:51:09 -0700, Kevin [EMAIL PROTECTED] wrote: Should Dates Times be stored as Strings in Flex VO's? If not, what is the proper way to assign a value from the server (which generally comes in as a string) to a Date type in a Flex VO? I have been struggling with this. I am using AMFPHP and mapping my PHP objects to Flex for calls returned from the server, however, my date fields are not mapping. Does a setter function get call when you are doing VO mapping?? Thanks for the help. Thanks, Kevin
Re: [flexcoders] Re: IFrame issue with settings menu
I haven't seen this specific issue, but I also haven't tried to do it. I have seen issues with Cntrl+Click in firefox not being able to make mulitple selections in list components and also wheel mouse functionality not working. I believe these are all WMODE issues that have not yet been resolved. Hopefully HTML Support from Apollo will make its way into a future version of Flex and also WMODE issues will be fixed cross browser. Sam On 2/1/07, cheftimbob [EMAIL PROTECTED] wrote: bump --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, cheftimbob [EMAIL PROTECTED] wrote: I have an application that uses and IFrame to display images and word docs as well as PDFs. If I right click on the application somewhere, not on the IFrame, and select the settings menu, there application freezes. I think it's because of the modal window that the menu selection is brining up. Has anyone seen this or found a workaround?
Re: [flexcoders] Printing a Data Grid
Lois: If you use the PrintDataGrid component, you can specify fontSize right in the tag. For example: mx:PrintDataGrid id=myPrintGrid fontSize=24 Hope that helps... Sam On 1/23/07, loisgh1961 [EMAIL PROTECTED] wrote: Hi There, I'm trying to set up print views for a datagrid. I want to control the font size of the columns. I've been reading about embedded fonts but they only seem to work on text fields . Is there another option for datagrid columns? Thanks Lois
[flexcoders] Capturing an event everytime an item becomes visibile in a viewstate
I have a canvas that is part of a view state. I'd like to know how to call a method on that canvas everytime that canvas is made visible because the view state it's contained in is made visible. Also, I'd only like this to happen after the creationComplete event-init method has completed. I'd like this to totally be taken care of Any thoughts on how this could be done? Thanks! Sam
Re: [flexcoders] Capturing an event everytime an item becomes visibile in a viewstate
Enterstate is actually called before the creationComplete on the child. I have the state display to a transition. I'd actually like to call the function after the transition finishes. Any thoughts on how to do that? On 1/11/07, Roman Protsiuk [EMAIL PROTECTED] wrote: enterState? R. On 1/11/07, Sam Shrefler [EMAIL PROTECTED] wrote: I have a canvas that is part of a view state. I'd like to know how to call a method on that canvas everytime that canvas is made visible because the view state it's contained in is made visible. Also, I'd only like this to happen after the creationComplete event-init method has completed. I'd like this to totally be taken care of Any thoughts on how this could be done? Thanks! Sam
Re: [flexcoders] Dispatching an Event from a Class
Mike, I'm interested in why you would dispatch an Event from your modelLocator? Could you please share? Also, could this be a case where the Observe tag could help you? http://weblogs.macromedia.com/paulw/archives/2006/05/the_worlds_smal.cfm Thanks Sam On 1/9/07, Mike Anderson [EMAIL PROTECTED] wrote: Yes, I understand this - But what about a generic class, that does NOT extend any other classes (which have the IEventDispatcher as part of their makeup) In my generic class (in this case, my ModelLocater which is part of a Cairngorm-based application), it doesn't natively have anything in there which includes the EventDispatcher stuff. So, I wanted to see what the bare minimum requirements would be, in order to Dispatch an Event from a Class File that doesn't extend or implement anything else. Also, I DO have the [Bindable] Metatag on this class, and even know I don't get any code-hinting whenever I type any dispatchEvent type code, I don't get any Compiler Errors either... That struck me as odd, but with what Tracy just mentioned, it does answer a few questions... So I guess, the [Bindable] Metatag is a quick way to add this functionality, but I am just curious if I wanted to accomplish this via some other means. Thanks for the info on this topic :) Mike -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Sergey Kovalyov *Sent:* Tuesday, January 09, 2007 1:28 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Dispatching an Event from a Class Just call dispatchEvent() (e. g. dispatchEvent(new Event(Event.CHANGE))) in any class that implements IEventDispatcher (e. g. all the EventDispatcher successors). Note, that UIComponent and all its successors implement IEventDispatcher, so dispatchEvent() could be called in any subclass of Box, ComboBox, Label, TextArea, HSlider, etc: package { import mx.controls.HSlider; public class MyHSlider extends HSlider { public function MyHSlider() { super(); dispatchEvent(new Event(instanceConstructed)); } } } On 1/9/07, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, I am attempting to dispatch an Event from a generic Class File, and I guess I'm not doing it correctly. I was hoping, that I could simply do this: import mx.events.IEventDispatcher And then in my function, I could simply dispatch the event like this: IEventDispatcher.dispatchEvent( event ); But it doesn't allow me to do this. In the meantime, I extended my Class to use the UIComponent, which automatically pulls in all the EventDispatcher stuff. Of course, it's silly for me to do this, since I really don't have a need to extend the UIComponent class. There must be a way, to import the proper Class, in order to simply dispatch events. Any advice? Thanks in advance for your help, Mike
Re: [flexcoders] Re: Flex and .net webservices
Robin: It sounds like you may be looking for a Remoting Gateway which uses AMF rather than Web Services and has the ability to translate .NET - AS Objects. I've got articles written on two different options, Fluorine and WebOrb. http://blog.shrefler.net/?p=6 http://blog.shrefler.net/?p=10 Hope that helps Sam On 12/12/06, Robin Burrer [EMAIL PROTECTED] wrote: Darron's ObjectTranslator works perfectly – thanks for the tip! I still have to do some manual work though since I'm going to have nested VOs…. R -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Robin Burrer *Sent:* Tuesday, 12 December 2006 3:32 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Re: Flex and .net webservices Thanks Ben, I tried that. It still does not work ..:-(. I got rid of everything which could cause errors. … Here's the code. I reckon this is as basic as it gets … public function onMyResult(event:ResultEvent):void { // this works fine var myObject:Object = Object(event.result); // this causes an error (Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to webserviceClasses.Employee.) var myEmployee:Employee = Employee(event.result); // does not work trace ( myEmployee.employeeName); // does work trace ( myObject.employeeName); } ]] /// the web service object /mx:Script mx:WebService showBusyCursor=true wsdl=http://localhost/ComplexDataTypeService/Service1.asmx?WSDL; id=myWebservice makeObjectsBindable=false mx:operation name=getDetails result={ onMyResult (event)} resultFormat=object/ /mx:WebService // the Employee object: public class Employee (AS) { public var employeeName:String; public var employeeID:int; } (c#) public class Employee { public string employeeName; public int employeeID; } Any ideas? Robin -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *ben.clinkinbeard *Sent:* Tuesday, 12 December 2006 2:02 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Flex and .net webservices Hi Robin, I have good news :), both of these issues should go away by setting a single attribute on your WebService object. Try setting makeObjectsBindable = false. This will cause Flex to deserialize your ws responses into regular Object and Array instances instead of ObjectProxy and ArrayCollection instances. HTH, Ben --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Robin Burrer [EMAIL PROTECTED] wrote: Hi there, I have been playing around .net and flex for a while. Primarily I want to send value objects (consisting of strings, intergers and arrays of VOs) back and forth. I could not figure out how to do the following things though: 1. Sending arrays to a webservice works fine. However when I receive an array of the .net data type array flex creates and Array Collection data type. Sending arrays as array collections to a web service causes an error. That's really annoying when you try to keep the VOs consitent on both ends. What's the solution for this? 2. When I receive a complex data type from a .net web service flex creates an Object but when I try to cast this object to the dataType it represents I get a complier error, even though the received object has exactly the same properties as underlying VO. E.g. I get the following error code if I try to cast the result of a webservice call to my custom data Type TelephoneNumber. Note casting to an Object works fine. TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to webserviceClasses.TelephoneNumber. Any help is highly appreciated. Robin
Re: [flexcoders] Re: Flex and .net webservices
Diego: First: Compare...I haven't used WebOrb at all past that. So my table consists of: Free vs Paid - i've chosen free at this point. WebOrb looks like an awesome product always being updated, but ihaven't had the need/chance to use it yet Second: Nullable objects! Ah yes...something I beat my head against the desk for quite some time with DateTimes. in .NET: public NullableDateTime myDateTime; Nothing changes in Flex. Hope that helps Sam On 12/12/06, Diego Guebel [EMAIL PROTECTED] wrote: Hi Sam, I've read your tutorial, good stuff. I've been using flourine for a while in different projects but I haven't got the chance to use weborb. As you've tried both of them, I was wondering if you can make a comparison table or a pro and cons of each of them. It would be great. BTW, how do you send nullable objects back and forth? Cheers, Diego. On Wed, 13 Dec 2006 02:08:06 +1300, Sam Shrefler [EMAIL PROTECTED]sshrefler%40gmail.com wrote: Robin: It sounds like you may be looking for a Remoting Gateway which uses AMF rather than Web Services and has the ability to translate .NET - AS Objects. I've got articles written on two different options, Fluorine and WebOrb. http://blog.shrefler.net/?p=6 http://blog.shrefler.net/?p=10 Hope that helps Sam On 12/12/06, Robin Burrer [EMAIL PROTECTED] rburrer%40hubb.com wrote: Darron's ObjectTranslator works perfectly – thanks for the tip! I still have to do some manual work though since I'm going to have nested VOs…. R -- *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On Behalf Of *Robin Burrer *Sent:* Tuesday, 12 December 2006 3:32 PM *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com *Subject:* RE: [flexcoders] Re: Flex and .net webservices Thanks Ben, I tried that. It still does not work ..:-(. I got rid of everything which could cause errors. … Here's the code. I reckon this is as basic as it gets … public function onMyResult(event:ResultEvent):void { // this works fine var myObject:Object = Object(event.result); // this causes an error (Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to webserviceClasses.Employee.) var myEmployee:Employee = Employee(event.result); // does not work trace ( myEmployee.employeeName); // does work trace ( myObject.employeeName); } ]] /// the web service object /mx:Script mx:WebService showBusyCursor=true wsdl=http://localhost/ComplexDataTypeService/Service1.asmx?WSDL; id=myWebservice makeObjectsBindable=false mx:operation name=getDetails result={ onMyResult (event)} resultFormat=object/ /mx:WebService // the Employee object: public class Employee (AS) { public var employeeName:String; public var employeeID:int; } (c#) public class Employee { public string employeeName; public int employeeID; } Any ideas? Robin -- *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On Behalf Of *ben.clinkinbeard *Sent:* Tuesday, 12 December 2006 2:02 PM *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com *Subject:* [flexcoders] Re: Flex and .net webservices Hi Robin, I have good news :), both of these issues should go away by setting a single attribute on your WebService object. Try setting makeObjectsBindable = false. This will cause Flex to deserialize your ws responses into regular Object and Array instances instead of ObjectProxy and ArrayCollection instances. HTH, Ben --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, Robin Burrer [EMAIL PROTECTED] wrote: Hi there, I have been playing around .net and flex for a while. Primarily I want to send value objects (consisting of strings, intergers and arrays of VOs) back and forth. I could not figure out how to do the following things though: 1. Sending arrays to a webservice works fine. However when I receive an array of the .net data type array flex creates and Array Collection data type. Sending arrays as array collections to a web service causes an error. That's really annoying when you try to keep the VOs consitent on both ends. What's the solution for this? 2. When I receive a complex data type from a .net web service flex creates an Object but when I try to cast this object to the dataType it represents I get a complier error, even though the received object has exactly the same properties as underlying VO. E.g. I get the following error code if I try to cast the result of a webservice call to my custom data Type TelephoneNumber. Note casting to an Object works fine. TypeError: Error #1034: Type
Re: [flexcoders] Conditionally Change the Text Color on a Datagrid Row
Tracy: Thanks, but both of those solutions seem to work by drawing a sprite background in the row. I was looking for a way to change a textColor, not place a colored background. Any other thoughts? Thanks Sam On 11/29/06, Tracy Spratt [EMAIL PROTECTED] wrote: Here is another: http://www.mikenimer.com/index.cfm?mode=catcatid=B6F726D0-4E22-1671-5765E6C3FE1D2862 Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Sam Shrefler *Sent:* Wednesday, November 29, 2006 3:01 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Conditionally Change the Text Color on a Datagrid Row Does anyone have any thoughts on changing the text color conditionally on an entire row of a datagrid? I've previously done it by creating an individual item renderer for each DataGridColumn, but I am looking for this ability on many grids with many columns... Thanks Sam
Re: [flexcoders] Change alpha properties when setting enabled property
Andy: Thank you very much!!! Sam On 11/29/06, Andrew Trice [EMAIL PROTECTED] wrote: Sorry… let me elaborate more. The previous example would be used inside of the component that is being enabled/disabled. To do this outside of a component, you need to do it in actionscript: myComponent.enabled=fase; myComponent.setStyle(alpha, .5); _ *Andrew Trice* Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Andrew Trice *Sent:* Wednesday, November 29, 2006 4:19 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Change alpha properties when setting enabled property override public fuction set enabled(value:Boolean) : void { super.enabled = value; this.setStyle(alpha, ( value ? 1 : .5)); } Enjoy! -Andy _ *Andrew Trice* Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Sam Shrefler *Sent:* Wednesday, November 29, 2006 3:52 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Change alpha properties when setting enabled property Could someone tell me how to modify the alpha settings when setting a component to enabled=false? Thanks! Sam
Re: [flexcoders] Change alpha properties when setting enabled property
Andy: Setting the alpha isn't giving me the exact results I was looking Instead, it was disabledOverlayAlpha from Container that I was looking forthanks for Darron Schall for pointing that out Thanks for the help... Sam On 11/30/06, Sam Shrefler [EMAIL PROTECTED] wrote: Andy: Thank you very much!!! Sam On 11/29/06, Andrew Trice [EMAIL PROTECTED] wrote: Sorry… let me elaborate more. The previous example would be used inside of the component that is being enabled/disabled. To do this outside of a component, you need to do it in actionscript: myComponent.enabled=fase; myComponent.setStyle(alpha, .5); _ *Andrew Trice* Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY -- *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] *On Behalf Of *Andrew Trice *Sent:* Wednesday, November 29, 2006 4:19 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Change alpha properties when setting enabled property override public fuction set enabled(value:Boolean) : void { super.enabled = value; this.setStyle(alpha, ( value ? 1 : .5)); } Enjoy! -Andy _ *Andrew Trice* Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY -- *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Sam Shrefler *Sent:* Wednesday, November 29, 2006 3:52 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Change alpha properties when setting enabled property Could someone tell me how to modify the alpha settings when setting a component to enabled=false? Thanks! Sam
[flexcoders] Conditionally Change the Text Color on a Datagrid Row
Does anyone have any thoughts on changing the text color conditionally on an entire row of a datagrid? I've previously done it by creating an individual item renderer for each DataGridColumn, but I am looking for this ability on many grids with many columns... Thanks Sam
[flexcoders] Change alpha properties when setting enabled property
Could someone tell me how to modify the alpha settings when setting a component to enabled=false? Thanks! Sam
[flexcoders] AMF 3 Date Serialization / Deserialization
Does anyone know if there is a way to have Flex serialize / deserialize Dates using the Local Date Time rather the UTC. For example: Currently i'm seeing the following behavior: (AMF3) Date (no timezone info) - Flex (UTC) Flex(UTC) - AMF3 (no-timezone) I'd like to be able to also do: (AMF3) Date (no timezone info) - Flex (Local) Flex(Local) - AMF3 (no-timezone) Any ideas to automatically do this? I'm currently manually handling it for every date by runnning a function that returns a local date as the following: return new Date(returnDate.fullYearUTC, returnDate.monthUTC..); Thanks Sam
Re: [flexcoders] Re: Reset Radio Button Group
Tim: THanks for the reply. Unfortunately, I'm getting an error when i try and run that code. TypeError: Error #1009: Cannot access a property or method of a null object reference.at mx.controls::RadioButton/get labelPlacement()at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::layoutContents ()at mx.controls::Button/mx.controls:Button::updateDisplayList()at mx.controls::RadioButton/mx.controls:RadioButton::updateDisplayList()at mx.core::UIComponent/validateDisplayList()at mx.managers::LayoutManager/::validateDisplayList ()at mx.managers::LayoutManager/::doPhasedInstantiation()at Function/http://adobe.com/AS3/2006/builtin::apply()at mx.core::UIComponent/::callLaterDispatcher2()at mx.core::UIComponent/::callLaterDispatcher () Any idea why I'd be getting that? Thanks! Sam On 10/23/06, Tim Hoff [EMAIL PROTECTED] wrote: Hi Sam, It looks like that method was depreciated. You can use the following function to reset the RadioButtons: public function resetRadioButtons():void{ var n:int = myRadioButtonGroup.numRadioButtons; for (var i:int = 0; i n; i++) { myRadioButtonGroup.getRadioButtonAt (i).selected = false; }} -TH__ Tim Hoff Cynergy Systems, Inc. http://www.cynergysystems.comOffice: 866-CYNERGY --- In [EMAIL PROTECTED]ups.com, Sam Shrefler [EMAIL PROTECTED] wrote: I've found the following reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=c4e4be2f selectedRadio won't compile in Flex Builder 2. Any idea how to do this in Flex 2? Thanks! Sam __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Reset Radio Button Group
Tim: Thanks for the help...i got it. I actually was reseting the form on click of a cancel button which also changed the view state. Thefore, the radiobuttons were going away. When the selected setting is called, it seems to call the invalidator, which I believe waits one frame to process...hence the Radiobutton was gone and the error thrown. Instead, i'm calling the reset function on display of the form rather than when its cancelled Thanks! Sam On 10/24/06, Tim Hoff [EMAIL PROTECTED] wrote: Sam, It's hard to tell without seeing your code. I tested the function before posting, so I know it works with my programs. If you can, postyour code and we'll get you going. -TH___ Tim Hoff Cynergy Systems, Inc http://www.CynergySystems.com Office: 1.866.CYNERGY --- In [EMAIL PROTECTED]ups.com, Sam Shrefler [EMAIL PROTECTED] wrote: Tim: THanks for the reply. Unfortunately, I'm getting an error when i try and run that code. TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls::RadioButton/get labelPlacement() at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::layoutContents () at mx.controls::Button/mx.controls:Button::updateDisplayList () at mx.controls::RadioButton/mx.controls:RadioButton::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation () at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() Any idea why I'd be getting that? Thanks! Sam On 10/23/06, Tim Hoff [EMAIL PROTECTED] wrote: Hi Sam, It looks like that method was depreciated. You can use the following function to reset the RadioButtons: public function resetRadioButtons():void { var n:int = myRadioButtonGroup.numRadioButtons; for (var i:int = 0; i n; i++) { myRadioButtonGroup.getRadioButtonAt(i).selected = false; } } -TH __ *Tim Hoff *Cynergy Systems, Inc. http://www.cynergys ystems.com http://www.cynergysystems.comoffice/ Office: 866-CYNERGY --- In [EMAIL PROTECTED]ups.com, Sam Shrefler sshrefler@ wrote: I've found the following reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=c4e4be2f selectedRadio won't compile in Flex Builder 2. Any idea how to do this in Flex 2? Thanks! Sam __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Transition a move based on layoutManager moving a component
Is there any way to transition a move based on a layoutManager moving a component. For instance: Say i have aVBox with 10 components. In the new state, The top 9 components are removed, therefore the 10th component is at the top fo the VBox. Is there any way to move the 10th component from its current position to its position in the new state using a transition move effect? Thanks Sam __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Efficient way to bing data to many text fields using cairngorm framework
I'm trying to use the Cairngorm framework, more specifically the ModelLocator updating the view. There is a part of my application where 10 codes are asked for, So i have mx:TextInput id=code1/mx:TextInput id=code2/.mx:TextInput id=code10/ I'm trying to figure out an efficient wayto handle the data binding for elements like this? Would the repeater be a good choice for something like this? Thanks Sam __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Reset Radio Button Group
I've found the following reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=c4e4be2f selectedRadio won't compile in Flex Builder 2. Any idea how to do this in Flex 2? Thanks! Sam __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] IE 7, Service Capture, Flex Help
After installing IE 7, using Service Capture, I can no longer view my Flex Help from Flex Builder. Previously, I had fixed this by setting the help server in flex builder to 'local host' and the port to 57266as recommended here: http://kevinlangdon.com/phpBB2/viewtopic.php?p=789sid=35b4ef2ac7ef6001b2d503e99d7cd15b Any other thoughts on how to fix this and still allow service capture to modify IE's proxy settings? Thanks Sam __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Access Cairngorm Value Objects in the onResult Method
Ryan: I'm not sure if this is what the previous poster was sayingbut my suggestion would be to make a private class variable in your command. private originalVO:MyVO; execute() { originalVO = myMethodEvent.MyVO; delegate.MyMethod(originalVO ); } onResult(result:Object) { //use originalVO here to and can also use whatever is sent back in the result event }Are you seeing a down-side to this? Sam On 10/18/06, Thomas [EMAIL PROTECTED] wrote: Hi, when your commands implemented the IResponder interface, you couldeasily keep track of the data being sent and compare it within youronResult method.To do so, just hold a copy of your VO or whatever you want to track in your command instance and thus, because it is the one responsible forhandling the result, you have instant access to the data.Cheers, Thomas.--- In flexcoders@yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Yeah use the async token.Execute() { Var call:AsyncToken = delegate.myMethod (myVO); Call.token = myVO; onResult(e) { e.token as VOJ Lifes easy with Flex 2 From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of digitalbackcountry Sent: Wednesday, 18 October 2006 1:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Access Cairngorm Value Objects in the onResultMethodHopefully a quick question. Is there a way for me to access the Value Object that is passed with the event in the onResult method for that event? So in my Command class I have an execute method and an onResult method. The execute class calls the method on the specified delegate passing the Value Object: delegate.MyMethod( myMethodEvent.MyVO ); In my on result method, is there any way for me to access MyVO? Something like event.MyVO? Thanks, =Ryan __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Binding Database Table to a ComboBox
Luchyx: The way I've gotten this to work is as follows selectedIndex={Utils.ComboBoxSelect(AllPossibleValuesInArrayCollection, 'data', selectedValueFromServer)} public class Utils{public static function ComboBoxSelect(ac:ArrayCollection, field:String, value:Number):Number{for (var i:Number=0; iac.length; i++){if(ac[i][field] == value) return i;}return 0;}} Hope that helps Sam On 10/9/06, luchi_bustos [EMAIL PROTECTED] wrote: Hello list!. I'm having troubles with a Combobox and selectedIndex.I'm populating the combobox with an array of categories, that wasreturned by AMFPHP service call with this SQL./*code SQLselect id_cat AS data, cat_name AS label FROM users_types ORDER id_cat ASC;*/This return an array of all availables categories and populate thecombobox.After that I retrieve an especific user with and especificuser_level_index value that match the real index in the users_types database table.I setting the selectedIndex in the Combobox via./*codeuserslevelCat_cb.selectedIndex = userfromserver.user_type_index;*/The problem is that the selected index is different than the real index field in the database.So if I sort te query in a diferent waythe selectedIndex is diferent, and didn't reflect the real category name.I'm reading some paper's that say if I use an array of {data:#, label:cat uno}, the combo box will try to find the correspondingvalue in the data property field when I use selectedIndex.Does anybody here know the problem,has possible solution, or recomendation?Thanks in advance.Luchyx __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] TextInput Validation on Change Event causes Halo Error Bug
I seem to be experiencing a minor bug with a TextInput and a StringValidator. When the TextInput is not valid, a red halo appears around the focussed TextInput. I execute the validator.validate() on the change event so it updates as the user types data - as per the quick start bestpractices. When I set focus to the Textinput using the Tab key, it works correctly and as soon as the field is valid, the red halo goes away. But when I click to focus in the textInput, the red halo stays until the component loses focus. Any ideas? Also, the same behavior can be seen on Aral's Quick Start(the last example): http://www.adobe.com/devnet/flex/quickstart/validating_data/ Thanks Sam __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Conditional Login inside curly braces for binding
Is there anyway to put a condition inside { } for example: enabled={checkA == something checkB == somethingElse} Flex Builder throws an error The Entity must immediately follow the in the entity referecne. It seems to be a problem with the Logical Operator since || works fine. ThanksSam __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Conditional Login inside curly braces for binding
Daniel: Thanks...the other thing I tried that worked was using the ||, soas per DeMorgans law: A B = !A || !B Thanks Sam On 10/2/06, Daniel Wabyick [EMAIL PROTECTED] wrote: Ran into the same thing. Its that '' is an entity in XML. So you can use:enabled={checkA == something amp;amp; checkB == somethingElse} Sam Shrefler wrote: Is there anyway to put a condition inside { } for example: enabled={checkA == something checkB == somethingElse} Flex Builder throws an error The Entity must immediately follow the in the entity referecne. It seems to be a problem with the Logical Operator since || works fine. Thanks Sam __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Conditional Login inside curly braces for binding
Sho: Yep...i rushed the reply right after writing it on my blog...blog was right, reply was wrong...thanks Peter: Thanks, i never thought of doing if that way.. Thanks for all the replies Sam On 10/2/06, Peter Hall [EMAIL PROTECTED] wrote: mx:Buttonmx:enabled![CDATA[{checkA == something checkB ==somethingElse}]/mx:enabled/mx:ButtonPeterOn 10/2/06, Daniel Wabyick [EMAIL PROTECTED] wrote: Ran into the same thing. Its that '' is an entity in XML. So you can use: enabled={checkA == something amp;amp; checkB == somethingElse} __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] How do you handle many transitions between many states
I'm trying to figure out a way to clean up the transitions from my application.mxml file. I'd like to specify many custom transitions between different states. As my number of states grows, so does my number of transitions, all defined in my application.mxml. I'm looking for ideas on how people are handling all those transitions. Thanks Sam __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Flex + .NET Web Services irritations
John, I know you had said you were using webServices...but if you can possibly refactor, using WebOrb.NET Standard (free), you can transfer back and forth classes/objects..For more info you can check out http://blog.shrefler.net/?p=6 Hope that could help... Sam On 9/18/06, John C. Bland II [EMAIL PROTECTED] wrote: I don't have a problem getting data. Sending native classes/objects is a problem. :-) On 9/18/06, barry.beattie [EMAIL PROTECTED] wrote: John, the July issue of ColdFusion Developers Journal has an article onusing Flex's class introspection to automate getting strong typed datafrom webservices (to get close to the transfer object idea of remoting, but with webservices). not quite remoting but getting there.(ignore the CF bit, it's the Flex code in the article/the techniqueyou may be interested in)just a quick thought.cheers barry.b -- John C. Bland IIChief DeveloperKatapult Media, Inc. - www.katapultmedia.com ---Biz Blog - http://blogs.katapultmedia.com/jb2Personal Blog - http://blog.blandfamilyonline.comhttp://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.orgHome of AZCFUG - http://www.azcfug.org __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] More WebService Examples?
Steve: What exactly are you looking for? Also, what backend are you using? Sam On 9/15/06, Steve Kellogg @ Project SOC [EMAIL PROTECTED] wrote: Hello, Does anyone have any more examples of webservices in Flex that they can point me to? The only ones I see in the Flex docs are very simple, and there aren't any that seem to exercise all of the available features. Thanks in advance, Steve Steve Kellogg Peak8 Solutions 1401 14th Street Boulder, Colorado 80302, USA Fax: 303.415.2597 E-Mail: [EMAIL PROTECTED] __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Flex + .NET Web Services irritations
John: I'm a little confused by your reply. Could you educate me why you are using WS's if you feel you could use remoting? Also, JSON plugs right into Web Services. It simply serializes and deserializes the data to allow for easy transfers of data types. Sam On 9/8/06, John C. Bland II [EMAIL PROTECTED] wrote: Nah, I'm not interested in JSON. If we weren't using WSs we'd be using Remoting. Thanks though. On 9/7/06, Sam Shrefler [EMAIL PROTECTED] wrote: John: You might want to also check out JSON + .NET + Flex. I've written a tiny little little tutorial to help get people started at: http://blog.shrefler.net/?p=5 Sam On 9/5/06, John C. Bland II [EMAIL PROTECTED] wrote: FLIPPIN' NAMESPACEI set the namespace and I'm rollin'! Now I can finish this app. :-) Thanks. On 9/5/06, John C. Bland II [EMAIL PROTECTED] wrote: Which code are you referring to seeing? I can't pass the WS code or url. As for the Flex code, it is based 100% off of the livedocs example but with our url's, etc. We don't use .NET datasets. We are returning VO's (classes) or Listclassname. This is .NET 2.0 so generics are used semi-heavily.Thanks. On 9/5/06, Tim Hoff [EMAIL PROTECTED] wrote: Hi John, Without seeing the code, the first error seems E4X related. I'm not sure if this will help you with the second error, but natively Flex doesn't accept .Net datasets without receiving this error. If that's the case, you can solve this by casting the dataset to a class that is returned by the webservice. Here's an ASP.Net webservice code sample: http://www.cflex.net/showFileDetails.cfm?ObjectID=418Object=FileChannelID=1 -TH --- In [EMAIL PROTECTED] ups.com, John C. Bland II [EMAIL PROTECTED] wrote: Flex seems to have problems hitting .NET web services. Specifically, it has problems handling method overloads and, for whatever reason, can't seem to work with working .NET WS's. I setup the operation, etc just as examples showed to make sure my own knowledge wasn't lacking and it still didn't work right. The errors are as follows (extracted from my Google searches the other day): * The Proxy class does not implement getDescendants. It must be overridden by a subclass. * [WSDLError faultString=Element :SiteProvider_GetBySiteID not resolvable faultCode=WSDL.BadElement faultDetail=null] The second one is odd because I KNOW the method is there AND that it works. I can hit the wsdl with another tool and it works perfectly fine. Any ideas? -- John C. Bland II Chief Developer Katapult Media, Inc. - www.katapultmedia.com --- Biz Blog - http://blogs.katapultmedia.com/jb2 Personal Blog - http://blog.blandfamilyonline.com http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoands top.org Home of AZCFUG - http://www.azcfug.org -- John C. Bland IIChief DeveloperKatapult Media, Inc. - www.katapultmedia.com ---Biz Blog - http://blogs.katapultmedia.com/jb2Personal Blog - http://blog.blandfamilyonline.comhttp://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.orgHome of AZCFUG - http://www.azcfug.org -- John C. Bland IIChief DeveloperKatapult Media, Inc. - www.katapultmedia.com ---Biz Blog - http://blogs.katapultmedia.com/jb2Personal Blog - http://blog.blandfamilyonline.comhttp://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.orgHome of AZCFUG - http://www.azcfug.org -- John C. Bland IIChief DeveloperKatapult Media, Inc. - www.katapultmedia.com---Biz Blog - http://blogs.katapultmedia.com/jb2Personal Blog - http://blog.blandfamilyonline.com http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.orgHome of AZCFUG - http://www.azcfug.org __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Flex 2: Passing Custom Classes to .NET Web Service
John: I just put together a little tutorial on using .NET (with AMF0) with WebOrb.NET Standard (free) to pass typed custom classes back and forth, you can check it out here: http://blog.shrefler.net/?p=6 Or, you can use JSON (both in flex and .net) with a .NET webService to serialize and deserialize objects, but they won't be typed. Instructions for that can be found here: http://blog.shrefler.net/?p=5 Hope that helps Sam On 9/13/06, John C. Bland II [EMAIL PROTECTED] wrote: Has anyone successfully done so? I found this blog (here: http://weblogs.asp.net/soever/archive/2005/10/29/428902.aspx ) that showed how he did it with the mx:operation but I want to pass MyFunction(MyClassObject) and have it do what it needs to do. Any ideas?-- John C. Bland IIChief DeveloperKatapult Media, Inc. - www.katapultmedia.com---Biz Blog - http://blogs.katapultmedia.com/jb2Personal Blog - http://blog.blandfamilyonline.com http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.orgHome of AZCFUG - http://www.azcfug.org __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Casting Value Objects
Pete: Two things to try...first: Try typing your array collection by doing this in your ModelLocator: [ArrayElementType(com.xxx.xxx.model.ModuleVO)]public var modules:ArrayCollection; Also, in your VO class, add this: //assuming you have your VO named the same on the remote side... [RemoteClass(alias=com.xxx.xxx.model.ModuleVO)]public class ModuleVO Another thing is to make sure (ServiceCapture should work) that your CF Object is being passed typed as a ModuleVO Hope that helps... Sam On 9/12/06, Pete Capra [EMAIL PROTECTED] wrote: Hi there, I'm having a little trouble casting results from an RPC to a ValueObject. For example, I'm returning an array of objects from CF the object has two properties and I have created a VO class accordingly: package com.xxx.xxx.model { [Bindable] public dynamic class ModuleVO { public var module_id:Number; public var module_name:String; } } When the result is returned I cast it as an array and insert it into an ArrayCollection for use in a datagrid (which works fine). I have two text inputs that I want to be binded to the selectedItem in the datagrid. This is where my problems occur: mx:DataGrid id=dgModulesdataProvider={ModelLocator.getInstance().modules}/ view:ModuleEditor module={dgModules.selectedItem as ModuleVO}/ When the app runs it doesn't cast correctly as a ModuleVO and returns null values. I have checked the properties of the selectedItem in the DataGrid and it has both module_id and module_name but something goes awry in the casting process. I tried adding a constructor to the ModuleVO class that accepts an object: package com.xxx.xxx.model { [Bindable] public dynamic class ModuleVO { public var module_id:Number; public var module_name:String; public function ModuleVO(module:Object) { this.module_id = module.module_id this.module_name = module.module_name } } } and changing the Module Editor code to: mx:DataGrid id=dgModulesdataProvider={ModelLocator.getInstance().modules}/ view:ModuleEditor module={new ModuleVO(dgModules.selectedItem)}/ and it works fine. This method seems like it requires unneccessary lines of code and makes adding further properties a pain in the neck. Can anyone shed any light on where I am going wrong? Thanks in advance, Pete Pete CapraInformation Systems CoordinatorCapra Ryan Online Learningp. (617) 3208 9455m. 0411 043 305 f. (617) 3208 9855a. PO Box 1744 Springwood Q 4127www.capraryan.com[EMAIL PROTECTED] n.com.au __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Flex + .NET Web Services irritations
John: You might want to also check out JSON + .NET + Flex. I've written a tiny little little tutorial to help get people started at: http://blog.shrefler.net/?p=5 Sam On 9/5/06, John C. Bland II [EMAIL PROTECTED] wrote: FLIPPIN' NAMESPACEI set the namespace and I'm rollin'! Now I can finish this app. :-) Thanks. On 9/5/06, John C. Bland II [EMAIL PROTECTED] wrote: Which code are you referring to seeing? I can't pass the WS code or url. As for the Flex code, it is based 100% off of the livedocs example but with our url's, etc. We don't use .NET datasets. We are returning VO's (classes) or Listclassname. This is .NET 2.0 so generics are used semi-heavily.Thanks. On 9/5/06, Tim Hoff [EMAIL PROTECTED] wrote: Hi John, Without seeing the code, the first error seems E4X related. I'm not sure if this will help you with the second error, but natively Flex doesn't accept .Net datasets without receiving this error. If that's the case, you can solve this by casting the dataset to a class that is returned by the webservice. Here's an ASP.Net webservice code sample: http://www.cflex.net/showFileDetails.cfm?ObjectID=418Object=FileChannelID=1 -TH --- In [EMAIL PROTECTED] ups.com, John C. Bland II [EMAIL PROTECTED] wrote: Flex seems to have problems hitting .NET web services. Specifically, it has problems handling method overloads and, for whatever reason, can't seem to work with working .NET WS's. I setup the operation, etc just as examples showed to make sure my own knowledge wasn't lacking and it still didn't work right. The errors are as follows (extracted from my Google searches the other day): * The Proxy class does not implement getDescendants. It must be overridden by a subclass. * [WSDLError faultString=Element :SiteProvider_GetBySiteID not resolvable faultCode=WSDL.BadElement faultDetail=null] The second one is odd because I KNOW the method is there AND that it works. I can hit the wsdl with another tool and it works perfectly fine. Any ideas? -- John C. Bland II Chief Developer Katapult Media, Inc. - www.katapultmedia.com --- Biz Blog - http://blogs.katapultmedia.com/jb2 Personal Blog - http://blog.blandfamilyonline.com http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoands top.org Home of AZCFUG - http://www.azcfug.org -- John C. Bland IIChief DeveloperKatapult Media, Inc. - www.katapultmedia.com ---Biz Blog - http://blogs.katapultmedia.com/jb2Personal Blog - http://blog.blandfamilyonline.comhttp://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.orgHome of AZCFUG - http://www.azcfug.org -- John C. Bland IIChief DeveloperKatapult Media, Inc. - www.katapultmedia.com---Biz Blog - http://blogs.katapultmedia.com/jb2Personal Blog - http://blog.blandfamilyonline.com http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.orgHome of AZCFUG - http://www.azcfug.org __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Array Serialization .NET Web Service
Graham: Have you looked into JSON? It will take care of the serialization/deserialization for you. I've posted a tutorial that could help you get started Hope it helps http://blog.shrefler.net/ Sam On 9/7/06, grahampengelly [EMAIL PROTECTED] wrote: HiI have a .NET web service I am calling from Flex. One of the methods expects an object described in the following extract from the WSDL:s:complexType name=UserAnswers s:sequence s:element minOccurs=1 maxOccurs=1 name=UserId type=s:int/ s:element minOccurs=1 maxOccurs=1 name=ModuleId type=s:int/ s:element minOccurs=0 maxOccurs=1 name=ResponseIds type=tns:ArrayOfInt/ s:element minOccurs=0 maxOccurs=1 name=AuthenticationGuid type=s:string/ /s:sequence/s:complexType s:complexType name=ArrayOfInt s:sequence s:element minOccurs=0 maxOccurs=unbounded name=int type=s:int/ /s:sequence/s:complexTypeI am having trouble getting the array ResponseIds array to serialize properly from Flex. The test aspx page shows it like this in the request example: ResponseIds intint/int int int/int/ResponseIds...but when I examine the request sent from flex it is serializing the array like this: ns0:ResponseIds ns0:int22,24,28,30,32/ns0:int /ns0:ResponseIds...and obviously that isn't working. Is there any way I can affect the array serialization? I have examined as many posts on this topic as I can but can't seem to find an answer other than send xml instead of an object which I don't really want to do if I can help it. Thanks in advanceGraham __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Multiple Screen Application
I'm just looking for an theory overview / suggestions on how to handle multiple screens with nothing in common: For example, i have an application that I'd like to have a menubar on every single screen. After that, i'd have say 5 - 20 totally unrelated screens each with their own display and function. I see on each of those screens where viewStates would comein handy. My question is: Should I make viewStates for every single screen, or would using a viewStack be better? Is there a best practice for an application with multiple screens? ThanksSam __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company 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: Multiple Screen Application
Brennan: Thank you very much. What do you mean by ViewHelper? Does each View in the ViewStack have a viewHelper? ThanksSam On 8/31/06, dreuimar [EMAIL PROTECTED] wrote: I started out using states, with the current state being bound to aproperty in the model (using Cairngorm.) Lately, as my application has dozens of screens and different users are privelaged to have certainscreens at their disposal, I use a view stack (it's easier on the eyesto program, IMO), and have each state's viewhelper extended toregister that given state as a screen object in an arraycollection of available screens. I also have a constants file of screen titles (mymenu reflects the title of the current screen.)I register each screen with its static title (pulled from theconstants class), and fire off a custom cairngorm event when switching screens.e.g.:CairngormEventDispatcher.getInstance().dispatchEvent( newScreenSwitchEvent(Constants.MainMenu));Then I have a class that implements Command and have it do a search inthe screen array for any object who's title is Constants.MainMenu.I've found this to be the best way, mainly because I rely onpermissions and some screens have read-write access, some only haveread, etc.For a smaller application, you could just use states and have a string property in the model called currentState that the currentState ofyour VBox is bound to. (I say VBox instead of application because Iwant a menu bar to be at the top of every screen, so the content isloaded into the vbox.) Then switching screens is as easy as calling: model.currentState = Constants.MainMenuBrennan--- In flexcoders@yahoogroups.com, Sam Shrefler [EMAIL PROTECTED] wrote: I'm just looking for an theory overview / suggestions on how to handle multiple screens with nothing in common: For example, i have an application that I'd like to have a menubaron every single screen. After that, i'd have say 5 - 20 totally unrelated screens each with their own display and function. I see on each of those screens where viewStates would come in handy. My question is: Should I make viewStates for every single screen, or would using a viewStack be better?Is there a best practice for an application with multiple screens? Thanks Sam--Flexcoders Mailing List FAQ: 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 Software development tool Software development Software development services Home design software Software development company 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] Stroke color on lineSeries - bug?
Sree: I'm not sure if its a bug, anerror in the documents, or none of the abover... If you need to change teh stroke color, I've successfully used the following... mx:LineSeries mx:lineStroke mx:Stroke color=0x33 weight=3//mx:lineStroke /mx:LineSeries Hope that helps Sam On 8/30/06, Sreejith Unnikrishnan [EMAIL PROTECTED] wrote: Applying the stroke color on lineSeries does not seem to have any effect. Even in the examples provided by Adobe, chart explorer the colors though specified, dont work! Is this a known bug, if it is one? Regards Sree __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company 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] initial loader color/style
Hank: In my main application tag i put: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute backgroundColor=#(YOURCOLOR) I also add a CSS entry... mx:StyleApplication {theme-color: #789789;backgroundGradientColors: #123123, #789789;} /mx:Style Hope this helps Sam On 7/19/06, hank williams [EMAIL PROTECTED] wrote: There is a default setting for the background color and style of the loader that you see before your app opens. Where can I change this?Hank __._,_.___ -- 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. __,_._,___