-
Go create something, anything.
getHours Problem
whats up with this?
hours = getHours();
trace(hours);
comes back "undefined" everytime.
Please tell me im just stupid and not doing something right. I swear, every time I search for this, this is how its done... I know I can read... I promise I can.
HELP....
Please.
"All Men are created equal, but A.M.B.I.T.I.O.N, or lack of it, soon seperates them"
-
Senior Member
var aate = new Date();
var hours:Number = a.getHours();
trace(hours);
- The right of the People to create Flash movies shall not be infringed. -
-
Go create something, anything.
I havent tried that yet.... but assuming that works... why, why would that work rather than what I had before???
.
Thanks by the way cancer.
"All Men are created equal, but A.M.B.I.T.I.O.N, or lack of it, soon seperates them"
-
Senior Member
1. You have to declare a new Date object. getHours() is a method of the Date class.
2. Then you need to datatype the variable hours. You can use Number, uint or int.
That's it.
- The right of the People to create Flash movies shall not be infringed. -
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|