stop(); label_txt.embedFonts = true; label_txt.html = true; label_txt.styleSheet = _parent.my_styleSheet; counter_txt.embedFonts = true; counter_txt.html = true; counter_txt.styleSheet = _parent.my_styleSheet; this.onRollOver = function() { block_bg.gotoAndStop(2); label_txt.setTextFormat(_parent.hoverfmt); } this.onRollOut = function() { block_bg.gotoAndStop(1); label_txt.setTextFormat(_parent.labelfmt); } /*//////////////////////////////////////////////////////////// FUNCTIONS AND VARIABLES FOR THE COUNTER ////////////////////////////////////////////////////////////*/ var cCount = 0; // current count var intervalId:Number; if (cSpeed == undefined) { cSpeed = 10; } //trace('iniBooks='+iniBooks); var totalBooks=0; function executeCallback():Void { //trace('from clip'); //if(cCount == cSpeed) { iniBooks = Math.round(iniBooks + cSpeed); //var totalBooks=totalBooks+iniBooks; //trace(totalBooks); counter_txt.htmlText = '

' + _parent.strSeperator(iniBooks,",") + '

'; _parent.executeCallback(); //cCount = 0; //} cCount++; } myInterval = setInterval(executeCallback, 1000); function startCounter() { counter_txt.htmlText = '

' + _parent.strSeperator(iniBooks,",") + '

'; //counter_txt.htmlText = '

' + _parent.strSeperator(_root.totalBooks,",") + '

'; //counter_txt.htmlText = '

aaa

'; } function startCounter() { counter.htmlText = '

' + strSeperator(123,",") + '

'; //counter.htmlText = '

aaa

'; counter._x = Math.round((Stage.width/2) - (counter._width/2)); }