How to create a fast forward and return quick button?

I would like to create a simple fast forward and return quick button. I get sporadic results with the rewind button. I love the playhead for 3 seconds (72 images) both when the user press the fast forward or rewind button. They should be able to hit two buttons repeatedly. If the playback head is less than 3 seconds, then it will go to the first image.

Here is the code:

var FrameNumRewind:Number = this.currentFrame;

FrameNumRewind = 0

stage.addEventListener (MouseEvent.MOUSE_DOWN, page_watch);

function page_watch(event:MouseEvent):void

{

If (event.target is bnt_Fast)

{

var FrameNumFast:Number = this.currentFrame;

this.gotoAndPlay FrameNumFast += (72);

}

If (event.target is bnt_Rewind)

{

Will head frame to the first frame if less 73 executives.

If (FrameNumRewind < = 73)

{

SoundMixer.stopAll ();

this.gotoAndPlay("1") ;}

}

on the other

{

this.gotoAndPlay (FrameNumRewind-= 72);

}

}

What I am doing wrong? Is there a better way to do it?

I would appreaciate any help or references.

One thing, that you must take care, is that you should not nest functions named within other functions.  Remove this function ff72 by itself.

The currentFrame property is a read-only property, but you try to change its value using code in this line...

this.gotoAndPlay this.currentFrame += (72);

So change that line to be

gotoAndPlay (currentFrame + 72);

noticing that I took out "this" references as well.  They are most often useless in AS3 scenarios.

Tags: Adobe Animate

