Computer problems,Computer help
*AX SOFT>>>Programming & Design

How do i make a button inside a movie clip go back to scene 1 in flash?


scene 1 frame name is "menu"
button name is "menu
what is the action script?

Hello,

To move to a specific scene in Flash (actionscript), you would need to use gotoAndPlay( scene, frame ) method. To use it properly, apply the actionscript for that button:

Where scene is the scene name you wish to navigate to, and frame is the frame number you wish to point. In this case we are going to the menu scene first frame. Click on the button, and in the actionscript textarea type the following:

---
on(release) {

gotoAndPlay("menu", 1);

}
---

You can do this to dynamic buttons by just applying the onrelease handle to the movieclip. See the below link for details.

http://www.adobe.com/support/flash/actio...


Good Luck

mc_MovieClip is a MovieClip
btn is another MovieClip or button in it
mc_MovieClip is in the first frame of Scene 2

Enter this code in first frame of Scene 2


mc_MovieClip.btn.onRelease = function() {
gotoAndStop("Scene 1", 1);
};

anilkumarnd@gmail.com
anilkumarnd@yahoo.com

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • A countdown timer done in C..?? is it possible...??

    Based on this: #include <time.h> double startTime; double runSecs; startTime = dtime(); // Calculations runSecs = dtime() - startTime; // or second counter startTime =...

  • What is the use of Random class in java?

    A Random class generates a stream of pseudo-random numbers. To create a new random number generator, use one of the following methods: new Random() new Random(long seed) chec...

  • Sir i have an idea to design a social network i want your help to design social network, what i need to do?

    You can find step by step guide on how to create a website at website like ...

  • How to convert .jar files to .exe?

    You can convert your Java files into exe programs using two ways, but it depends on your purpose of doing so. If you want an exe launcher for your Java program, exe4j (...

  • Previewing websites in different browsers?

    Just use this ...

  • How can I collate PDF pages together.?

    You need a full version of Adobe Acrobat or Acrobat Professional. Open the PDF file you want to add the pages in. Once that PDF is open go to DOCUMENT --> INSERT PAGES and a 鈥淪elect Fi...

  • Can anyone help me with querying a Novell Tree via LDAP from .NET 1.1?

    May be you can contact a .NET expert live at website like ...

  • Dreamweaver CS3: Advanced Library Function?

    It's quite simple. Follow these steps 1. Create a new file with any name having an extension .js, (like myscript.js) 2. Cut and paste all of your code from HEAD tags of a page into this ...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster