RE: [Flashcoders] Class Error Message

2006-01-16 Thread Howard Nager
When are you looking for this to happen: now = new Date(); trace (The Time is + formatTime(now)); If you want that to happen when you create a new instance of the class then slap it in the constructor. Also - you have an extra '}' in there at the end. -Original Message- From:

Re: [Flashcoders] Class Error Message

2006-01-16 Thread Andy Johnston
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;

Re: [Flashcoders] Class Error Message

2006-01-16 Thread PR Durand
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,

Re: [Flashcoders] Class Error Message

2006-01-16 Thread Chris Kennon
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;