Simple if statement does not work! Help!

Did YOU get my first image on the timeline to control a movieclip. Look like this:

If (mymovie._currentframe == 10) {}
myMovie.Stop ();
}


If she has to stop on the frame of 10, but it doesn't. What is the problem with the script? Do I need some sort of function before?

Thank you!

> So there's no way to control the movieclip from another frame?
# You can assign actionscript for objects that are available on the timeline. In your scenario, you try to assign a script to the object that does not exist. myMovie is unavailable on the first image. If Flash Player do not know the object names "mymovie" If the call fails silently. While on the second image, as the 'mymovie' object is available, the assignment of onEnterFrame works.

Hope that answers the question.

Tags: Adobe Animate

Similar Questions

  • Delete statement does not work properly

    Hello

    The following delete statement does not work correctly.
    If I press DELETE will delete everything in the table of categories
    I don't know whats wrong with it.
    -Delete category line if there is not the infrastructure to support-
    IF: P12_DFCY_SEQNO4 IS NOT NULL AND: P12_DFCY_CATG_C = "7" THEN
    REMOVE FROM DFCY_CATG
    IF NOT EXISTS (SELECT I.DFCY_SEQNO
    OF DFCY_CATG C, DFCY_CATG_INFRSTRCTR I
    WHERE C.DFCY_SEQNO = I.DFCY_SEQNO
    AND: P12_DFCY_SEQNO4 = I.DFCY_SEQNO);
    end if;

    Thank you
    Mary

    You probably the where more clause:

    DELETE FROM DFCY_CATG
    WHERE C.DFCY_SEQNO = :P12_DFCY_SEQNO4
    AND NOT EXISTS(SELECT I.DFCY_SEQNO
    FROM DFCY_CATG C, DFCY_CATG_INFRSTRCTR I
    WHERE C.DFCY_SEQNO = I.DFCY_SEQNO
    AND :P12_DFCY_SEQNO4 = I.DFCY_SEQNO);
    

    Not sure if this is the exact name of your column in the table, but that limit the scope of deleting just a record that you control.

    Hope it will be useful,

    Aaron

  • Master page with rollover menu, using States, does not work for all pages?

    Hello.

    I created my masterpage with a basic at the top menu. It has two States. The 1st State is normal and State 2 is a simple rollover behavior, just a different color.

    Why my menu would work perfectly on the page ' 01', but then the reversal function does not work for other pages? (portfolio 03 etc.). She has just the hoverover slider and the link, but the color does not change.

    I have something wrong?

    Thanks a lot for all the help on these forums

    Make sure that all the subpages have a second State added to them. You

    do not put any content on this State, but it must be present

    the transfer of work from the watch page.

    If you do not already have that second State, trying to link then cancelled

    the subpages of the master page. I came across this scenario recently

    because I had created a master page after some of my subpages have been

    already built.

    HTH

    Jim Babbage

  • video clip of simple melted text does not work - I'm crazy?

    Help!  I'm going crazy?

    I have a melted clip simple text that will 'play' but does not work when I "test movie".  What Miss me?  I do not regularly use Flash at the moment and managed at the front, but this is ridiculous - and I know I'm probably missing something very simple.

    Thanks for any help you can provide!

    If it uses a dynamic textfield you must incorporate the police into the TextField.

  • HP pavilion dv9925nr sound does not work help please

    Hi I have a hp pavilion dv9925nr laptop and I spent in Windows XP pro and now the sound does not work and iv tried everything iv downloaded all the drivers on the internet and everyone simply goes on to say: no driver no has been supported in this package and its driving me crazy please can someone help before I just use it to target paratactic

    Hello:

    Then I recommend that you follow the instructions in the guide to the link I posted above.

    After you install the MS UAA driver, you may need to install the audio driver updated the posted on this link:

    Conexant High Definition SmartAudio 221 drivers (ModelC700, Vx5xx series and dvx5xx and ABOVE )

    Pilot modded by silver here

    Unzip it to a folder... Use the device, right click "Audio Device on HD" Manager, choose Update driver,
    Not to connect, install from a list or specific location,
    Select don't search, I will choose the driver to install.
    For the hardware Type select 'show all devices '.
    Remove control "Show compatible hardware" and click on 'disk '.
    Next... Navigate to the unzipped folder and choose the "WiSVHe5.inf".
    Ignore XP when he complains, Reboot.

    If none of this works, try to reinstall XP and start from scratch. If you do not see your appliance an audio controller if you reinstall XP, then more than likely it is a hardware failure of the audio chip.

    Paul

  • MyCD Rom does not work help!

    In Device Manager it sayes windows cannot load device for theis hardware drivers. The driver may be corrupted or missing. (code39)   I uninstalled and unplugged the computer and when I plugged it back in and turned on it says please consult the manufacturer of your device to help get this device installed I have no ideal what I do to help someone! I did everything I know!

    Hello

    Please make all below even if you have done some before as it is often the set of operations which solves
    the question.

    Try this - Panel - Device Manager - CD/DVD - double-click on the device - driver tab - click
    Update the drivers (this will probably do nothing) - then RIGHT click the drive - UNINSTALL - REBOOT
    This will refresh the default driver stack. Even if the reader does not appear to continue below.

    Then, work your way through these - don't forget the drive might be bad, could be a loose cable or
    slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error during the installation of Windows Vista after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    --------------------------------------------------------------

    Also check with your system manufacturer to see if there are any updated drivers for your DVD. Or even if it
    are you can reinstall the 'old'. Many use Windows default drivers however some special aura
    ones. Also check the website of the manufacturer of the car.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    Hope these helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • My application get Windows 10 does not work HELP Please

    1 - my get app Windows 10 does not work. Whenever I try to run your PC compatibility check it says:

    The report is not available now, you can always book your upgrade when it's time to start the upgrade we will run another report to make sure that your PC works with Windows 10

    2. when I click on view Confirmation it Says:

    YOUR UPGRADE IS RESERVED

    There is nothing you need to do now, you will receive a notification on your PC when windows 10 is ready to install.

    and it been like this for 4 weeks and nothing happened what should I do to check if the applications on windows 7 runs on windows 10 or not and start the upgrade to windows 10

    Please help thanks

    Download the media creation tool

    Click with the right button on the MediaCreationTool.exe file and then click on run as administrator.

    Note: How to check if you are downloaded or installed the update Windows 10 November

    How to create an ISO or USB drive.

    Select upgrade this PC now and then click Next

    or

    Task of pre-required

    When you make significant changes to your computer for example updated operating system, you must always back up. See the links to resources on the backup by clicking the link for each version of Windows you are using: Windows XP, Windows Vista, Windows 7, Windows 8/8.1

    then

    then

    • Turn off (preferably uninstall) your Antivirus utility before you perform the upgrade.
    • Reboot several times, and then try again.
    • Disable the general USB peripherals (for example - smart card reader).
    • If you are using a SCSI drive, make sure you have the drivers available for your storage on a thumdrive device and it is connected. During the installation of Windows 10, click on the advanced custom Option and use the command load driver to load the driver for the SCSI drive. If this does not work and the installer still fails, consider switching to an IDE based hard drive.
    • Perform a clean boot, restart, and then try again.
    • If you upgrade to the. ISO file, disconnect from the Internet during the installation, if you are connected in LAN (Ethernet) or wireless, disable both, then try to install.
    • If you are updated through Windows Update, when download reaches 100% disconnect from the LAN (Ethernet) Internet or Wi - Fi, then proceed with the installation.
    • If this does not work, try using the. ISO file to upgrade if possible.
    • If you are connected to a domain, go to a local account.
    • If you have an external equipment, attached to the machine, unplug them (example, game controllers, USB sticks, external hard drive, printers, peripherals not essential).
  • If the else statement does not work... worked in AS2?

    Hello

    have a very common function that I use in educational quiz itself noted the user according to their score (from answering multiple choice questions). So I put in place a variable called score without problem... but when I apply my confidence "if else"heuristic of AS2... I have all these errors and my flash file does not work. "

    Is there a better way to code that I'm not aware of?

    Stop();

    If (score < = 5) {}
    endMsg.gotoAndStop ("score1");
    } Else if (score > 6 and score < = 11) {}
    endMsg.gotoAndStop ("score2");
    } else {}
    endMsg.gotoAndStop ("score3");
    }

    feedback video called "endMsg" - according to the function, navigates user to label that provides feedback.

    Any help would be awesome... coz this feature used to work! It doesn't work even in Flash CS4 when I retrograde Panel actionScript to version 2 to test!

    I missed using try IT...

    } Else if (score > = 6 & score)<=>

    I know they used to support the use of words for or, but never made a practice of it, so I can't say if they do not support in AS3.  In addition, as long as there will be a score of 5.5, you should be fine.

  • Simple Insert statement does not

    This problem is just driving me crazy. I don't know what I'm doing wrong here. The code works fine on my localhost, but gives the problem on the site online. It's a simple insert like this:

    insert into tblSubImages (productid, title, subdescription, image, location) values (#form.productid #, ' #form.title #',' #form.subdescription #',' #uploadedimage # ", #form.place #")

    The error I m to looks like this:

    Syntax error in INSERT INTO statement.

    The error occurred in D:\Hosting\davedhillon\superprinters\admin\addaditional.cfm: line 11

    9: < cfset uploadedImage = cffile.serverfile >
    10: < cfquery name = "insertadditional" datasource = "#super.dsn #" >
    11: insertion in values(#form.productid#,'#form.title#','#form.subdescription#','#uploadedimage#') tblSubImages (productid, title, subdescription, image)
    12: < / cfquery >
    13:



    --------------------------------------------------------------------------------

    SQL insert into values(1,'ewr','werw','FamilyRoomBedroom.jpg') tblSubImages (productid, title, subdescription, image)
    Davedhillon_accesscf_super DATA source
    VENDORERRORCODE 3092

    You can see that it is the simple insert statement that I worked with so many times. Why he started giving problems all of a sudden?

    Thank you

    'Image' can be a reserved word. What happens if you do this?

    insert into tblSubImages (productid, title, subdescription, [image])
    values (...)

  • simple if/else does not work

    Hi - I'm trying to 'validate' that the user puts a smaller number in the to field of text than in the text field B. It works with single-digit numbers, but if I put ' 12A ' and '4' b, the error occurs it Joanie. I thought it was a really simple if/else set up, but it does not work.

    Can someone tell me please in the sense of a solution.

    TIA
    JL

    Use the number function to compare numbers. your string comparison.

  • I downloaded vista of a school site web does not work help

    I used a MSDNAA web site / product: Windows Vista Business DVD e - bigship.com / / is not working help

    Contact the school where you have Vista of for all the problems.

    See you soon. Mick Murphy - Microsoft partner

  • PRINTER DOES NOT WORK HELP!

    I just upgraded to windows 7 and my HP712c does not work anyone know why? It worked fine with VISTA!

    Because Win 7 does not support this printer.  Time for a new printer, I'm sorry.

  • Simple straight line does not work

    Hello

    I leaned on AS3 code to:

    http://www.republicofcode.com/Tutorials/Flash/as3drawvectors/

    Near the top of this page, the author gives this very minimal code to draw

    a red line. The code is below:

    var my_shape:Shape = new Shape();
    addChild (my_shape);

    my_shape. Graphics.LineStyle (1, 0xFF0000, 1);
    my_shape. Graphics.MoveTo (50, 50);
    my_shape. Graphics.LineTo (100, 50);

    I pasted the code above in the Panel (frame 1) actions in

    a new flash document and I get 4 errors

    rather than a straight red.

    Anyone know why this code does not work?

    Thank you

    Jim

    Hi Jim, check this box:

    var my_shape:Shape = new Shape();

    my_shape. Graphics.LineStyle(1,0xFF0000);
    my_shape. Graphics.MoveTo (10, 20);
    my_shape. Graphics.LineTo (stage.stageWidth - 40, stage.stageHeight - 180);
    my_shape. Graphics.endFill ();
    addChild (my_shape);

    It's a little funny to you so that can see the potential to make shapes with actionscript

    stage.stageWidth - this is the width of your paper.

    stage.stageHeight is the height

    Good luck

  • F1 does not work HELP

    Selecting F1 when in Vista, by selecting the office or the latest versions of Word and Excel, does not result in a HELP window that appears.  No notable effect takes place.  Documentation of the user for all these products States that the F1 is equivalent to selecting HELP in another icon, such as '?  I'm assuming that the cause is somewhere in the o/s, so I select the Windows Vista Forum.
    What I can do to activate this function F! = HELP?

    Do a little cleaning and I came across this old question.  Later, I found that when I watered them my extra keyboard (external?) with iced tea that killed all the function keys.  When I replaced this keyboard all the function keys reworked.

    I used to work in support of the customer.  We have learned, after a while, when someone called to say that something did not work the first question to ask is "is it plugged in?  I guess that the second question is ' "how long since you spilled tea on it?". »

  • In Application EPPM P6 p6 page does not work Help

    Hi guys,.

    We have configured the P6 EPPM application successfully.

    The p6 EPPM application is currently running.

    Our requirement is in the right corner P6 request to help link p6help page is needed.

    For this, we have manually deployed the p6help.war file in Weblogic server and performances of the 'ACTIVE' State in the tab control and tab its the default url watch testing:http://hostname:8203 / p6help


    But when we try to access this url, we get the error below we also tried with below url too

    http://hostname:8203/p6help/help

    403 - forbidden error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.4.4 403 Forbidden

    The server understood the request, but refuses to fill. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been met, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not want to reveal exactly the reason why the request was refused, or when no other response is applicable.

    Can you please suggest solve us this problem.

    Concerning

    Flo

    Hi Alex,

    We have worked on this issue and solved the problem at the moment,

    Currently, we are able to access the help of p6 tab page P6 EEPM Application Help.

    Solution that we have done is,

    In the application of P6 EPPM Admin in the corresponding configuration in P6 help url, we changed the url from http://hostname:8203/p6help/help to http://hostname:8203/p6help/and we have restarted the P6 server in weblogic console.

    So right now, we could access the p6 help page in the help tab EPPM Application 8.3

    Concerning

    Flo

Maybe you are looking for