PDA

View Full Version : Stumped by simple targetting problem.



Asparagus
September 24th, 2005, 08:20 AM
OK, I'll try and explain this as simply as possible.

I have a .swf called "main.swf" and I've externally loaded another .swf into it called "portfolio.swf", this works fine and is simple enough.

In "portfolio.swf" I have a scrollpane that contains some buttons which have simple on (release) {_root.gotoAndStop("item01");} actions on. When I test the "portfolio.swf" by itself, it goes to the correct frame and everybody's happy. BUT...

When I test "main.swf", the buttons don't work. I've tried the small handfull of things I know, but can't get it to work. If anyone can help me, that would be great. I'm sure it's just a simple thing that will make me slap my forehead (a la Homer).

Phlashman
September 24th, 2005, 08:50 AM
Another targetting problem. OK.

Simply change it from _root.gotoAndStop to either the relative directory (maybe this._parent.gotoAndStop) or include the container (_root.my_container.gotoAndStop).

Hope that helps :D