Statement must appear in the onClipEvent/Manager

Hello. I have an MP3 Player embedded in my presentation but when I go to test my 3 film following errors came AS. My code is below as well. Could someone help me to find out where is my problem?

Thanks much for the advice. :)


* Error * screen = presentation, layer = lines of overlay of bg, frame = 1:Line 1: statement must appear in the onClipEvent/Manager
volumeDragging = false;

* Error * screen = presentation, layer = lines of overlay of bg, frame = 1:Line 2: statement must appear in the onClipEvent/Manager
function playNewSong() {}

* Error * screen = presentation, layer = lines of overlay of bg, frame = 1:Line 16: statement must appear in the onClipEvent/Manager
mp3Player.OnLoad = playNewSong();

Total ActionScript errors: 3 reported errors: 3








volumeDragging = false;
function playNewSong() {}
clearInterval (soundDuration);
mp3Player.mySound.position = 0;
mp3Player.mySound.duration = 0;
mp3Player.ProgressBar._width = 0;
mp3Player.mySound = new Sound();
mp3Player.mySound.onSoundComplete = playNewSong;
randomSound = random (4) + 1;
mp3Player.mySound.loadSound ("bgSound" + randomSound + ".mp3", 1);
soundDuration = setInterval (durSong, 1000);
function durSong() {}
mp3Player.ProgressBar._width = Math.round((mp3Player.mySound.position/mp3Player.mySound.duration)*31;)
}
}
mp3Player.OnLoad = playNewSong();

your code is attached to a movieclip or button and it must be attached to an image.

to remedy this, highlight and copy your code, click on an empty part of the scene and in the Panel actions, paste your code. Repeat the test.

Tags: Adobe Animate

