AS2 is full of mysterious crap, er bugs like this. It's what made Flash such a
pain at times. I am s loving AS3... not that it's without it's own quirks...
___
Joseph Balderson, Flash Platform Developer | http://joeflash.ca
If I have this on the flash timeline, (CS3 or Flash 8)
import test.Test;
var test:Test = new Test(this);
*test.init( );*
--
and then the class code has this
class test.Test
{
private var m:Model;
private var
untested suggestion?!...
On 23 Jun 2008, at 10:20, paul cunningham wrote:
If I have this on the flash timeline, (CS3 or Flash 8)
import test.Test;
var test:Test = new Test(this);
*test.init( );*
is test (the variable) being confused with test (the package) ?
my next step would be to try this
you should get compiler errors over this but did you import Model?
On Mon, Jun 23, 2008 at 8:24 AM, Paul Evans
[EMAIL PROTECTED] wrote:
untested suggestion?!...
On 23 Jun 2008, at 10:20, paul cunningham wrote:
If I have this on the flash timeline, (CS3 or Flash 8)
import test.Test;
var
Tr ythis
import test.Test;
// old:var test:Test = new Test(this);
var test:Test = new Test();
test.init( );
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
My first though is that you would have your class structure as:
/[ClassTest].fla
/test/Test.as
/test/Model.as
But that would give you a compiler error, because you're not importing Model. So
you must be using
/[ClassTest].fla
/test/Test.as
/Model.as
Here's the files I am using;
Because of the way everything in AS2 is centred around the MovieClip
class, in order to create any kind of MVC architecture, which I gather
you are trying to do, it's all about the MovieClip. You can have your
Model be an Object, but your View and Controller classes, and any
other visual
It's a rare bug that is unacknowledged by Macromedia/Adobe.
If you name the package folder that contains your class the same as your
class name (case doesn't matter), AS2 will behave like a dumbass. It
does randomly buggy behavior, and it's impossible to track down what it
is because there's
Also, I'm not sure what you are trying to do with 'this.clip = clip;',
but you cannot instantiate or associate a MovieClip inside an Object
(which Test is), and have successful access to its properties and
methods.
He's using composition, which is sometimes preferable to extending
MovieClip
9 matches
Mail list logo