6 Replies - 7065 Views - Last Post: 18 July 2008 - 02:07 PM

#1 cadeownz   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 31
  • Joined: 12-July 08

Moving button link to frame 1

Posted 17 July 2008 - 02:48 AM

Hey,
I have a moving button and when I put my mouse over it it should go back to frame one but instead restarts the animation. Any Help?
on(rollOver){
	gotoAndstop(1)}

see the "gotoAndstop(1)}" should make it go to frame one right? wrong. iv tryed it with changing the name of the frame 1 and doing "gotoAndstop(FrameOne)}" but still no luck i think it has to do with the button frames. since it goes to frame 1. im thinking that it goes to frame 1 of the button therefor restarting the animation. so yeah anyway of it going to frame one of the actual game??
thanks in advance..
EDIT:
yep it goes back to frame 1 of animation. so i need it to go back out of the button/movie frames and back into the real frames of the game. the first frames and then go frame 1 from there...

This post has been edited by cadeownz: 17 July 2008 - 02:59 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Moving button link to frame 1

#2 Trogdor   User is offline

  • D.I.C Addict
  • member icon

Reputation: 15
  • View blog
  • Posts: 627
  • Joined: 06-October 06

Re: Moving button link to frame 1

Posted 17 July 2008 - 05:16 AM

You are posting this in the wrong forum.
Find a flash/actionscript forum somewhere, you might actually get help there.
Was This Post Helpful? 0
  • +
  • -

#3 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Moving button link to frame 1

Posted 17 July 2008 - 12:00 PM

Moved to flash and actionscript :)
Was This Post Helpful? 0
  • +
  • -

#4 BetaWar   User is offline

  • #include "soul.h"
  • member icon

Reputation: 1695
  • View blog
  • Posts: 8,592
  • Joined: 07-September 06

Re: Moving button link to frame 1

Posted 17 July 2008 - 12:52 PM

try:

on(rollOver){
	_root.gotoAndstop(1);
}



Hope that helps.
Was This Post Helpful? 0
  • +
  • -

#5 cadeownz   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 31
  • Joined: 12-July 08

Re: Moving button link to frame 1

Posted 17 July 2008 - 09:02 PM

Hey, i have a button that is moving and it has a code so that when ur mouse goes over it should go back to frame one of the game. but it goes back to frame one of the animation. any way of making it got to frame one of the actual game? heres the code...
on(rollOver){
	_root.gotoAndstop(1);
}

Thanks in Advance
Was This Post Helpful? 0
  • +
  • -

#6 BetaWar   User is offline

  • #include "soul.h"
  • member icon

Reputation: 1695
  • View blog
  • Posts: 8,592
  • Joined: 07-September 06

Re: Moving button link to frame 1

Posted 17 July 2008 - 10:27 PM

You know that Flash/Actionscript has its own forum right? (I think so since you posted this topic: http://www.dreaminco...wtopic57801.htm )

Try placing the exact path to the movieclip that is holding the game after the _root. postion (the movieclips that are holding it need to have instance names, and you need to point at them.

So, if I had a movieclip in _root with the instance name of game and wanted it to go to frame 1 it would look like this:

_root.game.gotoAndStop(1);



For more help, please post in the other thread you made on this exact same problen, or better yet [Mod Merge].

Hope that helps.
Was This Post Helpful? 0
  • +
  • -

#7 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Moving button link to frame 1

Posted 18 July 2008 - 02:07 PM

Merged :)

Oh, and it was me who moved it here, they didn't already find it ;)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1