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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

Reply via email to