RE: [Flashcoders] parsing XML RPC responses in AS...
http://sourceforge.net/projects/xmlrpcflash/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of keitai guy Sent: Friday, August 11, 2006 2:08 PM To: Flashcoders mailing list Subject: [Flashcoders] parsing XML RPC responses in AS... hi - I am trying to display results of a web service app that is returning data in the XML-RPC format as per below. This seems very hard to parse in any of the tools I've found... XPath seems useless against it since the only thing different is the _contents_ (value?) of each name node. The node names themselves are all the same... Am I missing something? Can anyone suggest better ways to work with this type of data? methodResponse params param valuestruct member nameSCRIPT_NAME/name valuestring/index.php/string/value /member member namerequests/name value struct member namemsg/name valuestring//value ... membernamec_member/name valuestruct membernamec_member_id/name valuestring2/string/value /member membernamenickname/name valuestringoga/string/value /member membernamebirth_year/name valuestring1982/string/value /member membernamebirth_month/name Thanks! /dc ___ 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] XML-PHP-FLASH
Or don't write any XML at all. All the kids are using XML-RPC with Flash - it's the neatest! http://xmlrpcflash.sf.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of CK Sent: Thursday, April 20, 2006 12:05 PM To: Flashcoders mailing list Subject: [Flashcoders] XML-PHP-FLASH Hi, After browsing the Kirupa.com XML tutorial written by Senoculor, it appears that given the awkward way the AS XML Object works that using PHP to parse XML then pass the PHP variables to flash may be less intense. Could someone enlighten? Respectfully, CK ___ 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] XML-PHP-FLASH
I believe JSON relies on the ability to eval a string into an object, which flash can't do without some help. Eg: eval('{ key: value }'); Won't work in Flash, you'd have to parse the string - then why not parse XML -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julian 'Julik' Tarkhanov Sent: Thursday, April 20, 2006 12:59 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML-PHP-FLASH On 20-apr-2006, at 18:43, Shaw, Matt (MTVN) wrote: Or don't write any XML at all. All the kids are using XML-RPC with Flash - it's the neatest! http://xmlrpcflash.sf.net And what about JSON? Did it make any inroads into Flash yet? Seems much more terse and useful for bare-struct juggling than XML. -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl ___ 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] XML-PHP-FLASH
That is true. There's mucho overhead with serializing things to XML. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ettwein, Josh Sent: Thursday, April 20, 2006 1:25 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] XML-PHP-FLASH If you're already using PHP on the server side, I can't see why you wouldn't use AMF - it's binary, where xml is not, and is far more verbose to send across the pipe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shaw, Matt (MTVN) Sent: Thursday, April 20, 2006 9:43 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] XML-PHP-FLASH Or don't write any XML at all. All the kids are using XML-RPC with Flash - it's the neatest! http://xmlrpcflash.sf.net ___ 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] RANT: Collect Fonts Button
This would be illegal unless the fonts included a license which allowed copying them and sending them around. Unless the fonts were free... But yes, I agree that it is annoying. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of clark slater Sent: Thursday, April 13, 2006 6:16 PM To: [ExtendFlash]; [FlashCoders] Subject: [Flashcoders] RANT: Collect Fonts Button Print designers who use QuarkXpress have had an essential utility for years. They can collect all the fonts used in a project so that when passing the source file to a bureau for print the exact same fonts are supplied along with the artwork and layout. I cannot begin to list all the times we have encountered major pain because the designer who created a particular FLA has lost the fonts or reinstalled their operating system or for whatever reason can no longer get their hands on the fonts. It is such a phenomenal pain in the tits. In terms of production time this is a VERY costly problem. We have literally wasted hours screwing around with fonts trying to track down the exact font used in a particular file. Sometimes the font might be correct version - but different kerning table means it reflows everywhere. Aggh. Often made worse by the way that font names are handled differently in Flash than in other programs using the exact same file. The scope for confusion is enormous. Even using third party font management tools like suitcase does not alleviate the problems because of the way that most design applications will install their own dirty secret fonts into the system fonts folder. Given the number of FLA files that are shared from designer to developer, agency to client to agency to freelancer etc. I simply cannot understand why Macromedia never saw fit to implement a utility like Quark has so it would be easy to collect all the fonts used in a particular file for handoff to the next part of the production workflow. The chance of font piracy is not a strong enough argument to explain why this critical design feature has been left out. After all anyone wanting to pirate fonts can just swap the contents of their system fonts folder etc. Clearly, I sincerely hope this is included in the next version of the Flash IDE - but I'm not holding my breath as it's been a submitted wishlist item since version 3 or 4! In the meantime it would be great if there was a way to handle this with JSFL. Unfortunately I can't see any way to access the fonts used property of a document. I'm sure we are not the only agency nearly driven to dementia with these kind of Flash font related issues. If anyone else out there shares our anguish please speak up, we need to convince Adobe to include proper font management in the next Flash IDE. And on the offchance that anyone has found a funky solution to this most annoying of problems, I will at the very least buy you a case of your favorite beer. And if anyone has any insights to how this could be pulled off with JSFL I would be very interested to discuss. OK anyone that made it this far thanks for listening to my ranting. Maybe we're the only Flash agency lame enough to be so badly affected by such font problems coz I don't really see this discussed anywhere, or maybe there's some really slick or simple solution that everyone else is using...but I'm betting not. In which case it seems like an extension that could fix this would be a *really* shit hot item for someone to develop and offer to the Flash community as a whole. Clark Slater www.bayinteractive.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] Can You Extend a Swc Component?
Not one comment? I know someone else has tried this also. Mike Chambers, what's the official word? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shaw, Matt (MTVN) Sent: Wednesday, April 05, 2006 10:48 AM To: Flashcoders mailing list Subject: [Flashcoders] Can You Extend a Swc Component? I'm trying to use a component's intrinsic class as a super class. I have a component installed. I unzipped the .swc files and stole the intrinsic classes so I could get proper code checking in Eclipse. This works fine. Then I attempted to extend one of the intrinsic classes. Flash compiles with no complaints but an instance of my subclass doesn't actually seem to inherit anything from the super class. If I delete the intrinsic classes, Flash will compile, with no complaints, and then inheritance works! It seems that the compiled aso intrinsic class satisfies the compiler. If I then delete my aso cache, then the Flash compiler complains it can't find the super class. I tried all sorts of weird things in-between each of these steps to make the compiler happy but maybe I'm not supposed to be doing this in the first place. And no, I'm not going to touch prototype. Thanks, Matt ___ 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] Can You Extend a Swc Component?
I'm trying to use a component's intrinsic class as a super class. I have a component installed. I unzipped the .swc files and stole the intrinsic classes so I could get proper code checking in Eclipse. This works fine. Then I attempted to extend one of the intrinsic classes. Flash compiles with no complaints but an instance of my subclass doesn't actually seem to inherit anything from the super class. If I delete the intrinsic classes, Flash will compile, with no complaints, and then inheritance works! It seems that the compiled aso intrinsic class satisfies the compiler. If I then delete my aso cache, then the Flash compiler complains it can't find the super class. I tried all sorts of weird things in-between each of these steps to make the compiler happy but maybe I'm not supposed to be doing this in the first place. And no, I'm not going to touch prototype. Thanks, Matt [Resent because of list issues] ___ 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] Can You Extend a Swc Component?
I'm trying to use a component's intrinsic class as a super class. I have a component installed. I unzipped the .swc files and stole the intrinsic classes so I could get proper code checking in Eclipse. This works fine. Then I attempted to extend one of the intrinsic classes. Flash compiles with no complaints but an instance of my subclass doesn't actually seem to inherit anything from the super class. If I delete the intrinsic classes, Flash will compile, with no complaints, and then inheritance works! It seems that the compiled aso intrinsic class satisfies the compiler. If I then delete my aso cache, then the Flash compiler complains it can't find the super class. I tried all sorts of weird things in-between each of these steps to make the compiler happy but maybe I'm not supposed to be doing this in the first place. And no, I'm not going to touch prototype. Thanks, Matt ___ 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] A Tool to Inject AS to First Frame of SWF
I think in this case you need to teach a man to fish. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Giotta Sent: Thursday, February 16, 2006 10:28 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] A Tool to Inject AS to First Frame of SWF FlashVars is what we're using to set the clickthrough URL, however, the ads system is predefined to set the variable to clickTAG and some designers have been referring to the variable as clickTag. clickTag doesn't equal clickTAG... so I thought I could run an injection script to just insert a line to correct any variable name misspellings. ___ 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] Sandbox violation on local file (was AS3:Sandboxviolation on BitmapData.draw())
yes -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Tuesday, December 13, 2005 12:23 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Sandbox violation on local file (was AS3:Sandboxviolation on BitmapData.draw()) Is the Flash 7 SWF running in the Flash 8 player? - Original Message - From: Shaw, Matt (MTVN) [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, December 13, 2005 12:15 PM Subject: [Flashcoders] Sandbox violation on local file (was AS3: Sandboxviolation on BitmapData.draw()) I'm actually getting this error now in a Flash 7 swf with local files...a swf from folder A can't load another swf from folder A? *** Security Sandbox Violation *** Connection to file://...\swf\Library.swf halted - not permitted from file://...\swf\Other.swf - Original Message - From: JesterXL [EMAIL PROTECTED] Date: Dec 8, 2005 5:45 PM Subject: Re: [Flashcoders] AS3: Sandbox violation on BitmapData.draw() To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com I've had no problems converting a loaded PNG, using the docs example code no less. When the loader's done, you just cast it to a bitmap: var myBitmap:Bitmap = Bitmap(loader.content); addChild(myBitmap) - Original Message - From: Shaw, Matt (MTVN) [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, December 08, 2005 5:08 PM Subject: [Flashcoders] AS3: Sandbox violation on BitmapData.draw() In Flash 8.5 I don't recall getting any sandbox violations when running a local swf. However, I'm in AS3 and I can load a jpg that is in the same directory as my swf but get a Sandbox Violation when I attempt to pass that loaded jpg to BitmapData.draw() *** Security Sandbox Violation *** SecurityDomain 'file:///c://bin/Image3d-debug.swf' tried to access incompatible context file:///c://bin/mona.jpg' Any ideas? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3: Sandbox violation on BitmapData.draw()
In Flash 8.5 I don't recall getting any sandbox violations when running a local swf. However, I'm in AS3 and I can load a jpg that is in the same directory as my swf but get a Sandbox Violation when I attempt to pass that loaded jpg to BitmapData.draw() *** Security Sandbox Violation *** SecurityDomain 'file:///c://bin/Image3d-debug.swf' tried to access incompatible context file:///c://bin/mona.jpg' Any ideas? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Distort bitmap in flash 8?
The answer is still no... Frustrating eh? But this guy has some tricks up his sleeve... http://lab.andre-michelle.com/f7:%203d/3dimage.swf -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Burvill Sent: Wednesday, November 23, 2005 11:10 AM To: 'Flashcoders mailing list' Subject: [Flashcoders] Distort bitmap in flash 8? Quick question about Flash 8 (I'm still using Flash 7 and my trial has expired for 8)... Is it possible to actually distort a bitmap image now in the same way that you can distort a shape (modify - transform - distort)? I want to create a perspective look as though you are looking at a photograph that was placed on a table, with your eyes just above the edge of the table. Cheers. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Newbie AS3 question
Assuming the Game class is your root/stage class: Public class Game extends MovieClip { public function Game(){ var gameworld:MovieClip = new MovieClip(); //new GameWorld()? this.addChild( gameworld ); var game_bg:MovieClip = new MovieClip(); gameworld.addChild( game_bg ); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: Friday, October 28, 2005 1:08 PM To: Flashcoders mailing list Subject: [Flashcoders] Newbie AS3 question AS3 noob question ahoy! I'm reading the AS3 reference trying to get accustomed to the idea, but some things (though they look better) i don't really get right away :) Hence my feeling of incredible stupidity. I realise the AS3 in the reference is Flex-related, but in Flash IDE terms, how would i do something like this in AS3: var baseClip = _root.createEmptyMovieClip(gameworld,1); var backGround = baseClip.createEmptyMovieClip(game_bg,1); I get how much more practical myClip = new MovieClip(); looks, but i don't get how i connect a clip created this way with the traditional clip hierarchy. Is that out the window as well? The reference describes |DisplayObjectContainer.addChild(), but i'm guessing this doesnt really count for how it'll work in the Flash IDE? Any helpful hints at what the future holds? :) | - Andreas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Newbie AS3 question
Avoiding the word this is to avoid easy to understand code It tells you that a variable is not a local variable but a important one that's gonna be around to a while ;] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bradley Sent: Friday, October 28, 2005 2:54 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie AS3 question On Oct 28, 2005, at 1:55 PM, Shaw, Matt wrote: Assuming the Game class is your root/stage class: Public class Game extends MovieClip { public function Game(){ var gameworld:MovieClip = new MovieClip(); //new GameWorld()? this.addChild( gameworld ); var game_bg:MovieClip = new MovieClip(); gameworld.addChild( game_bg ); } What I don't get is why it needs this.addChild instead of just addChild. I've been sick of the keyword this for a long time and have since avoided it in AS2. Any reason that it needs to be back in for AS3? - Jon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] tracking inactivity
You need 2 equal signs... if (this.time==this.stillFor) { -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alistair Miller Sent: Wednesday, October 26, 2005 11:48 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] tracking inactivity You are setting a value here rather than comparing if (this.time=this.stillFor) { change to if (this.time =this.stillFor) { Ali -Original Message- From: Matt Ganz [mailto:[EMAIL PROTECTED] Sent: 26 October 2005 16:44 To: Flashcoders mailing list Subject: [Flashcoders] tracking inactivity hi. i'm trying to record when there's been inactivity in my site. i got this code from the archive but don't understand where it's going wrong. for example, i set it to trace out if the mouse has been inactive for 10 seconds, but instead i get this message right away. does anyone see anything out of place? thanks. -- matt. this.stillFor = 1; // 10 seconds this.startTime = getTimer(); this.onMouseMove = function(){ this.time = 0; this.startTime = getTimer(); trace('Starting timer again'); } this.onEnterFrame = function(){ this.time = getTimer()-this.startTime; if (this.time=this.stillFor) { this.time = 0; this.startTime = getTimer(); trace('mouse has been still for 10 seconds!'); } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Dyson -- the cleaner that doesn't lose suction. http://www.dyson.com *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] serialize object
Take a look at the XML-RPC standard. It could give you some ideas for serializing object hierarchies into text. It only supports common data types since it supposed to transcend languages, but you could build in some smarter class instantiation. http://xmlrpc.com http://sf.net/projects/xmlrpcflash Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Florian Metzger - Neodelight Sent: Tuesday, October 25, 2005 11:50 AM To: flashcoders Subject: [Flashcoders] serialize object i want to serialize the shared object and dump it into a text file and later deserialze the shared object from that text file. does anybody have a script or class for that ? if not, i'll write one... does anybody else need stuff like that ? flow motion ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders