Waiting for rigthparen before the colon error - please help

Hello

I'm a total noob to AS3 and try to call a function when someone clicks on a button.  The code is pretty simple:

function conenectLiveStream(event:MouseEvent):void {}

if (playVid.label == "Play")

{

playVid.label = "Stop";

flvPlayer.isLive = true;

flvPlayer.source = videoPath;

flvPlayer.autoPlay = true;

}

{else}

playVid.label = "Play";

flvPlayer.visible = false;

nsPlay = null;

nc.close ();

nc = null;

}

playVid.addEventListener ((MouseEvent:CLICK), connectLiveStream);

}

However, I received the error "1084: syntax error: expected right paren front of colon."

Any ideas? Thanks in advance.

you need this function.  you have a typo in your name.

and this listener should NOT be in the body of the function calls.  use:

function connectLiveStream(event:MouseEvent):void {}

If (playVid.label is "Play")

{

playVid.label = "Stop";

flvPlayer.isLive = true;

flvPlayer.source = videoPath;

flvPlayer.autoPlay = true;

}

else {}

playVid.label = "Play";

flvPlayer.visible = false;

nsPlay = null;

NC. Close();

NC = null;

}


}

playVid.addEventListener (MouseEvent.CLICK, connectLiveStream);

Tags: Adobe Animate

Similar Questions

  • status of the listener error - please help

    Cannot start the listner. l

    lsnrctl status

    result error
    --------------
    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1)))
    AMT-12541: TNS:no listener
    AMT-12560: TNS:protocol adapter error
    AMT-00511: no listener
    Linux error: 111: connection refused
    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=bala.xyz.com) (PORT = 1521)))
    AMT-12541: TNS:no listener
    AMT-12560: TNS:protocol adapter error
    AMT-00511: no listener
    Linux error: 111: connection refused

    Thank you
    Bala

    It's that your list has begun. If answered your question, you can close the thread

    You can check tries to connect with alias
    sqlplus sys@sid as sysdba

    Anil Malkai

  • Hello! I have to cancel my membership for the creative cloud plan but I find no different contact of live chat. I need TO cancel before March 22. Please help me!

    Hello! I have to cancel my membership for the creative cloud plan but I find no different contact of live chat. I need TO cancel before March 22. Please help me!

    This is an open forum, not the Adobe support... You need Adobe support to cancel a subscription

    -Start here https://forums.adobe.com/thread/1703848

    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

    -as well as two links that can provide more details, if the links above don't help

    -http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

  • AirPlay does not work on Apple TV with ios 10.  It was working before the update.  Please notify.

    AirPlay does not work on Apple TV with ios 10.  It was working before the update.  Please notify.

    Try these steps, check to see if things work after each step if necessary, before you try the next.

    1. Check AirPlay is on the Apple TV (turn market if it already is)
    2. Check that both devices are on the same network (settings > Wifi on the mobile device and the settings > general > network, on the Apple TV).
    3. Restart the Apple TV (settings > general > restart).
    4. Restart the Apple TV by removing ALL cables for 30 seconds.
    5. Restart your router. (Also try to remove the power cord for at least 30 seconds)
    6. Restart your computer or mobile device.

    If you're still having problems, try to use 802.11n for wifi if you currently use 802. 11B or 802. 11 g.

    If your problem is AirPlaying starting a computer, try turning off bluetooth

    If you're still having problems, the following article can help you.

    Troubleshooting AirPlay

    Troubleshooting connections and Wi - Fi networks

    Recommended Wi - Fi settings

    WiFi Diagnostic Software (for Mac users)

    You will also find help on this page, where I have collected some of the more unusual solutions for network problems.

  • I bought Photoshop and elements of order #AD003212006UK. When I try to download I am informed that the software is not suitable for my system (new iMac, retina) Please help

    I bought Photoshop and elements of order #AD003212006UK. When I try to download I am informed that the software is not suitable for my system (new iMac, retina) Please help

    You are 100% sure that you are clicking to download the Mac version and not the version of Windows?

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <===> NOTE DAYS AND TIME
    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html
    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • I bought the subscription Amazon to adobe cc says, but is waiting for activation by the seller

    I bought the subscription Adobe cc says, but is waiting for activation by the seller

    Hello

    Your account is created in Panama as a country, please create a new account, and select U.S. as the country.

    Following the steps described here change the country associated with your Adobe ID which should solve the problem.

    ^ Ani

  • 213.5 error please help me get the DW works again. Thanks CaptJim4685

    I have a Mac OS 10.10 used the Migration Assistant to move all the files from the old computer to new computer yesterday. Now can't use my Dreamweaver CS 5.5 I have my original installation disk. Tried that. Get the 213.5 error please help me get DW works again. Thanks CaptJim4685

    In my experience of software migration from one machine to another rarely works.

    Use the tools CS cleaner to wipe all trace of DW in your system before reinstalling.

    Use the CC cleaning tool to resolve installation problems. CC, CS3 - CS6

    Disabling an old product is necessary if you previously had it installed on 2 machines.  If you did, you need to contact Adobe customer service to disable your old facilities so you can activate the last being.

    Contact the customer service

    Nancy O.

  • Cannot install laserjet pro p1102w printer, usb error, please help?

    I was able to print things in the past using the USB of my printer. After I reformatt my computer, I tried to plug in the usb from the printer to the pc, the usb will not be installed, it has an error message that it could not reconigze the computer or something, I have a triangle of yellow warning next to the serial bus controller universal usb. I tried the update, but it cannot update, I tried to plug and plug it into the usb, I tried manually install printer in devices and printers, and yellow triangle still in the pc. Please help, I have a home edition of Windows 7 64-bit. And I recently change my network wireless after reformatting, but that any prior to reformatting, cause I have change the wireless network and still able to print, but after I can not format. Help, please

    Hi cowmanchess,

    It seems that you are having problems with your USB port on the computer.

    Have you tried using a different USB port on the computer?

    Have you tried a new USB cable?

    How long is the USB cable you are using?

    You have a USB hub between the printer and the computer?

    Unplug the USB cable and then download the software on the link below. Wait that the installation of the software requires you to connect the cable. Let me know if you get the printer installed?

    Driver and software of HP LaserJet Full Feature

  • I have an error, missing wxmsw262u.dll and I don't know how to fix this error, please help.

    Try to find a solution to this problem and do not receive the case? I have read that I need to get the file off her recycle bin but that is empty. My PC Tools has been clean the tray for me is not that nice. I tried a recovery tool, but the file has disappeared for a long time to recover. I have the game Unreal Tournament 3 abd she needed a server crash bu patch that he would charge not because of the missing dll file. I can't play my game and I'm going to cry, I.; m 57 years and don't have a lot of time left in the world so please help me soon.

    Hello

    There is a long list of things to try to solve this problem

    you have to work your way through them

    http://pcsupport.about.com/od/findbyerrormessage/a/wxmsw262u-DLL-not-found-missing-error.htm

  • Jam - HP Officejet 8500 pro error - please help, deployed without return option

    Jam - HP Officejet 8500 pro error - please help, not deployed to M.E. no return w/lovely HP option

    I have a month old HP Officejet 8500 Pro, which suddenly give a paperjam error message.  There is no paper jam.  I spoke with HP Technical Support making long resets even blow the bowels to air without result.  It must be a simple mistake.  I saw it reported on other boards, but it seems that everyone is simply trading on their printers.  Not an option, like HP, in their infinite wisdom will not replace a defective unit overseas.

    I thought that there is a paper feed guide that hung above the paper tray.  It's hangin' is low... but maybe I was mistaken. If I tilt the printer back it will feed and eject a page, but not print.

    If someone at HP would be so likely to enlighten me I would willingly do what is necessary to take part, or whatever...

    Help... Help... Help...  Thank you...

    Here is a link that will help you.
    http://goo.GL/vxhuH

    It may be a sensor that went bad in the printer that generated the message.

  • We have made a purchase of the gems on the Cammand of Star Wars app.  Although us have been billed double and no has not yet obtained the gems.  Please help.

    We have made a purchase of the gems on the Cammand of Star Wars app.  Although us have been billed double and no has not yet obtained the gems.  Please help.

    Contact iTunes supports http://www.apple.com/emea/support/itunes/contact.html for assistance.

  • HP 15 ac189tu not find the bluetooth device please help me

    HP 15 ac189tu not find the bluetooth device please help me

    PLEASE HELP ME

    Mr President

    I found the solution

    I have install MS 72552.exe

    & his departure find device

    Thanks for supporting.

  • How to extend my C drive volume in Windows 7, so that the disc I want to merge in drive C is not adjacent to the C drive, please help

    How to extend my C drive volume in Windows 7, so that the disc I want to merge in drive C is not adjacent to the C drive, please help

    Jackin salvation,

    Welcome to the Microsoft Answers community.

    When resizing of volumes in Windows7, you must be aware of the following criteria:

    • Only you have the possibility to reduce or enlarge NTFS or RAW (unformatted) partition using Windows 7 tools.
    • When you shrink a partition, files not movable as a page file or a shadow storage area are not resettled. This is why you cannot reduce the size of the Windows beyond volume where these types of files. If you need to reduce the volume, you will need to remove, move or delete the page file or the shadow first storage area, and then reduce the volume and then add the page file or shadow storage on the disk area.
    • If enough bad clusters are found on the disk partition will not shrink.
    • You must be logged on to an administrator account in order to resize Windows Volumes in windows 7.

     

    Windows 7 Partitions or Volumes of shrinkage

    This section shows must shrink a Windows volume or partition. To do this, we must open the Windows 7 disk management tool. The following steps will guide you in this process.

    1. Click the button on the Start Menu in the bottom left of your desktop , and then click the Control Panel menu option.

    2. When Control Panel opens, click on system and Maintenance category.

    3. When opens in system and Maintenance category, scroll down and click on Administrative Tools.

    4. Double-click the computer management icon. The console of the computer management will now open. Down, you will see a category called storage and under this category will be the disk management icon, as shown below.

    5. Click on the disk management icon, and you will now be in the disk management utility as shown in the figure below. This utility you can see all the partitions on your computer and format, delete, create, develop or resize them. For this tutorial, I'm going to resize the partition E: of 16 GB so that when completed, there is a 8 GB partition and provides another 8 GB of free space I can use for other purposes.

    6. To shrink the partition, just click with the right button on the partition that you want to work with and select reduce . In this example, I click right on the E: partition and in the menu that appears, I select shrink.

    7. A screen similar to the one below appears. This screen indicates the size of the current partition you, how you can reduce it to a field where you can enter a specific amount to reduce, and then how big partition will be once it shrinks. By windows 7 default enters the maximum amount that you can reduce the volume, but if you want to change this amount, do so by entering the amount in MB in the enter the amount of space to shrink in MB: field. When you are satisfied with how windows 7 will shrink the partition, click the minimize button.

    8. Once windows 7 is complete decreases the volume, you will be in the disk management screen, but now the partition size will be the size you requested as shown below.

    Now that you have reduced the size of your volume of Windows, you can close the computer management console.

    You have now finished reducing your score and you have the extra space available for use as required.

    Windows 7 Partitions or Volumes extension

    This section shows that you must extend a Windows volume. To do this, we must open the tool of disk management where we can resize our volumes. The following steps will guide you in this process.

    1. Click the button on the Start Menu in the bottom left of your desktop, and then click the Control Panel menu option.

    2. When Control Panel opens, click on system and Maintenance category.

    3. When opens in system and Maintenance category, scroll down and click on Administrative Tools.

    4. Double-click the computer management icon. The computer management console will now open. Down, you will see a category called storage and under this category will be the disk management icon, as shown below.

    5. Click on the disk management icon, and you will now be in the disk management utility as shown in the figure below. This utility you can see all the partitions on your computer and format, delete, create, develop or resize them. For this tutorial, I'll extend the E: partition so that it uses the rest of the available space on the disc 1.

       
    6. To extend the partition, he just click right-click on the partition that you want to work with, and then select the Extend option. In this example, I click right on the E: partition and in the menu that appears, select Extend.

    7. A wizard appears as shown below. Press the Next button to continue.

    8. A new screen, shown below, is displayed allowing you to select the free space available on your local hard disks that you can use to extend the space of the selected partition. It is important to note that Windows 7 allows you to extend a volume using free space on the same drive as well as the other disks. I strongly suggest that you do not extend a volume on a disk with free space of the other. It is because if one of the disks has a hardware failure, then all data on this volume will be removed. Rather just to use the free space on a drive that contains the volume you extend
      .

      As discussed in step 5, for this tutorial we are going to extend my 8 GB partition (drive E :) to the total size of disk 1 using all the available space. As disk 1 is only available free space on my computer, windows 7 automatically select as shown in the image above and use the maximum amount available to extend the partition. If there were other drives with free space that they have shown during the selection available . If you want to extend the volume to a lower amount you can change in the Select the amount of space in MB: field. In the contrary case, press us the button Next .

    9. You will be now be presented with a confirmation screen. If you are sure you want to extend the volume, press the Finish button. Otherwise, press the back button to make changes or the Cancel button to cancel this operation.

    10. Once Windows 7 completed to extend the volume, you will be on the screen disk management, where you can see the amount that you have extended with the new size. An example of this is shown below.

    At this point, you can close the Management window of the computer that your task is completed.

    Hope this information is useful.

    Let me know if it worked.

    Thank you, and in what concerns:

    Umesh P - Microsoft Support

    Visit our http://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads/ Microsoft answers feedback Forum and let us know what you think.

  • Hello. I purchased a CS2 product and im having problems with activation. I have the key but my installation failed in the 'summary '. Please help thanks.

    Hello. I purchased a CS2 product and im having problems with activation. I have the key but my installation failed in the 'summary '. Please help thanks. This is what im seeing.

    Screen Shot 2016-03-01 at 9.09.51 PM.png

    See my response in audition 3 error with installation

  • My computer crashed and I reinstall first elements 7, but it will not recognize my serial number there are two on the CD case please help

    My computer crashed and I reinstall first elements 7, but it will not recognize my serial number there are two on the CD case please help

    When you ask a question you will need to provide some basic information

    Mac or Windows and EXACTLY what version of the operating system?

    Recent Mac AND Windows operating systems have been known to cause problems "weird."

    Lost information - response #1 in https://forums.adobe.com/thread/2008767

    Invalid License http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

    -http://helpx.adobe.com/creative-suite/kb/invalid-serial-number-cs4.html

    - and http://forums.adobe.com/thread/1038761

Maybe you are looking for