PDA

View Full Version : Urgent Help with gotoAndStop



ManicMax
April 10th, 2009, 09:33 AM
I'm trying to adapt a tutorial I found on this website entitled Complex Button Rollover - Rollout Effects (http://www.kirupa.com/developer/mx2004/button_effect.htm)

The effect I am trying to achieve is instead of linking the animation to a website I wan't to be able to navigate to another scene. The bit of the actions I've been changing in the downloaded fla is this,


this.onRelease = function(){ getURL("http://www.kirupa.com","_blank"); }
To this,

this.onRelease = function(){
gotoAndStop("Scene 2", 1);
}

But this doesn't seem to work when I click it just seems to refresh the animation. I have got Stop(); at the beginning of both scenes. I cannot see the problem.

Cheers xD

johnb2
April 13th, 2009, 11:52 PM
this.onRelease = function(){
nextScene(1);
}

Anogar
April 13th, 2009, 11:58 PM
I've been experiencing a nasty bug lately where library objects with animations don't adhere to the stop() on their first frame. You might have to add a stop() to a custom class, and then attach the class to the library object. It's sort of annoying.



package
{
import flash.display.MovieClip;

public class Wtfuxxor extends MovieClip
{
public function Wtfuxxor()
{
stop();
}
}
}
I have no idea what its problem is. :fight: