Groups | Blog | Home
all groups > flash actionscript > august 2006 >

flash actionscript : Output error trying to use Classes


wwscoper
8/16/2006 8:15:50 PM
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.
crazyone
8/17/2006 12:58:17 AM
[quoted text, click to view]

I don't know about 'Flade', but so far as I understand.. What is
'Vector'? I think that contains two or more variables as coordinates of
vector, so you give to many vars to your
AddThis Social Bookmark Button