if you use date in this context MovieClip.prototype.age = new Date(); and you want incremental values, you should pass in some parameters like hour, minutes, seconds and milliseconds...check documentation on this...
As to the XML data being asynchronous, so you mean I don't actually have to use gotoAndPlay()? I can just start off with a stop(); and set up the event code?
that's correct...you certainly want to set up event handlers... On 3/27/07, Michael King <[EMAIL PROTECTED]> wrote:
Hello, Thanks for the response. So by using prototype, I could set the date on it, and at the very least get rid of the simple object I'm creating for the array, and just go directly to the array? Something like: MovieClip.prototype.age = new Date(); Or is there something else I need to do to make sure it has an increasing date with each loop? As to the XML data being asynchronous, so you mean I don't actually have to use gotoAndPlay()? I can just start off with a stop(); and set up the event code? I did it the way it is now because I need to use the code with two possible ways - an XML packet from a socket, or an XML request from a PHP script hitting a MySQL backend (this would facilitate "replaying" events, whereas the socket would be the live-events-as-they-happen version). Again, thanks for the response, I'm hoping I can keep this in Flash, as it presents a wonderful way to have multiple clients viewing the same data, with a much smaller effect on the server than other methods -- I also don't know C/C++ very well. :) Thanks, Michael King CSIRT - Developer Security Incident Response Group Humana Inc. E-mail: [EMAIL PROTECTED] "STANDS: Some Theoretical Acronym Not Described Sufficiently" "[p e r c e p t i c o n]" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 03/27/2007 01:43 PM Please respond to flashcoders@chattyfig.figleaf.com To flashcoders@chattyfig.figleaf.com cc Subject Re: [Flashcoders] actionscript/flash performance Hi Michael, one thing that stands out right away is the use of prototype...if i'm not mistaken, this will make these variables available to all movie clips...even ones that don't use the markers you're speaking of...the other thing is that loading of xml data is asynchronous, so you just burning cycles by looping this way...i would use set interval to manage the removal of the clips ...it's far more efficient... just my .02 The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information. _______________________________________________ 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