Hey guys, thanks in advance for any help, these forums are proving to be excellent sources of learning AS.
I recently changed the setup of my project from only having one SWF, to loading in my main SWF through a preloader. I’m facing a problem of scope.
My old code for targeting things no longer works. This is it.
if (this.parent.contains(Credits)) {
Credits.gotoAndPlay(120); CreditsText1.gotoAndPlay(120);
}
So my question is very simple.
What would I change this code to in order to target the exact same spot in my loaded SWF? I should add that all my code is in an external .as file, which is set as the DocumentClass for the loaded SWF.
I’ve tried both “this.parent.parent.contains” and “this.contains” Neither worked. I’m stumped.
Thanks again