here’s a part of my code
var youtubeID:String="zUFrX2pY83Q";
var Movie1:YouTube=new YouTube(youtubeID);
Movie1.x = 180;
Movie1.y = -225;
Gallery_Bg.addChild(Movie1);
how to put a “if” statement that check whether if(Gallery_Bg.contains(Movie1));???
i can’t put like this “if(Gallery_Bg.contains(Movie1));” because Movie1 is not a globla variable since it needs a the “new” keywords (new YouTube(youtubeID)) for it to generate a new one everytime i open a new video…
can anyone answer me how to check?