Why wont my button work? I want it to link back to the first frame in the first scene of my movie.

This is the code I have
on (release) {
gotoAndPlay (1,"intro");
Where "intro" is my scene. and 1 is the frame.
It works fine without the "intro"

In AS1/2 (unlike AS3) the arguments are ordered as (scene, frame), but if you specify only 1 it is treated as a frame identifier.  So you would be correct using gotoAndPlay("intro", 1);
You should get that code off of the button and place it in the timeline - placing code on objects is a bad practice.  To do this, assign the button an instance (like maybe "btn") and code it in the timeline as follows...
btn.onRelease = function(){
    gotoAndPlay("intro", 1);
Lastly, the use of scenes is better off avoided.  I never used them in my own work and have only encountered them in inherited designs.  While they might work well with uncoded animation work, when you start mixing navigation coding with them things can become unpredictable and they can fail seemingly without cause.  You are better off just using the one scene and dividing it into sections and/or having your sections as movieclips.

Similar Messages

  • Why wont google toolbar work with fire fox 5????? also how can i get firefox 4 back so i can use the toolbar???

    Hello,my question is why wont google toolbar work with firefox 5?????
    Also how can i get firefox 4 back so i can use the toolbar???

    This page is an easier way to download Firefox 4.0: http://www.mozilla.com/en-US/products/download.html?product=firefox-4.0&os=win&lang=en-US , as this links starts the download process asap.
    I needed to upgrade to Firefox 4.0+ for an add-on that I really needed. However, I can't use Firefox 5.0, as I randomly checked 3 add-on's I had: "Firefox PDF", "Delicious Bookmarks" and "After the Deadline", and none of them worked with Firefox 5.0. In fact, I will have to download alpha versions, etc., to get these add-ons to work with Firefox 4.0.

  • Why wont my volume work on my iPhone 4s?

    why wont my volume work on my iPhone 4s?

    Hey Chelsreb,
    Thanks for the question. I understand you are experiencing issues with your iPhone 4s. The following resource may provide a solution:
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    1. Verify that the volume is set to a level you would normally be able to hear.
    2. Ensure that there is nothing plugged in to the headset jack or the dock connector.
    3. If the iPhone is in a protective case, make sure that the speaker port isn't blocked by the case.
    4. Make sure that the speaker and dock port aren't clogged with debris. If necessary, clean it with a clean, small, dry, soft-bristled brush. Carefully and gently brush away any debris.
    5. If an audio issue occurs when using a specific application, try testing other applications to see if the issue persists.
    6. If the iPhone is paired with a Bluetooth headset or car kit:
              - Try turning off Bluetooth.
              - If you experience difficulties with the Bluetooth feature, follow these troubleshooting steps.
    7. Restart the iPhone.
    8. If restarting doesn't fix the issue, ensure that your iPhone is updated to the latest version of iOS.
    9. If the issue is not resolved after restoring the iPhone software, please contact Apple Support.
    If the issue persists, please follow the last step by contacting Apple Support for support and service options.
    Thanks,
    Matt M.

  • Why does fix capitalization work when there is only one space after the period in pages 09?

    why does fix capitalization work when there is only one space after the period in pages 09?  For example:  "Turn on 3rd St. After the traffic light."  There is only one space after the period in "St."  shouldn't it only auto correct after TWO spaces..??  the word After, should be after..

    You may also use a noBreak space after the period at the end of the abbreviation.
    If I remember well, in such case the capitalization will not apply.
    Yvan KOENIG (VALLAURIS, France) mercredi 27 avril 2011 23:34:46

  • I open a new webpage in a new tab. I then go to a link and the back button does not allow me to go back to the original webpage. Any suggestions?

    I open a new webpage in a new tab. I then go to a link and the back button does not allow me to go back to the original webpage. Any suggestions?

    I don't think you understood the question. I am having the exact same issue. I open a link in a new tab or window, for example: https://addons.mozilla.org/firefox/addon/backforedrop/
    When the new tab opens, I click on "reviews" to open the link: https://addons.mozilla.org/en-US/firefox/addon/backforedrop/#reviews in the existing tab because I want to see the reviews for this feature. After I read the reviews, I want to go back to the main link, but the back button on my browser is greyed out, as though I was never even on the previous page. So my options are 1) Open every link I ever click on in a new tab or window, or 2) Hope the website is user friendly and attempt to navigate back to the previous page using links inserted on the current page.
    You never realize how frustrating not having back button is until it happens.

  • When I display the view-formula command , the information in the cell displays vertically and it is very hard to read. I want it to go back to the horizontal display I have had all along. Thanks

    When I display the view-formula command , the information in the cell displays vertically and it is very hard to read. I want it to go back to the horizontal display I have had all along. Thanks

    Allan:
    Sorry, I forgot to mention that I am working with Excel for Mac.

  • I have changed operator and also changed IOS and did a back up of my old phone in Itunes so i would keep all my contacts etc. Now when i want to get everything back in the phone, Itunes asks me for a password, which i do not have. How to bypass this?

    I have changed operator and also changed IOS and did a back up of my old phone in Itunes so i would keep all my contacts etc. Now when i want to get everything back in the phone, Itunes asks me for a password, which i do not have since i did not enter any password when i did the back up. Is there any way I can bypass this password request? Otherwise i have lost all my contacts etc.
    Greatful for help.

    Contacts are designed to be synced to a supported application on the computer or a cloud service like Gmail, iCloud, or an Exchange server.
    Have you failed to use the device as designed?

  • I put all my itunes folder on external hard drive, now I want to put it back on the mac how do i do this

    put all my itunes folder on external hard drive, now I want to put it back on the mac how do i do this.

    Drag the entire iTunes folder back to /Music.

  • Updated iphone 5 and it want to restore and back up the phone i have done this 3 times, some advice please

    Updated iphone 5 and it want to restore and back up the phone i have done this 3 times, some advice please

    Hi Alan Parrock,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like you are not able to restore the iPhone. I would recommend that you read this article, it may be able to help the issue.
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    Cheers,
    Mario

  • I have a iphone5. I went to dubai there it was working properly. On my way back in the plane i turned the manual time zone selection in the date

    I have a iphone5. I went to dubai there it was working properly. On my way back in the plane i turned the manual time zone selection in the date & time setting and changed it to new delhi. when i landed back and tried to use the vodafone network whose sim is installe in te mobile NO SERVICE showed up. I tried to select the time zone & network selection from the carrier but manual selection is not accepted . I got a tiick mark at the service provider name but still no service status remains. After 2 days In the time zone automatic selection has started working and is showing new delhi but still automatic & manual network selection is not working. NO SERVICE is still shown . I m not able to make any calls. Internet through WIFI is working. Kindly help. 

    Hello, swatiy.82. 
    Thank you for visiting Apple Support Communities.
    I would recommend trying the steps in the article below when experiencing this issue.
    iPhone: Troubleshooting No Service
    http://support.apple.com/kb/ts4429
    Cheers,
    Jason H.

  • HT201263 I dont want to restore it though i just want it to go back to the way it was

    I tried to update my iphone and its stuck in recovery mode and i dont want to recover it i just want it to go back to the way it was

    The onlhy way is to do exactly what it's prompting you to do..recover it.  You can then restore the more recent backup to get things back to how you wan them.

  • I disabled my iPod and it says connect to iTunes I tried that but it doesn't do anything and  I want to get it back to the lock screen ??

    I disabled my iPod and it says connect to iTunes I tried that but it doesn't do anything and I want to get it back to the lock screen ??

    iOS: Forgotten passcode or device disabled after entering wrong ...

  • Why wont my camera work

    a couple months ago, Apple replaced my phone because of a broken on/off button but now every time I want to use the camera, it doesn't work. I have to reset my phone every time I want to use it or any application that requires the camera. HELP!

    Hello many_ortiz,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Camera isn't functioning or has undesired image quality
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tappingSettings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Cases can interfere with the camera and the flash. Try gently cleaning the lens with a clean dry cloth or removing the case if you see image or color-quality issues with photos.
    Try turning iPhone off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try to remain steady while focusing:
    Still images: Remain steady while taking the picture. If you move too far in any direction, the camera automatically refocuses to the center.
    Note: If you take a picture with iPhone turned sideways, it is automatically saved in landscape orientation.
    Video: Adjust focus before you begin recording. You can also tap to readjust focus while recording. Exiting the Camera application while recording will stop recording and will save the video to the Camera Roll.
    Note: Video-recording features are not available on original iPhone or iPhone 3G.
    If your iPhone has a front and rear camera, try switching between them to verify if the issue persists on both.
    Have a nice day,
    Mario

  • Why wont my phone work after sync with itunes

    why wont my phone not work at all after downloading itunes and doing sync...got no service and everything is missing from my phone

    Nope, tried twice but doesn't change a thing.
    Thanks though!

  • Why wont this script work???

    Hi,
    I have previously used this script to make a portrait scroll bar which works perfectly, however i have altered the script to work in a landscape scroll bar by altering the x and y axis and switching out the height for width. However a part of it wont work...The left and right arrows work correctly however the scroll bar does not move and I can not for the life of me figure out why.
    Does anyone have any ideas as to what ive missed or done wrong?
    Thanks in advance
    scrolling = function () {
    var scrollWidth:Number = scrollTrack._width;
    var contentWidth:Number = contentMain._width;
    var scrollFaceWidth:Number = scrollFace._width;
    var maskWidth:Number = maskedView._width;
    var initPosition:Number = scrollFace._x=scrollTrack._x;
    var initContentPos:Number = contentMain._x;
    var finalContentPos:Number = maskWidth-contentWidth+initContentPos;
    var left:Number = scrollTrack._y;
    var top:Number = scrollTrack._x;
    var right:Number = scrollTrack._y;
    var bottom:Number = scrollTrack._width-scrollFaceWidth+scrollTrack._x;
    var dy:Number = 0;
    var speed:Number = 10;
    var moveVal:Number = (contentWidth-maskWidth)/(scrollWidth-scrollFaceWidth);
    scrollFace.onPress = function() {
      var currPos:Number = this._x;
      startDrag(this, false, left, top, right, bottom);
      this.onMouseMove = function() {
       dy = Math.abs(initPosition-this._x);
       contentMain._x = Math.round(dy*-1*moveVal+initContentPos);
    scrollFace.onMouseUp = function() {
      stopDrag();
      delete this.onMouseMove;
    btnUp.onPress = function() {
      this.onEnterFrame = function() {
       if (contentMain._x+speed<maskedView._x) {
        if (scrollFace._x<=top) {
         scrollFace._x = top;
        } else {
         scrollFace._x -= speed/moveVal;
        contentMain._x += speed;
       } else {
        scrollFace._x = top;
        contentMain._x = maskedView._x;
        delete this.onEnterFrame;
    btnUp.onDragOut = function() {
      delete this.onEnterFrame;
    btnUp.onRelease = function() {
      delete this.onEnterFrame;
    btnDown.onPress = function() {
      this.onEnterFrame = function() {
       if (contentMain._x-speed>finalContentPos) {
        if (scrollFace._x>=bottom) {
         scrollFace._x = bottom;
        } else {
         scrollFace._x += speed/moveVal;
        contentMain._x -= speed;
       } else {
        scrollFace._x = bottom;
        contentMain._x = finalContentPos;
        delete this.onEnterFrame;
    btnDown.onRelease = function() {
      delete this.onEnterFrame;
    btnDown.onDragOut = function() {
      delete this.onEnterFrame;
    if (contentWidth<maskWidth) {
      scrollFace._visible = false;
      btnUp.enabled = false;
      btnDown.enabled = false;
    } else {
      scrollFace._visible = true;
      btnUp.enabled = true;
      btnDown.enabled = true;
    scrolling();

    sorry should have said...its the aspect relating to "scrollFace" which is mentioned throughout..ive marked it out in bold and taken out anything unrelivant.
    Thanks
    So its:
    scrolling = function () {
    var scrollFaceWidth:Number = scrollFace._width;
    var initPosition:Number = scrollFace._x=scrollTrack._x;
    var bottom:Number = scrollTrack._width-scrollFaceWidth+scrollTrack._x;
    var moveVal:Number = (contentWidth-maskWidth)/(scrollWidth-scrollFaceWidth);
    scrollFace.onPress = function() {
      var currPos:Number = this._x;
      startDrag(this, false, left, top, right, bottom);
      this.onMouseMove = function() {
       dy = Math.abs(initPosition-this._x);
       contentMain._x = Math.round(dy*-1*moveVal+initContentPos);
    scrollFace.onMouseUp = function() {
      stopDrag();
      delete this.onMouseMove;
    btnUp.onPress = function() {
      this.onEnterFrame = function() {
       if (contentMain._x+speed<maskedView._x) {
       if (scrollFace._x<=top) {
         scrollFace._x = top;
        } else {
         scrollFace._x -= speed/moveVal;
        contentMain._x += speed;
       } else {
        scrollFace._x = top;
        contentMain._x = maskedView._x;
        delete this.onEnterFrame;
    btnDown.onPress = function() {
      this.onEnterFrame = function() {
       if (contentMain._x-speed>finalContentPos) {
       if (scrollFace._x>=bottom) {
         scrollFace._x = bottom;
        } else {
         scrollFace._x += speed/moveVal;
        contentMain._x -= speed;
       } else {
       scrollFace._x = bottom;
        contentMain._x = finalContentPos;
        delete this.onEnterFrame;
    if (contentWidth<maskWidth) {
      scrollFace._visible = false;
      btnUp.enabled = false;
      btnDown.enabled = false;
    } else {
      scrollFace._visible = true;
      btnUp.enabled = true;
      btnDown.enabled = true;

Maybe you are looking for

  • No Phone Number for a reason

    May 10th 2015. My Skype started having this problem a day ago. When I open the Skype application and click to call a friend (whose status is online or away) the call just says it is "Connecting" for about 30-45 seconds. Then the call stops/drops and

  • Problems With Office Network

    At my office they just expanded to take over the second half of our building and put doors in, etc. This got me moved to nice, big, quiet office in the new section. Naturally, someone ran the ethernet cables over to the new offices. Now I can no long

  • Help Need in Graphical Mapping.

    Hi Can you do help for mapping between my file structure to BAPI structure..this is auctully  file would call BAPI for 1: N(file having various headers and line items, each header and associated line items would able to call BAPI in target side). Now

  • How to get screen reader to read headings and text in accessible form

    Hi We're trying to build an accessible form using Designer 7.0. When the user tabs to a text field, radio button, combo, etc, the reader (in this case, Windows XP default "Narrator") correctly reads out the widget's caption and current value. However

  • Need to send the logo in smartform via mail.

    Hi All, I have smartform with the company logo uloaded. I have requirement to send the smartform with logo output via mail . Points will be rewarded.... thanks, mahantesh