home *** CD-ROM | disk | FTP | other *** search
- function go(pos, fin)
- {
- if(pos < 0)
- {
- pos = 0;
- }
- else if(pos > gauge_mc._width)
- {
- pos = gauge_mc._width;
- }
- n = Math.round(pos / segment) + 1;
- page_mc.page = n + " of " + pages;
- if(fin)
- {
- main.ip_timePause = false;
- main.fp_goPageSlide(n);
- setSlider(n);
- }
- else
- {
- main.ip_timePause = true;
- btn_mc._x = line_mc._x = pos;
- main.fp_goPageSlide(n);
- }
- }
- function setSlider(p)
- {
- page_mc.page = p + " of " + pages;
- if(!area_mc.active)
- {
- var pos = pages != 1 ? (p - 1) * segment : barWidth;
- btn_mc._x = pos;
- line_mc._x = pos;
- }
- }
- function setGauge(p)
- {
- gauge_mc._width = Math.min(p - 0.5,pages - 1) * segment;
- area_mc._width = gauge_mc._width + 5;
- }
- var barWidth = _parent.pos - _X;
- var main = _parent.main;
- var pages = main.ip_ptotal;
- var segment = barWidth / (pages - 1);
- gauge_mc.setMask(gauge_mask);
- line_mc.setMask(line_mask);
- bbar_mc._width = barWidth - 16;
- bright_mc._x = barWidth - 8;
- page_mc._x = barWidth - 5;
- new Color(page_mc).setRGB(_parent.colText);
- new Color(btn_mc).setRGB(_parent.colText);
- new Color(line_mc).setRGB(_parent.colText);
- if(pages == 1)
- {
- gauge_mc._width = barWidth;
- area_mc._width = gauge_mc._width + 5;
- btn_mc._x = line_mc._x = barWidth;
- }
-