Similar Questions

  • statement must appear in the hanlder...

    When I keep this code on my button in action... "statement must appear in the Manager of" erro generates...

    What should I do for this., my code is...

    nxt.onRelease = function() {}

    newthumb();

    }

    Do not put this code on your button.  Put it in the script that contains the button with an instance name of 'nxt' - you can create a layer specifically for actionscript and place it so that it is easy to find.  If you correctly a lowercase 'a' should appear in the timeline where you place.  I ideally function newthumb() should also be in the same context of chronology.

    In AS2 you can put the code on the objects, but it is written differently.  It is considered bad practice, however, because it makes the code more difficult to find and can confuse things targeting properly.

    The code that show you is the version of the timeline which is better.

  • SD-R2312 device does not appear in the hardware Manager

    I have several problems with my Toshiba SD-R2312 Windows XP. Cannot open CD, device does not appear in the hardware Manager, drive is not displayed anywhere.

    First time it happened, I was able to reactivate it as described here.
    http://www.TechSpot.com/VB/all/Windows/t-28912-desperation-Toshiba-DVDROM-malfunction-possible-missing-driver.html

    After working for a few weeks, the drive is 'gone' once again, same symptoms as the first time.
    Try the registry fix again, I found that there are still "UpperFilters" (which I've deleted again), but not Lowerfilters.
    However, which did not help this time.

    I have no "unknown" devices that I could delete (see http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=6548&messageID=22638).

    Does anyone have an idea how to get the drive working again? Is there a way to prevent that from happening again?

    Thanks in advance.

    Hello

    If the drive is not displayed in Windows Explorer, perhaps this method can help. Try it!

  • computer (Vista) tells me there is a problem with a scanner, I have not, say to uninstall, but it does not appear on the Device Manager

    tried to install camara, but when it says click on your product, but the camara is not on the list, only scan appears on the list, but I don't have a scanner. tried to uninstall, but does not appear on the Device Manager. try to download programs, and they do not arise in Start menu, just uninstall it list? Thank you

    Hello

    I suggest to uninstall unwanted software from your computer and then try to install the camera. Visit the link below to find the steps on how to uninstall programs "programs and features".

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    After you have installed the camera, please check in the folder C:/Program files if it shows there.

    It may be useful

  • Microsoft SQL Server 2014 (SP1 - CU4) (KB3106660) query failed with error ORDER BY items must appear in the select list if SELECT DISTINCT is specified.

    Hello
    I use Microsoft SQL Server 2014 (SP1 - CU4) (KB3106660) Enterprise Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1)

    SELECT DISTINCT A.PI_LOOKUP_CATEGORY_ID,
    REPLACE (REPLACE (UPPER (A.LOOKUP_CATEGORY_NAME), ' ', '_'), '-', '_') AS CATEGORY_TECH_NAME,
    A.LOOKUP_CATEGORY_NAME,
    A.LOOKUP_CATEGORY_DESCR,
    COUNT (B.PI_LOOKUP_CATEGORY_ID) AS USAGE_COUNT
    FROM [PI_LOOKUP_CATEGORY] A LEFT OUTER JOIN B [PI_INSIGHT_COLUMN] WE
    A.PI_LOOKUP_CATEGORY_ID = B.PI_LOOKUP_CATEGORY_ID
    A.PI_LOOKUP_CATEGORY_ID GROUP,
    REPLACE (REPLACE (UPPER (A.LOOKUP_CATEGORY_NAME), ' ', '_'), '-', '_').
    A.LOOKUP_CATEGORY_NAME,
    A.LOOKUP_CATEGORY_DESCR
    ORDER TO REPLACE (REPLACE (UPPER (A.LOOKUP_CATEGORY_NAME), ' ', '_'), '-', '_')

    above request is failed with error ' ORDER BY items must appear in the select list if SELECT DISTINCT is specified. " Microsoft SQL Server (SP1 - CU4) 2014 (KB3106660)

    same query works fine with older versions of SQL servers like (2008R2, or 2012)

    Please let me know the resolution of this problem...

    Thank you
    Touria

    Ask here:

    MSDN - SQL Server - Microsoft forums

  • My installed products are not appearing in the extensions Manager

    Help, my installed products are not appearing in the extensions Manager. See the image

    Screen Shot 2016-04-15 at 08.37.59.png

    If I understand correctly, the 2015 versions don't support the extensions more and each update manager to the new version of the provider, or install them manually. Also, this applies to own or download Adobe extensions from the market!

  • Dreamweaver does not appear in the extensions manager all please help more

    Dreamweaver does not appear in the extensions manager the most

    Help, please

    I have a backup of my hard drive, so I could search for missing files

    Thank you

    nicolasatpewny.com

    The extension manager is no longer supported by adobe, Adobe Exchange:

    Extension Manager no longer work after the update CC 2015

  • Adobe XI does not appear in the Applications Manager...

    How can I get it displayed to download/install?

    Hi LRDuhon,

    Please find the system requirements for download Acrobat XI: http://www.adobe.com/in/products/acrobatpro/tech-specs.html . If you have Windows Vista as your operating system, then Acrobat XI will not appear in the Application Manager due to compatibility issues.

    Kind regards

    Romit Sinha

  • Total memory of 4 GB newly installed does not appear in the Task Manager

    Total memory of 4 GB newly installed does not appear in the tab of the Task Manager performance. Only 3.3 GB appears. Is something wrong with the chopsticks of mem or mem from Vista 32 bit OS limit uses at this level. I have SP2.

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

    "System memory shown in the system information dialog box in Windows Vista is less than expected if the 4 GB of RAM is installed.

    This behavior is the expected result of some hardware and software factors.

    Various devices in a typical computer require memory-mapped access. This is known as memory-mapped i/o (MMIO). For the MMIO space is available for 32-bit operating systems, the MMIO space must reside in the first 4 GB of address space.

    For example, if you have a video card that has 256 MB on-board memory, that memory must be mapped in the first 4 GB of address space. If 4 GB of system memory is already installed, the part of this address space must be reserved by the graphics memory mapping. Graphics memory mapping replaces part of the system memory. These conditions reduce the total amount of memory available to the OS System.

    The reduction in available system memory depends on the devices that are installed in the computer. However, to avoid potential driver compatibility issues, 32-bit versions of Windows Vista limit the total available memory to 3.12 GB. See the section 'More information' for more information on potential driver compatibility issues.

    If a computer has many features implemented, the available memory can be reduced to 3 GB or less. However, the maximum memory available in 32-bit versions of Windows Vista is typically 3.12 GB.

    See you soon.

    Mick Murphy - Microsoft partner

  • Drive C does not appear in the computer management window.

    Hello

    In the window of the computer storage management > disk management, I have see my drive C. CD - DVD drive and an external DVD drive only is displayed. C drive is not there. When I look under the disk defragmentation, the C drive is.

    What gives?

    Thank you

    Hello

    Use the Diskpart utility and check if it lists the C drive. Thelist volume command will provide information about each volume in the computer.

    a. Click Start and then click Run.
    b. now, type cmd in the text box and press on enter to open the command prompt.
    c in the command prompt, type diskpart.exe press ENTER.
    d. Enter the following command in the utility diskpart and press ENTER:
    the list volume

    Check if drive C appears in the list.

    See this article for more information about the Diskpart utility:
    http://support.Microsoft.com/kb/300415

    Kind regards
    Afzal Taher - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Photoshop does not appear in the extensions Manager

    Hello

    Photoshop no longer appears in my extensions Manager list of programs. How can I add it back? I did each download I could.

    THX in advance

    Capture d’écran 2015-10-13 à 01.24.07.png

    So, I chatted with the adobe customer service and apparently the CC extensions Manager cannot accept CC Photoshop more. Bad news...

  • 2014 CC Photoshop does not appear in the extensions Manager, why?

    I have the same applications on my desktop computer and laptop, but Photoshop CC 2014 does not appear in the extensions on the cell Manager. No idea why?

    Please check that you have updated the CC extensions to 7.2.1 Manager. If so, please refer to the Re: why I don't see InDesign CC in my extensions Manager CC.

  • Presets of the ESA do not appear in the Preset Manager

    I watch a tutorial which includes a bunch of presets that I'm supposed to load in PS.

    Using the preset manager, I got some of them to load, but the color swatches. that appear in the Explorer as ASE files seem to be missing when I try to load them, even if there are ASE files in the folder of the color sample.

    I wonder if it is a question of version.  The tutorial was made in 09 and I use PsCC.Presets.jpg

    In the loading dialog box change the dropdown to Swatch Exchange (*.) ASE)

  • Button style default Quiz does not appear in the Style Manager object

    All buttons in a quiz that I created have black text on a black background, so that they are not visible. However, I do not seem to have an option in the Style of the object manager to change the default Quiz button Style. Outside the update each button individually, are at - it another option or a way to make the buttons appear in the style of the Manager object? I am using captivate 5.

    object_style_manager.jpg

    Use the small triangle next to Standard objects to fall to the bottom of the list of objects and select the one that says button.

  • Windows 10 - PC recognize iPad, but iTunes does not. Nothing appears in the Device Manager.

    I followed each step that I could find on the Apple Web site. The PC recognizes the iPad iPad wonder to trust the PC and I do it, but iTunes does not show the iPad and the Device Manager doesn't show anything Apple. I even uninstalled, to alreay redownloaded and reinstalled iTunes.

    Have you tried to remove and reinstall iTunes by following the steps here? All the steps are essential to eliminate corrupt drivers:

    Remove and reinstall iTunes and software for Windows 7 and later versions - Apple Support components

Maybe you are looking for

  • Samba has stopped working

    Today I tried to connect to my samba share that I have Setup on another computer running Linux. I can't seem to get OS x to connect if. It keeps giving me the «check server name» or IP address error I have the configuration of sharing for guest acces

  • Is there a problem with the server of Combat Flight Simulator 3?

    Is there a problem with the server of Combat Flight Simulator 3? I can play online because I can connect to the internet. I have READ 651,2 Kbps. someone helpme?

  • spell check for outlook express

    My e-mail spell check in a foreign language, how to change American English?

  • Can't get msn email

    Cannot open a session said his diffance things. MSN email

  • Service user logon Service has no login in Windows 7

    After years of logon without problem I now have the message "user logon service failed to logon", and I can't login.   I can connect to the site of my wife OK but not mine.  How can I fix it? Original title: problem opening session