473,395 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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
Expand|Select|Wrap|Line Numbers
  1. btn_home.addEventListener(MouseEvent.CLICK, homeCLICK);
  2. btn_aboutus.addEventListener(MouseEvent.CLICK, aboutusCLICK);
  3. btn_music.addEventListener(MouseEvent.CLICK, musicCLICK);
  4. btn_contact.addEventListener(MouseEvent.CLICK, contactCLICK);
  5.  
  6. function homeCLICK(e:MouseEvent):void
  7. {
  8.     gotoAndStop("home");
  9. }
  10.  
  11. function aboutusCLICK(e:MouseEvent):void
  12. {
  13.     gotoAndStop("aboutus");
  14. }
  15.  
  16. function musicCLICK(e:MouseEvent):void
  17. {
  18.     gotoAndStop("music");
  19. }
  20.  
  21. function contactCLICK(e:MouseEvent):void
  22. {
  23.     gotoAndStop("contact");
  24. }
  25.  
and I have also attached a copy of the timeline

please help
thx
Attached Images
File Type: jpg Picture 1.jpg (9.5 KB, 106 views)
Mar 2 '10 #1
0 1757

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Niyazi | last post by:
Hi, I created application that I get information from AS400 for reporting. In main.exe has only 1 frm which calls (as a class library) CLS_MAIN.dll. The CLS_MAIN.dll get the tables from AS400...
9
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
0
by: Wayne Aprato | last post by:
Is there a way to stop Access standard toolbars from showing momentarily before my database and its custom toolbars load? I've found that if I uncheck the offending toolbar eg. the "Database"...
8
by: Grant Schenck | last post by:
I have code where I append text to a rich text box. I grab the current SelectionStart and SelectionLength before I append the text and then after I reset the SelectionStart and SelectionLength to...
1
by: bill | last post by:
Is there a setting that will prevent the page "flash" when posting back a webform that will be populated with data? I just want to update the controls, not the entire page.
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
3
by: Andrew Wingorodov | last post by:
Hi, folks I wish to make the conveyor, but i can't receive the answer before I shall close a pipe. For example: int main () {
2
by: Neviton | last post by:
Hi everyone When I put the below lines in the Form_Load event(its just a example to raise a exception): int x = 0; int y = 1 / x; and run the application using VS2005 the normal behavior...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.