bg_sprite.height = height_fc; } if(width_fc != 0) { bg_sprite.width = width_fc + 2; pole_sprite.width = width_fc; up_btn.width = up_btn.height = down_btn.width = down_btn .height = width_fc; } down_btn.y = bg_sprite.y + bg_sprite.height - down_btn.height - 1; poleStartHeight = Math.floor(down_btn.y - up_btn.y - up_btn.height); poleStartY = pole_sprite.y = Math.floor(up_btn.y + up_btn.height); //——————注册侦听器 //文本滚动与鼠标滚轮 scrollText.addEventListener(Event.SCROLL, textScroll); scrollText.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheel); //上滚动按钮 up_btn.addEventListener(MouseEvent.MOUSE_DOWN, upBtn); up_btn.stage.addEventListener(MouseEvent.MOUSE_UP, upBtnUp); //下滚动按钮 down_btn.addEventListener(MouseEvent.MOUSE_DOWN, downBtn); down_btn.stage.addEventListener(MouseEvent.MOUSE_UP, downBtnUp);
上一篇:Flash教程:制作随机画圆弧动画
下一篇:CSS教程:关于H1的使用技巧
|