stop(); don't stop in Flash CS4 - AS 3.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • macdalor
    New Member
    • Jan 2010
    • 27

    stop(); don't stop in Flash CS4 - AS 3.0

    Hi there,
    I am completely new to flash and I'm trying to build a "relatively simple" animated website, managed to create everything (buttons, tweens, pages content etc...) but somehow when I test the movie the tweens don't stop, even though I put a stop in a keyframe at the end of the tween.

    the tweens are a rectangle which opens up from the center and should stop when open so that text can be added in

    this is the code I inserted
    Code:
    btn_home.addEventListener(MouseEvent.CLICK, homeCLICK);
    btn_aboutus.addEventListener(MouseEvent.CLICK, aboutusCLICK);
    btn_music.addEventListener(MouseEvent.CLICK, musicCLICK);
    btn_contact.addEventListener(MouseEvent.CLICK, contactCLICK);
    
    function homeCLICK(e:MouseEvent):void
    {
    	gotoAndStop("home");
    }
    
    function aboutusCLICK(e:MouseEvent):void
    {
    	gotoAndStop("aboutus");
    }
    
    function musicCLICK(e:MouseEvent):void
    {
    	gotoAndStop("music");
    }
    
    function contactCLICK(e:MouseEvent):void
    {
    	gotoAndStop("contact");
    }
    and I have also attached a copy of the timeline

    please help
    thx
    Attached Files
Working...