New to AS3, code extract works not

Hello.  I am new to AS3.  I'm moving on AS3 to AS2, so that I can make a video gallery app.

I have been using the code snippets in Flash and the buttons work in a way, but he continues to play the same movie over and over again, which is the first movie.  Can someone help me?  I want people to click on a button and do play a different video associated with this video.  In reality, however, by clicking on this button just the user leads to a different image that has this video on it.  Here's the script:

/ * Stop to this image
The Flash timeline will be stop/pause on the frame where you insert this code.
Can also be used to stop/pause the chronology of the movieclips.
*/

Stop();

/ * Click to frame and play
By clicking on the instance for the specified symbol moves the playback cursor to the frame specified in the timeline panel and continues playback of this image.
Can be used in the main timeline, or on timelines of film clip.

Directions for use:
1. replace the number 5 in the code below with the image number you want the playback head to when the user clicks the symbol instance.
*/

PipeStr_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame);

function fl_ClickToGoToAndPlayFromFrame(event:MouseEvent):void
{
gotoAndPlay (1);
}

/ * Click to frame and play
By clicking on the instance for the specified symbol moves the playback cursor to the frame specified in the timeline panel and continues playback of this image.
Can be used in the main timeline, or on timelines of film clip.

Directions for use:
1. replace the number 5 in the code below with the image number you want the playback head to when the user clicks the symbol instance.
*/

SealInts_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);

function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void
{
gotoAndPlay (7);
}

Have you placed a stop() somewhere during or after the 7 framework so that the timeline does not loop back to frame 1?

Tags: Adobe Animate

