Make a movie clip and place it in the library, with a Linkage name of "Dot".
On the main timeline, in the actions layer, add the following code.
Code:var len = slides_mc.totalFrames; var offX = 20; for (var i = 0; i < len; i++){ var dot = new Dot(); dot.y = 550; dot.x = offX; offX = offX + dot.width + 4; dot.num = i + 1; dot.addEventListener(MouseEvent.CLICK, goDirect, false, 0, true); addChild(dot) } function goDirect(evt:MouseEvent){ var num = evt.currentTarget.num; slides_mc.gotoAndStop(num); if (transitionOn == true) { fl_doTransition(); } if (pageNumberOn == false) { slideNumber_txt.text = ""; } else { slideNumber_txt.text = String(slides_mc.currentFrame + "/" + slides_mc.totalFrames); } }




Reply With Quote