PDA

View Full Version : paths to movies from within accordion component


martoons
05-05-2007, 01:21 AM
Hi. I am dense.
Hi. I've loaded an external swf into an accordion, but the internal nav code for the external swf isn't working.
the external movie has a slding menu system that works on its, but not when loaded into the accordion component. Is there a path i should prefix the code with? the internal code in the external swf is now prefixed with _root.
The rollover buttons in the loaded movie work, but not the sliding functionality. Below is the frame 1 code of the imported swf.

Any help or explaination will be very helpful.
Thanks.

Martoons

Code:

main.onRelease = function ()
{
_root.targetx = 0;
_root.script.gotoAndPlay("move");
}
;
clients.onRelease = function ()
{
_root.targetx = -400;
_root.script.gotoAndPlay("move");
}
;
partners.onRelease = function ()
{
_root.targetx = -800;
_root.script.gotoAndPlay("move");
}
;
hours.onRelease = function ()
{
_root.targetx = -1200;
_root.script.gotoAndPlay("move");
}
;

martoons
05-05-2007, 01:00 PM
Well, I'm gonna answer my own post here.
I added this code to the first frame of the loaded SWF and things seem to be working swimmingly.

this._lockroot = true


G