Is there any reason why you aren't porting over the Thingy class from AS2 to
AS3? It might be easier to rewrite the class using AS3.
Nick
On 4/6/07, Michael Mudge <[EMAIL PROTECTED]> wrote:
I've got an AS 2.0 (Flash 8) SWF that creates a class, and traces a
property on that class... Something like this:
foo = new Thingy();
trace(foo.test);
All the class does is initialize that property; something like this:
class Thingy {
public var test:String;
public function Thingy() {
test = "hello";
}
}
This is pretty basic stuff -- and it works as expected. When run, it
simply traces "hello". I then create an AS3 / Flash 9 app that loads
the aforementioned SWF... Something like this:
As2thing = new Loader();
addChild(As2thing);
As2thing.load(new URLRequest("as2thing.swf"));
Then suddenly, as2thing.swf doesn't quite behave the same; the Thingy's
constructor doesn't get called -- it traces "undefined" instead. Any
idea why?
- Kipp
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com