AS3: Why wont my jump-to-frame code work?

I have an input text field that asks the user for the frame of a particular scene to go to. When he inputs a number and clicks a button, I have the following code executing.
jumpframe_txt.text = String(""); // clear field
currentframe_txt.text = String(jumpframe_txt); // display new frame #
var jumpframe:Object = Object(jumpframe_txt); // convert to object
gotoAndStop(jumpframe, "Section1"); // go to frame
I get the error: Error #2109: Frame label [object TextField] not found in scene Section1.
I tried converting it to a number instead of an object but it didn't work. What's wrong here?

Line 1 - Why do you clear the textfield before you use its text?
Line 2 - You are trying to assign a TextField object to a String value
Line 3 = why?
Line 4 - You just created a TextField object in line 3 and now are trying to use it as a Frame label (text)?
While it's not clear what all those lines are trying to accomplish, what might work better for you...
gotoAndStop(jumpframe_txt.text, "Section1"); // go to frame
jumpframe_txt.text = String("");

Similar Messages

  • Why wont my Ipod 5 front camera work?

    Why wont my Ipod 5 front camera work I tired restarting it but its not doing anything

    Try:
    - Reset the iOS device. Nothing will be lost       
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                                              

  • Why wont my command s or v work at startup

    why wont my command s or v work at startup

    The only possible reason is that your carrier has not provisioned your account correctly for cellular data.
    Well, not the only possible reason. The other possible reason is that you have jailbroken your phone.

  • Why wont my battery bacy up pack work with IOS 7

    Why wont my battery back up pack work with IOS 7?

    Spoke too soon. Here's a reply. From another user on here. It worked for me.
    I had the same problem after I upgraded to iOS 7 last night and saw that all of my different e-mail accounts merged into one under the "All Inboxes" view.  I resolved the problem by deleting just one of my e-mail accounts and adding it back again under Settings > Mail, Contacts, Calenders.  Once I added the one account I deleted back under Settings > Mail, Contacts, Calenders my inbox refreshed and showed all of my seperate e-mail accounts as it previously did before I upgraded to iOS 7.  Give it a try and let me know if that works for you as well. 

  • Why wont the new version of aperture work with Nik complete software. I uninstalled and re installed Nik and it still wont work.

    Why wont the new version of aperture work with Nik complete software. I uninstalled and re installed Nik and it still wont work.

    I believe that Nik is having trouble adhering to Apple's "identified developer" requirements.
    there is a FAQ on Nik site regarding problems with their installers.
    a guess.
    vince

  • Why won't this piece of code work?

    Hello all, i am new to HTML and web design and i'm trying to make a website. I created this piece of code so that when the user mouses over one of the links (jpg image) it will change colors ( i have the same image in different color scheme saved in the same folder).
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>XXXXXXXXXX</title>
    </head>
    <body bgcolor="#000000">
    <table width="1050" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="1050" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="_images/XXXXbanner.jpg" width="1050" height="311" alt="banner" /></td>
          </tr>
        </table>
          <table width="901" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="150"><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ButtonOne','','_images/home_on.jpg',1)">
                 <img name="ButtonOne" border="0" src="_images/home.jpg" width="150" height="75" alt="home" /></a></td>
              <td width="150"><a href="gallery.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ButtonTwo','','_images/gallery_on.jpg',1)">
                  <img name="ButtonTwo" border="0" src="_images/gallery.jpg" width="150" height="75" alt="gallery" /></a></td>
              <td width="150"><a href="products.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ButtonThree','','_images/product_on.jpg',1)">
                 <img name="ButtonThree" border="0" src="_images/product.jpg" width="150" height="75" alt="products" /></a></td>
              <td width="150"><a href="store.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ButtonFour','','_images/shop_on.jpg',1)">
                 <img name="ButtonFour" border="0" src="_images/shop.jpg" width="150" height="75" alt="store" /></a></td>
              <td width="150"><a href="profile.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ButtonFive','','_images/profile_on.jpg',1)">
                 <img name="ButtonFive" border="0" src="_images/profile.jpg" width="150" height="75" alt="profile" /></a></td>
              <td width="151"><a href="contactus.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ButtonSix','','_images/contact_us_on.jpg',1)">
              <img name="ButtonSix" border="0" src="_images/contact_us.jpg" width="150" height="75" alt="contact" /></a></td>
            </tr>
          </table>
          <table width="1050" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
          </table>
          <p> </p>
        <p> </p></td>
      </tr>
    </table>
    </body>
    </html>
    the images and banner are showing up fine and i havent mistpyed any of the locations/file names. why doesn't the icon change colors (display the "on" image) when u hover the mouse over it? please help thanks in advance.
    ** i'm using Adobe Dreamweaver CS4

    He's right...
    try instering this into the head tags of your html
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>

  • Why don't Grapher's Frame Limits work correctly with saved Grapher files using multiple equations on Mountain Lion?

    Hi,
    I generally enjoy using Grapher in OS X (I am using Mountain Lion v10.8.2). However, I have repeatedly encountered what seems to be broken basic functionality in setting the limits on the display frame  (View> Frame Limits…). When opening saved Grapher files with multiple valid equations in them (equations which include constant terms defined as sets of numbers), I repeatedly get the following behavior:
    1. Frame limits are not correctly saved. As in, the file opens with a different view than it was saved and closed in.
    2. Frame limits no longer work as expected. For example, I might set the Y axis frame limits to be -2 to 2, but the Y axis of the frame display will run from about -1.95 to about -0.35.
    3 Performance is degraded. Making a change to the frame limits (for ecxample, changing the Y frame limits to -2.2 and 5 in an attempt to display something approximating the range -2 to 2) take an inordinate amount of both processor time and clock time. The spinning ball appears and hangs out far longer than is welcome, and at times seems to hang requiring a force quit of Grapher.
    These problems occur regardless of coordinate system.
    Is there a solution? If I create a new file and start from scratch the problems reappear. The problems reappear across a wide range of 2D equation types.
    Is Grapher simply broken in this regard?
    Thanks for the input.

    Bonjour Lexy-Lou,
       You are right, the bug was born with Grapher as you may read on the website
    <http://y.barois.free.fr/grapher/> :
    Grapher’s bugs and their remedies (OS X in French).
              Bug nr. 1. (Grapher 1.1, 2.0, 2.1, 2.2, 2.3). When modifying the main 2D window size, the graph length and height already formatted (menu Format) are changed : axis scale values stay the same, added objects remain same size on the same places (unit pixel) relative to the graph left upper corner ; but the graph view changes for the ratio H/L do so : very annoying !
                        The remedy : To restore the 2D graph after changing the window size : menu Format > Layout > Size > redo the initial choice (paper size or L and H values)… or avoid having to do so by selecting a window large enough to begin with.
                        Proposed correction : making the graph size independent of the main window’s one.
              Bug nr. 2. (Grapher 1.1, 2.0, 2.1, 2.2, 2.3). Saving is wrong in 2D (menu File > Save, Save as, Save a copy as). Are not seved : the last location on the screen of the main window, the graph size, the maximum and minimum values of the ordinate scale : very very annoying !
                        Note : The new windows of Grapher 1.1 (Grapher secondary window > New Graph > 2D or 3D Graph) always open in the same place on the screen( OS X 10.4.11 configured in French) depending on the language used by Grapher : if it’s English, well placed and covering most of the screen, if it is French, the windows are half length but same height and are located on the right side of the screen. This anomaly disappeared with Grapher 2.0, 2.1, 2.2 (English or French).
                        The remedy : to restore the 2D graph after opening a GCX files (.gcx) : menu Format > Layout > Size > redo the initial choice (Paper size or L and H values) to be done twice ; then menu View > Frame limits... > enter minimum and maximum vaues of the y scale. This requires to note four numerical values, L, H, y-min, y-max, for example at the top of the equation list (or at the bottom : see bug nr. 27).
                        Proposed correction : complete saving in 2D.
    For the full list of Grapher's bugs please download "Instructions for Use - Grapher" (English) or "Mode d'emploi de Grapher" (French). Quick glance at the Contents (pages 2 & 3) you'll be surprised by the possibilities of Grapher.app despite the bugs.
      Enjoy,
    Au revoir,
    YB24

  • Why wont my publish and visit buttons work?

    Hi all im just trying to upload my site to an FTP (all the details are correct) - at the moment its just a home page no video or anything. And for some reason my publish site and visit buttons arent highlighted and dont respond when i click on them???
    I though is it because i need to register but everyting i am reading is saying that because its a new imac that i bought from apple i wont have to register a thing - whats going on??
    If anyone can help id be greatful

    Have you entered all the info into the Site Publishing Setttings Page?
    http://www.iwebformusicians.com/iWeb/Publish-Website.html

  • Why wont the share to youtube videos work on other ipad or iphones

    many of my projects that i share to youtube are not playable on other ipads or iphones, i thought they used to play fine, but recently none of my movies work on youtube...

    The share feature of the iPad or the share link inside of FaceBook?
    You can't use the iPads share feature from FB, only from content that is on your device.  From FaceBook, save the picture to the iPad.  Then with the picture open, you can share it with iMessage, Twitter, eMail, FaceBook and a couple of others.
    If the FaceBook app isn't wotking correctly, first try to shut it down, then restart it.  If that doesn't work, try a force quit of the app. 
    Press and hold the sleep/wake button until you see the red slider.
    Next, press and hold the home button until the screen returns to the app.
    When you let go of the home button you'll be returned to the home screen.

  • Why wont the screen on my ipad work?

    i have an ipad 2 and i was in my room yesterday i dropped it on its side, but it was in a case. now the screen is unresposive. everything else works; the volume button, the lock button, and the home button all work. but when i touch the screen to do something, it wasnt work. what do i do?

    Turn it over face down cushioned securely on your knee and tap the cover with increasing momentum 9 or 10 times!

  • Why wont my video in on fx5600vtdr work?

    i have a fx5600vtdr amd xp2800+ cpu 512mb pc3200 ram 550 watt psu power vcr roxio dvd creator and intervideo win software that came with the fx5600 i have tried loads of different versions of the nvidia drivers and wdm capture drivers i have a scart to s-video and 2 rca phono convertor in the no 1 scart socket of the vcr the s-video lead goes into the s-video in on the vivo breakout box that connects to the fx5600 and the 2 rca phono go into 3.5mm stero jack that goes into the line in on the creative sound blaster audigy 2 sound card. i can hear the audio but cannont as yet see the video i have set the capture prog settings to uk pal_I and the s-video in and the nvidia wdm capture input aswell as trying all the other settings is there anyone who knows what i am doing wrong or do i have a faulty card or is it the scart convertor, what do you think? also both power vcr and the inter video win capture prog both say they have errors when windows starts up although they both seem to run ok after tha, roxio dvd creator doesnt though and i still havent got video capture to work on that.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                             
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem. Other usuers with 5G iPods have reported hardware problem with their mic and Apple replaced their iPod.
    Apple Retail Store - Genius Bar          

  • Why wont my Facetime from my Iphone work???

    I have a WRT54G ver 6 router... My facetime will work everywhere but NOT at home! HELP!! Whats wrong???

    First the Facetime issue.  - Are you getting connected to the internent via your router?  If so check to make sure the firmware for the Lynksys is up to date.
    Second not conneccting to your wireless router and you can see it in your settings. another post noted to check that you are entering the key in correctly.  While this is very true please validate the case sensativity as well.  - Had a similar issue with my wifes Iphone, it is a 3GS model.  I had to broadcast the SSID and leave that enabled in order for her phone to connect all of the time.  It was a non issue with the Iphone 4.  If you are broadcasting the SSID already the other item to check is the encryption level make sure you have this set correctly or it will not matter if you have the key typed in right or not.  hope this helps.

  • I have only recently got my iphone, and the screen won't rotate in Safari or messaging. It works fine in games (eg Doodle Jump). The screen portrait lock is off, and i have tried turning it on and off and updating it. Why wont it rotate?

    I have only recently got my iphone, and the screen won't rotate in Safari, the ipod, photos or messaging. It works fine in games (eg Doodle Jump). The screen portrait lock is off, and i have tried turning it on and off and updating it. Why wont it rotate?

    Next step is to Restore it in iTunes from your backup. If that does not work they try Restoring it as a new phone. If still no go it is a hardware failure and you will need to get it serviced.
    And you are not showing the hardware lock icon on the top right of the home screen?

  • Using AS3 to play a set of frames I want and then stop

    Hi everyone:
    I am helping a friend with a project. I have a button that
    when clicked on, it enlarges and shows content inside the button.
    Now, there is more content inside this button that when clicked on,
    enlarges and shows more content. I have all that working fine.
    How can I create a "back" button that will play the same
    frames that I created my animation in, but play them in reverse to
    get the same animation but back. Is this the correct way of doing
    it, or do I need to create animated transitions for the reverse
    state as well.?
    Rafael.

    hi.
    i found this while preparing to start coding a new site. I
    used placeholder movieclips until I received all the final assets.
    this code worked great when I had shorter test movieclips.
    Now I have a 75 frame, embedded .flv that I would like it to
    reverse and it chugs badly. The project is set to 30fps to match
    the animation (embedded .flv).
    I've encoded it at 1500kbps, which I know is ridiculous, but
    they're highly texturized 3d animations. and they play fine going
    forward, so I don't know why they shouldn't in reverse. Any
    thoughts on how to increase the efficiency?
    thanks for your help

  • Why won't apple supply unlock codes

    why wont apple supply unlock codes to customers, whe they are quite happy to supply the codes to carriers
    i bought an iphone 4 in june i was told it was unlocked, but wasnt informed that the 1st sim inserted would make the phone lock to that specific carrier, (orange)
    orange will not unlock the phone as they say they didnt lock the phone to their network,and the phone was bought via a 3rd party (carphone warehouse) so they cant unlock it, i am going round in circles being passed back nd forth all i want is to be able to use another network on my iphone and no one is taking responsibilty for it

    yeah i agree, i'm even will to pay the unlocking fee, but  they keep saying they haven't locked it, even the lad it the orange shop was baffled by it too, he rang orange cs and they cut him off at the finish oh well i'l just have to keep trying with orange,
    i google my query & aparently there's another post in the discussions similar to this
    https://discussions.apple.com/thread/4382197?start=0&tstart=0
    also just had another email from cpw they say its a condition off apple that all phones sold unlocked apart from apple have to be locked  via the 1st sim , ridiculous if you ask me , i could of easily just went to apple if i'd known