Similar Questions

  • code hints works not

    Dreamweaver CC 2014 Mavericks 10.9.5 Mac.

    The first level will come back (with the initial list of all available tags), but not much activity is automatically with ^ space. 'Enable Code hinting' is checked in the preferences. System restart does not help.

    Without help, with tags, it might as well be a text editor if you work in code view.

    MODIFY > > just discovered this problem is specific to one of my defined sites. It works in another site. Will try to set up the site again.

    UPDATE > > set up a new site will work for a little while and then stop working.

    ????

    Last post - it WAS a mistake in my code. Validator's response was stuck and the reporting was not updated.

    A simple extra "was all that he has proved to be. Code hinting has worked anywhere in the code before this typo and nowhere after her fault.

    Thank you, everyone!

  • All new phone lock question-restoration works not

    I just got a new phone and tried to erase the recovery mode because the device is picking up a random 6-digit and locking code. Unfortunately, it says that the device is not be restored. Is there anything else I can try?

    I do not understand what it means to 'clear the recovery mode '.  It could mean erase using recovery mode, or it may mean something quite opposite.

    In any case, try to use the procedure described in "Erase your device with the recovery mode" in the article of HT204306 you fixed above.  If this fails, contact Apple Support such as suggested in the "Get more help" section of this article.

  • New Inspiron 7548 times Ctrl works not

    Hello

    So I recently got a new laptop Inspiron 7548, earning 8.1, i7 5500U, 16 GB of RAM... and the offset nor buttons Ctrl worked-, I have run the dell diagnostic after noticing my Ctrl-C, etc functions, were not working. They sent me a new keyboard that I installed it but it still does not work. I tried to reset the system, uninstall/reinstall drivers... nothing worked.

    Please help, I work a lot with Adobe products and not being able to use the shortcuts is really slow down my work.

    Jenna

    Hi petheana,

    Thanks for posting.

    Since this is a new computer, and still under warranty, you must call Technical Support in your country again and solve the problem, this may seem to be more than just the keyboard or the drivers.  Thank you.

    Kind regards
    Robert

  • Cs6 php Dreamweaver the variable code hints works not

    IM new to dreamweaver cs6 and one thing I like about cs5 was that when I typed "$" it would instantly give me a selection of variables that I had already used in my page or included in php variables ($_POST, $_SESSION, $_REQUEST...), however, now when I type "$" I get only a list of variables that I've used, and it is sometimes incorrect, for example if I used $_SESSION ['valid'] then the indication of the code would be $_SESSION.

    I already checked that my prefrences to the code hints and I all is checked.

    Anyway, my question is how to enable these types of indicators of code.

    Thanks for your help,

    solab95

    Hi, in preferences-> code advice jquery 1.7 disable code and it works.

  • Installation code doenst work, code that is written in my acount adobe will not activate my product. Is een reinstal on a new laptop computer with windows 10.

    Installation code doenst work, code that is written in my acount adobe will not activate my product. Is een reinstal on a new laptop computer with windows 10. the same code that is delivered on paper when I bought adobe

    Creative cloud does not use a serial number and creative cloud subscribers for not having any serial number associated with their programs.  Creative cloud subscribers use their adobe ID to activate their programs.

    Download and install the desktop creative cloud application (after signing with your adobe - the same as that used to pay for your creative cloud subscription ID), https://creative.adobe.com/products/creative-cloud

    Open the office application (a shortcut will be on your desktop) > click applications, and then select the programs you want to install.

    the desktop application gives you access to the cs6, cc, cc 2014 and cc 2015 apps.  and probably more in the future.

    If you already have the cc desktop application and you need to update your adobe id, log out and then back to your client application using the adobe id to pay for your subscription in cc: http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

  • I can not turn Adobe Photoshop C52 to my new computer requires activation code. Do not buy a new program, because it works very well.

    I can not turn Adobe Photoshop C52 to my new computer requires activation code. Do not buy a new program, because it works very well.

    Bo CS2 cannot be enabled now whether on the PC or Mac platform. The activation servers are turned off, for any new installation on any platform requires the special version

    Terri

  • Windows not can find new updates error code 80073712

    I have a Dell Inspiron 1525 with Windows Vista, Intel Core 2 Duo. I get this error code: Windows could not search for new updates - error Code 80073712. A view of my previous updates log indicates that the last time I received updates Windows has been 14/07/12. I tried a system restore, but the first restore point was 04/09/12. I tried restoring the system anyway, and there no reolve the problem.  I went on the web and the fixer online Windows did not work. Don't know what to do.

    Have you tried any of these terms of the resolution?

  • Windows Update will not install - Windows could not search for new updates to Code 8007051 A

    original title: impossible to install iTunes error HRESULT:0x8007051A and Windows Update doesn't work Windows could not search for new updates to Code 8007051 A

    Am running Vista 32 bit OS and trying to install iTunes but still get the following error;

    ' Microsoft.VC80.CRT.version = "8.0.50727.4053".Guy = "win32".publicKeyToken

    "="1fc8b3b9a1e18e3b".processorArchitecture ="x 86" also HRESULT:0x8007051A

    Some research has indicated that it was due to a problem of update?

    Then tried checking updates (Windows update), who does not ("" Windows could not search for new updates - errors found Code 8007051 A ' ")

    The "get help" link was as useless as an ashtray on a motorbike.

    Any help would be greatly appreciated

    Hi Discopossum,

     

    How long have you encountered this problem?

    Method 1: Run the fixit available in the links below and check if that makes a difference-Worth to try
    Difficulty of broken desktop shortcuts and common system maintenance tasks

    Note: FixIt would attempt to recover bad sectors on the hard disk, in the course of this process there are chances of DATA loss from that particular area.

    Method 2: Try to install the program as an administrator do a right click on the program installation files and select run as administrator, click on continue if you are prompted to confirm.

    Method 3:  Clean boot the computer and then try to install ITunes

    Follow step 1 in the link below,
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Important: n ' forget not to put the computer to a normal startup follow step 7 in the link.

    Method 4:  Run the fixit available in the article below to reset the Windows Update components

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base.
    How to back up and restore the registry in Windows

    If problems with iTunes didn't exist yet, contact the Apple Support
    http://www.Apple.com/support/iTunes/

  • Error code 28: could not find the drivers. Windows 7 64 bit could not find the drivers for my Seagate Expansion Portable Drive. The same system works for another 32-bit version of windows 7.

    Hi, I would be grateful for help on this, I bought a new seagate expansion external hard drive not too long ago (abt 3 months old) and tried to use the device only recently (to back up my files). Windows has detected the drive but says that it could not find the drivers. (code 28)

    When I tried the drive on a 32-bit computer, it showed up working find and dandy. When it is plugged in the computer of the alien-ware, same error.
    Tried the uninstall from Device Manager and restart the computer, still the same error.
    Services.msc open and found windows install offshore. He turned on automatic, but the same error came out. Plug and play Windows was already working.
    Checked Windows SP1 worked, still the same error.
    He got me completely baffled.
    Before this, I had other problems with USB and disabled driver signature Verifier (I think that's what it was called) before you boot into windows. Worked very well for my flash drives each time that I did.
    I also had another external HARD drive which was held only 160G and it worked, so I'm not sure what the problem is with this particular external hard drive.
    Please help, I'm going crazy on this problem...

    The specifications of my devices are as follows:
    Computer
    Model:
    Alienware M14x
    Type of system:
    64-bit operating system
    Hard drive model:
    Portable Seagate Expansion 1 TB drive

    Hello

    28 error code means that the device was not fully installed.

    Method 1: Connect the device, run the hardware and devices Troubleshooter and check if that helps.

    To open the Troubleshoot utility equipment follow the given link:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

    Method 2: You can update the drivers and check out them.

    Updated a hardware driver that is not working properly:

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Additional information.

    Install a USB device:

    http://Windows.Microsoft.com/en-us/Windows7/install-a-USB-device

    Hope this information helps.

  • Code hints works is not in Flash CC

    I just downloaded the demo Flash CC and reflected on the forums, but I can't see the code hints to work at all, when I start typing a line I get "Cache Building code hint" down to the right of the Actions panel with a warning icon - no more available info, no tool don't tilt it on working capital apparently does nothing.

    I have searched this problem in the forums and found many references to code hinting does not not and have tried all the recommendations supported for deleting the CodeModel file, reset preferences, preferences remove, check and unchecking preferences, change the direction of file in the registry and nothing seems to work - still no indication of code at all.

    I'm on a windows machine 8, I don't know if that has anything to do with it.

    Hi Beadicakes,

    You saved your file as the desktop of any common place with a large number of files? Can you try to save your file as on a new folder or specific project and then see if code hinting comes up fine.

    -Reynaud

  • The scroll feature does not work on my mouse.  I installed new batteries, but it still does not.

    The scroll feature does not work on my mouse.  I installed new batteries, but it still does not.

    Look in the system Prefereces - mouse and make sure the scrolling feature is set up how you want. If the action still does not work, please reset the SMC and the PRAM by iMac SMC and the PRAM reset

  • Suddenly a few keys on my new Qosmio F60-10 q do not work

    Suddenly a few keys on my new Qosmio F60-10 q do not work (a, e, r, t, y, i, o, z, b, n, arrows, enter, Fn, NumLock...). These buttons do not work even in the bios: when I want to exit the bios must press on Y or N key and still does not. Help, please. Mention that the laptop is new.

    Contact the Asp in your country.

  • Windows XP does not level net framework 3.5 service pack 1 or service pack 2. Error code 80070673. Also, don't look for new updates - error code 80070490.

    My windows xp tried to upgrade with the 3.5 framework - net framework 3.5 SP1 update family (KB951847) x 86 since 07/08/09.  History shows that he has failed every time.  He also tried to install service pack 2 (KB948465) since 07/08/09 and has failed each attempt.  When I try to check new updates, it says "windows has not can find new updates" with an error code 80070490.  When I try to upgrade with the framework 3.5 service pack 1, it says "some updates were not installed" with an error code of 80070673.  History shows that all other updates have been installed successfully.  Please let me know what I need to do to fix this problem.

    Read the article (I posted the URL): http://support.microsoft.com/kb/958044

    You will need to fix the OS before trying to fix the rest of your problems. If the OS is unstable, then nothing else will matter. Make sure you have backups up-to-date of all your personal stuff and know where the product keys etc in case you should reinstall. That your OS is stable/fixed you can follow instructions from PA Bear re updates of the framework.

    Windows 2000, Windows XP and Windows Server 2003 to resolve this issue, use the System File Checker to check that the correct versions of the file system are present. To do this, follow these steps:

    1. Click Startand then click run.
    2. Copy and then paste (or type) the following command in the Open box, and then press ENTER:
      cmd
    3. At the command prompt, type sfc/scannow, and then press ENTER.

      Note If you are prompted for your Windows XP CD, insert the CD into the CD drive.

    4. Once completed the System File Checker, try installing updates again.

    For more information about the System File Checker, click on the number below to view the article in the Microsoft Knowledge Base:

    310747 (http://support.microsoft.com/kb/310747/) Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)

    If the System File Checker does not resolve the problem, you must perform a repair of Windows XP installation.

    For more information about how to perform a repair of Windows XP installation, click the number below to view the article in the Microsoft Knowledge Base:

    315341 (http://support.microsoft.com/kb/315341/) how to perform an upgrade on the spot (reinstallation) of Windows XP

    Once installation is complete repair, try again to install updates.

    Note Run a repair installation will not damage files and applications that are currently installed on your computer. TaurArian [MVP] 2005-2010 - Update Services

  • error when you try to update: "windows has not can find new updates, error code A 8024, 000.

    Original title : I can't update my computer... can anyone help me?

    I use Windows vista ultimate and I get the same message when trying to update-"Windows not can find new updates, error code 8024A 000 can someone help me?"

    See this thread:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_other-windows_update/Windows-Update-error-code-8024a000/562845f3-78d5-42A0-bed5-e3fd39f01df7

Maybe you are looking for