Jump to content


Resetting movieclips


  • You cannot reply to this topic
5 replies to this topic

#1 cng

    Young Padawan

  • Members
  • Pip
  • 55 posts

Posted 03 August 2006 - 07:23 PM

Okay, this is what it looks like: On stage, there is a movie clip (a). In that movie clip, there are 2 frames with stops on each. Movie clip (:) is on another layer inside movie clip (a) and it is the same for both frames. After clicking a button in movie clip (:mellow: I want the movie clip b to play itself and same with a few other movie clip in movie clip (a). This is the code:

on (release) {
	_root.a.b.gotoAndPlay(5);
	_root.a.c.gotoAndPlay(2);
	_root.a.d.gotoAndPlay(2);
}

The problem? After © plays, it goes back to frame 1 of (a), which resets the movie clip and the changes made in ©.

What do I want? I want so even if the movie clip goes back to frame 1 of (a), it will keep the frame it played within itself ©. This sounds really confusing and even me reading this is confusing sometimes but I think is the best I can do.

#2 cng

    Young Padawan

  • Members
  • Pip
  • 55 posts

Posted 03 August 2006 - 09:37 PM

I avoided the problem using some other way to do the actions.

But, now, I have new problem yet again. I have 5 buttons. How do I make it so you cannot use one of the buttons two times in a roll?

Edited by cng, 03 August 2006 - 09:37 PM.


#3 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 04 August 2006 - 03:50 AM

buttonName.enabled = false;


#4 Ben

    P2L Jedi Master

  • Publishing Betazoids
  • PipPipPipPip
  • 1,366 posts
  • Gender:Male
  • Location:VIC, Australia

Posted 04 August 2006 - 05:41 AM

View Postfunkysoul, on Aug 4 2006, 06:50 PM, said:

buttonName.enabled = false;
Even though this isnt my topic that helped me aswell ;) Kudos to you funky ;)

#5 cng

    Young Padawan

  • Members
  • Pip
  • 55 posts

Posted 04 August 2006 - 10:12 AM

If my buttons are in movieclips, do I have to do the full link?
_root.movieclip.buttonName.enabled = false;


#6 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 04 August 2006 - 10:18 AM

yes





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users