[Flashcoders] Flex + web services
I spoke with an A. Barbier. He wanted me to write up some details of my project, which I did. That was some time ago - have not heard back from him - nor do I believe I ever will. In fact, I had contacted Adobe at least a month previous trying to get some information regarding Flex. It was only after many (and I mean MANY) attemps to get someone to contact me did I recieve a phone call. That phone call was rushed and really just focused on how I needed Flex Data Services to do what I could do now for free with FLASH and my little .Net Web Services. Steve From: [EMAIL PROTECTED] on behalf of David Mendels Sent: Sat 12/23/2006 10:06 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Flex + web services Was: Remove elements from Array Hi, Flex can consume Web Services without FDS. Please let me know who you spoke with Rakos so I can make sure to fix this miscommunication. Regards, David Adobe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seth Caldwell Sent: Saturday, December 23, 2006 3:47 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flex + web services Was: Remove elements from Array The answer to your question is - you can consume any web service. I reccommend you look into fluorine for a web service that will actually convert c#.net classes into AMF3 objects returned from the web service call. Certain objects do not have a direct AMF representation - your dataset class is probably an example, unless it is just a class that contains a few members that are representable within AMF such as strings, arrays of strings, and so on. GL Seth - Original Message - From: Rákos Attila [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, December 23, 2006 12:03 AM Subject: [Flashcoders] Flex + web services Was: Remove elements from Array (please don't post questions by simly replying to a previous post, but create a new message - otherwise some e-mail clients will mix up threads and the unchanged subject will be totally confusing, too) BS I have a Flex question. I have been considering FLEX 2.0, but when BS I spoke with the guy at Adobe, the first thing he told me was that BS FLEX could not consume web services without Flex Data Services and BS the price he quoted me for the Departmental License was (well, BS lets not say). BS Is this true, or can FLEX consume a web serivce but with BS limiations? By limitations, for example, not being able to consume BS a .Net dataset directly - needing to pass the data into an array. Flex applications are able to use web services, as any Flash application can use them. See the docs for details: http://livedocs.macromedia.com/flex/2/docs/1095.html Flex Data Services is a big addition of course, but it is not always required - if the simple request-response method is enough for you and don't need proxying or other sophisticated server-side things, then you can go without FDS. And even if you need it, the single-CPU Flex Data Services 2 Express Edition is totally free. Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Remove elements from Array
I have a Flex question. I have been considering FLEX 2.0, but when I spoke with the guy at Adobe, the first thing he told me was that FLEX could not consume web services without Flex Data Services and the price he quoted me for the Departmental License was (well, lets not say). Is this true, or can FLEX consume a web serivce but with limiations? By limitations, for example, not being able to consume a .Net dataset directly - needing to pass the data into an array. Thanks, Steve From: [EMAIL PROTECTED] on behalf of Mike Cobb Sent: Thu 12/21/2006 11:58 AM To: Flashcoders mailing list Subject: [Flashcoders] Remove elements from Array - Hi everyone, I'm having a braindead moment today, which I was hoping someone could help me with. I have the following array... //Create array with 5 elements var myArray1:Array = new Array(); myArray1.push( new Array(A:, -1) ); myArray1.push( new Array(B:, -1) ); myArray1.push( new Array(C:, 0) ); myArray1.push( new Array(D:, 0) ); myArray1.push( new Array(E:, -1) ); myArray1.push( new Array(F:, 1) ); myArray1.push( new Array(G:, 0) ); myArray1.push( new Array(H:, -1) ); //name, score ...and I'm trying to remove all the elements in myArray1 with a score of less than 0 without sorting/reordering the array at all. I was trying to use a 'for loop', but obviously as the elements are removed, the length of the array changes causes the wrong elements to be deleted. Can anyone help? Thanks, Mike -- - Mike Cobb Creative Director HMC Interactive - Tel: + 44 (0)845 20 11 462 Mob: + 44 (0)785 52 54 743 Web: http://www.hmcinteractive.co.uk - Grosvenor House, Belgrave Lane, Plymouth, PL4 7DA, UK. - I've got a new e-mail address: [EMAIL PROTECTED] Please update your address book. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flash File Upload using .NET
Liam, I found this code after searching for hours on the net. I'm not sure of its original source, but this works for me. It should place the file in the root (or virtual directory if using virtual directories under a root) string saveToFolder = string.Empty; HttpFileCollection uploadedFiles = Request.Files; string Path = Server.MapPath(saveToFolder); for (int i = 0; i uploadedFiles.Count; i++) { HttpPostedFile F = uploadedFiles[i]; if (uploadedFiles[i] != null F.ContentLength 0) { string newName = F.FileName.Substring(F.FileName.LastIndexOf(\\) + 1); F.SaveAs(Path + / + newName); } } If you are going to be uploading large files, the web.config file should be changed to allow this. The size and timeout properties are up to the individual to decide. //httpRuntime executionTimeout=600 maxRequestLength=10/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, October 19, 2006 11:49 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Flash File Upload using .NET Yes, I use the FileReference class and call an aspx page, attaching variables to the URL string. Works great. There is lots of information on using the Filereference class in the help docs. However, if you want to know how to write the script (C#, VBScript, whatever) to receive and process the file, I have a C# aspx script, but might get in trouble for sending it to you - I would try a .NET forum for that. On the Flash side, this is part of my media upload class that does the magic: private function browse(mediaTypes_arr:Array):Void{ fileRef = new FileReference(); fileRef.addListener(listener_obj); fileRef.browse(mediaTypes_arr); listener_obj.type = type_str; listener_obj.projId = projId; listener_obj.onSelect = function(file:FileReference):Void { var uploadString:String = /Upload.aspx?ProjId=+this.projId +type=+this.type; if(!file.upload(uploadString)) { trace(Upload dialog failed to open.); } } listener_obj.onCancel = function(){ ..etc. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Liam Mincy Sent: Thursday, October 19, 2006 11:12 AM To: Flashcoders mailing list Subject: [Flashcoders] Flash File Upload using .NET Hi, I was wondering if anyone knew of a source or a way to get file uploads to work under ASP.NET 2.0 through Flash? I have found examples of doing this under PHP and ColdFusion, but nothing that does file uploads without the postback under .NET Thanks, liam m- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Adobe Developer Support?
Level one that you get for about $1200 a year - poor. There is level 2 that (at least last year) was about $3000 a year. This is second level support. My experience with Level one is that they do not know very much and always have to go back to level 2 go get you an answer. If you are a very inexperienced Flash user then level one is ok, if you are experienced, then get level 2. If you are in the middle, just buy books and look at forums. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Josh Santangelo Sent: Tuesday, August 29, 2006 1:37 AM To: Flashcoders mailing list Subject: [Flashcoders] Adobe Developer Support? Anyone used it and have a review? http://partners.adobe.com/public/developer/support/ I'm not in need at the moment, but I'm wondering what the quality is like. -josh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Webservices and .NET array serialization
Me too. I have searched the internet and have found no other people (or examples) of this being done or being a problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, August 25, 2006 8:45 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Webservices and .NET array serialization I'm surprised nobody has dealt with this before? Array serialization from a .NET Webservice? Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, August 24, 2006 3:35 PM To: Flashcoders mailing list Subject: [Flashcoders] Webservices and .NET array serialization Here I was helping someone today with complex objects in .NET webservices and didn't notice a big problem on my end. I thought I had this figured out, but Arrays are coming across weird in a .NET webservice as generic objects not arrays that Flash can understand. I never noticed it before because I can still reference the properties in objects in the array OK, just not the array itself. For example (projObj is the object of arrays and objects resulting from my webservice method call): trace(projObj.Content.Topics) //traces as undefined. Expected an array trace(typeof(projObj.Content.Topics)); //traces as object !?! and trace(projObj.Content.Topics[0]) //traces [object Object],undefined //but I expected [object Object], [object Object], [object Object] Finally: projObj.Content.Topics[0].TextAreas[0].HtmlText //traces the value I am expecting!!! ??? What's up? I can get the property values OK, but I cannot treat the array as an array as you would in Flash? Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Webservices and .NET array serialization
//array declaration var ds:Array = new Array(); //push data to array ds.push({TranNum: value1, TranNum2: another value}); ds.push({TranNum: value2, TranNum2: yet another value}); //send array to .net web service var Post_ws:mx.services.WebService; var PostWsCall:mx.services.PendingCall; Post_ws=new mx.services.WebService(https://somedotcomaddress /Portal.asmx?wsdl); PostWsCall=Post_ws.PostIt(ds); In the .net web service, the length of the array can properly be seen to be 2(in this case since two push commands were issued). However, there is no way to get the name/value pairs(the data in the array). Why - that's the $1,000,000.00 question. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zoltan Csibi Sent: Friday, August 25, 2006 1:41 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Webservices and .NET array serialization var ar:Array = new Array(); trace(typeof(ar)); trace(ar instanceof Array); Mit freundlichem Gruß, Zoli -Original Message- From: Brake, Stephen [mailto:[EMAIL PROTECTED] Sent: Friday, August 25, 2006 3:47 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Webservices and .NET array serialization Me too. I have searched the internet and have found no other people (or examples) of this being done or being a problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, August 25, 2006 8:45 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Webservices and .NET array serialization I'm surprised nobody has dealt with this before? Array serialization from a .NET Webservice? Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, August 24, 2006 3:35 PM To: Flashcoders mailing list Subject: [Flashcoders] Webservices and .NET array serialization Here I was helping someone today with complex objects in .NET webservices and didn't notice a big problem on my end. I thought I had this figured out, but Arrays are coming across weird in a .NET webservice as generic objects not arrays that Flash can understand. I never noticed it before because I can still reference the properties in objects in the array OK, just not the array itself. For example (projObj is the object of arrays and objects resulting from my webservice method call): trace(projObj.Content.Topics) //traces as undefined. Expected an array trace(typeof(projObj.Content.Topics)); //traces as object !?! and trace(projObj.Content.Topics[0]) //traces [object Object],undefined //but I expected [object Object], [object Object], [object Object] Finally: projObj.Content.Topics[0].TextAreas[0].HtmlText //traces the value I am expecting!!! ??? What's up? I can get the property values OK, but I cannot treat the array as an array as you would in Flash? Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash + Array + Web Service
I read the following post and have the same exact problem. How did you construct the .net web service to allow the web service to grab the value of the complex array from Flash: This is an old thread I started back in May which I am following up on with a question. Muzak had replied to me with this: If you'll be using webservices that you can control (which it sounds like is the case), don't send XML back and forth. When using webservices, you can send Array of Objects back and forth, which is alot easier to work with. There should be a list of data type conversions in the docs somewhere. I am using the Web service classes to load in a wsdl from a .NET developer using C#. We have the basics working, I can receive a simple string from him no problem by calling the SOAP method. However, since Muzak (in the quote above) and the docs say the Web service classes supports complex object types, we are now trying to read in a complex object in Flash. The C# developer created a method for me, called GetProject() that returns a complex object he created (the complex object is simple - it just has a property that contains a simple string - i.e. objProj.Title). However, when I trace the result on the method, it returns null. Neither the C# developer or myself can figure out where we are going wrong. Any ideas? One of us has something wrong with this object and we're not sure who. Also, for a second related question, once I can read the object in Flash (it would contain arrays and properties, etc.) - we want to just send that object back to the webservice to update the object in C#. Any issues with that? The Help docs only say this about objects: Web Service classes Supported Types Object Types Object Types: Complex Type - ActionScript object composed of properties of any supported type Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com