hi
i have a problem
on the secound frame i collect objects all goes well, i do see the text how many item i have to collect more
on the fourth ihaea nother items, i can collcet them but the text is mising , dont tellme how many items i have to collect more
the objects are link to the invetoryitems on the base class
thisis my invetoryitem class
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.media.Sound;
public class InventoryItem extends MovieClip
{
public function InventoryItem()
{
// constructor code
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, mouseClickHandler);
}
private function mouseClickHandler(e:MouseEvent):void
{
this.removeEventListener(MouseEvent.CLICK, mouseClickHandler);
this.buttonMode = false;
Main.instance.insertToInventory(this);
var s:Sound = new button4();
s.play();
//addBubbles(e.currentTarget);
}
/*private function addBubbles(e:Object):void
{
var xx:Number = e.x;
var yy:Number = e.y;
var bubble:ballg = new ballg();
bubble.x = xx;
bubble.y = yy;
e.parent.addChild(bubble);
bubble.gotoAndPlay(1);
}*/
}
}
do i need to add something on my invetoryclass?
Thank you
