How do I make my flash banner change frames on a timer?

Hello, I'm new to flash and I recently just made a flash banner where you can click buttons to change frames. I also want to add the ability for it to automatically change frames after 7 seconds. I've put all of the pictures on the same frame and gave them frame labels. What would be the actionscript code I should use to make this work, along with making the buttons still functional? Also, how can I put buttons to go to the last frame from the first, and first to the last, while still making them stop at every frame? I keep trying and nothing's working.
If you'd like a more in-depth look, I've provided the .FLA file here:
http://uppit.com/v/ZJOKIQ59
The easiest way to explain it would be to re-upload an .FLA file with all of the above completed bug-free, and show me how you did it. I hope I'm not asking too much with that, but I would be able then to take a look at it and compare it to my code to learn it myself.
Thanks in advance for any help! =]

Well I done some more work this time. As i had some problems uploading files I'v made these screanshots.
- On the first frame add just this:
var secTimer:Timer=new Timer(1000,7);
startTimer();
- The actual code is on the second frame:
//secTimer.addEventListener(TimerEvent.TIMER, tik);
secTimer.addEventListener(TimerEvent.TIMER_COMPLETE, skipFrameT);
next_btn.addEventListener(MouseEvent.CLICK, playNextFrame);
function playNextFrame(e:MouseEvent):void {
if(currentFrame < 50){
resetTimer();
play();
else{
resetTimer();
gotoAndPlay(2);
prev_btn.addEventListener(MouseEvent.CLICK, previousFrame);
function previousFrame(e:MouseEvent):void {
if(currentFrame <= 11){
gotoAndPlay(42);
else{
gotoAndPlay((currentFrame-10));
resetTimer();
/*function tik(e:TimerEvent):void {
trace("frame ",currentFrame,", tick", secTimer.currentCount);
function startTimer():void {
secTimer.start();
//trace ("timer Started");
function skipFrameT(e:TimerEvent):void {
//trace ("time stoped");
if(currentFrame < 50){
play();
else{
gotoAndPlay(2);
resetTimer();
function resetTimer() {
trace("Timer Reseted");
secTimer.reset();
startTimer();
- Remove your code for the buttons;
- And use 10 frames spaceing for the images:
2 to 11; 11 to 21; 21 to 31... and so on.
Hope this will be real help now.

Similar Messages

  • HT2478 how do you make the setting to change desktop background every time you shut down your mac

    how to make setting to change desktop background every time you close your mac
    because i want to make it if anybody tries to change my dekstop picture i want it to go backto set desktop picture

    Don't let other people access your Mac in admin mode - they might change something a lot more important than the Desktop picture.
    However you can use Automator: create an Application in it, and select 'Set the Desktop Picture' from the Library. Choose the picture you want. Save the application, then go to System Preferences>Accounts>Login Items and select the Automator application you just created. This will then run at startup and set your chosen picture.

  • How do you make audio fast without changing pitch?

    How do you make audio fast without changing pitch?

    PrPro may have that but I've always just gone over to Audition ... you change speed there, you're given a choice of keeping the pitch the same or allow it to change. Note ... if there's much cha ge in speed the result can be odd.
    Neil

  • Everything on all the webpages are so small, and only take up half the screen. How can I make it bigger, without changing the settings on my computer and by that change the size of everything on my computer.

    Everything on all the webpages are so small, and only take up half the screen. How can I make it bigger, without changing the settings on my computer and by that change the size of everything on my computer.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • How can I make my flash video load faster?

    How can I make my flash video created in Flash Pro CC load faster, as of now it takes 2 minutes to load?

    This is the source file for video.php:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title> VOPVIU Video
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css" media="screen">
    <!--html, body { height:100%; background-color: #666666;}
    body { margin:0; padding:0; overflow:hidden; }-->
    #flashContent { width:750; height:600; }
    </style>
    </head>
    <body style="background-color:#6E9BD2;">
    <center>
    <div width="100%" height="100%">
    <h3 align="center"> Victims of Political Violence in Uganda <br/> (VOPVIU)
    </h3>
      <table border="0" width="52%">
       <td width="80%" align="center">
        <em>
         <font color="#FFFFFF">
      <strong>
      <p> Victims Of Political Violence in Uganda
      </p>
    Number of views 344       </strong>
      </font>
        </em>
       </td>
       <td width="20%" align="right">
        <form action="vopviu.php">
         <div>
      <input type="submit" value="Exit Video">
      </div>
        </form>
       </td>
      </table>
      <table width="70%" height="70%" border="0">
      <td width="70%" height="70%">
      <center><div id="flashContent">
    <center>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="750" height="423" id="faddu_vopviu" align="middle">
    <param name="movie" value="faddu_vopviu.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#666666" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="window" />
    <param name="scale" value="showall" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="faddu_vopviu.swf" width="750" height="423">
    <param name="movie" value="faddu_vopviu.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#666666" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="window" />
    <param name="scale" value="showall" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--<![endif]-->
    <a href="http://www.adobe.com/go/getflash">
    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
    </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
      </center>
      </div>
    </center>
    </td>
    </center>
    </table>
    </div>
    </center>
    </body>
    </html>

  • How can I make my flash Webpage displayed same size on any screen resolution?

    Hi,
    How can I make my flash Webpage displayed same size on any screen resolution of my computer? Whether it is 1024 X 768 or 1280 X 960 screen resolution, the size of Webpage (Flash Webpage) should always be same so that user don't need to use horizantal scroll bar to view all the content.
    And secondly, how can I scroll my webpage vertical on moving with my mouse like in the following link: The below link also shows that it's webpage size is always same on any screen resolution.
    http://www.matkostankovic.com/#/portraits/oliver-mlakar/http://www.matkostankovic.com/#/about/
    Thanks.

    Hi,
    Please do help me.
    Waiting for response from anybody who can help me.to solve this problem.
    Thanks.

  • How can I repeat my flash animation (my frames)?

    Hi Flash forum members
    Can you help me somebody: How can I repeat my flash animation (my frames) many times?
    I will be looking forward to hearing from you,
    Sultan

    It depends on what you mean and how your design is done.
    You can copy and paste frames as many times along a timeline as you, though creating a movieclip of one set and placing that to extend the full length of the timeline would produce the same result.
    If the problem is that your animation stops when it is done, you need to be sure to not have any code in place that will stop it.

  • How do I make a global color change in Flash CS5?

    I am a rank Flash newbie, so maybe I'm missing something obvious. In InDesign or Illustrator, if I want to change every red object to blue, I can go into the color list, edit the red color to the blue values, and every instance of red in the document reflects the edit. I don't have to select each red element and pick the new blue for stroke and/or fill. I can't find how to do that in Flash, yet it's hard for me to believe that that capability is lacking. Help please!

    i don't think there is such a setting in flash.

  • How do i make a flash newspaper?

    Hey what i am trying to do is make a flash newspaper so that when a button is clicked on the newspaper opens and on the newspaper there is multiple button that navigate to different pages. I understand how to get the newpaper to open when a button is clicked but im confused on what script to use to change pages etc.
    I believe i should be using Action Script 2 but im nto enitrley sure
    Thanks for the help.

    There are numerous ways you could approach designing this, and understanding some basic Flash concepts can get you there.  You could make each page as a new frame of content along the timeline, or you could make each a movieclip which you control the visibility of, or each page could be a separate Flash file, or the pages could be created dynamically using data resources, etc...
    As far as the coding goes, you could use any version of Actionscript to accomplish this, but if you are not at all familiar with Flash, you would be doing yourself one better to try to learn what is current... AS3..
    You should start learning Flash so that you can get what you want.  Visit Lynda.com and try some of the tutorials or sign up for a class at some nearby school.

  • How can I make my Flash menu SEO Friendly?

    Hi all, I have my site at http://www.sgdtechs.com and I really don't like the ugly menu I have there now and I designed a beautiful menu in flash, but I've read online that it's not SEO friendly....
    So my question is this, how can I make my menu SEO friendly? Is it even possible?
    Thanks for your answers!

    Provide an html menu for SEO purposes.  If you want to keep the Flash version, consider providing the html at the bottom of the page as text links like you will see in many sites.

  • How can I make my Flash projector proxy aware?

    We have created a Flash Windows Projector exe that accesses the internet. It works fine on computer networks that do not use a proxy server. When it runs on a network that requires proxy authentication, the application cannot access the internet. How can I make it proxy aware?
    Ellie.

    you can`t. allow your application internet access without the network admin defining an exception for it specifically.
    If you have admin rights use the router`s/proxy`y configuration software to allow an exception.

  • How can I make one entity attribute change trigger another's default value?

    Guys and Gals,
    Using JDev 11.1.2.1.0
    I have an order form which has a LOV (Customers) and an address field. The address field should contain the default address associated with the selected key in the LOV.
    To do this, I have an entity (Order) with two attributes (CustomerID & Address). Address has its default value set to "adf.object.getDefaultAddress" which returns the default address for the CustomerID. This only works on initial load.
    How would I make this adf.object.getDefaultAddress trigger when I select a different LOV CustomerID in the View Object?
    I've tried various things but am a little confused. Is there something akin to partial triggers for entity objects?
    I can provide pictures, code, etc.
    Thanks,
    Will

    you can try this.
    go the the setter method in your EntityImpl class for the LOV attribute
    public void setCustomerID(Number value) {
            setAttributeInternal(CustomerID, value);
            //here call the setAddress() method
        }in your page, set the customerID autosubmit to true and make the Address field PPR the customer Id.
    <af:selectOneChoice value="#{bindings.CustomerID.inputValue}"
                               id="soc1"
                               autoSubmit="true">
            </af:selectOneChoice>
            <af:inputText value="#{bindings.Address.inputValue}"
                                   partialTriggers="soc1">
            </af:inputText>

  • How can I add a flash banner to my site?

    Hi,
    I own http://www.globalpay.me/ and I would like to add a flash banner on the website, currently we are using Wordpress and I am not sure what is the procedure of doing it with Wordpress.
    Thank You,
    Andrew.

    GOOOD

  • How do I make my flash player work in facebook ?

    how do i get my flash player to work in facebook ?

    facebook app says update flashplayer. It is currently 12.0.0.70. Windows Professional 7 os and Chrome 33.0.1750.117 m browser version. Checked plugins. Enabled. Wirelss laptop only,

  • HOW DO I MAKE A FLASH PROFLIE FO MYSPACE???

    IM TRYING TO MAKE A FLASH WITH PICS LIKE THE ONES WE SEE ON
    MYSPACE?????CAN ANYBODY HELP ME!?!??!!??

    There are numerous ways you could approach designing this, and understanding some basic Flash concepts can get you there.  You could make each page as a new frame of content along the timeline, or you could make each a movieclip which you control the visibility of, or each page could be a separate Flash file, or the pages could be created dynamically using data resources, etc...
    As far as the coding goes, you could use any version of Actionscript to accomplish this, but if you are not at all familiar with Flash, you would be doing yourself one better to try to learn what is current... AS3..
    You should start learning Flash so that you can get what you want.  Visit Lynda.com and try some of the tutorials or sign up for a class at some nearby school.

Maybe you are looking for

  • DataBase unavailable and Mirrored Db role has chnaged.

    Hello All, We got below errors in our principal and Mirror db servers. 1) The mirroring connection to "TCP://servername.domain.com:5022" has timed out for database "Db name" after 10 seconds without a response.  Check the service and network connecti

  • 'Browse For File' icon not working in Dreamweaver CS4

    Hello All. Ever since upgrading my copy of Dreamweaver from version 8 to CS4, I seem to have accounted an annoying bug (?) If, for example, I want to change an image on a webpage, I would click the image in question on the screen and by using the Pro

  • How to hide parts in a form

    Hi, i am developing a web application which is a form that takes information from the user and stores them in a database. i am using oracle's jdeveloper and they have a render property. i am trying to make the form show fields if a check box is check

  • Slicing and optimising a template in PS CS3?

    Hello, I am just working on a website design in photoshop but now I would like to slice and optimize the template in imageready but I've just noticed that ImageReady is not available any more? Could someone please suggest how I can slice the design u

  • Regarding Control for Returns for Excisable Stock post 6 months

    Hello All, If I am selling an excisable stock to my customer today and if the customer returns this stock after 6-7 months.Is there any way which I can control the same in the system.Please let me know if there any user exits to control the same. Reg