Hi
I’m trying to build a simple slot machine. I’ve made a class SlotMachine, a class SlotReel. I create the reels instances inside the SlotMachine class and they appear on stage. But when I try to add a button it won’t appear. Here is the relevant code inside the SlotMachine class:
private var spinButton:SimpleButton = new SimpleButton();
public function SlotMachine() {
this.addChild(spinButton);
spinButton.addEventListener(MouseEvent.CLICK, this.spinSlotMachine);
spinButton.x=spinButton.y=0;
}// constructor ends
This does not return any errors, but the button doesn’t appear. I work on Flash CS4. Thanks in advance!