thanks, a lot,
extending for sure, thsi helped
MW
----- Original Message -----
From: "Janis Radins" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Tuesday, August 01, 2006 4:08 PM
Subject: Re: [Flashcoders] strong typing, attachMovie
that is because attachMovie returns MovieClip.
First of all dont forghet to extend MovieClip in those classes.
A simple workaround would be:
var myPlayer:player = player (myWorld.attachMovie("playerID", "playerMC",
10,{_y:220}));
2006/8/1, Martin Weiser <[EMAIL PROTECTED]>:
Hello,
i got little hasel, when attaching movie from library linked to some
class,
into movieclip attached line above, the typing shows error:
var myWorld:world = this.attachMovie("worldID", "worldMC", 100);
var myPlayer:player = myWorld.attachMovie("playerID", "playerMC",
10,{_y:220});
not possible with myPlayer:player , why
thanks in advance
Martin
_______________________________________________
[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
_______________________________________________
[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