tag:blogger.com,1999:blog-4515170659505108256.post7044682458583118556..comments2024-03-20T10:51:49.205-07:00Comments on Flash Authoring: Using Flex Webservice component in Flash CS4Unknownnoreply@blogger.comBlogger54125tag:blogger.com,1999:blog-4515170659505108256.post-45788149912075513222018-03-26T07:07:08.648-07:002018-03-26T07:07:08.648-07:00This comment has been removed by the author._ThaNerd_https://www.blogger.com/profile/05622156876401976081noreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-45031213107167706022018-03-26T07:05:44.149-07:002018-03-26T07:05:44.149-07:00I have the following
-
-
...I have the following <br /><br /> <br />- <br />- <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /><br />How can I initialise and send back the vars: StudentName, StudentScore, StudentLevel, StudentChar?<br /><br />Also I have this:<br /><br /> <br />- <br />- <br /> <br /> <br /> <br /> <br /><br />How can I initialise StudentName and send it to my WSDL so it can check and send me back the results (I have it checked my db within the webservice so I want AS3 to return the fields attached to the found record).<br /><br />_ThaNerd_https://www.blogger.com/profile/05622156876401976081noreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-25695825620796250192013-04-20T10:44:04.415-07:002013-04-20T10:44:04.415-07:00Hi, when i call any of your country.asmx?WSDL meth...Hi, when i call any of your country.asmx?WSDL methods, like GetCountries, i get an error saying that there is no space on server hdd drive. Is there any option to fix it?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-23380475217305755482010-07-20T15:47:48.903-07:002010-07-20T15:47:48.903-07:00Hi Tareq, I need your Help: when I tested the movi...Hi Tareq, I need your Help: when I tested the movie in flash cs5,that worked perfectly, but when i Publish the movie, that´s don´t work. What is the problem??Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-74524879651098883392010-07-20T01:53:41.580-07:002010-07-20T01:53:41.580-07:00In Flash you can get this to work with the URLLoad...In Flash you can get this to work with the URLLoader and URLRequest classes too. No need for Flex' HTTPService class.<br />For an example check http://www.thetechlabs.com/tutorials/xml/learn-how-to-create-flash-components-using-actionscript-30-xml-and-flickr-api/frans vvnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-16592402048545443102010-07-16T16:03:57.665-07:002010-07-16T16:03:57.665-07:00This is working for me when I run it locally, but ...This is working for me when I run it locally, but once I run it on a webserver and browser, there's nothing populating the datagrid anymore. I thought it might be crossdomain.xml, but theirs is wide open. Help?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-88481459542344976702010-05-13T06:34:37.855-07:002010-05-13T06:34:37.855-07:00It was a stupid mistake.
It should be import mx.rp...It was a stupid mistake.<br />It should be import mx.rpc.events.ResultEvent;Unknownhttps://www.blogger.com/profile/06977230223633411774noreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-40587463283349844362010-05-13T02:44:07.451-07:002010-05-13T02:44:07.451-07:00Hey,
I did the same as you did here, but with HTT...Hey,<br /><br />I did the same as you did here, but with HTTPService.<br /><br />But I get the following Error:<br />"1046: Type was not found or was not a compile-time constant: ResultEvent."<br /><br />That is starnge, because I selected the "rpc.swc".<br /><br />And I wrote:<br />import mx.rpc.http.HTTPService; <br />import mx.rpc.FaultEvent; <br />import mx.rpc.ResultEvent;Unknownhttps://www.blogger.com/profile/06977230223633411774noreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-36297786854055315492010-02-16T11:47:30.810-08:002010-02-16T11:47:30.810-08:00@anonymous, regarding turning off warnings:
But I...@anonymous, regarding turning off warnings:<br /><br />But I <i>like</i> warnings. Call me crazy, but I'm not turning them off just so I can use a Flex Webservice component. I doubt I'm the only one who feels that way.Unknownhttps://www.blogger.com/profile/05897625325939828656noreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-76838026627374808972010-02-14T09:01:16.696-08:002010-02-14T09:01:16.696-08:00REGARDING LONG COMPILE TIMES:
Wanted to update th...REGARDING LONG COMPILE TIMES:<br /><br />Wanted to update this record that turning off warning messages _vastly_ decreases the compile time in CS4. So those unhappy with the long time should make sure they do this.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-15563029055501379722010-01-06T16:41:41.225-08:002010-01-06T16:41:41.225-08:00Anyone else getting this error?
"Variable Re...Anyone else getting this error?<br /><br />"Variable ResourceManagerImpl is not defined"Rex the Strangehttp://www.rexthestrange.comnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-43227789981784989362009-11-17T20:11:31.128-08:002009-11-17T20:11:31.128-08:00with the as3webservice... is there anything that n...with the as3webservice... is there anything that needs to be done on a hosted platform? any extra ports need to be opened?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-8989417946311794732009-11-13T06:32:55.807-08:002009-11-13T06:32:55.807-08:00UPDATE:
The URL I listed in my post is no longer w...UPDATE:<br />The URL I listed in my post is no longer working:<br /><br />(http://www.wellconsidered.be/as3-webservice-component/)<br /><br />Instead, please use:<br /><br />http://code.google.com/p/as3webservice/Kevinhttps://www.blogger.com/profile/04617154026869690325noreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-6851332608245205452009-11-02T08:55:56.517-08:002009-11-02T08:55:56.517-08:00the wellconsidered package above does not appear t...the wellconsidered package above does not appear to work out of the box with some wsdl recognition (it appearss very microsoft oriented). <br /><br />However, with the source code available in it it does manage to make it pretty apparent on how to write your own just using http POST. <br /><br />We have very simple and established wsdl calls, so they have been hard coded into a library and our compile times have been reduced by about 90%. Thanks for the hint.<br /><br />I think it shows that the this technoilogy is still a bit immature and still needs to grow from a programming perspective. It seems very hard to get a word on as4? Anyone know?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-58520099499195216222009-10-16T06:58:15.132-07:002009-10-16T06:58:15.132-07:00OK, after more research, I have found what appears...OK, after more research, I have found what appears to be a better alternative to the Flex SDK approach. Please check out: <br /><br />http://www.wellconsidered.be/as3-webservice-component/<br /><br />I tested this myself and it is working for me. And bonus, no huge swf file sizes or painful compile times. I only tested returning strings from my web service which works fine. Follow the references on the link to see what sort of open issues exist.Kevinhttps://www.blogger.com/profile/04617154026869690325noreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-88304087879633598592009-10-15T18:52:27.477-07:002009-10-15T18:52:27.477-07:00I forgot to also add that the sheer compile time o...I forgot to also add that the sheer compile time of the framework also makes this approach quite a test for you patience since every time you want to test your swf, you're faced with something like a minute of compilation time verses a typical few seconds.Kevinhttps://www.blogger.com/profile/04617154026869690325noreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-53616890842286885192009-10-15T18:50:06.150-07:002009-10-15T18:50:06.150-07:00There is at least one comment here about how much ...There is at least one comment here about how much the file size of your swf will be increased using this Flex SDK approach. In my case, I see a 5K swf increase to something like 342K which is a huge increase and an unacceptable solution for some cases.Kevinhttps://www.blogger.com/profile/04617154026869690325noreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-59856366503037967502009-10-07T22:24:43.238-07:002009-10-07T22:24:43.238-07:00Hi there,
Does anyone know why this doesn't wo...Hi there,<br />Does anyone know why this doesn't work when I put it in a class of its own and then call it from my document class?<br /><br />ie. I have a class called "WebServiceConnector", that doesn't connect when i import it into the document class, yet works when i set it as the document class.<br /><br />any help?<br />cheers :-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-19657972506235838762009-09-02T02:08:02.390-07:002009-09-02T02:08:02.390-07:00Nice to know this is possible in Flash, but Im hav...Nice to know this is possible in Flash, but Im having problems getting it to work when I upload it to my server. I get an outline of the datagrid, but nothing else. This all works as it should when im running the swf locally.<br /><br />Also, for future reference, will this code work across a secure server?<br /><br />Cheers<br />AshAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-19049865549862835342009-09-01T04:08:52.835-07:002009-09-01T04:08:52.835-07:00great post, but this just makes my swf size BIG &q...great post, but this just makes my swf size BIG "187 KB". Any way to bring it down?<br /><br />JohnJONhttps://www.blogger.com/profile/13457752122792976827noreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-85685085895901965732009-08-15T03:10:29.640-07:002009-08-15T03:10:29.640-07:00And this is the same code except for error handlin...And this is the same code except for error handling : <br />///////////////<br /><br />package<br />{<br /> import flash.display.Sprite;<br /> import mx.rpc.soap.*;<br /> import mx.core.*;<br /> import mx.rpc.events.*;<br /> import mx.rpc.Fault;<br /> import fl.data.DataProvider;<br /> import fl.controls.DataGrid;<br /> import flash.text.*;<br /> <br /> public class WebserviceAndFlashRemotingImplementation extends Sprite<br /> {<br /> var _myWebService;<br /> <br /> public function WebserviceAndFlashRemotingImplementation()<br /> {<br /> _myWebService = new WebService();<br /> <br /> _myWebService.wsdl = "http://www.webservicex.net/country.asmx?WSDL";<br /> _myWebService.loadWSDL();<br /> _myWebService.addEventListener(LoadEvent.LOAD, loadDone);<br /> _myWebService.addEventListener(FaultEvent.FAULT, loadFault);<br /> <br /> trace('hello?');<br /> }<br /> <br /> private function loadDone(evt:LoadEvent)<br /> {<br /> trace("done?");<br /> _myWebService.addEventListener(ResultEvent.RESULT, wsResult);<br /> _myWebService.addEventListener(FaultEvent.FAULT, wsError);<br /> _myWebService.GetCountries();<br /> <br /> // myOperation=Operation(myWebService.getOperation("GetCountries"));<br /> // myOperation.addEventListener("fault", wsError);<br /> // myOperation.addEventListener("result", wsResult);<br /> }<br /> <br /> private function loadFault(evt:FaultEvent)<br /> {<br /> trace('fault');<br /> var fault:Fault = evt.fault;<br /> var message:String = "An error occurred.";// The details are as follows\ncode: " + fault.faultCode;<br /> message+="\ndetail:"+fault;<br /> <br /> var text:TextField = new TextField();<br /> text.text = message;<br /> text.autoSize = TextFieldAutoSize.LEFT;<br /> addChild(text);<br /> <br /> }<br /> <br /> private function wsError(evt:FaultEvent)<br /> {<br /> trace('fault');<br /> var fault:Fault = evt.fault;<br /> var message:String = "An error occurred.";// The details are as follows\ncode: " + fault.faultCode;<br /> message+="\ndetail:"+fault;<br /> <br /> var text:TextField = new TextField();<br /> text.text = message;<br /> text.autoSize = TextFieldAutoSize.LEFT;<br /> addChild(text);<br /> }<br /> <br /> private function wsResult(evt:ResultEvent)<br /> {<br /> var xml:XML = new XML(evt.result);<br /> var dp:DataProvider = new DataProvider(xml);<br /> var MyDG:DataGrid = new DataGrid();<br /> <br /> MyDG.width = stage.stageWidth;<br /> MyDG.height = stage.stageHeight;<br /> MyDG.dataProvider = dp;<br /> addChild(MyDG);<br /> <br /> trace('something good!');<br /> <br /> }<br /> }<br />}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-2455541532419428422009-08-15T02:53:43.849-07:002009-08-15T02:53:43.849-07:00Or when you use DocumentClassDefinition with .as f...Or when you use DocumentClassDefinition with .as file, try this one :<br /><br />//////////////////////<br /><br />package<br />{<br /> import flash.display.Sprite;<br /> import mx.rpc.soap.*;<br /> import mx.core.*;<br /> import mx.rpc.events.*;<br /> import fl.data.DataProvider;<br /> import fl.controls.DataGrid;<br /> <br /> public class WebserviceAndFlashRemotingImplementation extends Sprite<br /> {<br /> var _myWebService;<br /> <br /> public function WebserviceAndFlashRemotingImplementation()<br /> {<br /> _myWebService = new WebService();<br /> <br /> _myWebService.wsdl = "http://www.webservicex.net/country.asmx?WSDL";<br /> _myWebService.loadWSDL();<br /> _myWebService.addEventListener(LoadEvent.LOAD, loadDone);<br /> _myWebService.addEventListener(FaultEvent.FAULT, loadFault);<br /> <br /> trace('hello?');<br /> }<br /> <br /> private function loadDone(evt:LoadEvent)<br /> {<br /> trace("done?");<br /> _myWebService.addEventListener(ResultEvent.RESULT, wsResult);<br /> _myWebService.addEventListener(FaultEvent.FAULT, wsError);<br /> _myWebService.GetCountries();<br /> <br /> // myOperation=Operation(myWebService.getOperation("GetCountries"));<br /> // myOperation.addEventListener("fault", wsError);<br /> // myOperation.addEventListener("result", wsResult);<br /> }<br /> <br /> private function loadFault(evt:FaultEvent)<br /> {<br /> trace('fault');<br /> }<br /> <br /> private function wsError(evt:FaultEvent)<br /> {<br /> trace('something wrong!');<br /> }<br /> <br /> private function wsResult(evt:ResultEvent)<br /> {<br /> var xml:XML = new XML(evt.result);<br /> var dp:DataProvider = new DataProvider(xml);<br /> var MyDG:DataGrid = new DataGrid();<br /> <br /> MyDG.width = stage.stageWidth;<br /> MyDG.height = stage.stageHeight;<br /> MyDG.dataProvider = dp;<br /> addChild(MyDG);<br /> <br /> trace('something good!');<br /> <br /> }<br /> }<br />}<br /><br />////<br />Any questions : sseoyh7@snu.ac.krAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-10039453101754112272009-08-15T02:42:47.536-07:002009-08-15T02:42:47.536-07:00Try this one~
(mix article above and p647-650 of A...Try this one~<br />(mix article above and p647-650 of Actionscript 3.0 Cookbook)<br /><br />//////////////////////////////////////<br /><br />import mx.rpc.soap.*;<br />import mx.core.*;<br />import mx.rpc.events.*;<br />import fl.data.DataProvider;<br /><br />var myWebService = new WebService();<br />myWebService.wsdl = "http://www.webservicex.net/country.asmx?WSDL";<br />myWebService.loadWSDL();<br />myWebService.addEventListener(LoadEvent.LOAD, loadDone);<br />myWebService.addEventListener(FaultEvent.FAULT, loadFault);<br /><br />trace('hello?');<br /> <br />var myOperation:Operation;<br /><br />function loadDone(evt:LoadEvent)<br />{<br /> trace("done?");<br /> myWebService.addEventListener(ResultEvent.RESULT, wsResult);<br /> myWebService.addEventListener(FaultEvent.FAULT, wsError);<br /> myWebService.GetCountries();<br /> <br />// myOperation=Operation(myWebService.getOperation("GetCountries"));<br />// myOperation.addEventListener("fault", wsError);<br />// myOperation.addEventListener("result", wsResult);<br />}<br /><br />function loadFault(evt:FaultEvent)<br />{<br /> trace('fault');<br />}<br /><br />function wsError(evt:FaultEvent)<br />{<br /> trace('something wrong!');<br />}<br /><br />function wsResult(evt:ResultEvent)<br />{<br /> var xml:XML = new XML(evt.result);<br /> var dp:DataProvider = new DataProvider(xml);<br /> MyDG.dataProvider = dp;<br /> trace('something good!');<br /> <br />}<br /><br /><br />//<br />Any question : sseoyh7@snu.ac.krAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-34748100336261095282009-07-17T03:20:38.947-07:002009-07-17T03:20:38.947-07:00Hi,
I've just emailed my code, I could'nt...Hi,<br /><br />I've just emailed my code, I could'nt attach here as html blocks. I managed to connect to the wsdl but could'nt return any value from the function. it always return null.<br /><br />Please check the code and let me know.<br /><br />Thanks for your time and kindAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4515170659505108256.post-16381131587143089702009-07-16T13:46:27.016-07:002009-07-16T13:46:27.016-07:00Hi All,
I just tried my example with Flex SDK 4 an...Hi All,<br />I just tried my example with Flex SDK 4 and got the following error :<br /><br />1046: Type was not found or was not a compile-time constant: [flashx.textLayout.compose]::ITextLineCreator.<br /><br />To solve this problem you will need to add <br />"textLayout.swc" to the library path in addition to framework.swc and rpc.swc.<br />it is located in the following location :<br /><br />..\sdks\4.0.0\frameworks\libs\<br /><br />Thanks,<br />tareqtreguesshttps://www.blogger.com/profile/03370142325183345373noreply@blogger.com