Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

tellTarget Probs

Community Beginner ,
Jul 06, 2008 Jul 06, 2008
Hi,
I have one of those last minute sites and I haven't been in Flash for awhile. I am trying to get a movie clip I placed on the main timeline to go to a frame and stop from an invisible button. The movie I am targeting is "Type" and the Frame is "Nav 2". Here is what I wrote. I am saving it as AS2 in Flash 8.

on (rollOver) {
tellTarget(Type.gotoAndStop="Nav 2");
}

Any help, I know it's simple but it's late and I haven't Flashed in a long time so my mind is mush.
TOPICS
ActionScript
516
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 06, 2008 Jul 06, 2008
unless Type is a child movieclip of the movieclip which has that attached code, you should probably be using _parent.Type:

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 06, 2008 Jul 06, 2008
That didn't work, here is the code for the invisible button I am using to trigger things that lives on the main timeline, "Book Meetings" is a frame on the main timeline (that part works). "Type" is the movie clip and "Nav 2" is the frame I want it to stop on:

on (rollOver) {
gotoAndStop("Booking Meetings");
}
on (rollOver) {
_parent.Type.gotoAndStop("Nav 2");
}

I know in theory it should work, I thought mine should work I know I am mush now but it needs to be done by morning.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 06, 2008 Jul 06, 2008
if Type is on the main timeline, remove the _parent prefix and retest.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 08, 2008 Jul 08, 2008
LATEST
name the invisible button (I'll use invisi)

on the main timeline enter this:

invisi.onRelease = function() {
gotoAndStop("Booking Meetings");
}

Making it happen on just onRollOver might be a little to quick... people might not expect to jump somewhere without having to click.

But, you can change the onRelease to onRollOver, copy and paste and change the labels and then onRollOut
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines