This content has been marked as final. Show 8 replies
Another real world example:
var d:Date = new Date();
var timestr:String = d.getHours()+":"+("00"+d.getMinutes()).substr(-2);
// timestr has minutes formatted with leading 0
// eg: at 1 minute past mid-day, timestr will read 12:01
After pressing code-tidy:
var d:Date = new Date();
var timestr:String = d.getHours()+":"+"00"+d.getMinutes().substr(-2);
// timestr has "00" prepended to minutes
// eg: at one minute past midday, timestr will be 12:001
(Although actually, it strips the () for new Date(); to new Date ; also)
Code tidy is the "Auto format" button when you are in the actionscript window. And, as I say in the post, I think this is specific to my machine - a corrupt installation, perhaps - rather than a general bug in Flash. However, I can replicate those problems 100% of the time on my machine.
I have tried all the channels that are available to me (that I know of) so I am getting kinda desperate. If it's any help, my Flash CS3 is quite buggy in any case and will crash out horribly about twice a day. So far, I have uninstalled all previous versions of flash, uninstalled all previous plugins, re-downloaded and reinstalled CS3 Pro and STILL get the exact same dangerously buggy behaviour.
Basically, I want to know if this has occurred anywhere else, if there is a likely culprit in terms of corrupt dlls and how to fix my installation.
I'm not sure how anyone can help. I copied your code, put it into a new Flash file, used Auto Format, and nothing changed. If Flash is crashing so much on your machine, I'd venture to guess the OS or Registry is slightly screwed up. It isn't necessarily a Flash DLL problem. I think you'll have a hard time finding help for your specific registry issues on this forum. Taking a desperate chance you might try a general tech help forum like fixya.com
Well, yes, I think you're right about the problem, but I would have thought an Adobe Flash forum would be more likely to have the knowledge about what Adobe Flash might rely on and what might need to be fixed!
FYI, I have (on your recommendation) done a search at Fixya.com and found ... absolutely nothing that could be relevant. There are only references to Flash plugin problems.
ANY pointers on how to sort this would be useful as I am starting to run out of options - I have submitted bug reports, support requests and so on via the Adobe website and received nothing. I have searched Adobe technotes and I have tried (and failed) even to find a number where I can get assistance from an engineer in Adobe.
I suspect that a total clean out of my registry for Flash related items would be a good start, and I would have thought Adobe have technotes on this, but again, I cannot find them.
Sorry if I'm being clueless, but I am a freelancer and dependent on Flash CS3 for my paid work. I need to find a solution and would even pay for it if I knew it would fix it.
The thing is, I don't know where to look...