How do I make the button reset with Flash actionscript?

Hello, I recently made a flash banner that changes frames when you click the next frame and last frame buttons, and it also goes to the next frame on a timer. The thing is, I need the timer to go back to it's starting point when you click one of the buttons, so you don't end up seeing a frame for 2 seconds. Initially, the timer starts at 7 seconds, and when you click a button, I'd like it to go back to 7 seconds. Here's my .FLA file:
http://uppit.com/v/5761GXW6
Also, whenever the banner goes through all of the frames and comes back to the first frame with the buttons, the first frame next_btn stops working for some reason. Thanks if you can solve this.
So yea, if anyone could tell me where to put what actionscript code, or just do it and reupload it for me, I'd appreciate it a lot. Thank you. =)

K so here's the code for the timer:
var secTimer:Timer = new Timer(1000, 7);
startTimer();
//secTimer.addEventListener(TimerEvent.TIMER, tik);
secTimer.addEventListener(TimerEvent.TIMER_COMPLETE, skipFrameT);
//next_btn.addEventListener(MouseEvent.CLICK, resetTimer);
//prev_btn.addEventListener(MouseEvent.CLICK, resetTimer);
/*function tik(e:TimerEvent):void
trace ("tik");
function startTimer ():void
secTimer.start();
//trace ("timer Started");
function skipFrameT (e:TimerEvent):void
//trace ("time stoped");
resetTimer();
play();
startTimer();
function resetTimer()
secTimer.reset();
//trace("Timer Reseted");
That spans across that one layer for every frame. I tried adding the following into every button frame on the buttons layer:
secTimer.reset();
secTimer.start();
Now, what happens is the frames never stop. It just continues to go. I need the timer to go back to 7 seconds. Thanks =)

Similar Messages

  • How can i make a button link in flash??

    Hey Guys,
    Im pretty new to flash but really need your help and
    guidance. I have a nice video ive created, and i want to make the
    buttons link to certain pages on a website it will be displayed at.
    If you want to see the flash video in place on the website,
    visit www.loveandmarriagebridal.co.uk - i want to make the buttons
    to link to the following pages.
    button 1. www.loveandmarriagebridal.co.uk/index.php
    button 2. www.loveandmarriagebridal.co.uk/about_us.php
    button 3. www.loveandmarriagebridal.co.uk/
    button 4.
    http://loveandmarriagebridal.co.uk/account.php
    button 5.
    http://loveandmarriagebridal.co.uk/contact_us.php
    Could anybody please tell me exactly what i need to do in
    order to acheive that. I am using Flash CS3. Ive looked around the
    net for a solution, but i honestly have no idea what im searching
    for.
    Your help would be very much appreciated
    Thanks
    Andy

    See which form of ActionScript you used to make the site.
    Open the Actions panel and see whether you've chosen AS versions 1
    & 2, or AS 3. If you've picked the earlier versions, you can
    attach a link easily to each button by clicking on the button, and
    adding a little code in the Actions panel. Turn on ScriptAssist to
    make it easier. Click on "on" and choose "release" or "press" or
    both. Then scroll down the commands on the left and add getURL. You
    will then have a few lines that say something like, on(Release)
    getURL("putyourpageurlhere"). See bottom for exact syntax. That's
    all. The new .html or .php page will load when the button is
    clicked.
    If your buttons are not actually four-state buttons, but
    graphic or movie clip symbols, you will have do it a little
    differently. Instead of attaching the code to a button, you attach
    it to a keyframe. You give your symbol an instance name in the
    property panel, then in the Actions panel create a function that
    says essentially: when you click on this instance (onRelease)
    getURL.
    If you're using AS3, the concept is similar but the code is
    different. With a quick search you can find dozens of code examples
    that you can cut and paste.
    Here's that AS2 button code...

  • How do I make the following work with Cisco 302-08G ??

    I would like to sniff (using wireshark) all traffic in my home. I have a 4-port Cisco wireless/wired router that allows for a guest account. I also have Cisco SF302-08 that I bought so I could use its port/vlan mirroring capability. How should I configure the network, given the aforementioned equipment,  so that I can get a single point sniff.
     Assume I have two wireless clients, one using the "regular" wireless SSID, and the other using the "guest" SSID.  I can see 192.168.1.x (regular SSID) and 192.168.169.x (guest ssid)  on the internet side of the wireless router. So far so good. But, I would like to use 302-08 to actually allow the guest SSID/network communicate with the regular SSID/network. For example, if I ping 192.168.169.x from 192.168.1.x, I would like to see a response. Can I make them communicate properly with the 302-08 ?? if so, what do I need to do ?? (I will also have wired clients tied into the 302-08..so its important that it be the central sniffer point)
    thanks

    Hi. Welcome to Cisco Home Community.
    You may also visit the Cisco forums at https://supportforums.cisco.com/
    if you have inquiries on advanced network setup involving the Cisco 302-08G switch.

  • How do I make the pages larger with firefox? I like to use this but text is was to small. So I always go back to internet explorer. HELP

    I don't have any tool space on the top of the page. only home and favorites google too. I also don't have to bottom where I can press to get to my programs. I do like firefox. But the text is way to small. How do I fix these things?

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
    *https://support.mozilla.org/kb/how-to-use-full-screen
    If you are in full screen mode then hover the mouse to the top to make the Navigation Toolbar and Tab bar appear.
    Click the Maximize button (top right corner of the Navigation Toolbar) to leave full screen mode or right-click empty space on a toolbar and choose "Exit Full Screen Mode" or press the F11 key.
    You can use an extension to set a default font size and page zoom on web pages.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/
    *http://kb.mozillazine.org/Zoom_text_of_web_pages

  • How do I make the buttons on the bookmarks toolbar smaller?

    I'd like to have more space in the toolbar by removing the extra space around the icon thus making the button smaller. As it is now I have 3/16 of an inch of space between each icon, when I mouse over each there is a greyish button behind each icon using up valuable space. I've searched Google for this but was unsuccessful at finding anything related to this exact issue...
    Is there a way to remove this wasted space and have just the icon itself as the button like it was in FF3?
    Is there an "About:config: entry that addresses this?
    An add-on maybe?

    I don't know what CSS is used on a Mac to style that button.
    You can try the below posted code in userChrome.css below the @namespace line.
    * http://kb.mozillazine.org/userChrome.css
    * http://kb.mozillazine.org/Editing_configuration
    You can use the ChromEdit Plus or Stylish extension to have easier access to the customization files.
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #PlacesToolbarItems .toolbarbutton-icon { margin-left: 0px !important; margin-right: 2px !important; }</nowiki></pre>
    *Bookmarks Deiconizer: https://addons.mozilla.org/firefox/addon/bookmarks-deiconizer/
    *Roomy Bookmarks Toolbar: https://addons.mozilla.org/firefox/addon/roomy-bookmarks-toolbar/ (icons)

  • How do I make multiple buttons in my flash animation?

    I am new to flash, and I have no training in it whatsoever. I
    created a flash animation with flash CS3 for my photography
    website, and I want to link each of the images to different
    galleries on my site. When I created my first button it worked
    fine, but when I try to create actions to link more than one image
    as a button, keep getting an error that says "1021: Duplicate
    function definition." How do I make each image as a separate
    button?
    I used the video of this tutorial as my guide to learn how to
    create a button:
    http://www.adobe.com/designcenter/flash/articles/flacs3it_firstflash_pt1.html
    Also, when I run the animation to test it, it loops, and I
    don't want it to loop. How do I stop it from looping?

    I used the method shown in the tutorial I mentioned to create
    it (created a new layer for the button, selected the area of the
    image for the button,used modify -> convert to symbol
    -> button, I edited it so it was an invisible button by
    moving it to the hit frame, gave the selected area an instance name
    of Hizumi_btn, inserted a new layer for actions and added the code
    I have attached to this post.
    I assumed that I would just need to repeat this procedure for
    each of the other images in my animation, but when I did that I
    received the error.
    I greatly appreciate any help you can give me.
    Thanks for the information on how to stop the animation.
    Here is the code I used to create my first button.

  • How do you make the button to be displayed beside the text field?

    I need help on doing this for a company. As of above subject.

    In the intern's defense, that documentation isn't what I would call a "quick read." It's virtually >impossible to assimilate all the voodoo in one gulp. And the whole branches, buttons, items and >layout stuff is pretty frustrating. I'm just getting started, and I can sympathize with the tone of >voice. I couldn't disagree more......
    In my experience, a prerequisite of learning any computer language or system is reading the associated documentation. If you're the sort of person who likes to just dive into writing code without understanding the fundamental basics of how the language/system works then you're going to encounter lots of problems no matter whether you're using Apex, Java, Perl etc.
    Nobody is saying that you should spend days and days reading the documentation as though you were preparing for an exam, however if you don't take the time to learn some of the basic concepts then the only person who is going to suffer is you (and also perhaps the users of your system!).
    If you feel the documentation is too big for you to take in in one sitting, then break it into chunks. Set yourself a few little mini-projects to do, with each one using a different piece of functionality (for example reports, branches, collections etc).
    The more you put into learning (and using) Apex the more you will get out of it.

  • Flash menu in DW, how do I link the buttons?

    Hi there!
    I have a problem, i'm creating a site in dreamweaver with a
    lot of flash objects. For examlpe I'm making a flash menu, wich is
    the hole problem! I'm importing the flash file to the left frame in
    dreamweaver and i'm trying to link the buttons (on the menu) to ex.
    "home" or "about me", though it doesn't work! I can't link the
    buttons because they're in this flash object. I know i'm doing it
    wrong with trying to link the buttons on the flash object but I
    don't know what else to do. And the thing is that i don't wanna use
    the buttons already existing in DW, i've made my own ones. The
    buttons are moving so there is one more problem, they're coming in
    from the right side (in the left frame) and bounces once, and then
    they stop. And that's when I wan't them clickable. So how do I make
    the buttons linking to the pages??
    Would really appreciate an awnser!
    Thanks !

    Flash links are made in Flash, not DW.
    I trust these links are not important, as search engines
    can't see them
    "Sabyonei" <[email protected]> wrote in
    message
    news:f1ktus$ct9$[email protected]..
    > Hi there!
    > I have a problem, i'm creating a site in dreamweaver
    with a lot of flash
    > objects. For examlpe I'm making a flash menu, wich is
    the hole problem!
    > I'm
    > importing the flash file to the left frame in
    dreamweaver and i'm trying
    > to
    > link the buttons (on the menu) to ex. "home" or "about
    me", though it
    > doesn't
    > work! I can't link the buttons because they're in this
    flash object. I
    > know i'm
    > doing it wrong with trying to link the buttons on the
    flash object but I
    > don't
    > know what else to do. And the thing is that i don't
    wanna use the buttons
    > already existing in DW, i've made my own ones. The
    buttons are moving so
    > there
    > is one more problem, they're coming in from the right
    side (in the left
    > frame)
    > and bounces once, and then they stop. And that's when I
    wan't them
    > clickable.
    > So how do I make the buttons linking to the pages??
    > Would really appreciate an awnser!
    >
    > Thanks !
    >

  • How can I make hyperlinks work from a Flash/SWF presentation?

    How do you make hyperlinks/buttons work in Flash/SWF Captivate 5.5 presentations? This did not seem to be an issue with Version 4. I cannot publish to video (i.e. mp4) or as an executable file for posting on our internal system. If it cannot be done in Flash/SWF, how else can I get buttons/hyperlinks to work? Thank you.

    Welcome to our community
    Please take a look at the links below. Not only do they answer your question, they are there to help you get the best forum experience.
    Forum Participation Suggestions
    Frequently Encountered issues
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How do I make a button onj the form which will submit and send the pdf as an email?

    how do I make a button on the form which will submit and send the pdf as an email?

    You can set up a button with a "Submit a form" action and use a mailto type URL to specify the email address you want the forms sent do. If you want to send the entire PDF, select that option and not FDF or anything else. The mailto URL should not include any spaces and the "mailto" part should be lowercase, like:
    mailto:[email protected]
    This will attempt to initiate an email using the users default email client. If the user does not have one set up or there is some other problem, the email might not get initiated. If it needs to work with Reader versions prior to 11, then the form needs to be Reader-enabled, which you do in Acrobat 11 by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools

  • How can I make a button that on press the object appears and on second press the object to disappear

    Hello,
    I'm quite new to flash programing, and I don't know how can I make a button that will make the object appear and disappear.Till now I have this code for the appear:
    on (press)
        _root.top1.gotoAndStop(2);
        _root.topp.gotoAndStop(2);
        _root.mm1.gotoAndStop(2);
              _root.m1.gotoAndStop(2);
    but from here I'm stuck.
    Thank you for your help

    What you can do is use the _visible property of the object to make it appear and disappear, or more correctly, use the opoosite of the _visible property.  You should not put code "on" objects, keep it in the timeline.
    If "object" is the instance name of the object you want to toggle, then in the timeline code you can use...
    object._visible = false;  // start with the object being invisible
    yourButtonName.onRelease = function(){
        object._visible = !object._visible;
    That one line in the function sets the object's _visible property to be the opposite of what it currently is.

  • How can I make the popup with empty fileds and create new record?

    I would like to use a popup to create new record.
    I created a af:popup by drag and drop a VO from data control to jsff. then, I created a button and place a af:showPopupBehavior. I was able to popup window by click the button.
    however, the window filled with the information from the 1st record. and when I select a record in table and click popup, the popup is filled with that record.
    How can I make the popup with empty fileds and create new record by saving the popup?
    Thanks

    You can have edit and new buttons, in the PopupFetchEvent identify button source (using popupFetchEvent.getLaunchSourceClientId()) if new button clicked clear the binding using below code.
    If you want to see empty fields, in the popup PopupFetchEvent clear the input component bindings.
    resetBindingValue("#{bindings.<componentid>.inputValue}", null);
        public static void resetBindingValue(String expression, Object newValue) {
            FacesContext ctx = FacesContext.getCurrentInstance();
            Application app = ctx.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = ctx.getELContext();
            ValueExpression valueExp = elFactory.createValueExpression(elContext,expression,Object.class);
            Class bindClass = valueExp.getType(elContext);
            valueExp.setValue(elContext,newValue);
        }

  • How can I make the playback buttons of YouTube and other plug-ins bigger since they are so tiny?

    How can I make the playback buttons of YouTube and other plug-ins bigger since they are so tiny in Firefox? I tried some suggestions that dealt with entering "about:config" in a fresh browser, but to no avail. I also downloaded an add-on called "Theme Font & Size Changer", but that didn't work either. So, I am reaching out here as that was a suggestion that another user here offered.

    Ah, yes- that is an ultra high DPI (dots per inch) display. This is a known issue in Flash Player, which Adobe is working on fixing.
    In the mean time, you can get some videos to have normal-sized controls by switching Youtube to the HTML5 video player:
    In Firefox, go to https://www.youtube.com/html5 and click the "Request the HTML5 player" button.

  • How to make the report run with urls supplied parameters

    I have a report that I send the report's parameters by URL.
    How can I make the report automatically run with the parameters supplied?
    So when the report opens the user does NOT have to click the "View Report" button the report would just run and display the results for the user?
    Thank you for you help.

    Take your iPad to the apple store and explain your problem. They won't make you sit there for an hour to reproduce the problem. I took an iPad back a month ago wit h screen problems. They didn't look at the problem, they just exchange it.
    Again, Apple won't make you stand on your head to reproduce a problem with one of. their produces.

  • How do i make the old frame dissapear when i click a button for a new frame

    I have a program were you have 2 buttons in a frame. When you click on a choice a new frame pops up with another choice. I wanted to know how can i make the old frame dissapear after the user makes the choice and the new frame has come up?
    Thank you,
    Dan

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Frame extends JFrame implements ActionListener
         private JButton Three;
         private JButton Four;
         private JButton One;
         private JButton Two;
         static int num = 0;
    public Frame()
         JPanel p1 = new JPanel();
    getContentPane().add(p1);
         if(num == 0)
         p1.add(One = new JButton("Admin"));
         One.addActionListener     (this );
         p1.add(Two = new JButton("Buy"));
         Two.addActionListener     (this );
    if(num == 1)
         this.dispose();
         p1.add(Three = new JButton("Password"));
         Three.addActionListener (this);
    if(num == 2)
         p1.add(Four = new JButton("Product-ID"));
         Four.addActionListener(this);
    public void actionPerformed(ActionEvent e)
         if (e.getSource() == One)
              num = 1;
              Frame g = new Frame();
              g.pack();
              g.setVisible(true);
    if (e.getSource() == Two )
                   num = 2;
                   Frame h = new Frame();
              h.pack();
              h.setVisible(true);
         if(e.getSource() == Three )
              System.out.println("Password");
         if(e.getSource() == Four)
                   System.out.println("Product-ID");
    public static void main(String[] args)
         Frame frame = new Frame();
    frame.pack();
    frame.setVisible(true);

Maybe you are looking for