Re: [Flashcoders] WebServices support in AS3/FLCS3
Hi, I've no experience with flex2, but Muzak can i conclude from your remark the classes are available under flex2 ? If so, can't they be compiled to an swf, used to generate intrinsics from and use them in flash 9 anyway? greetz JC On 7/5/07, Muzak [EMAIL PROTECTED] wrote: Those are AS2, not AS3. There are currently no AS3 classes/components for webservices or remoting in FCS3. Right now Flex 2 is the only alternative. regards, Muzak - Original Message - From: Gerry Creighton [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, July 05, 2007 4:29 AM Subject: Re: [Flashcoders] WebServices support in AS3/FLCS3 If you are in Flash CS3 and have an AS3 fla open navigate to Window/ Common Libraries/Classes You will find them there. -Gerry ___ 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 support in AS3/FLCS3
Hmm, okay might be worth a try though, I thought creating intrinsics was okay, assuming you dont distribute them or the swc. In other words assuming you have a valid license you are allowed generate and use the intrinsic classes from an swc. But maybe someone from adobe could share a light on that. Im not sure if http://osflash.org/swcextract/ can do as3 too, would have to look into that. regards, JC On 7/5/07, Muzak [EMAIL PROTECTED] wrote: Source files of the Flex rpc classes are not available. They're compiled into a swc file. The swc contains the compiled code (swf), but I don't know if you can create intrinisics from that, or if you're even allowed to do so. regards, Muzak - Original Message - From: Hans Wichman [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, July 05, 2007 9:14 AM Subject: Re: [Flashcoders] WebServices support in AS3/FLCS3 Hi, I've no experience with flex2, but Muzak can i conclude from your remark the classes are available under flex2 ? If so, can't they be compiled to an swf, used to generate intrinsics from and use them in flash 9 anyway? greetz JC ___ 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] flashdevelop and introducing new classes
Hi list, I work with flashdevelop and usually have the following setup: - an injection swf, with a MyApp.main call() somewhere on the timeline - a flashdevelop project with mx to true, all the intrinsic mx classes on the classpath and useMain = false This works okay, except when I refactor and introduce a superclass for a class previously without a superclass. If I do this, I MUST recompile the injection swf. I think it has to do with the keep flag, but setting that to false doesnt seem an option. Can anybody tell me why this is happening? greetz JC ___ 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] MediaDisplay class issue
Hi, I've run into a bug in the MediaDisplay component. Basically if I have a swf which has MediaDisplay component in its library and loadMovieNum another swf that has a MediaDisplay instance (set manually during authoring or by attachMovie, doesn't matter...) the player crashes and throws the this script is causing flash player to run slowly error Any ideas how to work around this ? Thanks. - Got a little couch potato? Check out fun summer activities for kids. ___ 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] MediaDisplay class issue
the dirty fix (in case anyone is interested) : delete _global.mx.controls.streamingmedia.ScreenAccommodator; (right before you loadmovie) Adrian Ionut Beschea [EMAIL PROTECTED] wrote: Hi, I've run into a bug in the MediaDisplay component. Basically if I have a swf which has MediaDisplay component in its library and loadMovieNum another swf that has a MediaDisplay instance (set manually during authoring or by attachMovie, doesn't matter...) the player crashes and throws the this script is causing flash player to run slowly error Any ideas how to work around this ? Thanks. - Got a little couch potato? Check out fun summer activities for kids. ___ 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 - Shape Yahoo! in your own image. Join our Network Research Panel today! ___ 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] Desktop app that uploads files to server usingbinarydata
Paul, In order to send the files to the server you must use a POST HTTP request. Therefore the bitmap data has to be encoded in Base 64. Muzak posted a link to upload images to the server below. :) - Nick Paul Steven wrote: Do I need to convert the data to Base64? I am curious as to why I cannot just send the binary data as it is? Thanks Paul Subject: Re: [Flashcoders] Desktop app that uploads files to server usingbinarydata The reason why're you're not finding much info is probably because you more or less have to know what to look for ;-) Try looking for Base64Encoder http://tools.assembla.com/flexsdk/browser/mx/utils/Base64Encoder.as mx.utils.Base64Encoder class is an undocumented Flex 2 AS3 class, which will be documented in Flex 3. an example sending an image to server: http://djangonflex.wordpress.com/2007/06/30/sending-images-from-flex-to-a-se rver/ These might come in handy as well: - JPEGEncoder - PNGEncoder They're available in the as3corelib: http://code.google.com/p/as3corelib/ http://as3corelib.googlecode.com/svn/trunk/src/com/adobe/images/ So basically what you'll need to do when a file is dropped on your app is load that file as raw Binary data fileLoader = new URLLoader(); fileLoader.dataFormat = URLLoaderDataFormat.BINARY; Once the file is loaded, convert it to a binary string (using Base64Encoder) and then send it to your server script using HTTPService (not sure what the Flash CS3 equivalent is). By the way, you can use Flex with Zinc. regards, Muzak - Original Message - From: Paul Steven [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, July 03, 2007 3:24 PM Subject: [Flashcoders] Desktop app that uploads files to server using binarydata I am building a desktop app (mac and pc) and it has to upload a bunch of files - pdf's, word docs and images - to a server side script. This has to be done via HTTP and cannot be FTP. The problem arises because I do not want the user to have to select the file/s before uploading so I cannot use the flash 8 FileReference class. The user should be able to drag the required files onto the application. I believe it is possible to upload binary data using AS3 but I cannot find any examples of this and as I have not as yet looked at AS3, some examples or advice on where to start would be much appreciated. As far as I am aware I will need to use Zinc to package the application as this will provide additional functionality such as the ability to drag and drop files onto the application. Apollo / Air is out of the question as it is only in beta stage and also this application needs to be run from a flash drive without any preinstall on the users hard drive. Thanks in advance Paul ___ 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] swap depths with mask
Hey guys, how is the summer treating you guys? Pretty bad, considering it's winter here. Quick question, I am running swapDepths() on a movClip and it's Mask layer. The mask doesn't work after the swap and it is going to one level above the movClip. So if anyone can direct me to how to fix this problem specifically that would be great !! When you swapDepths() on an object, it is detached from the timeline, so masks/masked objects won't work as such anymore. Use setMask() on the object to re-set its mask to the original mask object. There's no reason to do a swapDepths() on a mask though, just on the masked object. Zeh ___ 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] Keeping XML Objects
For performance, if you have to parse it once you might as well convert it to objects . I do not always follow this advice and for the most part, on a reasonably modern PC it really does not matter. You do not have to use XPath. We just parse it in ActionScript in each getter as we need the info and once you have the pattern figured out, it is pretty easy. Just make sure that you have good set of Objects even if the only property is an XML structure. You can always change the methods later if you decide to parse the XML once. If you ever want/need to change a value at runtime, you will be much happier with objects. Ron Jer Brand wrote: Question, and one I think I know the answer to: If I have a configuration XML file for an app, would it be better from a performance standpoint to keep the XML object around as my configuration object, or to pull out the data into a custom object structure (something simple, think object-array of objects)? I would think that keeping the XML Object around would require more resources -- especially if using XPath. I'm not sure how much baggage I'm carrying around with an XML object. On the flip side, it's a built-in object, and if you use XPath once, you've got the classes loaded. And it doesn't get much easier than XPath + XML for data retrieval. My thinking says, dump XPath, load in the XML save it's data and dump it when done. Or dump XML all together and use a serialized object (PHP Serializer or some such). Opinions? ___ 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