1 // testcase for gotoAndXXXX(frame-label) when invoked as AS function
3 .flash bbox=800x600 filename="gotoFrameLabelAsFunction.swf" version=6 fps=10
14 this.onEnterFrame = function() {
16 if (_root.framecount==10) {
17 check_equals(_root._currentframe, 5);
22 // the "_root." part is important!
23 _root.gotoAndPlay("dest");
29 trace("reached label 4 (wrong)");
36 trace("reached label 5 (correct)");
42 trace("reached label 6 (wrong)");