I’m trying to gotoAndPlay using AS3 in a certain frame inside a symbol, my target frame is inside another symbol which is “Carrera” (class name). Both symbols where placed on the scene by dragging from the library.
I’ve tried with:
MovieClip(carrera).gotoAndPlay(1);
Error Output:
TypeError: Error #1034: Type Coercion failed: cannot convert carrera$ to flash.display.MovieClip.
at fondoUcreativa/frame500()
Also tried with:
carrera.gotoAndPlay(1);
Compiler Error:
Symbol 'fondo Ucreativa', Layer 'Layer 2', Frame 500, Line 4 1061: Call to a possibly undefined method gotoAndPlay through a reference with static type Class.
To use the method “gotoAndPlay” your Carrera class must extends MovieClip.