Problem with Sound.position

I find that Sound.position does not reset to 0 when using
Sound.loadSound(). It seems to continue with the last value. If a
loaded sound is stopped at position 500. Starting the sound again
plays the sound from 0 but position starts at 500?
I have worked around this by making a new sound object when a
loadedSound is stopped. Is there a better solution?

This is not an intermittent problem. This is how the Sound
object works. I'm using Flash 8. It worked this way under Flash 7
also.
Try it for yourself. Follow these steps:
1) Make a new text field to display the position. Then make
two buttons one to play and one to stop the sound.
2) Make a Sound object
3) Add an onEnterFrame function to the main timeline that
puts the position of the sound in the field
4) Set up the first button to call loadSound. Set up the
second button to stop the sound.
Test your movie. Click the first button, the sound starts to
play and you will see the value of position in your text field.
Click the second button. The sound stops and the field still
shows the current value of position.
Note this says that position doesn't get set to 0 when you
stop your sound.
Next click the first button to play your sound. Clicking this
calls loadSound again which starts the audio from the beginning.
But, the position displayed in the field doesn't start form 0. It
continues from where it was last. If the sound gets to the end. The
value stops increasing but the sound continues to play?

Similar Messages

  • Problem with sound on iPod Photo

    I am having a problem with sound on an iPod Photo. You can hear music for about 5 seconds and then it is silent. I have to turn off the iPod for several seconds. When I turn it back on it will have sound again for about 5 seconds before going silent again. Has anyone else expeirenced this? Any ideas what may be happening

    Try these steps one at a time.
    The Five Rs.
    If nothing helps, you can arrange online service here. This may be more than just a software problem.
    Service request.

  • Problem with sound on HP Probook 6560b

    Problem with sound on HP Probook 6560b

    my laptop problem is audio driver but it works by hearphone,how can lisen without hearphone?

  • HT1657 I am having problems with sound in my rental movies

    We rent movies all the time but lately we are having problems with sound for our movie rentals.  We watch the first half hour without a problem than the voice is choppy all the time.  Sometimes it is good for five minutes than noting for a while.  We  have tried everything we could think of with no avail.  I could see one movie but the last 5 or so have been the same.  Done trying we need to fix this!  Help!  Any ideas?

    First try resetting your iPad by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears. Try again to see if the problem persists.
    If you still have the same issue, it's possible that something is lodged in the earphone jack. This can cause the iPad to think earphones are plugged in when they are not. Use a vacuum to try to suck any dust, lint or other foreign matter from the jack. If that still doesn't work, try CAREULLY using a toothpick.

  • Hi there. I have a problem with sound on my 4s. When you move the volume slider up, it sounds well. But when I move the volume slider down I will hear barely and unclear sound in my headphone.I tried different headphones but result is same as old one.Help

    Hi there. I have a problem with sound on my 4s. When you move the volume slider up, it sounds well. But when I move the volume slider down I will hear barely and unclear sound in my headphone.I tried different headphones but result is same as old one.Help

    Try A and B
    (A) Restart iPad
    1. Hold down the Sleep/Wake button until the red slider appears.
    2. Drag the slider to turn off iPad.
    3. Turn iPad back on, hold down the Sleep/Wake until the Apple logo appears
    (B) Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • [SOLVED]Problem with sound in HDMI

    Hello good society of Arch
    Now I have problems with sound from HDMI. I use Arch as an tvPc, wasting movies and tv shows on it. I use ALSA and it works well, except of a few files that I have, then there is picture but sound is either twisted or not played at all. It does not matter whether I use vlc or mplayer, I'm experiencing the same problem.
    I have not found anything about this with google, other problems have been either hdmi sound working or not, not like it is with me, sometimes it works and sometimes it don't.
    I know that the files are ok, I can play them in anther pc I have (also using Arch on that pc).
    Does anybody know what the problem might be? What do I have to look at to find out what the problem is? This have been like this for some time now, but I haven't looked into it before, because I don't use TV that muts, but the wife does and when she stats blaming Arch, I have too do something about it.
    I have never encountered problem with Arch that i cant solve by using this forum and google
    Thanks
    Last edited by Vaski (2010-08-21 01:08:42)

    cleanrock wrote:I noticed i got no audio over hdmi on some video file which had a low audio bitrate, i solved it by resampling the sound to 48000 in ~/.mplayer/config :
    af=resample=48000
    I will look at this when i come home from work, thanks.
    nTia89 wrote:have you already read our wiki ?
    Yes i have, and sound is working, well most of the time.

  • Problem with sound in games requiring quicktime

    I recently purchased CSI 1. I installed the game and the latest version of quicktime player. As soon as the game starts and the first character starts talking the game pauses as if loading and then plays for a second and pauses again for a few seconds. This intermittent sound problem makes it impossible to play the game as the freezing stops everything from functioning. I tried another game that requires quicktime to be installed and that game is pausing the same. Has anyone else had this problem? I have all the latest drivers installed for Vista. Any help would be much appreciated.

    Do you get any problems with sound in other (older) games? You didn't mention which drivers in particular you updated, but make sure the graphics card's ones are included.
    With regards to Half Life 2, check out this page on the Steam site:
    http://steampowered.custhelp.com/cgi...wYWdlPTE*&p_li=
    If that page doesn't open correctly for you, just go to http://www.steampowered.com , then Support, and select Half Life 2 in the product list. It should be one of the first cases listed.
    Cat

  • Problem with sound in games

    Hi all welcome as you can see I'm new to your forum. So I have a problem as it concerns the sound in games.
    Namely, I bought a Creative Headset HS-800 Fatality everything good in listening to music, etc.
    But when I go to the game, I turned the sound (someone shoots to the left I hear him right, and vice versa.)
    Yes, in all games but mostly it is felt such a battlefiel or call of duty.
    At first I thought that this is the fault of my sound card but it's not because I was in a mate and in him was the same ... This recently replaced the computer and the same thing.
    I came across the net to reverse the channels, but unfortunately I do not know how to set it up.
    Here, the data on my computer:
    Sound Card Speakers (Realtek High Definitie
    Sound Card Realtek Digital Output (Realtek
    Sound Card Realtek Digital Output (RCA) (Re
    Operating system: Windows 7 64 bit
    I would add that in tests Realtek win7 and everything is fine.
    Regards and please help as soon as possible.

    Do you get any problems with sound in other (older) games? You didn't mention which drivers in particular you updated, but make sure the graphics card's ones are included.
    With regards to Half Life 2, check out this page on the Steam site:
    http://steampowered.custhelp.com/cgi...wYWdlPTE*&p_li=
    If that page doesn't open correctly for you, just go to http://www.steampowered.com , then Support, and select Half Life 2 in the product list. It should be one of the first cases listed.
    Cat

  • Problem with Image positioning

    Hello everyone I am having a problem with the positioning of an image I want to sit on  top of the background in DW. I want it to sit on top of the background  because I want to use a behaviour effect so that it fades in. Anyway, I  go to Insert and choose the image I want, and it shows up in the  top-left corner of my DW, which I expect it to. However, I want the  Image to sit a lot further down the page (and eventually at the center). So, I select the image and go  to the "V Space" in the properties panel and I alter the value in it so  that the image will be positioned further down the page. However, when I  do this for some reason the whole page shifts to the left a little and I  also get a scroll bar that makes the page a lot longer, which I don't  want. Does anybody know why this is happening and what I could do to  prevent it? I will attach a "before" and "after" screenshot so you can see what I mean a little more clearly.
    If you can see the whole page shifts slightly to the left and I get a scroll bar which makes the page a fair bit longer. I've also experimented a little by moving the image down bit by bit and found that everything is fine until I cross around 200 on "VSpace"-  after that is when the page shifts and I get the scroll bar.
    I greatly appreciate any help! Thanks

    As a starting point, Copy & Paste this code into a new, blank  HTML document.   The comments will guide you.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    html {font-size: 100%}
    body {
    margin: 0;
    background:#000;
    font: 1em Geneva, Arial, Helvetica, sans-serif;
    color: #FFF;
    text-align:center;
    #wrapper {
    width: 960px; /**width in px, ems or %**/
    margin:0 auto; /**centers page**/
    padding: 0;
    border: 2px solid silver; /**optional border**/
    #header {
    text-align: center;
    border: 1px dotted silver; /**optional border**/
    /**Main Menu**/
    #navlist {
    margin: 0;
    padding: 0;
    font: italic 24px "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    text-align: center;
    #navlist li {
    margin: 0;
    padding:0;
    list-style: none;
    display: inline;
    #navlist li a {padding: 0.75em; text-decoration: none;}
    /**link colors**/
    #navlist li a:link,
    #navlist li a:visited { color: #999; }
    /**On mouseover**/
    #navlist li a:hover,
    #navlist li a:active,
    #navlist li a:focus { color: #FFF; text-decoration: underline;
    /**End Menu styles**/
    #content {
    width: 400px;
    font-size: small;
    margin: 20px auto 0 auto;
    text-align: center;
    color: #CCC;
    #content ul li {margin:0; padding:0;
    list-style:none}
    /**Rollover Image**/
    #content a img {
    border:none;
    opacity: 0.6;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
    filter: alpha(opacity=70)}
    #content a img:hover,
    #content a img:active,
    #content a img:focus {opacity: 1.0;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=100)}
    #footer {
    border-top: 4px solid #990000;
    font-size: x-small;
    text-align: left;
    margin:0;
    padding: 0 0 0 15px
    /**RE-USABLE CLASSES**/
    .left {text-align:left}
    .right {text-align: right}
    .center {text-align:center}
    </style>
    </head>
    <body>
    <div id="wrapper">
    <!--begin header -->
    <div id="header">
    <h1>Amy Carrier </h1>
    <!--end header --></div>
    <!--begin menu-->
    <ul id="navlist">
    <li><a href="#">AC</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Gallery</a></li>
    <li><a href="#">Contact</a></li>
    </ul> <!--end navlist -->
    <!--end menu -->
    <!--begin content -->
    <div id="content">
    <p class="left">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ac dolor velit, sed adipiscing ipsum. </p>
    <ul>
    <li>details</li>
    <li>details</li>
    <li>details</li>
    </ul>
    <!--Replace this linked image with your own -->
    <a href="http://www.google.com/chrome"><img src="http://dret.net/lectures/web-fall09/img/chrome-logo.png" alt="image" /></a>
    <!--end content --></div>
    <!--begin footer -->
    <div id="footer">
    <p>@ 2010 Footer text goes here</p>
    <!--end footer --></div>
    <!--end wrapper --></div>
    </body>
    </html>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Hi, recently purchased macbook 13", I have problem with sound when connect to my LG Smart tv with sound system. When i change sounds effect on my sound system also LG its all go quiet didn't have this problem with my laptop. Any advise ?

    Hi, recently purchased macbook 13", I have problem with sound when connect to my LG Smart tv with sound system. When i change sounds effect on my sound system also LG its all go quiet didn't have this problem with my laptop. Any advise ?

    Some progess I see. To be honest, i would not waste your time with trying to connect using wireless.
    You are likely to get poor connections and dropping out.
    If its working using a cable, then there is no need to bother with giving me the network settings, bu see how it goes, because sometimes giving the TV a static IP address can give better results.
    There is an example of a couple of powerline adapters on the diagram below. Just ignore the network switch unless you want to connect other devices which are near to the TV.
    http://forumhelp.dyndns.info/networking/powerline3.jpg
    I will monitor the subject line of this thread, should you want to post any more information.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Problem with sound after update

    Hello
    After update to 11.3 I have no bass sound in subwoofer in Firefox browser (youtube). I uninstall the newest version and install previous (11.2) and bass plays ok.
    My os: Windows 7 x64. Sound card Creative X-fi.

    Hello!
    My problem is summed up in this topic.
    Updated Flash Player with 11.3 this morning (june 12th 2012) and since then my 7.1 Sound System works only 2.1. If i enable EAX Effects, works on 7.1 but since it`s just a room it sounds very odd.
    I have no problem with sound on HTML 5 websites for that matter, Winamp, Video Players, games.
    Uninstalled Flash Player, sounds work ok without it on different browsers, other than Chrome (since it has FP built in).
    I hope for a sollution soon.
    Thank you.
    *edit*
    Untill there is a permanent solution, i found a way to deal with my issue and i hope it will help others.
    I personally use Chrome and this is for this browser:
    1. Type "about:plugins" w/o the quotation in the navigation bar.
    2. On the upper right u will see "Details" click it then find the word "flash", and you will see something like this:
    Flash (3 files) - Version: 11,3,300,257
    Shockwave Flash 11.3 r300
    Name: Shockwave Flash
    Description: Shockwave Flash 11.3 r300
    Version: 11,3,300,257
    3. I say again, this worked for me on Chrome. The 3 files i have, two of them are Version 11,3,300,257 and one is 11.2.31.144
    4. Simply disable the lates version 11.3 and enable the previous version 11.2
    I hope this helps.
    Message was edited by: AndrewPAM

  • CS5 Problem with box positioning

    CS5 Problem with box positioning. 0 Point for box positioning is on the right side now, how can I change it so its on the left side of the box again?
    (When I started to work on my document all of my text boxes were positioned at 20px now they are at 180px and they are 160px width)
    Thanks in advance!

    Without a screen capture showing a bit more about what you mean, I can't tell if this is just a case that you need to reset the zero-point on the ruler (or change from ruler per page to ruler per spread or ruler on spine...) or some other problem entirely.
    You can embed a screen capture in a post using the camera icon on the web page like this:

  • Problem with geo positioning

    I have big problems with geo positioning in Google Maps (and other apps) with my Swedish 3G 2.1 iPhone. Most of the time it works fine and my positions is found quick and easy. On some places, the positioning is WAY OFF. For example, at my home the positioning system seems to think that I am in India. Not the case, I can tell you! When I was in London this weekend the positioning said I was in Thailand when I was at Stansted airport. Same story both on the day of arrival and departure. In the city of London it worked fine at all times.
    What can I do about this much annoying stuff?
    Please help!
    Message was edited by: HenkeL

    Turn off WiFi.
    What is happening is some WiFi router near you was recorded into SkyHooks database with it's MAC address and Lat/Lng as being in those places. Part of the lookup of finding you will use any nearby wifi MAC addresses and look them up in Skyhooks database. If their data is wrong, that is what happens. People can move from one place to another bring their router with them. Companies can need to repair a router and send it off to another part of their business (eg: from one airport to another).
    Turning off WiFi means it won't try to use MAC addresses of nearby wifi spots. It is the price you pay for relying on somebody elses data that has the ability to get out of date.

  • Problem with sound since update with 10.4.9 (no problem with with 10.4.7)

    Since i update with 10.4.9, I observe some problems with sound that I don't observe with 10.4.7 on an old partition:
    1. no more sound when opening excel file with office
    2. no more sound with files .rm opened with realplayer
    3. no more sound with files .wmv opened with lecteur windows media player.
    Ths files are opened normally with 10.4.7 that I conserved on an other partition.

    Welcome to Apple Discussion!
    This is a well known bug with the optical audio based Macs with a very simple fix:
    http://docs.info.apple.com/article.html?artnum=300832
    Hopefully that's the one you encountered.

  • TS1574 My apple macbook pro retina 15'' ME664 has problems with sound.Either there will be no sound at all or at startup there il be very scary and broken sound and afterwards still there would be no sound.Secondly , it does not start in one shot.

    My apple macbook pro retina 15'' ME664 has problems with sound.Either there will be no sound at all or at startup there il be very scary and broken sound and afterwards still there would be no sound.Secondly , it does not start in one shot.atleast 2 to 3 times pressing power button for longer time starts it up and afterwards still there will be no sound. Please help

    This morning i was not able to hear sound on my recently purchased  macbookpro retina 15 inch model.My attempts to resolve this issue by going to system preferences and removing the mute box that was ticked as active. i had downloaded much earlier a mac version of logmein app and noticed that in the sound  box noted above that there was a bar indicating that the default was now to logmein. i had never used this app. Why it started today, i have no idea. I moved the logmein application to trash and deleted the app , however it did not remove the default option which still blocked the sound.
    Going to a macforum gave the tha anser that to remove the logmein app, it first had to be reinstalled a nd them use the uninstaller option ftrom the dropdown menu. for now that has resolved the failure to allow sound oputput.

Maybe you are looking for