You need to be careful with references to objects or structs. I was looking at some old code the other day and I noticed I hadn't var'ed some local variables - very naughty of me. So I fixed the code but it no longer worked.
Flash has a lot of functions for creating and setting dates but you have to be careful using them. In fact it may be safer not to use them at all.
Consider this action script:
Say we have a simple flash file with an instance of a symbol on the stage (like a rectangle). The rectangle has an instance name and we want to change or display it's properties via action script.
Here's a screen shot of the stage and the instance properties.
What's wrong with this bit of code?
Well nothing as long as the page is viewed with a browser. However a cgi variable in your code may not exist if a spider rather than a browser looks at your site. This includes spiders like google. Your site may not be indexed by search engines if you don't handle CGI variables correctly.