Getting sound to load on any other computer

I've never really been great at sound in flash, because it
always struck me as being fairly complicated, but this is the first
time it's legitimately not worked for me. I used the following
code:
var soundthrust:Sound = new Sound();
soundthrust.loadSound("cannister_loop.mp3", false);
var soundhit:Sound = new Sound();
soundhit.loadSound("explode_4.mp3", false);
to load two mp3s and later play them as sound effects when
certain things occur (one's when the user presses a key, the other
when a spaceship collides with the ground. Unfortunately, these
sounds do not play on other computers, as I have loaded the
executable file published through flash to the web here:
http://valinet.com/~sheldon/climateorbiter.exe
I even tried uploading the mp3s to the same folder online,
assuming they might not be included in the executable, but alas,
there is still no sound. How to I get sound to play on other
machines? Is there a different way to create sounds (I can use
wav's or anything else if those work better) or a different way to
publish the flash document (although I dislike how viewing normal
documents in browser lets the user see the area around the stage,
unlike an exe) that will make the sound work? Thanks for the help,
and sorry I'm a bit of a n00b.

"kombucha284" <[email protected]> wrote in
message news:[email protected]...
> So why does sound work for me on my computer? Any idea?
Also, I can't really tell as a result if that worked or not... I
won't
> know until tomorrow at school and by then it is due...
Thanks!
Ok, I looked at it again.
To be able to control volumes of sound objects separately you
need to attach each object to a separate movieclip, otherwise your
volume control for the thrust sound will also affect the
explosion sound. When you release the up arrow to let the lender go
down
the thrust volume goes to zero so the explosion sound can't
be heard either. Secondly, if you don't use a preloader and someone
pushes the arrow keys for the thruster before the thrust
sound is completely loaded from the server you can get a missing
sound.
That doesn't happen on your local computer because the sound
loads so quickly. The slower loading of the external sounds across
the
Internet makes a big difference.
Either add a preloader or import the sounds into the library
and use a linkage name and attach sound instead. Since you are
short
on time, that's what I would do.
Also the two mp3 files are pretty small.. 47k and 25k so it
won't add that much to the file size.
1) import canister_loop.mp3 into the library
2) right click on the sound in the library
3) choose 'linkage' and give it a linkage name like
'thrustSound'
Make sure 'Export for Actionscript' and 'Export in Frame 1'
are selected
4) import explode_4.mp3 into the library
5) give it a linkage name of 'explosionSound'
6) create two empty movieclips to attach the sounds to..
this.createEmptyMovieClip("one",10); // create clip 'one' at
depth 10
this.createEmptyMovieClip("two",11); // create clip two at
depth 11
7) attach the sounds to the movieclips...
soundhit = new Sound(one); // soundhit belongs to movieclip
'one' now
soundhit.attachSound("explosionSound");
soundthrust = new Sound(two); // soundthrust belongs to
movieclip 'two' now
soundthrust.attachSound("thrustSound");
Now when you set the thrust volume to 0 for the thrust sound
it won't make the explosion sound volume zero too.
Hope that helps. I tested it and it works fine. How come you
can't test it? Don't have Flash at home?
I put the file on my website for you to test it.. click once
to activate before using the arrow keys.
http://www.kompanionkare.net/flash/lander10.html
No place to land yet?
tralfaz

Similar Messages

  • I have install adobe digital on my coputer without an adobe ID.  I want to change as I now have an ID but i get this notice "You can oly authorize this computer with a adobe ID that hasn't been previously used to authorize any other computer or mobile dev

    I have installed adobe digital on my computer without an adobe ID.  I want to change as I not have an ID but I get this notice: "You can only authorize this computer with an adobe ID that hasn't been previously used to authorize any other computer or mobile device. What do I have to do?

    Perhaps someone in the Adobe Digital Editions forum? (Adobe Reader has no connection, we don't have much of a clue). Adobe Digital Editions

  • I can't update my iPad to iOS 5 because when I plug the iPad up to my laptop or any other computer it doesn't detect the iPad, what's wrong?

    Every time I put the USB cord into my iPad and put in my laptop or any other computer it does nothing but says not charging on the iPad, I want to know why my laptop can't detect my iPad, and I updated iTunes don my laptop and I'm trying to update my iPad but can't, I can't even get certain apps because of this so please help

    Apple has stopped signing iOS 5.  You will need to update to iOS 6.

  • When i transition from demo to simulation I get a black loading ring, any way to remove?

    When i transition from a demo to a simulation in a project, in the published output I get a black loading ring, any way to remove this? I'd prefer there to be nothing rather than a ring
    Help much appreciated?

    The loading ring is the preloader. It lets the user know that some background activity is happening while he waits. If you remove this, the user might see a blank screen in its place and they may think there is a bug in the output or they have reached the end and close the window.
    However if you still want to remove it, you can go to Edit > Preferences > Project > Start and End, and clear the Preloader checkbox.
    Sreekanth

  • I have an ipad3. I brought brought a wireless AV Box to view videos on the TV.  I have tried this on both hdmi  TV an can only get sound no picture. Any help would be appreciated. I am new to iPad so not too tech please.

    I have an ipad3. I brought brought a wireless AV Box to view videos on the TV.  I have tried this on both hdmi  TV an can only get sound no picture. Any help would be appreciated. I am new to iPad so not too tech please.

    What iOS in on your iPod?  The Users Guide says:
    Viewing Photos, Slideshows, and Videos on a TV
    You can use the Photos app to view photos, slideshows, and videos on your TV with
    any of the following:
    Apple Component AV Cable
    Â
    Apple Composite AV Cable
    Â
    Apple Digital AV Adapter and an HDMI cable (iPod touch 4th generation)
    Â
    Apple VGA Adapter and a VGA cable
    Â
    The Digital AV Adapter supports high-definition video up to 720p with audio.
    The Guide also says the Video app can use TV out.

  • Adobe ID error must use "Adobe ID that hasn't previously been used to authorize any other computer"

    I am doing some testing and screenshots for my public library right now. After upgrading from ADE 1.7 to 2.0 on an authorized machine, I pressed CTRL + SHIFT + D in order to deauthorize. I then attempted to add the exact same Adobe ID to the computer and a get this error message.
    "You can only authorize this computer with an Adobe ID that hasn’t previously been used to authorize any other computer or mobile devices. Please try again."
    This is bizzare and goes against my understanding of ADE. In 1.7, you could use the same Adobe ID on any combination of (6) device. This seems to be suggesting that my Adobe ID must be original each time one authorizes. My questions are:
    Does this really mean one needs to make a new Adobe ID every time you use CTRL + SHIFT + D?
    What happens to hold DRM ebooks on your computer that were tied to the Adobe ID that ADE 2.0 won't accept?
    If anyone has any insights on this, I'd love to hear them.

    No.  You previously authorized the computer anonymously, and you can only 'upgrade' an anonymous user to one that hasn't been used before.
    You can either de-authorize the anonymous user (and lose all access to content tied to that user), or you can use a brand new AdobeID that hasn't been used for ebooks before.
    If you just activated anonymously by mistake and don't have any content yet, you most likely want to deactivate and start again.

  • You can only authorize this computer with an Adobe id that hasn't been previously used to authorize any other computer or mobile device

    When I try to download a library book on my Kobo reader, I keep getting this message. First it tells me to change the computer's authorization to be associated with an Adobe ID. When I click on authorize after logging in, the message keeps telling my "you can only authorize this computer with an Adobe ID that hasn't been previously used to authorize any other computer or mobile device. I have no idea what this means. Help!

    Sometimes ADE gets its registration/activation confused and in a semi-authorized state.
    Uninstalling and reinstalling does not help, and indeed installation can even trigger this state.
    Unfortunately, it often then gives misleading error messages about what is wrong.
    A common incorrect message informs you that the ID is already in use on another computer and cannot be reused.
    Another is  "E_AUTH_NOT_READY"
    This can often be resolved by completely removing any authorization using ctrl-shift-D to the Library screen on ADE (cmd-shift-D if on Mac).
    Restart ADE, and then reauthorize with your (old) Adobe ID.
    In extreme cases on the mac, the following extra step has helped some people.  Navigate to /Users//Library/Application Support/Adobe/Digital Editions and drag the activation.dat file to the trash. If you are using 10.7, see Access hidden user library files | Mac OS 10.7 Lion. http://forums.adobe.com/thread/1265248?tstart=0

  • ITunes cannont backup the iPhones because a session could not be started with the iPhone" I've never connected my phone to any other computer and it worked fine a the other day.  Help Please?

    I'm trying to sync my iPhone 3G S to my computer.  Midway through I get a message "iTunes cannot backup the iPhone because a session could not be started with the iPhone."  I have not connected my phone to any other computer and this just began happening within the last day or so. 
    PLEASE HELP!!

    One of your backup files might be corrupt. Try following the steps in this article to correct the issue: http://support.apple.com/kb/ts2529

  • I installed Mountain Lion on my iMac. Now I cannot access the Internet. All the other computers and tablets have no problem. I did PRAM and MC reset, modem reset, etc., all the usual ju-ju. I also cannot connect on my local network to any other computer.

    I installed Mountain Lion on my iMac. Now I cannot access the Internet. All the other computers and tablets on the network have no problem. I did PRAM and MC reset, modem reset, etc., all the usual ju-ju. I also cannot connect on my local network to any other computer. Yet Network control panel says I am connect to the modem, and Network Diagnosis says I am connected to the Internet. It's like the blind man who has eyes that cannot see. BTW, I am not some newbee. I have been a Machead since the early nineties and set up a half dozen networks, including the one I am using at home to which the iMac mysteriously is there but not. This has me stumped! I am considering going back to 10.7!

    Select  ▹ System Preferences ▹ Network ▹ Advanced ▹ TCP/IP. What values are shown for the following:
    Configure IPv4
    IPv4 Address
    Subnet Mask
    Router

  • I got a new Kobe and i am unable to register it on Adobe, when I log in to my account I receive the following error message "you can only authorize this computer with an Adobe ID that hasn't been previously used to authorize any other computer or mobile d

    I got a new Kobo and tried to register it so that I can download books from the public library. When I tried to register my device I received the following message " You can only authorize this computer with an Adobe ID that hasn't been previously used to authorize any other computer or mobile devices. Please try again.

    Please refer to Can't authorize with a previously used Adobe ID

  • Hi, I need the program of access from the office, so i'm going to but the Microsoft office 365 university, will i have to but any other program to use the access from my mac? or to open any database that I will have did from any other computer (not mac)?

    hi, I need the program of access from the office, so i'm going to but the Microsoft office 365 university, will i have to but any other program to use the access from my mac? or to open any database that I will have did from any other computer (not mac)?

    There has never been a Mac version of Access. Microsoft never created one, realising that it was very inferior to the FileMaker Pro database application.
    So if you must run Access you will have to run Windows on your mac.

  • I airplay my content direct tv after the update I get sound and no video any suggestions? Frustrated

    I airplay my sunday ticket after update get sound no video whats wrong?

    Morning R Large,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    Apple TV: Basic troubleshooting
    http://support.apple.com/kb/ht1551
    If your TV screen appears fuzzy or black (you see no video)
    Make sure the television you are using supports the Apple TV resolution requirements. Please see the Apple TV technical specifications.
    When you connect power, check to make sure the LED turns on. If the LED is not on, then verify with a known good power outlet or connect something else to the outlet you're using for Apple TV and make sure it works (such as a lamp or clock).
    Make sure you're using the correct video cables and that they are connected firmly to Apple TV and to your TV.
    Connect the HDMI cable directly into the Apple TV and your television, remove any third party devices or adapters.
    Make sure the input setting you've selected on your TV matches the input you have your video cables connected to. See the documentation that came with your TV for more information.
    Change the Apple TV resolution by pressing and holding the Menu and Up button for six seconds. The Apple TV will automatically cycle to the next resolution at approximately 20 second intervals. Pressing the Selectbutton will immediately cycle to the next resolution.
    If you are connected via HDMI, try unplugging and replugging your HDMI cable.
    If HDMI isn't working on an Apple TV (1st generation), try component cables instead (and disconnect the HDMI cable temporarily). Read more about HDMI vs component video.
    Best of luck,
    Mario

  • How so I get sound  from you tube back ? computer sound works

    all of a sudden  I can't get sound  from videos or music on you tube, but I have sound from computer  on ITunes ??? How do I get computer to play sound from you tube again?

    Turn the youtube volume up?

  • Can't get migration assistant to find the other computer

    Tried to use Migration Assistant, but its help is pretty skimpy. Regardless of options chosen, neither computer could find the other. Should both computers be on with MA, or first one then the other? Really couldn't find any protocol.
    They do have different account names and passwords, is that the issue?
    G5 to G5 connected by firewire, tried working from either end, old to new, new to old neither way does the other computer get "found".

    After connecting the two computers by FireWire cable you must boot one (the old one) into Target Disk Mode. Then boot the other normally. The "old" computer's disk drive should appear on the "new" computer's Desktop. You may then us Migration Assistant to transfer from old to new.
    Your new computer's user account that you created will need to have a different short name than the one you plan to import via MA as MA will not overwrite an existing account. If this is no longer feasible then consider moving your data manually.
    Folders You Can Move to Your new Mac
    From the Home folder copy the contents of Documents, Movies, Music, Pictures, and Sites.
    In your /Home/Library/ folder:
    /Home/Library/Application Support/AddressBook (copy the whole folder)
    /Home/Library/Application Support/iCal (copy the whole folder)
    Also in /Home/Library/Application Support (copy whatever else you need including folders for any third-party applications)
    /Home/Library/Keychains (copy the whole folder)
    /Home/Library/Mail (copy the whole folder)
    /Home/Library/Preferences/ (copy the whole folder)
    /Home /Library/iTunes (copy the whole folder)
    /Home /Library/Safari (copy the whole folder)
    /Home /Library/Calendars (copy the whole folder)
    If you want cookies:
    /Home/Library/Cookies/Cookies.plist
    /Home/Library/Application Support/WebFoundation/HTTPCookies.plist
    For Entourage users:
    Entourage is in /Home/Documents/Microsoft User Data
    Also in /Home/Library/Preferences/Microsoft
    For FireFox:
    /Home/Library/Applications Support/FireFox
    /Home/Library/Preferences/org.mozilla.firefox.plist
    Credit goes Macjack for this information.

  • I can get on https alright but any other sites give me a connection was reset. I've tried everything that was suggested but still no way to get on http. ANy info or help would be greatly appreciated. Thanks

    Hi there,
    This has been going on for days now. I've tried everything that was suggested in the help section with no success. I can get on gmail & facebook just fine but can't access craigslist or any other regular sites I frequent. I keep getting "problem loading the page" "connection was reset" I've tried IE & google chrome & I can't even get on https on the other browsers. I don't know what to do & would greatly appreciate any input. Thank you for your time.

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

Maybe you are looking for

  • How to hide Deletion boutton in COGI?

    Dear PP expert I don`t like User to deleted goods receipt error in tcode COGI, how to hide this boutton in COGI? Thanks in advance Edited by: benny zeng on Apr 11, 2009 11:07 AM

  • Dynamic Parallel Approval for HCM Process and Forms

    Hi everyone, I have a scenario where I need to use the "Dynamic Parallel Approval" (or to keep it simple, initially I tried using the "Parallel Approval" wizard)for a workflow used in the HCM Process and Forms. The standard task for approval in proce

  • Relation between data blocks

    i want to join two tables with one to one relation between them using oracle form developer 10g but the problem is that using the oracle developer you can only display only one record from the second table at the same time related with current record

  • O/R tool generates invalid ejb-jar.xml for 1-n cmp bean-to-bean relations

    TopLink generates: <ejb-relation> <ejb-relation-name>Parent-Child</ejb-relation-name> <ejb-relationship-role> <ejb-relationship-role-name>Parent-has-childs</ejb-relationship-role-name> <multiplicity>One</multiplicity> <relationship-role-source> <ejb-

  • What to do with "Unix Executable Files"?

    What do I do with Unix Executable Files? I've tried navigating to them in Terminal and typing in the file name but that doesn't work. How do I execute them? I'm trying to install some web development framework software, and it appears that the comman