Load sound at startup

Hello I am trying to load an mp3 at the start, but his does not. Someone can help me. Here's a code example

<? XML version = "1.0" encoding = "utf-8"? >

" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML " " xmlns: net = "flash.net. *" "xmlns:media =" "flash.media. *" initialize = "initApp ()" layout = "vertical" backgroundGradientAlphas = "[1.0, 1.0]" backgroundGradientColors = "[#E489CD, #FCFCFC]" >

< mx:Script >

<! [CDATA]

import flash.display.MovieClip;

import flash.media.Sound;

import flash.events.Event;

import flash.net.URLRequest;

import flash.media.SoundChannel;

[Bindable]

private var _sound:Sound;

private var _soundChannel:SoundChannel;

private function initApp (): void {}

var _sound:Sound = new Sound();

var request: URLRequest = new URLRequest (' audio / Itrustyou.mp3 ");

_sound. Load (request);

_sound.addEventListener (Event.Complete, OnLoad);

_soundChannel = _sound.play ();

}

private void onLoad(event:Event):void {}

enabled = true;

}

private function sendInfo (): void {}

if (username.text == "" |) email.text == "" | Msg.text == "") {}

mx.controls.Alert.show ("Please check your form.")

} else {

contactService.send)

}

}

private void thanks(evt:Event):void {}

If (String (contactService.lastResult) == "OK") currentState = "thank you".

mx.controls.Alert.show ("mail errors!") else

}

[]] >

< / mx:Script >

I think you have already had the sound plays if you use local history back to the point where your program worked to use Flex Builder and then restore this version and apply the new features.

Tags: Flex

Similar Questions

  • check if a loaded sound file still plays

    Is it possible in AS3 to determine if a loaded sound file still plays or not?  I need to start an animation, a sound at startup and stop the animation when the sound is done playing.

    Thank you

    You can determine (to a reasonable extent) when a sound starts by using the open event of the sound class and you determine when a sound finishes the game using the soundchannel class soundcomplete event.

  • Satellite C660-117 - crackling sound at startup

    Hello

    I recently started having problems with the sound on my laptop which is 5 months old.

    It emits a crackling sound at startup and also during video playback, it sometimes looks like interference and is more sensitive to the higher sounds.
    I have uninstalled/reinstalled drivers and devices audio, but in vain.

    The sound is the same when read by aswell TV or a helmet.

    Is this sounds like a trip to the store where I bought it is necessary that its still under warranty?

    Hey Buddy,

    You use the version preinstalled Windows from Toshiba or you have installed your own version?

    Generally speaking everything you tried is correct, and the only option you have is to find your computer laptop initial configuration using Toshiba recovery disc. The drive will restore the original settings of the box with all the drivers and tools in order to have the same settings as you bought the laptop.

    If this still doesn t work you should contact an authorized service provider because it looks like a hardware malfunction, but it s covered by warranty ;)

  • I hear a hissing sound at startup on my pc that I never heard before, and I have windows vista, anyone know why? I continue to reboot my pc until it stops.

    Original title: whistle sound at the start of the pc

    I hear a hissing sound at startup on my pc that I never heard before, and I have windows vista, anyone know why? I continue to reboot my pc until it stops.

    Hi Cupcake3381,

    ·         Did you do changes on the computer before the show?

    I suggest you to check and clean the boot if the problem persists.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

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

     

    Note: After troubleshooting, be sure to configure the computer to start as usual as mentioned in step 7 in the above article.

    Let us know the results.

  • I understand that the watch ntbtlog.txt file drivers loaded during the startup process. I'm worried when it shows driver loaded, but it is not a list.

    I understand that the watch ntbtlog.txt file drivers loaded during the startup process. I'm worried when it shows driver loaded, but it is not a list. Why is this?

    Hello

    Yes, it can be in hidden files that may cause by the virus.

    I also suggest you to see link and check.

    Show hidden files

    http://Windows.Microsoft.com/en-us/Windows7/show-hidden-files

  • Is there a utility that will give me a list of all the programs or processes loaded in the startup process?

    There must be some sort of utility that will allow a user to view and edit, what programs or services that load during the startup process. In my case, during this process, a screen will appear that says; "cannot find the program. Skipping Autocheck. I need to eliminate what it comes to store the boot process.

    There is Autoruns , but it can be dangerous because it shows everything so use at your own risk

  • Loading sound in Internet Explorer

    Hello

    I'm trying to load a sound into various objects created dynamically on stage.
    Within approx. Flash and FireFox, all right:

    A MC container is created
    A Sound object is created within this MC
    onLoad function is registered for each container [s] .sound


    I can't understand how to get around the fact that IE is not fully-loaded sound in memory. Needless to say that my movie to play properly later on this problem stucks.

    Here's how to create the sound obj.

    Thank you.

    You must set your onLoad() Manager before running your loadSound() method.

  • Ringing sound at startup on Pavillion G6

    At startup, there is a constant ringing sound coming from the speakers or headphones.

    I discovered that if I plug a jack on the mic socket momentarily and remove it, the sound disappears from the session until the next boot.

    I was not able to solve this problem by using the sound settings.

    Hi wayne111,

    I'm sorry that has not solved your problem. Here is a document for How to change the default & recording Audio playback device, to be on the safe side, go through the following steps to make sure that everything is configured correctly, I'm sure it is. I am also including the download of driver Audio IDT high definition (HD) , make sure that the Audio driver is up-to-date.

    If this does not solve your problem, then please contact our technical support at the 800-474-6836. If you do not live in the United States / Canada region please click the link below to get help from your region number. Contact HP worldwide

    I hope this information is useful. Please let me know how it goes.

    Good luck and have a great day!

  • Failed to load profile at startup

    After restarting my computer, I get this message after I log in with the password. He then stops and immediately returned to the login page where the cycle repeats. The password is correct, but it indicates "failure to load the profile of abandoned user profile.  Help

    Thanks for the quick reply but tapping F8 at startup does not receive me in the start mode seems not to do anything. The sign in screen appears.

  • Loading files at startup or in an Action

    I have a Preset of selective color I want to load PS startup or in an Action (Action preference).  Is it possible to do this?

    Thank you

    Brett

    You can be saving problems you action for several reasons. Over the years, the record of the add action mode has changes in CS4 Adobe added the range of settings.  In the drop adjustment pallets Adobe adds two defective options.  In fact, they are more like preferences but her does not work properly.  Adobe recognized they are bugs, but has not removed the.  Adobe is expected.

    If you never touch these adjustment option.  Photoshop will work like its designed and recorded actions that add adjustment layers may not work properly.  If you change your default Adobe Actions that add adjustment layers may not work properly.

    Because the options do not always work as you can save the new shares that add adjustment layers that always work the way you save. But you should save adding adjustment layers in a specific way.  You must have an Active selection before adding an adjustment layer and you must add the adjustment layer by using the layer new menu adjustment layer > type so opens the box add adjustment layer dialog, in this dialog box, you must check the clip to the previous layer.

    When you save adding adjustments of the layers in this way. The adjustment layer will always be added clipped and with a layer mask.  It won't make any difference how options drop-down menu of the range of settings 'Add a default mask' and "Layer Clip" are defined will be awarded according to the recording.   If you do not save the steps in this way step can deposit to play such registered.

    Old version of Photoshop has saved a step when you registered adding am adjustment layer.  This step has done two things add the adjustment layer and it perform the adjustment of the layer settings.  Now, new versions of Photoshop are two steps.  Make the adjustment layer and a second layer of the setting of the current step value.  The recording of the second stage is also not recorder immediately.  You can adjust the sessions over and over again until you are satisfied.  It is only when you take your next step that a single Set current adjustment layer is recorded.  You may have a problem here.  You you select pteset and see noting is saved. It will be whem yo moe to your next step.

    Here I record an action, you should see my custom preset is saved in the action stage. TOU can always delete the layer mask and the UN-clip adjustment to the OFT for action that you don't know how the action played.   He a real problem for stocks and the Script can not set or Options.

  • loading the page, the sound is played; prefer the page loads, sound not playing

    Insert > media > plug-in

    I select a soundfile, OK.

    When I publish the page, it puts even a play/stop controller.

    BUT the sound is played during the loading of the page, rather than wait

    for someone to hit 'play '.  I don't want to sound up to a certain

    hits "play." (I don't want a new page to open, just play

    in the web page, the page also wants to use quick time player.

    Is this necessary?  Is there a better way?

    Thanks, everybody!

    PS CS3

    Lol just you a single controller with two audio files.  If the browser/device does not recognize the first type of file, it is automatically the following file type.

    Nancy O.

  • load sound - stop!

    Hello

    I was wondering if anyone can help me, it drives me crazy.

    I have an mp3 of his related to my flash by sound load, it's the code that I have to load the sound:

    trackOne_btn.onRelease = function() {}
    stopAllSounds();
    var mySound:Sound = new Sound();
    mySound.onLoad = {function (loadedOK)}
    {if (loadedOK)}
    mySound.start ();
    }
    }
    mySound.loadSound ("sounds/trackOne.mp3", false);
    }

    But I can't stop it, I tried all the means, I think, but it doesn't seem to work?

    Need help please, it is much appreciated

    Thank you very much

    Its OK, problem sorted, looks, I missed a vital line. If someone needs the code its:

    stop_btn.onRelease = function() {}
    var mySound:Sound = new Sound();
    mySound.stop ();
    }

    Thank you

  • How to stop loading sound? my_sound. Unload or something?

    I want the sound to stop loading when I press the stop button, I have:

    var my_sound:Sound = new Sound (_root);
    my_sound. OnLoad = function() {}
    my_sound. Start();
    };
    preload_btn.onRelease = function() {}
    my_sound.loadSound ("some_sound.mp3", false);
    };
    stop_btn.onRelease = function() {}
    my_sound. Stop();
    };

    Say I click on the 'load' button, the sound starts loading, when I press the 'stop' button, the sound should stop playing, but I want also to stop the loading, maintains its load of given URL, it loads in the background and making the network traffic. I can only resolve this by giving my sound an empty file loading, but it must be in a different way, right? Something like my_sound.unload?

    Thank you.
    Adrian.

    use:

  • I created a partition (accidentally) and now I can't load Bootcamp at startup.

    Here's the story. I tried to enlarge my Bootcamp partition, but I accidentally did was to create a THIRD partition of its own. I deleted this partition later, but now when I start the computer and hold down the "Alt/Option" I get two options: my Mac and a recovery drive - no more than Bootcamp. So, what's the problem? Here is a screenshot of what I did when I created this third partition:

    I thought that I me adding to the 45 GB but I see that it was actually creating a new partition.

    I still see Bootcamp in my finder and I can even see it when I click on "Startup disk" in system preferences.

    But when I click on "Restart" on Bootcamp, it opens with an error: "no boot device - insert boot disk and press any".

    So what did I problem and how can I fix it, guys?

    I literally does exactly the same thing you did today and Im having the same issue.

  • Equium P300-16 t - alarm sound at startup

    Hello

    My laptop is having problems to start the system. I get an alarm sound when you turn it on, so I wonder through a diagnosis of repair. I made this several times and also to reset the settings to factory once, but he continues to do.

    Also, I keep getting random semicolons apearing in my text like this.

    Can someone help please or should I save it as a warranty issue? The laptop is less than 3 months!

    Thank you

    Hello

    In my opinion this definitely isn't normal behavior for laptop and I think that it would be desirable to bring to the ASP for a check
    I mean it of better check the laptop now because it s guaranteed covered and if something is not defective, the replacement should be free

    Good luck

Maybe you are looking for

  • Pavilion laptop laptop 15-ab150sa: wireless connection

    Hello Have been pulling my hair out for 10 days! Bought my phone last Monday. Wireless guard disabling works on starting for up to 30 minutes and then packs in. Other devices (phone, old phone) workfine, so don't think it's the router (I have re-set

  • Phone on vibrate Apple Watch status icon?

    How do I convince someone to create a clear status icon that indicates that my iPhone is set to vibrate and not ringing? I regularly 'silence' my phone and just as regularly forget to reset the ring. It's particularly frustrating when I want to ring

  • Windows XP Fatal Sys "c000021a" error and file sharing problems

    I have a Windows XP pc which has received the following during startup, error message "c000021a... system fatal error of ocx000034 w/status" and that followed several instructions troubleshooting with no resolution. Given that the pc does not start,

  • No 'add a contact' or 'add a contact group' capaibility more

    My icons 'add a contact' and 'add the contact group' have completely disappeared from my toolbar, and I can't even find them in the options to add.   It seems that these characteristics have completely disappeared... I search and cannot find it anywh

  • Vista driver wireless place online?

    I uninstalled by mistake the pilot wireless on m HP 3105 of my wife. I find the drivers for Windows 7, but not for Vista. (I'm afraid to run Windows Recovery). Where can I download the driver for the wireless (Broadcom?, I think) My Christmas depends