Monday, September 7, 2009

as3, error #2109 if frame labels not working, use frame numbers

ArgumentError: Error #2109: Frame label page1 not found in scene Scene 1.

When i use frame labels, to try and jump to different pages on the timeline i get the above error, or in other circumstances, (like from inside a movie clip) nothing happens at all (it dosn't have error, just dosnt work.)

when i use frame NUMBERS, everything works fine. is my syntax or quoties wrong, i dont know.

Dosn't work:
gotoAndStop("page1");
Works:
gotoAndStop(76);

i love flash. not.

DER! THE PROBLEM WAS THAT I TURNED OFF THE VISIBILITY OF THE LAYER THAT HAD THE FRAME LABELS ON IT, (AND IN MY PUBLISH OPTIONS I UNTICK 'INCLUDE HIDDEN LAYERS'.

SO WITHOUT THE LABLES LAYER PUBLISHED, NO FRAME LABELS EXIST TO GO TO...