Similar Questions

  • Fast forward and rewind

    When I play a file and want to move forward towards a particular point in time registration or back controls "Fast forward" and "Rewind" doesn't seem to work. The FF takes just the player at the end of the file and the RW just bring it at the beginning. There are no points between the two.

    Thank you

    Paul

    If you give the FF or REW button one press, this is what will happen. To ' scroll ' a song, press and hold the FF or REW until you get to the point where you want to resume.

    Of course, that "point" would be easier to find if the audio played during the 'research' as it did on the first series of e200v1.

  • How to create the home group and how to connect two computers that are running windows 7. and also Remote Desktop connection!

    Someone help me how to create the home group and how to connect two computers that are running windows 7. and also Remote Desktop connection!
    step by step information!

    Hello

    I suggest you to refer to the links and check if it helps:

    Create a homegroup

    http://Windows.Microsoft.com/en-us/Windows7/create-a-HomeGroup

    Join a homegroup

    http://Windows.Microsoft.com/en-us/Windows7/join-a-HomeGroup

    Setting up a network home

    http://Windows.Microsoft.com/en-us/Windows7/setting-up-a-home-network

    Remote Desktop connection

    http://Windows.Microsoft.com/en-us/Windows7/products/features/Remote-Desktop-connection

    What types of connections remote desktop should I allow?

    http://Windows.Microsoft.com/en-us/Windows7/what-types-of-Remote-Desktop-connections-should-I-allow

    Remote Desktop connection: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/Remote-Desktop-connection-frequently-asked-questions

    Let us know if it helps.

  • How to create user defined groups and users with custom permissions as only open and export in obiee 11 g?

    Hello

    I want to give as open & export to the level of permissions.

    How to create user defined groups and users with custom permissions as only open and export in obiee 11 g?

    For example, if the group permissions, inturn should reflect on the users.

    Please help me.

    Thanks in advance,

    A.Kavya.

    Your question is quite broad and fuzzy then I suggest the security catalog presentation to read documentation: http://docs.oracle.com/middleware/1221/biee/BIESC/mgrgrpsusers.htm#CIHIBJGD

    And I think that you mix you two things which are managed in different places:

    ) an object as read access permissions, write, delete... which control you through the object "Permissions" dialog box

    (b) functional privileges controlled through "Manage privileges" under "Administration".

  • can any 1 tell me how to create the budget journal and how to enter in the journal?

    Hi all+.
    Can someone tell me how to create the budget journal and how to enter in the journal to this budget? +

    What about+.
    Yasser+.

    http://download.Oracle.com/docs/CD/A60725_05/HTML/comnls/us/GL/budjrnl.htm#index-budget-journals-entering--0

    Enter budget reviews in order to maintain an audit trail for your budget balances. You can use budget rules to automatically calculate the amounts of budget journal.
    When you post journals budget, amounts of newspaper to date of existing fiscal balances. You can view and change your budget logs before posting.

    ATTENTION: When you use budget rules in fashion newspaper, big book calculates the appropriate flow or necessary to achieve the balance that you enter for the type of credit account.

    Prerequisites

    1. set a budget
    2. open one or more years for your budget
    3. set a budget organization
    4 assign the budget input type 'Enter' for the accounts for which you want to enter budget reviews

    To enter budget for a journals only account:

    1. go to the window enter Budget sheets.
    2. specify the Organization of the Budget for the account with which you want to budget. If the budget organization is protected by password, you must enter the password before you can enter budget reviews.
    3. Enter the Budget that you want to update. You cannot use a budget that is frozen.
    4. Enter the range of accounting periods, to which budget.
    5. enter in the currency of the budget amounts that you enter. The accounts must be assigned to the Organization of the budget for this currency.
    6. choose the Mode of Journal in the region poplist to enter budget amounts in a newspaper format.
    You can also use the single-line Mode or Mode worksheet to enter the amounts in the budget journal. However, you can only generate journals budget of these modes of entry when you use the window enter Budget sheets.
    Additional information: when you use the log Mode, Type of Balance is a field display only. It displays Budget when you enter budget reviews. In the window to enter the newspapers, this field shows actual when you enter actual journals.

    7. Enter or question the account to which you want to budget. You can also switch mode worksheet to easily interrogate the accounts, then come back in fashion newspaper to enter budget reviews.
    8. Enter an amount debit or credit for each period. Do not enter a journal amounts if you want to use fiscal rules to calculate and distribute the budget amounts.
    9. choose Create magazines to create a budget spreadsheet. If you are using budget control, you specify an action of funds when you create the batch.

  • Question: How to create the new user and schema in 11g?

    Who can give me the answer how to create a new user and a schedule?

    I had installed oracle 11g DB and oracle in my OS windows client. I found in the 11g than there is no console management business with the new version. It is no different with oracle 10g. So I don't know how to create this new user.

    I had created a new DB instance, but I did not how to create a user on it. Who can give me a helping hand for who? I hope a give oracle experenice expert answers.

    Thank you very much!

    Published by: user774630 on October 27, 2008 22:01

    Published by: user774630 on October 27, 2008 22:09

    Hello
    I'm not sure which option you are talking about? [Do you use the EMCA, http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/emca.htm#SUTIL800] to create the new repository for the EM? If this isn't the case, the command line that the other is using DBCA (Database Configuration Wizard). I think you're talking about that. Yes, if the message comes from creating the repository that soon after, you can connect to the EM. You would get the port no port HTTP of EM comes from the $OH/install/portlist.ini file.
    HTH
    Aman...

    Published by: Aman... on October 28, 2008 11:36
    Waived, insertion of link does not work.

  • BlackBerry Smartphones fast forward and rewind videos on Blackberry 8520

    Hello

    Is it possible for the advance/rewind a video on just by looking at it 8520?

    There seems to be no button to make them on the screen...

    Please let me know if anyone knows!

    Thank you very much

    Hello yocci,.

    Fast forward or rewind media, to highlight the progress bar and click on your trackpad. Move it to the left or to the right, then when you are at the desired location, click again on your trackpad.

    Let me know how make you out!

    Thank you!

  • How can I unintstall Firefox 7 and return to 6?

    I downloaded Firefox 7 because it says to upgrade. Well and good, but now my Norton Security Safe (Norton Toolbar) that has all of my passwords is more work. How can I get that back? It is not at all and I have to manually check to all the Favorites. Pure pain. If there is no solution how to uninstall 7 and return to 6? I'm not a geek so please just do it.

    You must have Firefox 7.0 before making the Norton Live Update or you will not get the necessary updates for Firefox 7.0. I'm not sure what Norton recommends now, but when Firefox 5.0 and 6.0 have been released and users of Norton to update Norton before they installed the updated version Norton IIRC said to reinstall all of the Norton Security program after the new update of Firefox has been installed to solve problems related to their application.

    If you are serious about getting rid of Norton, take a look at Avira Personal free - there is no need to install any type of Firefox Add-on which IMO is what causes all these problems during updates of Firefox.

    Avira Personal free - http://www.free-av.com/

  • Substitution of the class, how to create the child class and then the base class

    I started to write a program for a DMM smart, that the problem is all versions of DMM greet the change company communication.

    My idea is to write a child class for each version, DMM and each Subvi child will replace the Subvi base class.

    My problem is, I first want to create a child class and after I see everything is working, start creating the base class. in this way, I'll see if think the right way.

    My question is

    How can I create a child class and then create the base class and configure the Subvi class of the child to be the substitution of the base class?

    I tried searching in the property of the class, but I don't see anything.

    Thank you

    This can be done and I did on occasion.

    You create the base class with the methods of dynamic distribution, you need (Connector components must be identical to those of the class of the child).

    Set then the legacy of the class inherits this base class.  If your method is defined as a dynamic distribution method in the parent, you will probably now have some errors (unless your method of child was already DD, in which case you might be OK already).

    To change the inheritance of a class, right-click on the properties of the class in your project, and then select Properties.  According to me, the tree of estate is at the lower end of the property.  Click on the 'legacy of change' (or something similar) to choose the class from which you now want to inherit.

  • Picasa 3 - How to create a slide show and add music?

    original title: Picasa 3

    I store all my photos using Picasa. I know how to create a slide show. Last year I managed to create a slide show AND add a piece of music. The problem I have is that I don't remember how I did it!

    I don't want to use other software and hope that someone more computer can help me re-trace my steps and create a slideshow with music.

    Sincere thanks for all the help offered.

    A

    I store all my photos using Picasa. I know how to create a slide show. Last year I managed to create a slide show AND add a piece of music. The problem I have is that I don't remember how I did it!

    I don't want to use other software and hope that someone more computer can help me re-trace my steps and create a slideshow with music.

    Sincere thanks for all the help offered.

    A

    It is a forum for Microsoft Windows XP.  Picasa is a Google product.

    I suggest you try the support for Picasa here (<-- this="" is="" all="" a="" link. ="" click="" on=""> )

    You can also try to post in the forums to Picasa (<-- this="" is="" all="" a="" link. ="" click="" on=""> )

    You can also like this: http://geeksontour.tv/learning-library/picasa/

    And this: http://sites.google.com/site/picasaresources/

  • How to create a master page and detail? Insert &gt; object missing panel data

    Hello

    So I created a database, and I want to read data from the database table. I want when someone clicks on an element of the database to get on a new page and see all the other information on this element. I looked for how to do this and found the master page and detail 'system '. But for this I need an option in the Insert > data panel, the master and detail Page set option. And that's the problem, actually there is no sign of 'data' in the insertion bar in my Dreamweaver product. I use Dreamweaver CC 2015, Windows 8.1

    nea.PNG

    version.PNG

    Is there another possibility to create the master page and detail?

    If you are coding manually, you need not to buy extensions.

    If you don't code manually, you can do it.

    Nancy O.

  • How to create a default domain and deploy the app in jdeveloper using a script or code (not manually)

    Hello

    I installed Jdev using silent installation.

    Now I have some apps already created I want to create a default domain, and then to deploy apps in it through any script or ants?

    Can someone help me on this?

    Thank you and best regards,

    Vivek Pemawat

    Hi This worked for me I checked the log of the jdev, how he creates the domain and then using that I created the field

    I used the python script for deploying applications:

    Connect ('weblogic', 'welcome1 ','slc01fnw:7103 ')

    deploy (appName = ' Application13 ', path='/home/rasubra/jdeveloper/mywork/Application13/deploy/Application13_Project1_Application13.ear' target = 'DefaultServer')

    Exit()

    called using wlst.sh TestAppsDeploy.py

    Thanks for all the help!

  • How to: create a blank document and how to make a font available by editin

    Two questions:

    1: how to create a new PDF document? All I see is to create from an existing document or a scanner. If I created something from scratch, I really load an existing PDF, remove and then start my new document? This is as it seems, that is nuts!

    2: I tried to change the text in a document. I have created no not her, but it is open to editing. The font used in the document is "Arial", a very common font that comes with windows. The font is installed and I use it all the time in other Adobe applications. However, when I try to edit a document using this font, I get a message that "the police is not available for editing" and it substitutes random fonts. Then why is it not available, and how to make it available?

    Thank you!

    I use Adobe Acrobat XI Pro with Adobe Creative Cloud 2014 and Windows 7, all v.11.0.10 were also updated.

    I'll add to it. If you're new to Acrobat, it is possible, that you have the wrong end of things. Acrobat is not a good editor or word processor or a design tool; It does not replace your editor or word processor or your design tool. People do not only from the file > New and start putting stuff on the page. It will be limited, slow, frustrating and annoying.

    People continue to put documents in all the tools they have always and use Acrobat to CONVERT to PDF format. If a change is necessary, no matter how trivial, the original is edited and redone the PDF.

    The Acrobat editing tools must be used when the original is lost and backups have been eaten by termites.

    There are specific reasons for wanting to a blank document, but I hope that these tips will put you in a different direction.

  • How to create gusts of snow and fog

    Hello

    I have CS6 AE and Premiere Pro, etc...  and I was wondering how to make the snow squalls.  I know how to make snow, but I would like to do something like in the following video.

    Effect of snow squalls

    http://www.YouTube.com/watch?v=kNPALlLCY34

    It seems that there the snow that goes on the side and smoke.

    Thanks for any help/ideas?

    Peter Forrest

    More about CS6, Win 7 64 bit

    Until you try, I highly recommend the following method using supplant Turbulent, which is a built-in effect.  Personally, I think it creates the control, keyframe and layers of fog or smoke excellent you can animate completely manually:

    a.) create a solid white.

    (b) the mask in a form that is more or less as you wish your fog to watch.

    (c.) set the feather mask to about 500 pixels.  You can modify or animate later once it's in your scene.

    (d.) add the effect of supplanting Turbulent white solid layer.

    (e.) change the complexity to 6.0 and you want that moving the fog to change over the time that I would say animating the offset and possibly evolution.

    (f.) so if you want the blowing fog across the screen, I suggest animating its position and possibly the mask path.

    (g.) if the fog is too opaque, you can adjust the opacity.

  • How to create a movie clip and place the other clips to move inside?

    I followed a tutorial of ping pong (http://www.webzo.org/tutorials/flash/ping-pong-ball-movement.php).

    In the fourth step, it is said to

    4 - inside another Clip named 'Limits' place 'Pads' and the 'wall '.                           Name of the instance of the pads should be "Pads" and instance of the wall called "border".
    We put the wall and trim inside the same Clip, to use it in order to know when the balloon is collided. And we could not put everything together because the ball behaves differently if hit the wall instead of the pads.

    How to create this clip and put the other clips of film "inside"? Also, if anyone can find, where should I put this clip? Should I put it in the same place as the wall?

    Please help out me.

    When you double-click a movieclip to open for editing, you have a work space to put things inside this movieclip.  That's what I call its Stadium.

Maybe you are looking for