Hi All,
In the following code my attempt at formatting the date returns this
to the output window:
//
**Error**
BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line
55: This statement is not permitted in a class definition.
now = new Date();
**Error**
: [EMAIL PROTECTED] on behalf of Chris Kennon
Sent: Mon 1/16/2006 6:11 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Class Error Message
Hi All,
In the following code my attempt at formatting the date returns this
to the output window:
//
**Error
A Simple hello class
that assigns a custom
message to a text field
based upon time of day.
**/
class com.bushidodeep.Hello {
private var width:Number;
private var height:Number;
private var stageHeight:Number = 300;
private var stageWidth:Number = 300;
private var theDate:String;
Hi Chris
At the end of your code you have this now = new Date(); outside any method
so flash doesn't know what to make with.
Those 2 lines
now = new Date();
trace (The Time is + formatTime(now));
seem to be here to test your formatTime method, but it has to be in
flash, not in the class,
Hi All,
Thanks, as most savvy programmers have figured this is a training
exercise, an I'm learning quite a bit.
Respectfully,
Christopher Kennon
Principal Creative Director -Bushidodeep
www.bushidodeep.com
__
Knowing is not enough, you must apply;
5 matches
Mail list logo