範例「bouncymenu」中的指令文字 Layer menu_MC Instance clip 中的指令: onClipEvent (load) { this_x = this._x; vx = 0; a = substring(_name, length(_name), 1)/2; b = 1.5; } onClipEvent (enterFrame) { vx = (vx+(_root._xmouse-this_x)*1/a)/b; this_x += vx; this._x = this_x; } ___________________________________ Layer Scripts, frame1中的指令如下: var names = new Array(6); names[0] = null; names[1] = "Sabrina's"; names[2] = "Latest"; names[3] = "New"; names[4] = "Actionscript"; names[5] = "Book"; for (i=1; i<=5; i++) { clip.duplicateMovieClip("clip"+(i+1), i); height = _root.clip._height+1; _root["clip"+(i+1)]._y = _root.clip._y+height*i; _root["clip"+(i+1)]._alpha = 65; _root["clip"+(i+1)].name = names[i]; _root.clip._visible = false; } stop (); __________________start here __________________