Audio will not play with AS 3

Hi, I use Adobe Flash CC 2015 and I have a question that makes me crazy. I used the old code from a working file (who apparently works in the container) but when I run it on my computer, it does not work correctly when published. It reads the file, but the audio keeps looping through itself. He doesn't call loopback anywhere in the property file. Here is my code:

import flash.events.MouseEvent;

import flash.events.Event;

Stop();

var myChannel:SoundChannel = new SoundChannel();

this.addEventListener (Event.ENTER_FRAME, listenMe);

next_btn.addEventListener (MouseEvent.CLICK, click Next);

prev_btn.addEventListener (MouseEvent.CLICK, clickPrev);

function clickNext(e:MouseEvent):void {}

myChannel.stop ();

gotoAndStop (currentFrame + 1);

}

function clickPrev(e:MouseEvent):void {}

myChannel.stop ();

gotoAndStop(currentFrame-1);

}

function listenMe(e:Event) {}

If (currentFrame == 1) {}

var mySound:Sound = new Sound();

var myChannel:SoundChannel = new SoundChannel();

mySound.load (new URLRequest ("audio_1.mp3"));

myChannel = mySound.play ();

prev_btn. Visible = false;

Stop();

} else {}

var mySound:Sound = new Sound();

var myChannel:SoundChannel = new SoundChannel();

mySound.load (new URLRequest ("audio_2.mp3"));

myChannel = mySound.play ();

prev_btn. Visible = true;

}

If (currentFrame == totalFrames) {}

var mySound:Sound = new Sound();

var myChannel:SoundChannel = new SoundChannel();

mySound.load (new URLRequest ("audio_3.mp3"));

myChannel = mySound.play ();

next_btn. Visible = false;

} else {}

next_btn. Visible = true;

}

}

I know there are few repetitive code, but its in the original file that I update and it apparently works, but not on my computer. I am using a MAC Book Pro but running Windows 10 on it. Don't know if this is causing the problem or not. but the other files seem to work just fine.

Any help would be appreciated as I have not used the Flash in over a year.

Dee

I guess there is something Visual on each frame of the timeline which makes it important for your project to change the settings (otherwise, it is redundant code).  use:

import flash.events.MouseEvent;

import flash.events.Event;

Stop();

var myChannel:SoundChannel;

var mySound:Sound = new Sound();

/ / / this.addEventListener (Event.ENTER_FRAME, listenMe);  comment this line

listenMe();

prev_btn. Visible = false;

next_btn.addEventListener (MouseEvent.CLICK, click Next);

prev_btn.addEventListener (MouseEvent.CLICK, clickPrev);

function clickNext(e:MouseEvent):void {}

nextFrame();

listenMe();

}

function clickPrev(e:MouseEvent):void {}

prevFrame();

listenMe();

}

function listenMe (): void {}

mySound.load (new URLRequest ('audio_' + this.currentFrame + '.mp3'));

myChannel = mySound.play ();  I do not see where you use myChannel, but if you need it, this is where it must be assigned

prev_btn.visible = next_btn. Visible = true;

If (currentFrame == 1) {}

prev_btn. Visible = false;

} ElseIf (currentFrame == totalFrames) {}

next_btn. Visible = false;

}

}

(p.s when you use the adobe forums, check useful/correct, if there is.)

Tags: Adobe Animate