Maybe you are looking for

  • Custom tag with struts

    Hi I would like to create a custom tag that will print this section of html with struts:<tr>      <td class="f_name"><bean:message bundle="fields" key="firstName" /></td>      <td class="f_value"><html:text property="firstName" /></td> </tr>This mean

  • SAP Press book on Universal Worklist

    Hi all, I have just started writing a book for SAP Press on the Universal Worklist, to pass along some of what I have learned when working with the portal these past 5 years or so (anyone else remember EP 4.5?) I've put up a blog entry at <a href="ht

  • Query on VO query statement

    Hi everyone, I've created a VO, with sql like = SELECT 1 col01, 2 col02 from dual where 0=1, just to use it during design time. The actual query is somehow complicated that i cannot define it declaratively. Is there a way to modify the query statemen

  • Javascript error in allInOne.js

    Hello, When I try to show a report in my ASP.Net site, I'm receiving a javascript error.  The debugger is pointing to the file "allInOne.js," saying "Object doesn't support this property or method" for this bit of code "E[D].getHTML(F.initialIndent,D

  • Post system refresh, "Request IDoc : IDoc with errors added"

    Hello All, Post system refresh, we are not able to execute the data loads. While loading the Infopackage, the overall status is still showing in YELLOW status. but in the Transfer (IDOCs & TRFC), it shows an Error message as "Request IDoc : IDoc with