PDA

View Full Version : "target not found" in imported swf


jupiter759
03-27-2003, 08:41 PM
Hey there,

I have this smaller swf-file that I import in a main swf-file. this all works, as does the smaller one function perfectly when it's not imported.

In this smaller swf I have a button with following actionscript

on (rollOver) {
tellTarget ("/menu") {
gotoAndStop ("show");
}
}


When I try it in the main movie, it tells me

Target not found: Target="/menu" Base="_level0.portfolio"

Does anybody know what I have to do with this?
I appreciate any suggestions,

bluepoint
03-28-2003, 08:59 AM
I think that it is a question of the route . If you load swf to instance of Movie named "content" in main.swf , you should do like this:
on (rollOver) {
tellTarget ( _root.content.smaller.menu)
{gotoAndStop ("show");
}
} because when you load swf in, "/munu" means _root.menu,in fact, it's in _root.content.smaller.menu. It is helpful to you to hope .;)

jupiter759
03-31-2003, 01:39 AM
Thanks a lot man, I found however that by changing the whole structure of the thing, it worked out better in several ways, but still thanks a lot