This content has been marked as final. Show 3 replies
I don't know a whole lot about flash. Now my question would be: where does that actionscript go? I can't put it on the text field itself and when i put it on the frame itself, nothing happens when i run it.
> I don't know a whole lot about flash. Now my question
> would be: where does that actionscript go?
Heh, that's pretty important, isn't it? These basic questions are
likely going to be a stumbling block until you get to know the ropes. Even
if you knew where to put the code, it sounds like you're unfamiliar with the
concept of objects in the first place -- with the idea that the Date class
defines a particular kind of object that provides information about a given
> I can't put it on the text field itself and when i put it on
> the frame itself, nothing happens when i run it.
Something should definitely happen. You should see date information in
the Output panel, because of the trace() statement in there.
Here's what I suggest. It's not the quickest, easiest approach, but I'm
confident it's the approach that will give you the highest comfortable level
with programming in Flash. And then you'll be able to use not only the Date
class, but any other class in ActionScript, to meet your needs.
Read this article here ...
... and then read these articles here ...
Now, that's a lot of reading! But don't shy away from it. Using Flash,
especially for programming, you really need to read the "Owner's Manual,"
and those articles will get you started. When you're grounded in the basics
like where to put code, how ActionScript is organized, and so on, you'll
have very good footing. You'll be able to think to yourself, "Okay, I need
something to do with dates ... is there a Date class? Ah, there is!" And
then check its properties (characteristics), methods (things it can do), and
events (things it can react to).
Programming isn't easy. But get yourself acquainted with the
playing field first, and the rest follows.
stiller (at) quip (dot) net
Dev essays: http://www.quip.net/blog/
"Luck is the residue of good design."