Playing MP3 files in the library (AS3)

Hey everybody! :)

OK, so I have an mp3 player in the library of my FLA here and I just want a command AS3 that will play.

I tried new Sound() but who wants to load an external mp3. I tried to make it easier (of course not...) AND avoid potential network errors - such as preloading is not a concern in this project - putting her sounds good in the library and export on frame 1.

I tried to give mp3 a team of class in the library. I called the 'SoundDogs.as' class and chose to extend flash.media.sound. When you compile the SWF, I got this error:

1046: type was not found or is not a compile-time constant: SoundDogs

now, I know that it works and that I must not use 'import' because I have another advantage of Library - Visual of this time - linked to "KaleidoscopeAssetSwallow" and the line:

_swallow = new KaleidoscopeAssetSwallow();

works very well, I get my swallow on stage.

so, how can I do the same for sounds?

: S

Hell, I just worked and you got to get your message across first. ;)

Thanks again kglad. for those who wonder what kglad meant, in the 'Class' textfield linkage dialog, do not call your 'SoundDogs.as' class, call it just "SoundDogs.

:)

Tags: Adobe Animate

Similar Questions

  • Play MP3 files in the external drive do not work...

    I want to use Windows Media Player instead of the built-in, so if I click on the ""play in external"button, I don't get a page of 'empty' web browser, telling me that"Internet Explorer cannot display the web page!

    What can I do?

    Verner

    Problem solved :-)

    Media Player was not more defined as default player - changed default and it's ok now.

    Thank you for helping me.

    Concerning

    Verner

  • How to convert an mp3 file to a file rtext? Can I use windows media player to play mp3 and have the recigition speech to convert to text?

    Can I use windows media player to play mp3 and have the recigition speech to convert to text?

    You can get on a conversion of 70% in reading a file in Windows Media Player using something like Dragon Naturally Speaking to convert. If you set the playback speed to slow in Windows Media Player to play > play speed, you will get a better result. The best option is to download the file to an audio transcription service, but which generally costs 0, 50-1, 00 per minute of audio.

  • Received the 0xC00D0FEA error code when you try to play mp3 file of hotmail message.

    I received a 5.6 mb audio recording of my brother's gmail account, and I got the 0xC00D0FEA error code when I tried to play in WMP12.

    My OS is Windows 7 Professional.

    I also tried to download the file, but do not have the option to save it in a media file. Help, please.

    Thank you

    Hello

    1. are you able to play other files on the computer using Windows Media Player?

    2. are you using Internet Explorer? If Yes, what version of IE are you using? Find out what version of Internet Explorer you are using

    http://Windows.Microsoft.com/en-us/Windows7/find-out-which-version-of-Internet-Explorer-youre-using

    You can save the file to the desktop and then right click and select play with Windows Media Player a check if it works.

    Check this C00D0FEA

    Answer with the information required for you help in this matter.

  • Convert a text into an MP3 file in the Alex voice?

    Hello world

    Is it possible to convert a text file to an MP3 file in the Alex voice on the iPad or Windows PC?  Apparently, this can be done on the Mac.

    I use the Alex voice to read the text all the time on my iPad, and I would like to be able to save the text as an MP3 file so that I can play on other devices (for example, iPod, Windows PCs).  So far I could not find built into the functionality of the iPad or iPad app that would allow me to do.  I also was not able to find any program for Windows PC that does this.

    I found various programs that convert text into MP3 files (for example, TextAloud3, Voice Reader home 15, etc.), but I like the Alex voice much more than the voice in these programs, so I really hope that there is a way to do it on the iPad or Windows PC.

    Thank you in advance for your help!

    N ° you can't do on an iPad. I don't think there's a way to do it on a Windows PC since voice is the property of Apple, as far as I know.

  • is there a simple guide on how to use Windows Media Player to play MP3 files on a Web site

    I'm designing a simple website to a friend. They are singers and want 3 or 4 songs sample of people to listen to on the site.

    What is the easiest way to do this (I m not technical, it should be easy to understand)

    Idea is that the user accesses the page and chooss a song they click and hear 30-45 seconds of a recorded sample (MP3 file)

    Strive to do that. I thought it would be easy but can't seem to find a simple way to do it.

    Can it be done using Windows media player (records are MP3 files in the Player Windows Media.

    Help appreciated

    Ian

    I'm designing a simple website to a friend. They are singers and want 3 or 4 songs sample of people to listen to on the site.

    What is the easiest way to do this (I m not technical, it should be easy to understand)

    Idea is that the user accesses the page and chooss a song they click and hear 30-45 seconds of a recorded sample (MP3 file)

    Strive to do that. I thought it would be easy but can't seem to find a simple way to do it.

    Can it be done using Windows media player (records are MP3 files in the Player Windows Media.

    Help appreciated

    Ian

    If you have a music video, your friends sing you could install a flash drive on the Web site. If it is just an audio file, you must download the file to a file free host then post a link to the file on the Web site.  If Windows Media Player comes into play depends on what media player the person clicking the link used as their default media player. Windows Media Player will play no role in the file on your website. The link below contains a list of free audio files, hosting sites. There are many others that you can find with a simple search on Google.

    http://www.audiohostings.com/

    See also http://www.tripwiremagazine.com/2010/08/20-free-online-audio-players-for-your-websites-or-blogs.html

  • No sound in windows media player (11.0.6002.18111) only trying to play mp3 files. No way of fixing/uninstallation or reinstallation. Need advice!

    I recently encountered a problem with Windows Media Player 11 (a specific version in the title of the topic) where no sound play atall when you try to play mp3 files. When trying to play a track of the progress indicator moves VERY slowly and jumps in a stuttering mode and no sound whatsoever is coming through the speakers. He is a recent problem.

    All audio files work on other audio programs like Real player, quick time e.t.c. and the sound comes from the computer normally. Only the sound that I have are with windows media player when you try to play mp3 files. Still fine read video files, wav files play fine. How boring is that he suddenly decided he likes are more mp3 files!

    More annoying, I stumbled upon the fact that I can't uninstall the reader as in Vista, it is part of the operating system literal, I can't download and install WMP install package from Microsoft because I tried and it tells me that I have a more recent version of Windows media player and therefore impossible to use the downloaded Setup program to install or repair windows media player. It is therefore impossible for me to get an installation package that is newer than the one on the computer, you would have thought that the downloadable installation on the microsoft Web site would be the more recent but no!

    I can't think of a way to solve this problem. For me it feels strongly a Codec issue to do with MP3 and WMP but I don't really know about Codecs enough to go on the setting of the specific Codec with the question, or even track down which codec it is perhaps whether she "is" a codec problem in the first place.

    I tried settings with the menu of options in WMP 11 troubleshooting unsuccessful (obviously), I also tried an audio tool / repair of breakdowns than microsfts audio troubleshooting prompted me to try, that of no problems with the actual audio devices on the system... I KNOW, his problem with WMP and mp3 files!

    So, to summarize, WMP doesn't read MP3 files, I can't run a repair tool that there is no 'installation' to WMP 11 package, it is not an uninstall utility is which means that I can't uninstall it to reinstall a new, I can't download the installation package and run it as apparently I have a more current version than is available on the microsoft Web site. Then what should I do?

    I need some advice on how to go about trying to solve this problem I've hit a bit of a brick wall...

    Any advice would be much appreciated!

    FIXED!

    randomly enough rate and bit depth format sample somehow has set high in the sound control panel, advanced driver.

    After hitting "restore defaults" it resets the depth of rate and little sample return at: 16 bit 44.1 khz

    The sound now plays perfectly.

    Weird it performs only mp3 files!

    Thanks for the help people, it seems that I ended up sorting out on my own though! Yay for me! haha

  • Read mp3 file on the home screen in the background.

    Hi all

    I want to play an mp3 file on the start screen in the background.

    Please provide any suggestions for this its very urgent please.

    Thanks in advance.

    I am interesting with your own splash screen. I have assumed that you set up a timer to close the sheet of splash, is this correct?

    When the leaf is closed, is it you need to change the scene in your main or only to close the startup worksheet then will prove the main screen.

    The reason for my question is you wonder how you can disable the animation of pulling it up or pulling down sheet.

  • audio and video synchronization on a file in the library media player Windows 7 Home Premium 64-bit

    How can I synchronize audio and video on a file in the library media player Windows 7 Home Premium 64-bit
    video play about a second faster than the audio, the download is good, cause it works on another computer on a flash drive...

    How can I synchronize audio and video on a file in the library media player Windows 7 Home Premium 64-bit
    video play about a second faster than the audio, the download is good, cause it works on another computer on a flash drive...

    Set up a device to sync in Windows Media Player

    Sync manually in Windows Media Player

    Windows Media Player sync: frequently asked questions

  • In XP PRO SP3 WMP11, will add all my files in the library. I added the folder, but it adds only 116 records 2000

    In XP PRO SP3 WMP11, will add all my files in the library. I added the folder, but it adds only 116 records 2000

    In XP PRO SP3 WMP11, will add all my files in the library. I added the folder, but it adds only 116 records 2000

    You cannot view, add, or delete items in the library of Windows Media Player 11

  • When I try to import an mp3 file for the background music for my videos I get the following message: C:\Documents and Music\Karaoke.mp3 Documents\My owner could not be imported.

    Original title: Please help me

    When I try to import an mp3 file for the background music for my videos I get the following message: C:\Documents and Music\Karaoke.mp3 Documents\My owner could not be imported. The selected file is not valid or is corrupted. but before a few years, I used this then all files was import but now this errors can help u answer me please

    When I try to import an mp3 file for the background music for my videos I get the following message: C:\Documents and Music\Karaoke.mp3 Documents\My owner could not be imported. The selected file is not valid or is corrupted. but before a few years, I used this then all files was import but now this errors can help u answer me please

    =====================================
    MP3 files can be problematic in Movie Maker...
    Best bet would be to convert the files to the. WMA
    format before you import into Movie Maker.

    There are many converters available on the net... the
    the following link is an example:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup295.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the last screen)
    (Windows XP / Vista / 7)

    First... after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your music files on the main screen...

    Select "while"WMA"/ OK...

    Click on... Beginning... in the toolbar...

    That should do it...

  • How can I transfer video files to the library in windows media player for an external hard drive

    How can I transfer video files to the library in windows media player for an external hard drive. My os is Windows XP Home Edition and I use wmp 11.

    You have to locate the files on your internal hard drive, using the Explorer, then drag and drop them on the hard drive.  If you don't know where they are on your hard drive, right click on the video file in the library and choose the location of the opened file.

  • Adding a file to the library in Windows Media Player 11.

    I can't understand how to add a music file to the library.  The only option is to add a folder.  Help.

    Hello

    Items can be added to Windows Media player by adding a single file or by adding a folder.
    Check out the link and follow the steps.
     
    You can also read the FAQ on Windows Media player. Check out the link.
     
     
  • Error code when you try to copy the MP3 file on the removable disk: 0 x 80070052

    I can't copy MP3 files from the hard drive of the computer to removable disk

    The error code shows 0 x 80070052

    I suggest that you try the instructions in the following article:

    http://www.QuickOnlineTips.com/archives/2007/09/how-to-fix-error-0x80070052-on-USB-flash-drives

  • Is there anyway that I can use the MP3 files for the computer system sounds in windows 7

    Is there anyway that I can use the MP3 files for the computer system sounds in windows 7. Any help would be appreciated, thanks - Joe

    I don't think so. If you convert the .wav files, you could. Google for an MP3 to WAV converter.
     
     

Maybe you are looking for

  • How to switch on and Switch Off LED using lab view

    How to switch on and Switch Off LED using lab view, I need to Switch on and off material LED, not the soft LED. I need to know the different ways to Switch On and Off the LED

  • I have my product key, but not the cd of windows!

    Greetings to all! OK, 2 years ago, I bought my laptop. He gave me the laptop but he gave me the windows cd so I can format it and I was pretty beginner do not ask. The thing is that the laptop has the product key (25 digit code) on the real sticker o

  • Add a printer to the network

    I just reimagee my Windows XP Tablet which has always been on my network home, share 2 printers and internet through a router with no server. Now I can't understand how to add the software to my Tablet then he can print to the Brother HL-2700CN color

  • blue screen crashes

    someone help me with what it means STOP: 0X0000C1F5 (0XC01A000A, X82CA9000, 0x00000000, 0x00000000) blue screen then stops (vista home prem 32).

  • envy touchsmart 15 graphics

    Hello I'm looking forward to buy Touchsmart from HP ENVY 15 t-j100 with 2048 MB gt740 Mr. dedicated graphics card I wanted to know if it is possible to replace gt740m with something better. Besides I would like to know what material in this laptop is