Similar Questions

  • audio will not play error message says it cannot have been updated or hardware changes have not been detected. I did no hardware changes

    audio will not play error message says it cannot have been updated or hardware changes have not been detected. I did no hardware changes

    Hello ShawnKohl,

    We can also try to go back to a time where he worked with system restore.

    Once this has been done, check the hat of Windows updates are available and hide the audio driver updates that are available.

    System Restore:

    Windows XP - http://support.microsoft.com/kb/306084

    Windows Vista/7 - http://windows.microsoft.com/en-US/windows7/products/features/system-restore

    Updates of masking:

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

    Please note that in addition to that, the advice of the previous poster remains true: we want to get the latest audio driver on the system of the manufacturer.

    Best regards

    Matthew_Ha

  • iPhone 5 s will not play with lightning cable 30 pin to the Apple Dock to stereo is there a setting I need to change?

    I'm an iPhone 5 to 30 pin docking station with a 30 Apple stem to connect to cable of the lightning. The audio is not played through the docking station. He plays on the speakers of phones. Is there a setting on the iPhone I need to change? The stereo docking station works with my old iPod 30-pin. I turned off Bluetooth and it did not help. I use the Amazon music app. It's iOS 9.2.1 podcasts will also not play through the docking station. Music and podcasts will play through the cable that connects the docking station for stereo if plugged into the headphone. However the sound is not as strong or as good.

    Can you connect the speakers to the phone via Bluetooth docking station?

  • Why audio will not play when to jog through the window of sequence?

    I only noticed this recently, but for some reason, jogging frame-by-frame in the sequence window will not play the audio portions of the project. Is there a way to fix this in Adobe first Pro CC 2015?

    Audio is playing while Scrubbing verified?

    MtD

  • Adobe first Elements 11 Audio will not play?

    I'm doing a video for the birthday of a friend, but the audio doesn't WILL NOT PLAY no matter what I try. I looked at all the possible solutions I could find for it and even tried to redo the entire project, ONLY TO FIND THAT the AUDIO STILL will not PLAY. It drives me nuts is how tense this product. Sometimes he plays audio, sometimes it doesn't. He sometimes plays audio through a speaker but not the other, and sometimes he plays on both speakers very well. Usually, a quick adjustment on the volume of the speaker would fix it, but not this time. It would simply not work. I am thinking seriously to a new editing software and stay as far away from Adobe Premiere Elements as possible. Unless there is a quick easy fix for this glitch. And I know for a fact that the audio is there, because it shows the audio in the video. I can play audio very well elsewhere, but not in first 11 elements. If anyone has a solution for this, please let me know. I was hoping to finish this today in time for my friend's birthday, but then this glitch happened and I can not get audio either. I tried to adjust the audio settings, change the ASIO driver settings and what things I googled before. IT WILL NOT WORK. If anyone has fixes for this, please let me know.

    Have you tried to unplug your USB microphone?

    Plug the USB microphones on your computer can cause the program to stop reading your story.

  • My audio will not play back :(

    For some reason any will not play my music on itunes. It shows that the song but I can't hear anything. I already made sure my speakers, and the sounds have not cut and turned all the way up and still nothing. help please?

    XoXoXo

    Nikki<>

    because of Youtube and other sounds work? If they work, but it does not work itunes, you should ask in the itunes forum
     
    If they don't work as well, see http://support.microsoft. com/kb/948481

    We are allowed to have links in our signature? Asking for official answers.

  • iTunes will not play with Bluetooth speaker

    I use iTunes on a system Windows 10 12.4.3.1. My computer is associated with a high fidelity of iLuv speaker. Audio is not iTunes plays through the speaker very well, but iTunes wants to play through my laptop speakers. I disabled them even, but again, it won't play via Bluetooth speaker. I also changed my reading settings in Live Audio iTunes, which seemed to work for others, but it doesn't change anything for me.

    What bit system you have?

    64, maybe try to download this - iTunes 12.1.3 for Windows (64-bit-for older video cards)

    32, maybe try to download this - Download iTunes 12.1.3 for Windows (32 bit)

  • Videos and music will not play with Firefox. I did what all said and it did not help!

    When you use google chrome, everything works perfectly. If you use Firefox, videos do not work, music will not work, and even video games on facebook do not work. I tried what the article told me to do, but it did not help. I even uninstalled and reinstall firefox and nothing. I really frustrated, I use Firefox for listening to music while I play games with google. Someone please HELP!
    Additional information: I have disabled all of the plugins, youtube started working. I advanced and compatible Flash, Silverlight and Java. Nothing is activated, and music and games still does not work.

    This can be caused by a recent update of Flash 11.3.

    See:

    You can try 11.2 Flash you can download it via this link:

  • Blu - ray disc will not play with Windows 7 installed on the computer hp laptop pavilion g6

    Although the non - Blu Ray discs play fine on my HP Pavilion laptop with Windows 7, discs Blu Ray will not be. How a computer model does this work?

    Hi, John:

    It's the hard drive.

    You need to go to Device Manager, and then click to expand the category of DC/DVD player.

    If the name of the dvd player does not have a BD in the model, it is just a standard dvd player and cannot play blue ray discs.

  • Facebook videos will not play with Droid Video Player

    I tried Facebook Facebook app and both gave me the same error.

    Error

    File may not be displayed or played.

    He also gave me the opportunity to play with QuickPic which also gave me another error:

    Cannot play video

    Sorry, this video cannot be played.

    I tried on several videos that I downloaded from my phone and my wife could very well play with his crush and was quick to say that it was because his phone was better than mine. Grrrrrrrrrrrrrrrrrrrrrrrrrr... UH no, it really isn't, but it's boring and bad!

    Downloaded MX Video Player and now it works fine. The installed video player is obviously crap.

    Guess that's one good thing about most of the bugs and problems with Android is that there is usually a work-around or an APP for that.

  • A30 audio will not play after installing XP pro

    My A30 crashed a few days ago, and I did a full format and re-installation of XP pro. A number of features has not subsequently worked, such as power management, paved tactile and audio. Touch pad and the power of management have been fixed with the pilots involved, however, I can not any audio to play. Its almost as if the sound card is not recognized, although the drivers are installed. Am at a complete loss so any assistance received with gratitude

    Hello

    at http://eu.computers.toshiba-europe.com in the driver download section you will end the current driver audio Realtek for the A30 series! Try to install it!

    Otherwise, you need to install the audio driver of the Tools & Utilities CD!

    Tok Bye

  • Audio will not play in PDF format

    My MP3 files won't play in a PDF interactive Adobe when exporting my InDesign working paper. They play very well with the 'Preview' ID and also when exporting in Flash Player (SWF) format. I followed all the instructions as best I can, which seem to be very frank, so what little stupid thing I forget? I've not done this before.

    Help and advice will be much appreciated,

    Thank you. FD

    The problem is Apple Preview. It isn't properly preview multimedia. Try in Acrobat or Reader.

  • Published video overview will not play with active captioning

    Hello Adobe community!

    I am having some problems with the activation of the subtitles.  Before recently upgraded to Captivate 8, I created my 7 Captivate training videos. I activated CC through the Publisher of skin for all videos and had no problem with reading.

    Last week, I upgraded to 8 Captivate.  Yesterday, I have converted one of my videos of Captivate 7 to 8 Captivate.  I made some changes by adding a table of contents, edited one of the slides and double-checked all my settings of CC next Dr. Pooja Jaisingh captioning video.  I posted the video (like SWF) to test the reading, and once again everything worked well.  I made a slide more change then re-released the video.  When I went to play the video, bar of playback controls have been 'broken' and everything crushed at the top left of the screen (see screenshot).

    After making several captivate restarts and computer restarted I narrowed the issue down to captioning.  If I uncheck close captioning in the skin, the preview of the video and video editor published play fine.  As soon as I "check" captioning still once, the playback bar is broken.

    I am at a loss and have no idea how fix the video.  I need the captioning option closed in the video.  If anyone has any suggestions or ideas of how to fix it please let me know.

    Thank you in advance!

    Captivate Error.PNG

    Captioning should not do that.

    I suggest that you remove the skin of your project and select a different skin from Captivate 8 to see if the problem goes away then.  It is possible, there are a few conflicts with the skin, applied initially in the earlier version of Captivate.

  • SteelSeries 3gc controller will not play with mw2

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: I downloaded all the drivers of the computer chooses the controller, but when I enter the game I up to duty use my mouse and keyboard.

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hello

    ·        This only happens with this particular game?

    Check if there is none of the game settings that will enable the controller. You can also check on another computer if the controller works fine with the game.

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Computer will not play with headphones

    I had a new hard drive for my laptop a few months ago after my old one lived "physical disability".  Since then, a few things have been turned off. The one I want to fix most is helmet issues. When I plug the headphones into the Jack, the little bubble pops up saying: 'you just plug a device into the audio jack. However, sound still comes out of the speakers, and when I open the window of reading devices, it does not list the helmet even when I said to display disabled devices. The headset works fine, I've tested on my roommates machine.

    Default setting under playback is grey, I can't select it. I'm in the right place?

    Make sure that you have updated audio driver.
    Please review the following article: -.
    How to change the Audio device by default playback & record

Maybe you are looking for

  • When I compose new emails, font sizes continue to increase.

    My email has been hacked or otherwise tampered with, a few weeks ago. I changed the password of my Yahoo email address; This action appeared to solve the problem. However, I have now the problem of police-size-increase when sending new emails. This p

  • iMessage inactive account

    The Message app does not work on my MacBook Pro. I tried looking for the community but have not found a resolution. I have a MacBook Pro (retina, mid-2012) running OS X El Capitan 10.11.4. Message has worked with Yosemite, but stopped working after t

  • Satellite P100-240 graphics card cutting

    Lappie literally just out of warranty & the graphics card is cut.Initially under Vista Premium I was getting taskbar message telling me the graphics card drivers had stopped & recovered? I formatted with a clean install of Vista back on.I've updated

  • EE-Brightbox network and B110 problem

    I have used my Photosmart B110 with a Netgear router successfully, but have now changed ISP for EA. I went through Setup with their EE-Brightbox router https://broadband.ee.co.uk/bright_box_router The wireless network test report indicates that the p

  • Unable to navigate to the program Autorun in Windows 7.

    In autoplay program I want to use to play a DVD movie does not appear in the drop-down list, although it works manually. How can I navigate a program that is not on the list? The program I want to use is by Intervideo WinDVD. I also tried the dialog