Trying to Make a Previous Button

    This should be a simple fix. I'm trying to create a button that when clicked will send the viewer back 20 frames in the timeline. I had some help with this but when I got home and tried this out I get the error message 1137.
photography_mc.goPrev.addEventListener(MouseEvent.CLICK,goPrevImage);
    function goPrevImage(event:MouseEvent):void {
        var cf = photography_mc.currentFrame;
        cf -= 20
        if( cf > 0 ){
            photography_mc.play( cf );
    I'm not sure what to do from here. It says the error occurs at  the line "photography_mc.play( cf );"
   Please help me out, thanks y'all!

play() is not the command to use... it doesn't accept arguments.  You need to use gotoAndPlay(cf)

Similar Messages

  • I'm trying to make a "Submit" button for my existing UIPickerView. Help!

    Hi there! I’ve been tearing my hair out and searching the web high and low for an answer to a question I have about UIPickerView. I was hoping that perhaps you could help me out!
    I’m trying to make a “Submit” button for my existing UIPickerView.
    I’ve coded a 3 column UIPickerView into my app, and it works great. However I’d like to add a “Submit” button and connect it to my pickerview, so that once a user makes their selections and clicks “Submit,” the app searches an existing array for the user’s selected values.
    Any help would be appreciated! I hope I explained that okay, lol.
    Thanks,
    Brittany

    Check this one.
    http://support.apple.com/kb/HT2731

  • Help with trying to make a rollover button

    I'm trying to make a roll over button using this tutorial 
    http://www.pegaweb.com/tutorials/rollover-buttons/rollover-buttons.htm
    and it doesn't seem to do what the tutorial says it will do 2-3 steps in.
    The part where it says...
    Quote:
    - In the Channels window, Ctrl+Click the "Alpha" layer, to select its outline.
    - Go back to the Layers window, and create a new layer.
    - Choose the Gradient Tool. (Remember that it might be hidden under the Paint Bucket Tool.) Apply a gradient from the bottom of the image to the top.
    Mine does not create a gradient that looks like the image they have presented. 
    I just have the entire wood look, and then the outline of my button is just a little darker. I don't get the white background with the gradient applied to it in the button space.
    Would someone mind following the steps at this link and letting me know if it is missing something? It only took me 2 minutes to get to this point before I couldn't figure out why it wasn't doing what it was supposed to.

    When you create the button look in the upper left hand corner of the screen and see what type of object you are creating. Placing the mouse of the the three buttons will give you a tool tip of what they are.
    The one you want is the one on the right as it will create a pixel based rectangle. Make sure you put this rectangle on its own layer, then you can move it or delete it if necessary. Lock the transparency7 button at the top of the layers panel. The will make sure when you create the gradient it will put it inside the button you made and not outside of it.
    If you are seeing just a border I am thinking the middle button in the top tool bar is selected which creates a path. It is possible to fill that path and then create the gradient but you have to make sure that the lock transparency is not checked. Open the paths panel and at the bottom of the panel is a fill button. This creates a pixel based object which you can then create a transparency using the steps above.

  • Hi I'm trying to make a radio button web form using edge animate.

    www.smpcanada.com/1.5/infinite_app
    Hi,
    Basically I'm working on this app, the only thing I need is, I want every option that the user click will be recorded and summarize, and will emailed to my email. Much like a web form, can I do that in edge animate? Please help... 

    www.smpcanada.com/1.5/infinite_app
    Hi,
    Basically I'm working on this app, the only thing I need is, I want every option that the user click will be recorded and summarize, and will emailed to my email. Much like a web form, can I do that in edge animate? Please help... 

  • While editing photos in Aperture, I'm trying to make an "auto" adjustment to the exposure but the button is grayed out and consequently doesn't perform any function, please help! Thank you, Mike

    While editing photos in Aperture, I trying to make an "auto" adjustment to the exposure,
    but the "auto" button is grayed out and will not allow any auto function to take place.
    Please help!
    Thank you,
    Mike

    Mike, are you working with raw images?
    For some raw images auto exposure is not available, have a look at this manual page:
    http://documentation.apple.com/en/aperture/usermanual/index.html#chapter=18%26se ction=9%26tasks=true
    Note: Automatic exposure adjustment is available for Aperture-supported RAW images only. If you want to adjust the exposure of another file type, such as JPEG or TIFF, see Working with the Exposure Controls. For a list of supported RAW file types, go to the Apple website at http://www.apple.com/aperture/specs.

  • Ctrl + secondary mouse button (Trying to make a button invisible)

    Hi Portal Experts,
    I am trying to make a button invisible basically personalization of Iview we are in SAP Portal version 6,40. I have kept mouse on the button and action was Ctrl + right click of mouse and i am not getting the properties screen rather a general windows options(Second screen shot). It would great if i can get suggestions to get the properties screen.
    Thanks in Advance..!!
    Regards
    Venkat

    Hi Venkat,
    Can you check the value of property "AllowUserPersonalization" in Visual administration Services → Configuration Adapter → webdynpro → sap.com → tc~wd~dispwda - propertysheet
    Also what is the exact version of this portal?
    Mahesh
    Message was edited by: Mahesh Krishnapillai

  • HT201272 Tried to re-download previous music purchases, but the download button reads 'Downloaded' and is inactive. Help please. Thanks

    Tried to re-download previous music purchases, but the download button reads 'Downloaded' and is inactive. Help please. Thanks

    Welcome to Apple Support Communities
    As you know how to open the iTunes Media folder, go to this folder and open iTunes. Then, go to Apps in iTunes and drag the IPA file of the app you want to show up to the iTunes window, so it should be added.
    If it doesn't work, delete the IPA, empty the Trash and you will be able to download the application.
    If a post solved your question or helped you, mark it as solved or helpful before posting a reply. Doing this, you will avoid that your own post is marked as solved or helpful. You won’t receive any point if you mark your own post as solved or helpful. Also, you won’t be rewarding the user who solved your question and you will help other users find the answer if you mark the correct reply

  • Trying to make a button with a drop zone

    Since I can't find any of the template buttons that look the way I want, I want to make a simple button that includes a drop zone for an asset, a label, and a highlight. I am trying to make a chapter index menu. I can do it using the automated method and using a customized template - but I cannot find buttons that look the way I want. All I want is a simple rectangle, with the label underneath, and a highlight line under the label. There is one like that in which the asset is black and white (RectRoundEdgesBlue.pox), but I want one that is in color. Is there any way to do this?? I have studied some of the Photoshop tutorials, but I am missing how you put a drop zone in.

    Hi,
    Below is the AS3 code to navigate to adobe.com upon button(whose instance name is 'myButton') click
    myButton.addEventListener(MouseEvent.CLICK, gotoPageFunction);
    function gotoPageFunction(event: MouseEvent) {
    var request:URLRequest = new URLRequest("http://www.adobe.com");
    navigateToURL(request, '_blank');
    Thanks!
    ps: please mark this post as Answered if this is of help to you

  • When trying to make calls the timer starts counting as if i am connected but i can't hear anything and my speaker button has turned blue

    when trying to make calls the timer starts counting as if i am connected but i can't hear anything and my speaker button has turned blue

    Did you use the latest backup after setting it up "as new device"? If yes, try again, this time without using the backup, maybe it contains damaged data causing your problem.
    If this does not bring any change, you should get it serviced.

  • Trying to make a hyperlink with AS3 on Arcade button

    Hello all,
    I do not know really anything about ActionScript. I have completed a tut on it but that is all. I am trying to make a hyperlink from a classic arcade button but the code I found is apparently from AS2.
    My question is can anyone help me create this button for my website?

    Hi,
    Below is the AS3 code to navigate to adobe.com upon button(whose instance name is 'myButton') click
    myButton.addEventListener(MouseEvent.CLICK, gotoPageFunction);
    function gotoPageFunction(event: MouseEvent) {
    var request:URLRequest = new URLRequest("http://www.adobe.com");
    navigateToURL(request, '_blank');
    Thanks!
    ps: please mark this post as Answered if this is of help to you

  • How to make next and previous button function

    Hello
    Can anybody help me with how to achieve next and previous button function such as the one at www.bestbuy.com?
    I would appreciate any help or suggestion.
    Thank you!

    if you're not familiar with flash it might be easiest to place your initial "page" in frame 1, the 2nd (or next) page in frame 2, the 3rd/next page in frame 3 etc.
    place your previous and next buttons in their own layer that spans the main timeline (which will have as many frames as you have "pages").  give them instance names (say prevBtn and nextBtn).
    you can then use the following code placed in frame 1:
    var tl:MovieClip=this
    prevBtn.onRelease=function(){
    tl.prevFrame();
    nextBtn.onRelease=function(){
    tl.nextFrame();

  • How to make a Previous/Next Menu

    Hi there.  This is my first time posting in the Adobe forums so please be patient if I don't do things correctly.
    I currently have the Adobe Web Design CS5 package and all the programs that come with it, but my question is specifically about Dreamweaver.  My computer is a Macbook with the latest operating system as far as I know.
    I've been trying to create a next/previous menu for parts of my own personal website.  It's http://www.aidenart.com . If you click on the link to the Concept Art page you should see a bunch of image thumbnails that act as links.  Click on any one of those images and you're suppose to see the full image from the thumbnail in a whole new page.  On the pages with the full images I would like to include, at the bottom, a jump menu so that a visitor can pick any of the pages that they might want to see (I already know how to do this part), but I would also like to include buttons which allow the visitor to visit the next image in the list and also the previous one in the list.  You know, a previous and next menu.  I've seen other websites using those kinds of buttons so I know it's possible somehow.
    By looking at the source code of some websites and doing a bit of research on my own, I think this can be done using javascript of some kind.  Maybe by using an "onClick" behaviour or something.  I looked at a few different web help sites, including W3 Schools, and I still haven't found any clear cut explanations on how to make a previous/next menu.  If someone could just show me the basic code for making a simple one that actual works then I could probably work from that.
    I would prefer it if I didn't have to bother with the dreamweaver extenstions section because most things listed in the exchange are something you have to pay for.  And for those of you who think I should just make individual links on each page, please keep in mind that I'll want to add more pages in the future.  Most likely a lot of pages.  I also want to be able to make previous/next menus for the comics section of my website for when I have more comic pages available, so I really need to know how to do this.
    I hope that was enough information for you guys.  I can try to provide code if you guys want although I'm not sure how that would help solve my current problem.

    Only way to do pagination effectively requires either a database or XML files containing your data.  Neither way is really for a beginner based on my experience with both.  And based on the size of your library right now, pagination isn't what you really need.
    If it is going to be an image gallery you could look into the php Gallery script if you have a mySQL database ( http://gallery.menalto.com/ ).  But for simple solutions.
    For even smaller solutions you can look to JQuery solutions.  They require minimal amounts of coding, mostly just file inclusions.
    http://galleria.aino.se/
    http://fancybox.net/
    http://www.twospy.com/galleriffic/#1
    It's just about finding one that meets your needs and gives you the ability to customize as you see fit.

  • How can i create an album with chose category list and next/previous button

    hello guys im working on a project for my uni i finished the whole website but one thing is missing
    i need to create a photo album with next and previous button, with choosing a category and inside each category i have like 5 pictures and i can change with the next/previous buttons to see another picture of the  same category.
    Please see the picture below to see what i mean.
    some told me it needs flash but i dont know how to work on it :S so plz if anyone can help me
    thank you

    Dear Mr. Murphy,
    thank you for your help.
    Actually i have tried to search for a tutorial and i found that one that was very helpful and gave me the half solution. the part i found and it worked with me is the part of the next and previous buttons and moving from an image to another.
    SO the part i still need is the list so when i click on a category i get the pictures of the chosen category, I had the idea of create a flash for each category alone and maybe i will be able to add them all together.
    But i guess it's too much work and there must be a way where i can make it all in one flash file.
    If you have any idea let me know please, thank you again for your help and i'm trying to search for the AS3 image gallery as you told me.
    Regards

  • Next and Previous Button Question

    First my code :)
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.GridLayout;
    import java.lang.Object;
    import java.awt.Image;
    public class Inventory // Main class
    //main method begins execution of java application
    public static void main(String args[])
         int i;
         double totalInventory = 0.0;
         final int dispProd = 0; // variable for actionEvents
         final part[] myPart = new part[4];
         for (i=0; i<4; i++)
                   myPart[0] = new part("Glass Break", 730, 12, 32.19);
                  myPart[1] = new part("Motion", 995, 14, 37.69);
                  myPart[2] = new part("Keypad", 220, 12, 50.69);
                  myPart[3] = new part("Contact", 944, 44, 1.19);
         final JButton firstBtn = new JButton("First");
         final JButton prevBtn = new JButton("Previous");
         final JButton nextBtn = new JButton("Next");
         final JButton lastBtn = new JButton("Last");
         final JLabel label;
         final JTextArea textArea;
         final JPanel buttonJPanel;
         //Add Logo          
         ImageIcon icon = new ImageIcon("javashield.JPG");
                   label = new JLabel("Some Company Inc.", icon, JLabel.RIGHT);
         //Set the position of the text, relative to the icon:
         label.setVerticalTextPosition(JLabel.BOTTOM);
         label.setHorizontalTextPosition(JLabel.CENTER);
         buttonJPanel = new JPanel(); // set up panel
         buttonJPanel.setLayout( new GridLayout(1, 4)); //set layout
              // add buttons to buttonPanel
         buttonJPanel.add(firstBtn);
         buttonJPanel.add(prevBtn);
         buttonJPanel.add(nextBtn);
         buttonJPanel.add(lastBtn);
    textArea = new JTextArea(myPart[3]+" "); // create textArea for product display
         // add total inventory value to GUI
    textArea.append("\nTotal value of Inventory "+new java.text.DecimalFormat("$0.00").format(totalInventory)+"\n\n");
    textArea.setEditable(false);
    JFrame invFrame = new JFrame();
    invFrame.setLayout(new BorderLayout());
    invFrame.getContentPane().add(new JScrollPane(textArea), BorderLayout.CENTER);
    invFrame.getContentPane().add(buttonJPanel, BorderLayout.SOUTH);
    invFrame.getContentPane().add(label, BorderLayout.NORTH);
    invFrame.setTitle("INVENTORY:");
    invFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    invFrame.setSize(350, 350);
    invFrame.setLocationRelativeTo(null);
    invFrame.setVisible(true);
    // assign actionListener and actionEvent for each button
    firstBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(myPart[0]+"\n");
    }); // end firstBtn
    prevBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(myPart[1]+"\n");
    }); // end prevBtn
    nextBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(myPart[2]+"\n");
    }); // end nextBtn
    lastBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(myPart[3]+"\n");
    }); // end lastBtn
    } // end main
    } // end class Inventory6
    class part
       public String partName;
       public int itemNum;
       public double units;
       public double price;
       //default constructor
    public part()
            partName = "";
            itemNum = 0;
            units = 0.0;
             price = 0.00;
        }//end default constructor
         //Parameterized Constructor
    public part( String partName, int itemNum, double units, double price)
            this.partName = partName;
             this.itemNum = itemNum;
             this.units = units;
             this.price = price;
        }//end constructor
         public void setpartName(String partName) {
             this.partName = partName;
            public String getpartName()
                return partName;
        public void setitemNum ( int itemNum )
           this.itemNum = itemNum;
        public int getitemNum()
         return itemNum;
        public void setunits ( double units )
             this.units = units;
         public double getunits()
              return units;
         public void setprice ( double price )
             this.price = price;
         public double getprice()
         return price;
      //calculates product total     
         public double invTotal()
         return (units * price);
    public String toString()
              return "Part:  "+partName+
                        "\nPart Number:  "+itemNum+
                        "\nUnits on hand: "+(int)units+
                        "\nPrice per unit:  $"+price+
                        "\nPart Total:  $"+invTotal();
    //end Class Part
    // Class Part holds Part information
    class Wireless extends part
    private String wlPart; // variable for added feature
    public Wireless(String partName, int itemNum, double units, double price, String addWL)
    // call to superclass  constructor
    super(partName, itemNum, units, price);
    wlPart = addWL;
    }// end constructor
    public void setwlPart(String addWL) // method to set added feature
    wlPart = addWL;
    public String getwlPart() // method to get added feature
    return wlPart;
    public double totalRestock() // method to set value and add restock fee
    return units * price * 0.05;
    public String toString()
    return "Part:  "+partName+
                        "\nPart Number:  "+itemNum+
                        "\nUnits on hand: "+(int)units+
                        "\nPrice per unit:  $"+price+
                        "\nRestock Fee:  $"+totalRestock()+     
                        "\nPart Total:  $"+invTotal();
    } I need to make my next and previous button keep going through the array. They go next or previous one time and stop. I know it is because of the way I wrote the statement
    textArea.setText(myPart[2]+"\n");What I can't figure out is how to make that statement be the current myPart and add 1 to it. I tried textArea.setText(myPart[i]+1+"\n");and it did not work either, I got these errors:
    C:\Inventory\Inventory.java:92: local variable i is accessed from within inner class; needs to be declared final
    textArea.setText(myPart[i]+1+"\n");
    ^
    C:\Inventory\Inventory.java:92: operator + cannot be applied to part,int
    textArea.setText(myPart[i]+1+"\n");
    ^
    2 errors
    So I tried to write {nextItem()}
    and writing a method for next item,
    nextBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    nextItem();
    }); // end nextBtn
    lastBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(myPart[3]+"n");
    } // end lastBtn actionEvent
    }); // end lastBtn actionListener
    } // end main
    private static void nextItem();
    if (myPart < myPart[]-1)
         myPart++;
         textArea.setText(myPart[0]);
    }and I get this error
    C:\Inventory\Inventory.java:109: '.class' expected
    if (myPart < myPart[]-1){
    ^
    1 error
    I thought '.class' expected meant I was missing a bracket, but I can't see where I am missing a bracket.
    I feel dumber by the minute.
    Am I not seeing something?

    Another suggestion. First create a non-GUI Inventory class, something like this:
    public class Inventory
        private part[] myPart;
        private int index = 0;
        public Inventory()
            myPart = new part[4];
            myPart[0] = new part("Glass Break", 730, 12, 32.19);
            myPart[1] = new part("Motion", 995, 14, 37.69);
            myPart[2] = new part("Keypad", 220, 12, 50.69);
            myPart[3] = new part("Contact", 944, 44, 1.19);
        public part getPart(int i)
            //TODO fill this in
        public part getFirst()
            //TODO fill this in
        public part getLast()
            //TODO fill this in
        public part getNext()
            //TODO fill this in
        public part getPrev()
            //TODO fill this in
        public double getTotalInventory()
            //TODO fill this in
        // this main is here only to test out the class
        public static void main(String[] args)
            Inventory inv = new Inventory();
            for (int i = 0; i < 4; i++)
                System.out.println(inv.getPart(i));  
                System.out.println();
            System.out.println("getFirst: " + inv.getFirst());
            System.out.println();
            for (int j = 0; j < 6; j++) // deliberately set to be > 4
                System.out.println("getNext: " + inv.getNext());
                System.out.println();
            for (int j = 0; j < 6; j++)
                System.out.println("getPrev: " + inv.getPrev());
                System.out.println();
            System.out.println("getLast: " + inv.getLast());
    }Then use this class as a variable within another class, say InventoryGUI. In this second class, the "next" button would call the Inventory object's getNext() method.

  • Creating next/previous buttons problem

    I am creating next & previous buttons on my main scene. I have created a scrolling photo gallery as well as a random button to randomly select images. I have a photos layer that has 15 images tagged in the AS "img1" "img2"....hopefully this all makes sense so far.
    What script can I use to easily create a next_btn. This is what I currently have
    next_btn.onRelease = function() {
        photos.gotoAndStop("img"+1);
        photos.fader.gotoAndPlay(2);
    "img"+1 goes to the "img1" however I would like it to go to the next img instead of always go to img1. I've tried _currentframe+10 (images are 10 frames apart) and some others but cannot seem to get it to work.
    I would like this to work along with the random button so that when a random image is clicked, the person can click the next button and get to the next image.
    Current script in...
    random_btn.onRelease = function(){
        var picNum:Number
        picNum = Math.ceil(Math.random()*15);
        photos.gotoAndStop("img"+picNum);
        photos.fader.gotoAndPlay(2);
    next_btn.onRelease = function() {
        photos.gotoAndStop("img"+1);
        photos.fader.gotoAndPlay(2);
    if you need any clarification let me know! thanks!

    i'll try to explain this simplier.
    scene 1 (layers)
    inside layers
    AS
    next back btn
    random btn
    photos
    displays images when clicked on from photo gallery
    scrolling photo gallery
    photo gallery + buttons for gallery
    i'm looking to create a simple < > prev and next image buttons.
    My current script from above (original post) hasn't worked out.
    random_btn.onRelease = function(){
        var picNum:Number
        picNum = Math.ceil(Math.random()*15);
        photos.gotoAndStop("img"+picNum);
        photos.fader.gotoAndPlay(2);
    next_btn.onRelease = function() {
        photos.gotoAndStop(picNum+1);
        photos.fader.gotoAndPlay(2);
    I'll take out the random_btn if need be to create just a regular next button and previous button. (i'll worry about tracking the scrolling image gallery later...one issue at a time)
    Thanks again.

Maybe you are looking for

  • Goods Receipt PO "money overflow" error message

    Hi all, A client is having problems when trying to post a Goods Receipt PO based on an A/P Reserve Invoice. When adding the following error message comes up: [Goods Receipt PO-Rows -Warehouse Code][line: 0], 'Money Overflow (ODBC-104)' Has anyone of

  • I want to print edited Pages documents with Comments written in margins, not yellow boxes

    Can anyone tell me a way to use Track Changes to edit a Pages document so my comments are printed in margins, not hidden in yellow boxes. I was able to do this on Word documents, but my students are now using Pages. Neither they nor I can see all com

  • Trying to Configure AIR-CAP3602i from WLC Not working

    Hi, I posted a question similiar to this a few months back and got a repy that worked. So i tried the same thing this time but the AP is different this time. I'm trying to change the RF Channel and Tx power level on my AIR-CAP36021-E-K9 from my WLC W

  • Exchange 2007 Active sync problems.

    I am trying to get an iPhone/iPod Touch to be able to sync with our Exchange 2007 server. First, I can sync windows mobile divices with the accounts. Second, I can sync if I use our internal network (via wifi) and the internal address for the mail se

  • Modification adjustments during Preprocessing phase in ECC6.0 EHP4 upgrade

    Hello All, We are upgrading our SAP systems from R3 4.7 to ECC 6.0 EHP4 and we are currently in the PreProcessing phase. The upgrade screen has prompted the below message *You must now include your repository modifications in the new SAP import. 35 m