PDA

View Full Version : {FMXPro} target root from embedded MC



freshmint
February 24th, 2005, 02:02 PM
I have a movie clip embedded in a scroll pane on level 2 of a multi-.swf project. I am trying to target the root movie to load another .swf (a video player window) from buttons inside the embedded MC. the buttons work on the external .swf but not when loaded onto the main timeline.

i have tried on the button itself:

on (release) {
_root._root.loadMovieNum ("vidPlayer.swf", 4);
}

on (release) {
_parent._parent.loadMovieNum ("vidPlayer.swf", 4);
}

on (release) {
_root._root.createEmptyMovieClip ("container", 4)
loadMovie ("vidPlayer.swf", "container");
}

and also on an action layer:

but1.onRelease = function () {
_root._root.loadMovieNum ("vidPLayer.swf", 4);
}

any ideas???

mpelland
February 24th, 2005, 02:12 PM
i would try with only one _root. unless you specify not to... there is ever only one root.

on (release) {
_root.createEmptyMovieClip ("container_mc", getNextHighestDepth());
loadMovie ("vidPlayer.swf", _root.container_mc);
}
that should create a movieclip called container_mc and drop your other swf into it


I have a movie clip embedded in a scroll pane on level 2 of a multi-.swf project. I am trying to target the root movie to load another .swf (a video player window) from buttons inside the embedded MC. the buttons work on the external .swf but not when loaded onto the main timeline.

freshmint
February 24th, 2005, 02:21 PM
Its always just so simple isnt it...
thanks a million