_root _parent?

Okay, i’m working on this video player for my site, so basically how it will work (hopefull) is that you’ll click a button on the left side, and it calls the swf into the player, which is more looks than actions, i actually have the actually play…pause and command buttons on each individual .swf which is being imported.

I am using

on (release) {

vcontents.loadMovie("dancrash2.swf");

}

to bring the movie clip into the player, and

on (release) {
_root.dan.play();
}

type controls, to control the actual movies with play, pause, next, back, and so on…

when i test the movies individually the controls and everything work okay, but when i import them into the player the play…pause, and other controls no longer work…

is this because of a _root. _parent. type thing? or what? i don’t know i have tried, but i am not getting anythign acomplished, any ideas would be helpful, thanks.

Yes, when a movie is loaded into another the _root will become the _root of the host movie. So to fix it you should change

[AS]
on (release) {
_root.dan.play();
}[/AS]
to
[AS]
on (release) {
dan.play();
}
[/AS]

=)

Hey, thanks…everything is okay now. i can’t believe it was that simple.

For a little more info about relative addressing: http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.htm

pom :slight_smile: