problem on gotoAndStop on OO
here, I have one movieClip with class name EngLang. I found my movieClip on my stage and when I click on that movieClip , Actually, I need to go on frame no 10 but I got some errors
Call to possibly undefined method gotoAndStop
Warning:1060 Migration issue : The method gotoAndStop is no longer supported . For more information, see MovieClip.gotoAndStop()..
Why I am not triger to frame ? What was the cause ?
Language.as
package gallery{
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.display.Sprite;
import flash.text.TextField;
public class Language{
public var engLang:MovieClip;
//Constructorpublic function Language(){
engLang=new EngLang();
engLang.addEventListener(MouseEvent.CLICK,engLangClick);}
function engLangClick(event:MouseEvent):void{
gotoAndStop(10);
}
}}
main.fla in frame1
import gallery.*;
import flash.display.MovieClip;
import flash.text.TextFormat;
import flash.display.*;
var language:Language=new Language();this.addChild(language.engLang);
,