Jump to content


Movie Clip Buttons


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

#1 Kai Fluegel

    Young Padawan

  • Members
  • Pip
  • 32 posts

Posted 03 October 2006 - 04:19 PM

As you can see from the title I have a problem with movie clip buttons, I've looked at the p2l database but I couldn't find anything that helped

Here is the actionscript which I've used on my home button
on(release){
	_root.gotoAndStop("Home", 1)
}

I have all my buttons in buttons_mc, each button has an instance name, for example, the Home buttons instance name is home_btn.

The syntax is correct but my button just doesn't work, obviously there is something i'm missing, if it helps i'll give someone the fla [that is if they would be kind enough to help]

Thanks in advance.

#2 Ben

    P2L Jedi Master

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

Posted 03 October 2006 - 04:28 PM

Do you realise that: _root.gotoAndStop("Home", 1) is trying to find the scene named Home? Remove the next parameter to make it link to frames.

#3 Kai Fluegel

    Young Padawan

  • Members
  • Pip
  • 32 posts

Posted 03 October 2006 - 04:37 PM

Yeah, I need it to link to my different pages, Home, About, Services ect..., I forgot to mention that ><

Also to link to frames I would need to use that labbeling thing right?

#4 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 03 October 2006 - 05:03 PM

you don't need the _root..

just use this one:
sceneTwo_btn.onRelease = function(){
 gotoAndPlay("sceneTwo", 1);
};


#5 Kai Fluegel

    Young Padawan

  • Members
  • Pip
  • 32 posts

Posted 04 October 2006 - 10:44 AM

View Postfunkysoul, on Oct 3 2006, 11:03 PM, said:

you don't need the _root..

just use this one:
sceneTwo_btn.onRelease = function(){
 gotoAndPlay("sceneTwo", 1);
};

Thanks a lot it works but its stopped the animation on my buttons now, I think i'll just take my buttons out of the movie clip now its too much hassle.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users