2 digits in an on(keyPress "") ActionScript command??

Is there any way to use the keyboard to type in 2 digits in
an on(keyPress "") command?
For example:
on(keyPress"21"){this.gotoAndStop(21);
to jump to frame 21?
I am trying to create a slideshow style presentation, but
have the ability to jump to various frames (more than 9 frames).
thanks

Thank you for taking the time to help me.
I tried your AS on the button I was using in frame 1, and
then tried various things once it didn't work. I couldn't add it to
the button I was using, so I tried it on frame 1, in an Actions
layer; still nothing. I tried different targets too, but to no
avail.
I searched for lastKeyCode and prevKeyPressTime but didn't
find any information on those scripts.
Thanks

Similar Messages

  • Keypress actionscript 2

    Hello,
    I need some assistance with an animation that I would like to make.
    I would like the user to hit a key on their keyboard (d for example) and when
    they do it will gotoandPlay("20") frame 20?
    I know the actionscript for buttons but I have never done actual keyboard
    keys before so i'm not sure what the best way to approach it would be.
    Thankyou very much for your help!

    Try the following.  The trace line inside the function should be commented out when publishing, but during development it will help you to identify which keys have which codes.  Also, you used quotes in your example of the gotoAndPlay... only use quotes when using frame label strings, not for frame numbers or variables.
    var keyListener:Object = new Object();
    Key.addListener(keyListener);
    keyListener.onKeyUp = function(){
       trace(Key.getCode());
       if(Key.getCode() == 68) gotoAndPlay(20);

  • Need emergency help for simple actionscript commands.

    I havent touched flash for awhile and am now using flash professional to try and create a simple visual prop.
    I used to be able to have the movieclip stop on the first frame and then use the keyboard (anykey) to advance frame by frame in the timeline. Now I cant seem to do it and it just keeps playing through and loops in the publish preview.
    As this is now actionscript 3, Im not familiar with how this is being controlled.
    Help would be greatly appreciated as I have to get this out the door tomorrow.
    JM

    See the following posting: I'D LIKE TO CHANGE MY CODE FROM USING THE LEFT KEY=PREVIOUS FRAME/ RIGHT KEY= NEXT FRAME TO  ANY KEY=NEXT FRAME. HERE IS MY CODE.
    The difference with yours would be that instead of using nextFrame(); inside the function, yours would just use play();

  • Flash Player v.10 ignores actionscript 2.0 or 3.0 commands.

    Hi,
    I am using Flash CS3, and have downloaded and installed the latest version 10 flash player from Adobe site.
    When I create a new flash document, I select "actionscript 2.0" for the new document.
    Having completed the animation when I test the file (Control > Test Movie) the swf file runs from frame 1 till the end ignoring the stop(); and gotoAndPlay(); and all other actionscript commands in between.
    So I send the fla file to my friend, he sends me an swf file which obeys all the actionscript commands in the fla file.
    The same thing happens if I create a new actionscript 3.0 flash document and make it into an swf file.
    Why is this happening ? How do I remedy this.
    Thanks, regards,
    Deepak Gokhale
    [email protected]

    Yes, I did manage to get around it but it was by a lot of trial and error, and fluke.
    Always open a new flash document as Flash File (Actionscript 3.0) document. You can save it as Flash CS3 Document .fla file or Flash 8 Document .fla file. It works. At least this is what happened to me.
    All the best.

  • Error: "DoFunction fork failed" in the Messaging Server 3.x logs on Digital Unix or AIX

    Receiving error message DoFunction fork failed in the Messaging Server 3.x logs
    on Digital Unix or AIX.
    <P>
    The dxkerneltuner command is one way to raise the number of user
    processes on Digital Unix. Steps follow:
    <OL>
    <LI>Login as root (or su to root) on Digital Unix and execute the
    dxkerneltuner command.
    <P>An X-Windows window will pop up with a list of
    kernel subsystems (tuning categories).
    <P>
    <LI>Double-click the "proc" subsystem.
    <P>
    A child window will pop up, displaying parameters in that category, along with
    their associated values and limits. These should include parameters
    named "max-proc-per-user" and "max-threads-per-user", which are by default,
    64 and 267 respectively.
    <P>
    These should be replaced by values more
    consistent with the Messaging Servers resource requirements. Provided
    the default Messaging Server installation is used, more appropriate values
    for these parameters would be 640 and 2560 respectively.
    <P>
    <LI>To implement
    these new values, replace the value 64 with 640 for max-proc-per-user in the
    child window and replace the value 267 with 2560 for max-thread-per-user.
    <LI>Click OK on the child window and exit the parent window.
    <LI>Reboot Digital Unix to implement the kernel changes.

    I have bkp OD, trash server.app / reboot / install server.app again and working fine now.
    Thanks !

  • Actionscript code can be seen in a search, but not seen in Actions Panel nor symbol

    I purchased a template which has flash menu buttons.  The current button url's go to index.html, index-2.html, index-3.html, and so on.  I want to change these.  In Flash, I searched for index-3.html and it finds it at the location:  Symbol 'Button2 copy 3' -> Layer 'Layer 4' -> Frame '1'   and the actionscript command is:  getURL("index-3.html");
    Everything is fine so far.  However, when I double-click the symbol and go to the location (or double-click the search result), the actionscript command cannot be found at all.  I tried pressing F9 to open the Actions Panel, and I see the button symbol but I don't see any actionscript commands associated with it.  It seems to be very unusual - the search picks up the actionscript command but it can't be seen in the symbol's location where it says it is nor can it be seen in the Actions Panel.  The script does work but it just cannot be seen!  Does anyone know how to see the actionscript code in the Actions Panel or in the button symbol?

    show a screenshot of movie explorer after searching for getURL("index-3.html")

  • How can i use the NI USB-6501 digital I/O with matlab?

    I want to use the  NI USB-6501 digital I/O with data acquisition toolbox in matlab?

    The USB-6501 is supported by Data Acquisition Toolbox in MATLAB releases R14SP3+ and later.
    The full list of National Instruments devices supported by Data Acquisition Toolbox is here:
    http://www.mathworks.com/products/daq/supportedio14005.html
    Begin to learn how to use digital input and output here:
    http://www.mathworks.com/access/helpdesk/help/toolbox/daq/f11-17944.html
    Inside MATLAB you can view demos in the documentation.
    To see two digital demos you can type these commands at the MATLAB command line:
    >> showdemo('demodio_intro')
    >> showdemo('demodio_line')
    Best regards,
    Sherryl
    Sherryl Radbil
    Data Acquisition Engineer
    The MathWorks

  • Actionscript in LiveCycle

    I'm in need of using some actionscript commands, is it possible to include that same commands into the livecycle??

    No actionscript is used in Flex/Flash technology.
    In LiveCycle forms, Javascript or an internal language called FormCalc is available.
    Paul

  • Digital Trigger Vs Software Trigger.

    I'm running an MCC USB-FS1608 DAQ to measure multiple analog voltage channels. I also have a digital in TTL coming from an MTS 407 frequency controller. Inside my VI, I read a rising TTL signal from the MTS, send a signal to switch on the digital out, then I start my data acquisition. At 1 Hz, would it be better to control my digital out, (which sends a run command to the MTS which then actuates a  hydraulic piston) with a hardware trigger?
    Solved!
    Go to Solution.

    Hardware communication in the sense that you are referring to is not necessarily universal. Especially when utilizing third party hardware/drivers. If the drivers they have created are built on top of NI-DAQmx then you could possibly use our functions to do this. To do the functionality you are wanting you would need to:
    -Configure Digital Output task with the channel you want to output on
    -Configure Digital Start Trigger giving it the channel you want to read from (TRIG_IN). For some hardware, they might allow rising edge triggers as well as falling edge triggers which would then be some property you would have to set.
    -Configure write task to output a digital high or 1 on your digital output channel
    -Start task
    -Loop until finished
    -Clear task
    This is about as general and universal as it gets but the actual implementation of each step might be different based on the driver. Physically, the only changes you would have to make are wiring your digital start trigger into the TRIG_IN input instead of into one of the digital input lines.
    Ian M.
    National Instruments

  • .flv with command at the end

    Hey there,
    I have created a SWF file that streams an FLV file.
    What I would like to do, is have an actionscript command activate AFTER the FLV has played to the end of the movie.
    Is there a code for something like this?

    you can use:
    var lo:Object = new Object();
    lo.complete = function(eventObject:Object):Void {
    //your as command
    yourFLVPBC.addEventListener("complete", lo);

  • Comment faire accepter mon pc par digital adobe

    Je me suis acheter une liseuse Kobo et je voudrais pouvoir accéder à ma bibliothèque municipal pour mes livres et non les acheter je le faisait avec ma liseuse SONY sans problème mais c'était avec adobe reader. J' ai donc installé adobe digital mais je ne parviens pas à faire authoriser mon ordinateur je reçoit toujours le même texte : E_AUTH_NOT_READY.
    j' ai même changé mon mot de passe 2 fois mais rien n'y fait il me refuse encore j' ai téléphonnée et ils n' ont pas été capable de m' aider ils m'ont dit de contacter le forum.
    Vous êtes mon dernier recoure.

    Bonjour Diarrho,
    Concernant le message d'erreur E_AUTH_NOT_READY il vous faudra suivre les indications du lien suivant :
    http://helpx.adobe.com/digital-editions/kb/error-e_act_not_ready.html
    Le lien n'etant pas en francais je vous invite a suivre les indications ci-dessous :
    Mac OS
    1 - Ouvrez Adobe Digital Editions.
    2 - Appuyez sur Commande + Maj + D pour retirer l'autorisation d'Adobe Digital Editions.
    3 - Sélectionnez Effacer autorisation.
    4 - Cliquez sur OK et quittez Adobe Digital Editions.
    5 - Accédez à / Users / / Library / Application Support / Adobe / Digital Editions et faites glisser le fichier activation.dat à la poubelle.
    Si vous utilisez 10.7, voir les fichiers de bibliothèque d'accès de l'utilisateur caché | Mac OS 10.7 Lion.
    http://helpx.adobe.com/fr/x-productkb/global/access-hidden-user-library-files.html
    6 - Ouvrez Adobe Digital Editions et autoriser à nouveau.
    Windows OS
    1 - Ouvrez Adobe Digital Editions .
    2 - Appuyez sur Ctrl + Maj + D pour retirer l'autorisation d' Adobe Digital Editions .
    3 - Sélectionnez Effacer autorisation .
    4 - Cliquez sur OK et quittez Adobe Digital Editions .
    Avertissement: La tâche suivante vous demande de modifier le registre de Windows . Le registre contient des informations relatives au système qui est essentiel à votre ordinateur et les applications . Avant de modifier le Registre , faites une copie de sauvegarde. Adobe ne fournit pas de support pour les problèmes qui découlent de la modification incorrecte du Registre.
    Pour plus d'informations sur le Registre Windows ou l'éditeur du Registre , voir le site Microsoft Aide et de support à http://support.microsoft.com .
    1 - Fermez toutes les applications .
    2 - Sélectionnez Démarrer > Exécuter .
    3 - Dans la zone de texte Ouvrir, tapez regedit et appuyez sur Entrée. L'éditeur de registre s'ouvre.
    4 - Dans le volet gauche de l'Éditeur du Registre , recherchez la clé de Registre suivante :
        HKEY_CURRENT_USER \ Software \ Adobe \ Adept
    5 - Sélectionnez la touche Adept .
    6 - Choisissez Fichier> Exporter .
    7 - Dans la boîte de dialogue Exporter fichier Registre , sélectionnez Branche sélectionnée sous Etendue de l'exportation . Saisissez un nom et un emplacement pour la clé de Registre de sauvegarde , puis cliquez sur Enregistrer .
    8 - Cliquez-droit sur la clé Adept et choisissez Supprimer .
    9 - Dans la boîte de dialogue suppression de la clé de confirmation , cliquez sur OK .
    10 - Fermez l'éditeur du Registre.
    11 - Ouvrez Adobe Digital Editions et autoriser à nouveau .
    Merci.
    Arnaud.

  • Actionscript that runs Flash animation

    Hi
    I tried out the 101 flash tutorial here -
    http://www.adobe.com/designcenter/flash/articles/flacs3_createfla_02.html
    The animation works fine (the circle moves from left to right
    thanks
    to a "motion tween") but can I see the actionScript code for
    that?
    The question is essentially, if you make a flash animation
    using this
    GUI editor, can you see the actionScript commands that drive
    this
    animation? e.g. I have Alias Maya before and that generates
    MEL script
    code for all animations so you can control your animation via
    the GUI
    editor in addition to a script editor also
    This would be useful if you could switch between GUI view and
    command-editor view for your animation - I could not locate
    this on
    the net ...
    Thanks
    - Sami

    Ok, I'm a bit confused.  When you boot into safe mode, does it work?  If so, then it's definitely a service/utility that is being loaded on boot (in normal mode) that is conflicting.  My first inclination is to suspect the virus/security software that you have installed.
    Normally, I'd use the tool "msconfig" to turn different items off until I discovered the culprit.  However, sometimes this isn't enough for a virus scanner.  So, to start I'd try temporarily uninstalling your virus/security software, then rebooting into normal mode to see if that makes a difference.
    If it fixes the problem, then I'd recommend contacting the security company to see what they'd recommend.
    If it still occurs, then try using msconfig to selectively disable apps/services until you've found the problem.
    http://www.makeuseof.com/tag/how-to-troubleshoot-your-windows-with-the-msconfig-utility/

  • When cmd+shift+d does not work on a mac, here's what to do.

    I have been trying to authorize my new Macbook Pro 2011 for weeks. (I set up and authorized my iPhone with no problem.) Whenever I try to authorize my computer using the Digital Editions instructions given at the bottom of this post, I get the message:
    Activation Server error - code E_AUTH_NOT_READY
    Digital Editions encounter an error on the activation server.
    I've read all the forums and tried everything. To deal with this problem, the answers in the forums say to deauthorize my computer and the reauthorize it but, no matter what I do, I cannot get it to deauthorize. i have tried opening ADE and hitting Command+Shift+D--using command because I have a mac--(tried this in library view and in reader view) but nothing happens. This is different from so many others who have solved this problem using Command+Shift+D. When I hit Command+Shift+D, nothing happens at all. I get no screen so I cannot hit Erase Authorization. I don't know how to get rid of the authorization that must exist somewhere but I don't know where. Only after I get rid of it, will I be able to reautorize my computer so I can read ebooks from the library, etc.
    I also tried uninstalling ADE 2.0 and then reinstalling it. I did not get the set-up wizard to help me authorize my computer. So I went to the Help menu and chose "Authorize Computer" and got a window titled "Authorize Your Computer." The eBook Vendor was already shown as Adobe ID. All I had to do was enter my Adobe ID and Password. I did this (which worked successfully on my iPhone) and got the same error screen message noted above:
    Adobe Digital Editions
    An Error Has Been Detected
    Activation Server error - code E_AUTH_NOT_READY
    Digital Editions encounter an error on the activation server.
    To retry, click the Try Again button.
    Cancel button             Try Again button
    When I hit "Try Again," the same error message just comes up.
    I decided to try step 5 in the instructions below so I navigated to /Users//Library/Application Support/Adobe/Digital Editions. There was a document named "activation.dat" and a file named "Voucher." I dragged the activation.dat file to the trash.
    I returned to the Help menu and chose "Authorize Computer" and got a window titled "Authorize Your Computer." The eBook Vendor was already shown as Adobe ID. All I had to do was enter my Adobe ID and Password. I did this and THIS TIME I WAS SUCCESSFUL. I got the following message screen:
    Adobe Digital Editions
    Your Computer Has Been Authorized
    This computer has been successfully authorized to [email protected] with a Vendor ID.
    You are now ready to read Adobe DRM protected items on this machine, and easily transfer them between devices.
    SPECTACULAR!!!
    SO FOR THOSE MAC USERS WHO HAVE BEEN UNABLE TO DEAUTHORIZE THEIR COMPUTERS USING COMMAND+SHIFT+D, TRY DRAGGING YOUR activation.dat FILE (LOCATION GIVEN ABOVE) TO THE TRASH. THEN TRY TO AUTHORIZE YOUR COMPUTER AGAIN BY OPENING ADE 2.0, CLICKING ON THE HELP MENU, CHOOSING AUTHORIZE COMPUTER, ENTERING YOUR EMAIL ADDRESS AND PASSWORD, CLICKING ON AUTHORIZE (OR WHATEVER THAT RIGHT BUTTON IS), AND YOU WILL MOST LIKELY GET THE MESSAGE THAT YOUR COMPUTER HAS BEEN AUTHORIZED.
    I hope this helps. I have been trying for weeks to figure out how to solve this problem and for hours today. So I hope this solution will help those who have the problem I had with the Command+Shift+D not working.
    I followed these instructions
    Instructions from webpage: http://helpx.adobe.com/digital-editions/kb/error-e_act_not_ready.html
    Issue
    When you activate Adobe Digital Editions 2.0, you receive the error, "E_AUTH_NOT_READY."
    Solution
    This error occurs when the authorization information is damaged. Follow the below steps to rebuild the Activation file.
    Mac OS
    1. Open Adobe Digital Editions.
    2. Press Command+Shift+D to deauthorize Adobe Digital Editions.
    3. Select Erase Authorization.
    4. Click OK and Quit Adobe Digital Editions.
    5. Navigate to /Users//Library/Application Support/Adobe/Digital Editions and drag the activation.dat file to the trash.&#8232;If you are using 10.7, see Access hidden user library files | Mac OS 10.7 Lion.
    7. Open Adobe Digital Editions and reauthorize.

    I have just encountered the same problem and all the same frustrations as karliekate, except that I haven't got a new eReader.  I just use my PC, so I don't know what might have caused this.  The Adobe Help (!!) pages say to contact the eBook provide (the library) whose site says contact Adobe, although it should be well known by now that software producers like Adobe, Apple, Microsoft and many others are completely indifferent to their customers' problems.

  • THE ULTIMATE IRONY!

    Hello everybody...
    check out the copy below...
    this is how ADOBE describe FREEHAND on THIS website...pretty amazing eh!
    This poses the question to me, why not practice what you preach adobe! why don't you take a leaf out of your own (or macromedia's) book?... unbelievable!
    I just find it hilarious how adobe can describe freehand on this website so perfectly and so true to life, i.e brilliant!, but then try to kill it a slow painful death at the same time...
    THIS IS EXACTLY WHY WE USE FREEHAND ADOBE!...AND NEED IT TO HAVE A FUTURE!
    http://www.adobe.com/products/freehand/productinfo/overview/
    FreeHand MX at a glance
    The creative design solution for print, Internet, and Adobe Flash
    Realize your creative vision with an unparalleled set of creative design tools. ONLY FreeHand® MX has everything you need to move seamlessly from concept through design, production, and publishing in a streamlined graphics environment — all while working with a single document. Use FreeHand MX for storyboarding, creative design, multipage document production, and editing. Whether you're designing for print, the Internet, or Adobe® Flash®, you can repurpose your FreeHand MX projects across multiple mediums quickly and efficiently.
    EASY
    Quickly go from concept to design and publishing in print, Internet, and Flash projects. FreeHand MX provides a streamlined, easy-to-learn graphics environment for designing illustrations, organizing information, laying out storyboards, and developing click-through presentations.
    Enhance productivity with a highly customizable workspace. The Object panel eliminates the need to move between multiple panels to inspect and change object, text, and style properties. Tools panel organization and a streamlined workflow make FreeHand MX easy to learn and use.
    Quickly organize and map navigation, content, components, and data flows. Drag and drop to build persistent relationships between objects — while providing complete editability of stroke styles — with the Connector Lines tool. Achieve maximum editability and reduce production and revision times using master pages and backgrounds, Symbol libraries of data types and navigation components, and the graphics-based Find & Replace panel.
    Produce immersive presentations and click-throughs for proof-of-concept proposals and client approvals. Drag and drop interactivity between objects and pages with the Action tool. Assign ActionScript™ commands in the easy-to-use Navigation panel. Quickly publish to SWF format for easy distribution.
    POWERFUL
    Rapidly create and edit visually rich designs and illustrations that provide maximum impact. FreeHand MX includes a powerful and flexible set of vector-based tools for designing print layouts, animations in Flash, or application interfaces.
    Layer complex visual appearances on individual vector objects. With multiple attributes you can apply and organize an unlimited number of strokes, fills, and effects on a single object, from a single panel — eliminating the need to keep up with and edit multiple copies of an object for the same visual appearance.
    Easily build rich graphical components for ads, interface objects, and attention-grabbing headlines. Apply path manipulation effects such as bend and transform while maintaining editability of the original shape with live vector effects. Provide high-resolution, realistic appearances — such as drop shadow and bevel — with live raster effects. Create 3D appearances with the Extrude tool.
    Quickly reshape graphic primitives while maintaining editability. Round rectangle corners, turn ovals into arcs, and change the number of points on stars — all within the workspace.
    WHAT A READ EH! MAYBE ADOBE SHOULD READ THIS....
    I wonder how long it is before adobe change the description of freehand on this website??
    thanks,
    mark f

    This discussion is not appropriate for the Design forum.

  • How do I open one .mxml from another?

    I suppose I would make a "link" some how, just like in an html page.  What would the URL look like?  What is the ActionScript command to open that other .mxml file?  (Which may be a form or just another page)
    Thanks in advance.

    to open another .mxml file within your project? Like a sub window within your main app? You can do it as a popup;
          var win:[MXML FILE NAME] = PopUpManager.createPopUp(this, [MXML FILE NAME], true) as [MXML FILE NAME];
          PopUpManager.centerPopUp(win);
    or, if it's a completely different app you're trying to link to;
    navigateToURL(new URLRequest('http://wherever/the/compiled/html/is.html'),'_self');
    quite unsure about what exactly you want though...

Maybe you are looking for

  • Java desktop application run problem

    Hi. I have designed java desktop application which includes some libraries (XMLparserV2.jar, Ojdbc6.jar,xdb.jar, Orai18n-mapping,jar) with XML ini file. Then I have done deploy to jar. After it I relocated jar file and XML ini files to separate direc

  • My laptop hard drive crashed - when I go to sync my iPhone it says that my phone is already synced with another computer and can only be synced with one computer at a time.

    My Dell laptop hard drive crashed - when I go to sync my iPhone it says that my phone is already synced with another computer and can only be synced with one computer at a time. When I hit sync is says it will erase my phone and sync with the new com

  • Additional Service tax line items at the time of payment

    Hi friends, Please look into the following requirement: At the time of vendor invoice, following entry is passed: Dr. Expenses                                             3000 Dr. Service Tax (ST) not accrued Due             100 Dr. Ed. Cess on ST No

  • Black ink not printing

    My HP deskjet which is 2 months out of warranty, which i have recently bought new HP cartridges for, now won't print black (other colors are all fine). If have spent hours and hours trying to fix this, following all the advice on this forum - believe

  • Address Book Deleted

    So this is my first posting and I'm not a mac genius or anything so bear with me... my HD crashed on my macbook and I restored from my external HD but Address book was empty. I can't find where my address book contacts are saved on my external HD. Or