Button nested in a MC doesn't call the new scene

  • brainstorm
  • Born
  • Born
  • brainstorm
  • Posts: 1
  • Loc: Charleston, SC (USA)

Post 3+ Months Ago

Sorry that you get to read this same problem over and over. I have read several other posts about this issue, but they didn't work for me. So here is MY situation, and it is pretty simple.

I have a flash movie with a MC called "main_menus". In that MC are several MCs each containing respective button stuff. Let's just focus on one of those MCs. It's called "philo_button_clip". In that MC is a button. That button, on rollover starts some animation, and on release, should send the viewer to a new scene. It doesn't.

I know it's a _root issue but I can't make it work. Here is the script on that button instance:
PHP Code: [ Select ]
 
on (rollOver) {
 
   _root.main_menus.philo_button_clip.philo_menu.play();
 
   gotoAndPlay("Start");
 
 
 
}
 
on (rollOut) {
 
   play();
 
}
 
 
 
on (release) {
 
   gotoAndPlay("Coming Soon");
 
}
 
 
  1.  
  2. on (rollOver) {
  3.  
  4.    _root.main_menus.philo_button_clip.philo_menu.play();
  5.  
  6.    gotoAndPlay("Start");
  7.  
  8.  
  9.  
  10. }
  11.  
  12. on (rollOut) {
  13.  
  14.    play();
  15.  
  16. }
  17.  
  18.  
  19.  
  20. on (release) {
  21.  
  22.    gotoAndPlay("Coming Soon");
  23.  
  24. }
  25.  
  26.  

The rollover and rollout work, but the "on release" doesn't bring up the scene "Coming Soon" or any other scene as I get then ready.

Sorry to ask you guys to gothrough this again. But thanks just the same.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

where is "Comming Soon" ?
try
Code: [ Select ]
this.gotoAndPlay("Comming Soon");

or
Code: [ Select ]
_root.gotoAndPlay("Comming Soon");
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

without seein your fla, it's a little tough to just figure it out in my head.
but for starters here's a few things I noticed...

for your button animations, you really only need to call within itself using
this. instead of the full path _root etc etc. As for the on (release), you
need to target which timeline you want to play. As it is right now, flash
has no idea which timeline, main, root, button, mc, etc, to play.

try pathing the release function through the same path you have now:
PHP Code: [ Select ]
on (release) {
 
_root.main_menus.philo_button_clip.philo_menu.gotoAndPlay("Coming Soon");
 
}
  1. on (release) {
  2.  
  3. _root.main_menus.philo_button_clip.philo_menu.gotoAndPlay("Coming Soon");
  4.  
  5. }
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

since he's using an MC as a button, this. would only
target the button clip itself. I think he has another MC he's targeting to display that message.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 17 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.