var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); ns.client = this; ns.play("Surface3.flv"); var vid:Video = new Video(); vid.attachNetStream(ns); addChild(vid); vid.x = 114; vid.y = 40; function onCuePoint(infoObject:Object):void { var key:String; for (key in infoObject) { trace(key + ": " + infoObject[key]); } trace("-----------------> " + key + " <---------- is done now"); trace(" "); name_txt.text = infoObject["name"]; time_txt.text = infoObject["time"]; if (infoObject["name"] == "startToStand") { Message_txt.text = "This is where she begins to stand up... The pause() method was called. Click the blue button to resume()."; ns.pause(); } else if (infoObject["name"] == "startArmLift") { Message_txt.text = ("She lifts her arms, slowly, expansively... Click the blue button to resume() again. Note: Cue points are NOT covered in Adobe CS3 Web Workflows textbook."); ns.pause(); } else if (infoObject["name"] == "startTurnLeft") { Message_txt.text = ("She turns to her left, about 90 degrees... Note: The pause() method was not called at this 3rd and last cue point."); } } stopGo_btn.addEventListener(MouseEvent.CLICK, stopGo); function stopGo(evt:MouseEvent): void { ns.resume(); }