RE: [flexcoders] Announcing the AS3 Lightweight Remoting Framework
I don't have a full application as a sample, but as you can see there is a functioning code sample on the os flash project page. http://osflash.org/as3lrf DP From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of RR-007Sent: Thursday, October 19, 2006 7:00 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Announcing the AS3 Lightweight Remoting Framework Danny,First of all thank you, good job. I was wondering since I am a newbeeif you could provide an app as a sample.thank you again.On 10/19/06, Danny Patterson [EMAIL PROTECTED]com wrote: I'm happy to finally announce the release of my first open source project, the AS3 Lightweight Remoting Framework. I've had this done for a long time now but I haven't had a chance to release it until now. From the project page: "This project is motivated by the need for a simple yet robust framework for handling Remoting calls. This framework could be used in AS3-only projects without the Flex framework, or it could be used in a Flex project to access Remoting resources that aren't supported by the Flex framework." http://osflash.org/as3lrf http://osflash.org/as3lrf Thanks, Danny Patterson-- We don't stop playing because we grow old.We grow old because we stop playing.Live it a little and play some more,RR-007 __._,_.___ -- 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] Announcing the AS3 Lightweight Remoting Framework
I'm happy to finally announce the release of my first open source project, the AS3 Lightweight Remoting Framework. I've had this done for a long time now but I haven't had a chance to release it until now. From the project page: "This project is motivated by the need for a simple yet robust framework for handling Remoting calls. This framework could be used in AS3-only projects without the Flex framework, or it could be used in a Flex project to access Remoting resources that aren't supported by the Flex framework." http://osflash.org/as3lrf Thanks,Danny Patterson __._,_.___ -- 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: FileReferenceList to a servlet
FileReferenceList doesn't have the ability to upload. That is in the FileReference class. All FileReferenceList allows you to do is browse and select multiple files at once. When you're ready to upload you need to loop through the FileReference objects and call upload on each one. Each will be sent to the server in separate multi-part HTTP POST requests. If you need to group these files on the server then I suggest you generate a GUIDfor each groupand pass that along with each file. Then on the server you can group them together based on that GUID. You may even want to send the number of files in the group along with each upload so you know when all have been uploaded. Or you could fire off a separate request to trigger the grouping on the server. HTH, DP From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of randomt2000Sent: Friday, October 13, 2006 10:09 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: FileReferenceList to a servlet --- In [EMAIL PROTECTED]ups.com, "randomt2000" randomt2000@... wrote: Is there anyone out there who has had luck sending multiple attachments, all-at-once, to a Servlet using FileReferenceList ? I am trying to create an email like functionality where a user can browse to multiple files and send them as attachments. The best I have come up with is keeping multiple files in an form field array, added one at a time by a FileRefence.browse(). On the servlet side, they end up as a byte[]. I would rather use the FileReferenceList to allow multiple selections at once. But the FileReferenceList is an array of FileReference objects, and each one needs to have 'upload' called on it seperately. Has anyone found away to do this in Flash 9 / Actionscript 3.0 ? Thanks - MikeAny takers ? __._,_.___ -- 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] Extending a subclass of Proxy
I'm trying to extend a subclass of the Proxy class and I'm getting an error. Here is an example of my problem: // ProxyA.as package {import flash.utils.Proxy;import flash.utils.flash_proxy; public class ProxyA extends Proxy {flash_proxy override function callProperty(methodName:*, ...args):* {return "ProxyA: " + methodName;}}} // ProxyB.as package {import flash.utils.flash_proxy; public class ProxyB extends ProxyA {flash_proxy override function callProperty(methodName:*, ...args):* {return "ProxyB: " + methodName;}}} // ProxyBugExample.as package {import flash.display.Sprite;import flash.utils.Proxy; public class ProxyBugExample extends Sprite {public function ProxyBugExample() {var proxy:Proxy = new ProxyB();trace(proxy.test());}}} I the ProxyB class I get the following error: Namespace was not found or is not a compile-time constant. I assume this is referring to the flash_proxy namespace, but it is imported just like in the ProxyA class. I'm not sure what the problem here is, any help would be appreciated. Thanks, Danny __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] what is beeing sent via HTTPSerice?
http://kevinlangdon.com/serviceCapture/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of arnold_charmingSent: Friday, July 28, 2006 6:13 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] what is beeing sent via HTTPSerice? Hi!I'm using HTTPService class to send some form data to my serverscripts. Is there any way how to find out what exactly (what variablesand values) are beeing send via HTTPService? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] File Upload
Sorry, a little explination is probably needed. The browse methods of FileReference and FileReferenceList are not static. Therefore you must call them on an instance of one of those two classes. var fileInstance:FileReference = new FileReference(); fileInstance.browse(); If it were static, you could call it the way you had it scripted. DP From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ethan MillerSent: Friday, July 14, 2006 12:27 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] File Upload I'm trying to quickly demonstrate the ability to upload a file. Just need a button with a click action that invokes a file browser in the user's OS.Tried this:mx:Button label="Upload" click="FileReferenceList.browse()"/Per the docs, which gets a compiler error of "undefined method with static type class... "Any sample code for this kicking around?thanks! ethan __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] File Upload
mx:Button label="Upload" click="var fileReference:FileReference = new FileReference(); fileReference.browse();" / From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ethan MillerSent: Friday, July 14, 2006 12:27 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] File Upload I'm trying to quickly demonstrate the ability to upload a file. Just need a button with a click action that invokes a file browser in the user's OS.Tried this:mx:Button label="Upload" click="FileReferenceList.browse()"/Per the docs, which gets a compiler error of "undefined method with static type class... "Any sample code for this kicking around?thanks! ethan __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Simple Event Listener Examples between 2 classes
You're not adding the TestHandler object as a listener of the TestDispatcherClass object. Your code is actually registering to itself. Also, you probably shouldn't dispatch an event from the constructor, since that runs before anything else you won't be able to add a listener before your constructor dispatches the event. Try this: package com.test {import flash.display.Sprite;import flash.events.Event;public class TestDispatcherClass extends Sprite {public function runDispatch() {dispatchEvent(new Event("action"));}}} package com.test {import mx.controls.Alert;import flash.display.Sprite; import com.test.TestDispatcherClass;public class TestHandler extends Sprite {public function TestHandler(dispatcher:TestDispatcherClass) {dispatcher.addEventListener("action", actionHandler);}public function actionHandler(event:Event):void {Alert.show("hanlded event:" + event.toString());}}} mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute" xmlns="*" creationComplete="this.initApp();"mx:Script![CDATA[import com.test.TestHandler;import com.test.TestDispatcherClass;private var test:TestHandler;private var dispatcher:TestDispatcherClass;private function initApp():void {dispatcher = new TestDispatcherClass(); test = new TestHandler(this.dispatcher); dispatcher.runDispatch();}]]/mx:Script/mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of efeminellaSent: Monday, July 10, 2006 10:12 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Simple Event Listener Examples between 2 classes Yeah, I have read the documentation for the new event model but I amhaving a few issues. Here is a simple example of what I am trying.Maybe you could give me some insight as to what I am doing wrong:package com.test {import flash.display.Sprite;import flash.events.Event;import com.test.EventManager;import mx.controls.Alert;public class TestDispatcherClass extends Sprite {public function TestDispatcherClass() {this.dispatchEvent(new Event("action"));}}}the class that will handle the event and get data from the dispatcher:package com.test {import com.test.EventManager;import flash.events.EventDispatcher;import flash.events.Event;import mx.controls.Alert;import flash.display.Sprite;public class TestHandler extends Sprite {public function TestHandler(){this.addEventListener("action", actionHandler);}public function actionHandler(event:Event):void {Alert.show("hanlded event:" + event.toString());}}}.mxml:mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute" xmlns="*" creationComplete="this.initApp();"mx:Script![CDATA[import com.test.TestHandler;import com.test.TestDispatcherClass;private var test:TestHandler;private var dispatcher:TestDispatcherClass;private function initApp():void {this.test = new TestHandler();this.dispatcher = new TestDispatcherClass();}]]/mx:Script/mx:ApplicationAny Ideas???--- In [EMAIL PROTECTED]ups.com, "Jeremy Lu" [EMAIL PROTECTED] wrote: All your classes can extends flash.events.EventDispatcher then theycan just fire a this.dispatchEvent(new MyEvent(aaa, bbb, ccc)); other classes can use addEventListener("XMLParsed", someHandler) tohandle the event. or you can take a look at how Cairngorm use Cairngorm Eventdispatcher as a cetralized event center to dispatch event for every class. Jeremy. On 7/11/06, efeminella efeminella@... wrote: Does anyone have any simple examples of how to dispatch and handle events between 2 classes. For example how can I have a class that loads and parses xml and then dispatch an event which another class handles and the event and displays the data. Sort of like we did in AS 2 with event.target... Thanks in advance, Eric Feminella __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___