Can you help me find my mistake in the code?

Hello! Can you help me find my mistake in the code? Bottoms do not correctly always work and images shows incoherently. Thank you.

Stop();

Import fl.transitions.Tween;

Fl.transitions.easing import. *;

var arrayX:Array = [0, -600, -1200];

var currentIndex:Number = 0;

left_mc.addEventListener (MouseEvent.Click, Navigate);

right_mc.addEventListener (MouseEvent.Click, Navigate);

left_mc.buttonMode = true;

right_mc.buttonMode = true;

function navigate(e:MouseEvent):void

{

If (e.currentTarget is left_mc)

{

currentIndex-;

checkArrows();

var stw1:Tween = new Tween (content_mc, 'x', Back.easeOut, arrayX [currentIndex], arrayX [currentIndex - 1], 4, true);

}

on the other

{

currentIndex ++;

var stw:Tween = new Tween (content_mc, 'x', Back.easeOut, arrayX [currentIndex - 1], [currentIndex] arrayX, 4, true);

checkArrows();

}

}

function checkArrows (): void

{

If (currentIndex == 0)

{

left_mc. Visible = false;

}

ElseIf (currentIndex == arrayX.length - 1).

{

right_mc. Visible = false;

}

on the other

{

left_mc. Visible = true;

right_mc. Visible = true;

}

}

the first problem I see is that tweens are local to a function so that they are eligible to be that gc would be before they finish.  the second is that you must call checkArrows() when starting:

Stop();

Import fl.transitions.Tween;

Fl.transitions.easing import. *;

var arrayX:Array = [0, -600, -1200];

var currentIndex:Number = 0;

left_mc.addEventListener (MouseEvent.Click, Navigate);

right_mc.addEventListener (MouseEvent.Click, Navigate);

left_mc.buttonMode = true;

right_mc.buttonMode = true;

checkArrows;

var stw:Tween;

function navigate(e:MouseEvent):void

{

If (e.currentTarget is left_mc)

{

currentIndex-;

checkArrows();

STW = new Tween (content_mc, 'x', Back.easeOut, arrayX [currentIndex], arrayX [current Index - 1], 4, true);

}

on the other

{

currentIndex ++;

STW = new Tween (content_mc, 'x', Back.easeOut, arrayX [currentIndex - 1], [currentIndex] arrayX, 4, true);

checkArrows();

}

}

function checkArrows (): void

{

If (currentIndex == 0)

{

left_mc. Visible = false;

}

ElseIf (currentIndex == arrayX.length - 1).

{

right_mc. Visible = false;

}

on the other

{

left_mc. Visible = true;

right_mc. Visible = true;

}

}

Tags: Adobe Animate

