Does class Tiles extend MovieClip?
You'll need a linked MC for Tiles, as well as one for each class that
extends Tiles
On Apr 2, 2006, at 11:49 AM, Michael Kønig wrote:
I am making a tilebased game where each tile is an individual class
that inherits from the Tile class. I have a MC in the library for
each type of tile whcih contains graphics. I have linked each MC in
the library directly to its class in the Linkage panel form the
library so I can export them directly to my stage.
I have a issue with a class that I have showen below. I want to be
able to use the MovieClip class methods in my class - I thought
that would be taken care of when I linked my MCs directly throught
the Library. But its not and I cant wrie gotoAndPlay() in my
handleTileHit method. How do I do that
class Money extends Tiles{
var info:Object
var walkable:Boolean
var containsMoney:Boolean
function Ladder(){
walkable = true
containsMoney=true
}
function handleTileHit(){
if(containsMoney){
this.gotoAndPlay
("captured")
containsMoney=false
}
}
}
Michael
_______________________________________________
[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