View Full Version : function():Void{};
onsitus
May 25th, 2005, 04:35 AM
PROBLEM RESOLVED...Thank you.:rabbit:
I am using flash mx (6), and it doesn't seem to accept the above codes.
Is it just for flash mx 2004 and is there something similar for mx6?
:ponder:
senocular
May 25th, 2005, 06:33 AM
take out the :Void. That represents strict data typing, saying there is no return value for the function. That is only available in Flash MX 2004.
onsitus
May 25th, 2005, 09:45 AM
Ok, I downloaded the trial version of MX2004 and to try those codes.
blackboard.clearChalk = function():Void {
var cl = this._parent.chalkLine;
this.createEmptyMovieClip("chalkLayer", 0);
this.chalkLayer.lineStyle(cl.thickness, cl.color, cl.alpha);
this.drawings = [];
};
And I still get an error on line 1 for an opening bracket missing { and an unwanted closing one on line 6}. Any ideas why?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.