Similar Questions

  • can you help me find my product key of Windows 8.

    Original title: product key of Windows 8.

    Hi, I bought a copy of Windows 8 earlier. I lost my product key that was in my Inbox. can you help me find my product key?

    Thank you very much

    Tim V.

    Hello

    Did you buy on Microsoft Store?

    See if this helps you:

    http://www.microsoftstore.com/store?action=DisplayHelpAccountPage&locale=en_AU&siteid=msaus

    See you soon.

  • In the drop-down list and cfif len CFIF not can you help me to break this block of code

    can you help me to break this block of code. sense

    < table >
    < b >
    Type of device < td > < table >
    < td >
    < SELECT name = "Hardware" size = "1" >

    < OPTION Value = 'EL' > please select < / OPTION >
    < OPTION Value = 'Ca' < cfif material is 'Ca' > selected < / cfif > > Cell < / OPTION >
    < OPTION Value = 'EL' < cfif material is 'EL' > selected < / cfif > > Email only < / OPTION >
    < OPTION Value = "pE" < cfif material is "PE" > selected < / cfif > > Pager < / OPTION >

    < / select > <!-->
    < table >
    < /tr >

    What is the cfif for. for example
    < cfif material is 'Ca' > selected < / cfif >?


    -----------
    What does this block of code?


    < b >
    Cell < td > < table >
    < td > < cfoutput >
    < cfif NOT len (trim (Dev_email)) > < cfset Dev_email = "@verizon.com ' > < / cfif >
    < input type = "Text" name = "Dev_email" value = "" #Dev_email # "size ="40"maxlength ="40"> < table >"
    < td >
    < b > < police = "Verdana, Arial, Helvetica, sans-serif" size = "2" > WorkEmail < / police > < / b > < br >
    < cfif not len (trim (D_email)) > < cfset D_email = "@meekeedees.com" > < / cfif >
    < input type = "text" name = "D_email" Value = "" #D_email # "size ="40"> < br > < br >"
    < / cfoutput >
    < table >
    < /tr >

    What is the cfif for. for example
    selected?

    If the variable material has the value 'Ca', this option is selected when you load the page.

    What does this block of code?


    Cell

    If the dev_email variable is an empty string, it gets the value "@verizon.com.

  • Can you help to solve my Firefox? The screen is black.

    When I try to open Firefox, it opens just a solid black screen. I tried to uninstall and then reinstall. Reset. So far, nothing works. Google chrome and internet explore are fine but Firefox a bad shot. Can you help me please?

    Posted by phillip in other threads of support
    Hello, other users with this problem all had a card intel integrated graphics hd with a former current driver. in case this applies to you, here would be a link to update the driver, which in turn, should also address the problem of firefox black.

    Intel HD 2000/3000:
    32-bit https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=23763
    64 bit https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=23764

    Intel HD 4000:
    32-bit https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=24328
    64 bit https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=24329

  • Can you help me find a WYSIWYG tool to change the Dreamweaver code?

    Hello

    I managed a very small nonprofit.  Recently, a professional Web Designer volunteered for the redesign of my site.  He used Dreamweaver and the new look is exceptional.

    My problem is that I have to be able to update the site.  The tool I used iWeb to Apple, isn't an import function.  Dreamweaver is much too sophisticated and costly for my needs.  Does anyone know how to use iWeb to update a Web site created in Dreamweaver?  Or know another point and click (easy) and inexpensive software tool that I can use to make an update based on the new site (posting new links, updating text, etc.)?

    Thank you.

    You could easily press... .that grape...

    and make wine!

    :-D

  • Can you help me find this article

    Hi all

    I was looking for a way to show the errors in a "central error page' in an ADF Faces about to do a Google search and found several references to an article by Frank Nimphius called" ADF security: authorization and smart error handling Page.» When I clicked on the link, I discovered that the orablogs.com domain is no longer in use, and I couldn't find the article anywhere else... could you please help me?

    Best regards

    Published by: rnoguera on 10-Aug-2008 08:39

    Published by: rnoguera on 10-Aug-2008 08:39

    Ah, you're right; I'm sorry.

    http://thepeninsulasedge.com/frank_nimphius/WP-content/uploads/2008/05/OldAndLostBlogBusterTips.zip is the download link

    http://thepeninsulasedge.com/frank_nimphius/2008/05/16/blogbuster-treasures-hunt-blog-entries-from-the-lost-orablogs-blog-for-download/ is the link that I thought.

    Sorry for typing too fast ;)

    Best,

    John

  • can anyone help me find an app for the Zeen which has just the time and date? Don't want to google.

    I don't know how to use the apps since all I found is on android, but apparently the Zeen is not compatible with the android apps.  I have google calendar, but it doesn't work and want to only the time and date is displayed.  I followed all the directions for adding applications, but they do not work or I can't understand them.

    Salvation of theeagles,

    The Zeen is unable to access the Android Market, but it's an Android device.  There is a market for this called SlideME, and you should have the icon for it in your apps section.  I have a station also, and I'm just a normal clock on mine.

    Here is a link to SlideME, if you want to see what applications are available: http://slideme.org/

  • HELLO I HAVE A PROBLEM CAN YOU HELP ME? each window in the colorfull mozzila browser places

    each window in the square and flashing colorfull mozzila browser

    However since this was instructions for the office, in order to disable in mobile:

    1. You may need to disable this option in the Android settings you Tablet:
    Android Settings > Developer > Show screen updates
    
  • Can you help me change my firefox to the previous appearance

    I have firefox 11 is installed and all was fine until this morning. This morning my firefox has changed and the new look is gone. Now, it's one like this one ( http://4.bp.blogspot.com/-V1nKs3DJXV8/TYjln3ECuGI/AAAAAAAAAG0/S1RWMnO2mgc/s1600/F2.png ) I tried to uninstall it and I installed again but it has not changed. I don't know how to fix it.

    Also there is a problem, I installed the language pack American and every time I spell something correctly, it would be red, but now, it doesn't seem to work.

    To restore the new style interface, on the view menu, select Toolbars, "Tabs on top" option must be selected if it is do not click on this entry to select it. Then in the view menu select Toolbars, and then clear the entrance to the "Menu bar", which then allows to hide the menu bar and it is now the new look.

    For the spell checker, open the Options dialog box, then go to the advanced Panel and select the General tab. Make sure the "Check my spelling as I type" setting is selected. If the spelling still does not work, just click on a text box, then select the language entry, it should show the installed dictionaries. If none is listed, select the entry "Add Dictionaries". For more details and a few screenshots to make it more clear, click on the following link - How to use the spellchecker of Firefox?

  • Can someone help me find my toolbar? the bottom of my screen that shows wifi, clock printer etc.. ?

    It comes and goes. Have no idea why or how get it back. Very annoying. Windows7

    Taskbar and Start Menu in the search box type start and press on enter

    Uncheck Auto hide the taskbar

    Click Ok

  • I am refurbishing a Pavillion m7560n and I can't find a driver for the local network. Can you help me? CC = en

    I am refurbishing a Pavillion m7560n and I can't find a driver for the local network. Can you help me?

    Here is the link to the LAN of your system drivers:

    http://ftp.HP.com/pub/softlib/Software7/COL15134/ob-40490-1/sp26744.exe

  • I put live electronic windows on my computer. All my settings are correct for my pop account, but have problems to receive me mail. can you help me?

    I put live electronic windows on my computer. All my settings are correct for my pop account, but have problems to receive me mail. can you help me?

    Hello

    The question you have posted is related to Windows Live; This is why it would be better suited in the Windows Live community. Please visit the link below to find a community that will provide the best support.

    http://www.windowslivehelp.com/product.aspx?ProductID=15

    http://www.windowslivehelp.com/

  • TrayApp.msi comes and I have to keep hitting cancal several times to get my Start menu, can you help me?

    TrayApp.msi comes and I have to keep hitting cancel many times to get my Start menu, can you help me?

    It was the only part two of my answer ;-)

    In any case, it seems to be related to the HP printing software.

    Here are the possible corrections:

    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c00811375&cc=us&DLC=en&LC=en&JumpID=reg_R1002_USEN

    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c00857032&CC=de&LC=de&DLC=de

    (this one is in German, I can't find an English, please try yourself to find one on the HP site)

    If you can't always solve the problem should ask for help in the forums of HP.

  • Trying to activate photoshop and he said that the activation system is not available at this time... can you help me?

    Hi the title says it all I'm really stuck can you help me. I am in the desert on a job and do not have my with me activation code

    Big Ben, glad to have helped. You will mark the question as answered, so anyone with a similar problem can also can search for and find the answer here.

    Terri

  • my hp printer is frozen at "shutting down". can you help me?

    My hp DeskJet 3050 has is frozen at "shutting down" on the screen.  Can you help me?

    1. Check that the power supply output works with a lamp or other device.
    2. Check the power supply cord and power are good parts for this printer.
    3. Remove the electric cord and power printer and taken power module. Separate power cord and module (let sit for 15 seconds)
    4. Plug the cord into the (taken firmly together) Power Module
    5. Plug the power cord with module directly into the wall outlet (remove any surge protector or extension cord and connect the printer directly to wall outlet cable)
    6. Check if the power supply cord or a module has LED light.
      • If ALLOWED to make sure it's well of color (if not glowing then replace module and power cord)
      • If no light go to step 7.
    7. Plug printer - make sure that it is connected correctly and firmly.
    8. Press power button / power off printer to power upward. If do not turn on the first time button works / stop several times to see if it works.
    9. If you happen to have another printer with the same configuration of power cord (corresponds to the form) try again steps 1 through 8.
    10. IF the printer will power not to this point, then replace the printer.

Maybe you are looking for

  • Firefox opens in a tiny window, and I want to open full page... How?

    Firefox opens to my homepage as you want, but it's on a window in the upper right corner, about 4 "and 3" high. It's easily slide into a display full size, but I want to open this way, as it did before I updated to the version of Firefox yesterday. I

  • Weird starting behavior

    My iMac began suddenly put into evil market. At the launch, it bypasses the screen connection completely and goes straight to my son's account.  The login screen has four accounts, more than one guest account.  Three of the four require passwords. At

  • HP Pavilion series: Message Office says "insertWindows installation disc.

    "Unable to start Windows.  1. Insert the windows installation disc, and then restart 2.  Choose the language setting, click Next. Click on repair. I don't have an installation disc.  Where can I get one? I can't do anything on the phone (I know becau

  • Draw the rectangle to the intensity chart (position where clicked)

    I am able to extract the coordinates using the mouse down and mouse to the top of the structure of the event, but unable to draw the rectangle at the specified position. I get the coordinates to the mouse down and mouse up to the event within these l

  • Microsoft Virtual Academy does not load

    Hi, since yesterday I can't enter Microsoft Virtual Academy, when I select my module it is just saying loading and never charge. Please help me