This content has been marked as final. Show 5 replies
I doubt you'll get many people to download a zip for you... but I'll say
this, it sounds like a standard beginner problem of using _root references
in your clips. When a clip loads another clip, root changes. It's best to
just not use it ever. It's much better to store a referece to 'this', and
use it. Or use the hierarchy but avoid _root - use this._parent, etc.
Another suggestion is to use a singleton helper/utility class. Instantiate
it in your main 'nav' movie, and store a ref to that movie in the class.
Other movies can then get an instance of the singleton and use the stored
Adobe Community Expert
Thanks for the reply.
Yeah, I know the ZIP is a stretch, but merely pasting code probably won't cut it....
I've looked for some Singleton info, and I'll follow up on that to gain knowledge. That's a new concept to me. Any easily understood tutorials or sources on this, or on hierarchies and pathing that you recommend?
you can try adding
this._lockroot = true;
in your swfs that load into your main swf. that has a fair chance of solving your problems.
It works now - I just had to resolve the pathing of my external graphics to "Parent", not the various "Children," but "lockroot" kept the scripting working in each Child. :-)
I had hoped for all of the external links for graphics and other linked children to be local for each Child where they are called, but alas "no" (for the moment). It won't kill me on this small project.
I know, 'don't use _root.' These portfolio galleries are not really that dificult to do - once I get one working. I can just pour the actual graphics in. For now, I just want this thing to work. In the near-future, I need to learn AS better and become a more hygenic programmer (like I am with HTML, CSS, etc.)!
I guess I'm not far enough along to use the Singleton method, or to understand what some of its detractors are talking about. It looks kind of scary to my neophyte eyes. :-)
Thanks for your help guys.