stilllearning
March 16th, 2010, 05:55 PM
Hi,
I am an actionscript newbie, and I am trying to do something seemingly simple.
I have an actionscript file with a class defined, and I am trying to define an object for that class in another actionscript file but I keep getting a compile error that says type not found.
Here is what my code looks like
ABC.as
package{
......
public class ABC{
....
....
}
Paint.as
import ABC
package{
....
public class Paint extends Movieclip{
var abc:ABC; // throws an error
}
....
}
If someone could point me in the right direction that would be great.
Thank you,
Amrita
I am an actionscript newbie, and I am trying to do something seemingly simple.
I have an actionscript file with a class defined, and I am trying to define an object for that class in another actionscript file but I keep getting a compile error that says type not found.
Here is what my code looks like
ABC.as
package{
......
public class ABC{
....
....
}
Paint.as
import ABC
package{
....
public class Paint extends Movieclip{
var abc:ABC; // throws an error
}
....
}
If someone could point me in the right direction that would be great.
Thank you,
Amrita