Be a Supporter!

Is this possible?

  • 580 Views
  • 4 Replies
New Topic Respond to this Topic
Ghoul-5
Ghoul-5
  • Member since: Jul. 31, 2005
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Is this possible? 2006-12-17 08:26:45 Reply

Hello everyone, i wanted to ask is it possible to make such a thing:

There are 3 movieclips let's say "mc1", "mc2", and "mc3".
Movieclip "mc3" is inside both "mc1" and "mc2". Now is there a way to make "mc3" go to different frames depending on the moviclip it is inside?

For example it goes and stops to frame 1 in "mc1" but it does go to frame 2 if it's inside "mc2"..


THE CAKE IS A LIE

UnknownFury
UnknownFury
  • Member since: Aug. 10, 2005
  • Offline.
Forum Stats
Member
Level 26
Programmer
Response to Is this possible? 2006-12-17 08:28:38 Reply

I don't have a clue what your talking about but if it is inside mc1 the code is:

_root.mc1.mc3

and then whatever you want and for mc2:

_root.mc2.mc3

Ghoul-5
Ghoul-5
  • Member since: Jul. 31, 2005
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to Is this possible? 2006-12-17 08:37:08 Reply

yes i know that, i need a script that would be like:

If (the "outer" movieclip in which this "inner" movieclip is placed is instanced named "mc1" ) {
GoToAndStop(2);
} else {
If (the "outer" movieclip in which this "inner" movieclip is placed is instanced named "mc2" ) {
GoToAndStop(3);
}
}

Of course this is just an example i dunno if it is possible to detect mc isntance names, maybe there are other ways to get the effect..


THE CAKE IS A LIE

West-End-Pro
West-End-Pro
  • Member since: Feb. 15, 2006
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Is this possible? 2006-12-17 08:45:59 Reply

if(_root.whatever._currentframe == #){
whatever.gotoAndStop(#);
}

Replace # with the frame numbers..

Ghoul-5
Ghoul-5
  • Member since: Jul. 31, 2005
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to Is this possible? 2006-12-17 08:50:44 Reply

At 12/17/06 08:45 AM, West-End-Pro wrote: if(_root.whatever._currentframe == #){
whatever.gotoAndStop(#);
}

Replace # with the frame numbers..

Hmm, i didnt knew the "_currentframe" script, i think this can be used to get the effect i need, Thanks !


THE CAKE IS A LIE