0 Replies Latest reply on Aug 16, 2006 1:15 PM by

    Output error trying to use Classes

      I downloaded and installed the classes that come with "Flade" I am trying to learn how to use the classes that comes with it.

      In my actionscript I have:

      import org.cove.flade.util.Vector;
      import org.cove.flade.util.Line;

      var p1:Vector = 5;
      var p2:Vector = 40;
      var x:Number = 10;
      var y:Number = 40;

      var MyLine:org.cove.flade.util.Line = new org.cove.flade.util.Line(p1:Vector, p2:Vector);
      var MyVector:org.cove.flade.util.Line = new org.cove.flade.util.Vector(x:Number, y:Number);

      and the error that I get is:

      **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 9: ')' or ',' expected
      var MyLine:org.cove.flade.util.Line = new org.cove.flade.util.Line(p1:Vector, p2:Vector);

      Total ActionScript Errors: 1 Reported Errors: 1


      What am I missing here? And am I going about this the right way? Thanks for any help in advance.