[MX] .root problem

Hi

Ive just followed the tutorial about creating a full flash site using root. I got that working fine.

My problem occurs when i want to use tellTarget in my menu system as well.
The movie looks for the actions contained in the mouse overs of the menu in the main movie.

This is the error message i get:

Target not found: Target=“/newsButt” Base=“_level10.contents.newsButt”

Basically the structure at the moment is

The main movie
The menu is an .swf clip thats imported using .root (this contains tellTarget animations as mouseOvers, and then when the user clicks on something to load another .swf containing the new information)

Is this going about it the wrong way? Is there an easier way? Do I need to completely redesign my site?

Thanks for any assistance

~RyanBigFish

OK i think ive found half of the solution
instead of using:

on (rollOver) {
tellTarget (“/newsButt”) {
gotoAndPlay(“start”);
}
}
on (rollOut) {
tellTarget (“/newsButt”) {
gotoAndPlay(“end”);
}
}

Ive changed it to

on (rollOver) {
_root.newsButt.gotoAndPlay(“start”);
}
on (rollOut) {
_root.newsButt.gotoAndPlay(“end”);
}

This has stopped the error messages coming up, but it still won’t actually play the animations in newsBut

Any ideas?t

Did you give instance names? Try this:

on (rollOver) {
_root.newsButt.gotoAndPlay("start");
trace (_root.newsButt);
}

If it doesn’t return anything in the output window, it means that either the path is incorrect, or you haven’t given an instance name to your clip.

pom :slight_smile: