Play a clip loading mp3

I use Adobe Flash Professional CS6

What I try to do is to read an mp3 file that I have in my library loading the clamp and stop playing it when a new video is selected in the menu, I created.  The button that loads the clip (Instance name: slide show), I have the following code:

[code]

on (release) {}

gotoAndPlay (120);

}

onClipEvent (load) {}

mySong = new Sound();

mySong.attachSound ("MastersThisHall");

mySong.start (0.50);

}

onClipEvent (unload) {}

mySong.stop ();

}

[/ code]

-I went to the properties of the MastersThisHall.mp3 file in my library,

-Choose the "ActionScript", tab,

-Check the box that says "Export for ActionScript"

-Unchecked the 'export frame 1' check box, and

-Addition of MastersThisHall in the field "id".

The sound is NOT playing when I when you press the "slideshow".

Ideas?

remove all the sounds of your objects (movieclips and buttons).  affect your buttons and movieclips, to run the code, the names of instance (in the properties panel).

for example, name your button "Mute" (mute_btn), your "resume Sound" button (unmute_btn), your "Pause" (pause_btn) button and create a button "play" (play_btn).

also, assign your 6 buttons that run your timeline instance names different periods (for example, mc0_btn, mc1_btn, mc2_btn,.., mc5_btn) and place the images in a table:

SlideshowMusic = new Sound (this);

SlideshowMusic.attachSound ("MastersThisHall");

Stop();

play_btn._visible = false;

var gotoA:Array = [120,220,100,50,300,72];

for (var i: Number = 0; i<>

This ["mc" + i + '_btn'] .ivar = i;

This ["MC" + i + "_btn".onRelease = Function () {/ /}]<-this encodes="" all="" 6="">

this.gotoAndStop (gotoA [this.ivar]);

pause_btn.onRelease ();

}

}

{mute_btn.onRelease = Function ()}

SlideshowMusic.setVolume (0);

}

{unmute_btn.onRelease = Function}

SlideshowMusic.setVolume (100);

}

{pause_btn.onRelease = Function ()}

SlideshowMusic.stop ();

This ._visible = false;

play_btn._visible = true;

}

{play_btn.onRelease = Function ()}

If (SlideshowMusic.position<>

{

SlideshowMusic.start(SlideshowMusic.position / 1000);

}

This ._visible = false;

pause_btn._visible = true;

}

Tags: Adobe Animate

Similar Questions

  • Windows 8.1 not see sport clip sandisk mp3 player

    How can I get Windows 8.1 to see the Sandisk Clip sports MP3 player?

    Hi James,

    Thanks for posting your query in Microsoft Community Forum.

    1. You did it any significant hardware or change software on the computer before this problem?
    2. Do you have an error message when it is not detected? If YES, what is the exact and complete error message that you receive?

    I understand that the Sport Clip Sandisk MP3 player is not detected by your computer. The question may arise if the currently loaded USB driver has become unstable or damaged or if your PC requires an update for problems that could conflict with a device USB and Windows. This can also occur if your USB controllers may have become unstable or corrupt. So, I would suggest trying the following steps and check if the problem persists.

    Method 1:

    Please try the fixit provided below which will help you solve common problems related to hardware and devices.

    Hardware devices do not work or are not detected in Windows

    If method 1 does not work, try Method 2.

    Method 2:

    Remove and reinstall all USB controllers.

    1. Open the device by pressing the Windows key + XManager, click Control Panel, click system and security, and then, under System, clicking Device Manager. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    2. In the list of the categories of equipment, locate and expand Bus USB controllers.
    3. Right-click every device under the Bus USB controllers node and then click Uninstall to remove them one at a time.
    4. Restart the computer and let the USB controllers get reinstalled.
    5. Plug in the removable USB device and test to make sure that the problem is solved.

    If the problem persists, try the following method.

    Method 3:

    Updated with the latest firmware Clip Sport. Check out the following link to download and install the latest firmware.

    Updating the Sansa Clip Sport / Zip Clip / Clip + / Clip firmware

    Check if your computer is able to connect with the media player.

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • Can you play a clip cut from the preview window

    Using 11 elements. When you have trimmed a clip in the preview window, i.e. define the "in" and "on" points, is it possible to play this clip carved into the window to see what you've accomplished? I know that you can drag the slider to the "in" point, but is there no way to play just any little to start?

    Now, when we load a Clip in the Source monitor Panel by double-clicking on that Clip to open the Source monitor, and then sets the Points In & Out, the Source monitor will always play the full Clip. The Points In & Out will be used only, when doing drag that element from the Source monitor Panel to the timeline. There, only the material, between the Points In & Out will be used and displayed.

    Hope that helps and good luck,

    Hunt

  • Why observed my windows Media Player flat mpeg-4 video clips of my nokia n7 momile? Ive tried also nokia ovi suite, without success. What are the alternatives to play my clips on the pc

    Why observed my windows Media Player flat mpeg-4 video clips of my nokia n7 momile? Ive tried also nokia ovi suite, without success. What are the alternatives to play my clips on the pc

    Might be interesting to try to download and install a
    the following freeware media players:

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

    VLC Media Player
    http://www.filehippo.com/download_vlc/
    (works on XP/Vista/7)
    (name of the file to download: vlc - 2.0.1 - win32.exe)

    Media Player Classic Home Cinema
    http://MajorGeeks.com/Media_Player_Classic_Home_Cinema_d6213.html
    (works on XP/Vista/7)
    (name of the file to download: MPC - HomeCinema.1.6.2.4902.x 86 .exe)

  • I have no sound when playing my clips by adobe first 12 elements. How to fix this? I checked all the audio levels and there is no mute etc. I've updated to 12.1. Still no sound.

    I have no sound when playing my clips by adobe first 12 elements. How to fix this? I checked all the audio levels and there is no mute etc. I've updated to 12.1, but still no sound in clips. Not even on the old files that are used to work.

    Bfun

    What operating system is running your first items 12/12.1? Can we assume that this audio reads OK

    on the same computer when you use a computer independent of Premiere Elements drive?

    What are the properties of these clips that have worked before, but don't know regarding sound

    For now, I will assume that you are working on Windows 7, 8 or 8.1 64bits.

    Have you checked the settings change preferences/Menu/Audio ASIO hardware? You have all 3rd party audio devices integrated in your IT environment?

    Please delete the Adobe Premiere elements Prefs file and, if it does not, then all 12.0 folder in which the Adobe Premiere elements Prefs file exists. Is the path to 64-bit Windows 7, 8 or 8.1

    Local disk C

    Users

    Owner

    AppData

    Roaming

    Adobe

    First Elements

    12.0

    and in the 12.0 folder, is the file Adobe Premiere elements Prefs that you delete. If this does not work, then delete all 12.0 the folder in which the Adobe Premiere elements Prefs file exists. Make sure that you work with the Option "Show hidden files, folders and drives" of the current folder so that you can see the full quoted path.

    You have the installation files or the installation disc with the serial number purchased in case we need to use to uninstall/reinstall?

    We will follow your track to the top.

    RTA

  • do Play to play different clips

    How to make a button game play different clips video format that is placed on a timeline in actionscript 3?

    Here is an example of what im doing. If you drag and drop clips to movie on the timeline at the bottom that then snaps in place.

    Once the timeline is filed until you press the play button, then he plays all the movie clips in the sequence.

    Screen shot 2012-04-21 at 16.50.26.png

    has this answer solve your "making play button to play different clips" question?

    If so, mark this reply as being correct and start a new thread for new questions.

  • Hi, I want to play a clip intro short before the menu is displayed on the dvd, anyone knows how please?

    Hi, I want to play a clip intro short before the menu is displayed on the dvd, anyone knows how please?

    Alan Greenall

    Hey Stan

    Thanks for that, I tried briefly yesterday and it worked fine!

  • Clip loading reverse order?

    I have a component in my library which is a miniature. Well the thin just inside is a code to load a thumbnail jpg file.
    Here's the situation. I use a loop for to add a series of these linked clip displayed on the stage. All of same clip, the path of thumb and various pos FLF is pass to the clip as a parameter. The question is how the burden of the clamp. They appear one after the other, but the load order is reversed. The last one added to the timeline is the first loading a ti and display follow each other and so on. If there is a loop of 10, 10 and 9, 8, 7 clip load...

    Why? Is it as LIFO of Java concept. Last in first out which Manager flash it?

    Thanks for your help.

    I know that I can put the reverse order and attached the last of them on the stage first and so on, but I understand the problem, do not have a work around... ;-)

    Yes, maybe they start to load to closely. There are several images, never great, a few thumbnails. The size of each is approximately the same. I did the test online. Even if on the computer, it might be different, the real test is online.

    Maybe I can use the ' for in ' GWD says or any simply begin with the last element and then to I-. Well I'll try it.
    Tanx for your help both

    HO, also, thank everything in the ' for in '. I didn't know that it worked this 'Stock' way first, and it can be useful sometimes. I appreciate your help!

  • Clip will not play when AC load via USB

    Hello

    I took delivery of my Clip to use permanently connected to an electrical outlet using the USB cable that is supplied with an adapter that plugs into the socket.  It is just a 3-prong plug with a USB plug on this subject.

    When you plug the clamp, it just cool and will not play.  I tried to search for other experiences, but no one is using this power supply solution.  Can anyone help?

    Thank you

    Steve

    Hmm.  There must be something weird on your USB AC adapter.  As long as only the two outside pins USB connected (these are the power pins) the player should load but still works normally.  The player charge if inside two pins are connected (the data pins).  Normally the inner pins are connected only when it is plugged into a USB port that is real.  Your card must provide a voltage on the data pins as well.

    You can sometimes get around by pluggin only the USB port for computer/AC adapter at halfway as the power pins connect before the data pins.  Or you can use the tape or paper to block the internal pins.

  • Play a Clip in a Clip on the load

    Hello

    I'm reading a Movie Clip animation which is a Clip after pressing a button in a different Clip.

    The problem is that all Movie Clip animations play as soon as the SWF file is loaded.

    I have a separate Main.as file that contains all the coding with the exception of the stop of the animation:

    package

    {

    import flash.display.MovieClip;

    import flash.events.MouseEvent;

    SerializableAttribute public class Main extends MovieClip

    {

    var title1:Title1;

    var scene1:Scene1;

    var scene2:Scene2;

    var scene3:Scene3;

    var scene4:Scene4;

    var scene5:Scene5;

    var scene6:Scene6;

    var scene7:Scene7;

    var scene8:Scene8;

    var scene9:Scene9;

    var scene10:Scene10;

    public void Main()

    {

    Heading1 = new Title1();

    Scene1 = new Scene1();

    scene2 = new Scene2();

    scene3 = new Scene3();

    scene4 = new Scene4();

    scene5 = new Scene5();

    scene6 = new Scene6();

    Scene7 = new Scene7();

    scene8 = new Scene8();

    scene9 = new Scene9();

    scene10 = new Scene10();

    addChild (title1);

    Title1.buttonStart.addEventListener (MouseEvent.Click, onButtonStartClick);

    Scene1.buttonWalkOutside.addEventListener (MouseEvent.CLICK, onButtonWalkOutsideC lick);

    }

    title

    function onButtonStartClick(event:MouseEvent):void

    {

    addChild (scene1);

    removeChild (title1);

    Scene1 (parent) .gotoAndPlay ("frame1")

    }

    Scene1

    function onButtonWalkOutsideClick(event:MouseEvent):void

    {

    addChild (scene2);

    removeChild (scene1);

    }

    }

    }

    Now, I get this error message:

    TypeError: Error #1034: Type coercion failed: cannot convert flash.display::Stage@46534041 to Scene1.

    hand / onButtonStartClick)

    Any help is greatly appreciated... I've been grinding now all night.

    Basically, you read just the return code to me.  I ask a more pointed question.  What is the movieclip you want to animate and why are you castant as 'Scene1()' to try to target?

    If the object you want to animate is 'scene1', then just target scene1.

  • Clip plays radio but not MP3

    Help! The radio works fine, when I try to play a MP3 song, the song appears in the display, pause/play button works, but when I hit the round central key I pass the diagonal lines low thte. (I downloaded the fileware this morning). avds, please... Thank you!

    It seems that the problem is with the player.  you're comment supposed to get these online, even if the songs you uploaded are corrupt.  do the same with other files?  These files play great on the computer?

  • How how to videos from youtube for better play and not load all few seconds? The video clip load and only play for two seconds and starts charging again.

    I have a toshiba laptop satellite 655.

    I have a toshiba laptop satellite 655.

    Hello

    If a YouTube video is slow to the buffering, which is a network related issue and not a system issue. See the article on reading problems: http://support.google.com/youtube/bin/answer.py?hl=en&answer=74662

    Kind regards

    Patrick

  • 2 GB clip stutters, MP3 48 kHz playback - what is a defective item?

    Hello

    I was really impressed by my new clip, until I downloaded a few radio shows, and after listening for a while, I could hear occasional appears in the background. I found that if I sped up and back a few times, then played, it got worse. It's only on programs from a source, and after much playing I realized that it was the only source with mp3 48 kHz sampled. If I convert them to a different sample rate, they played cleanly. I then found a download of 48 kHz from another site, and also, who appears and stutters.

    The version of the firmware has been 01.01.18, so I've upgraded to the last using the Sansa Updater (at 01.01.32) and makes it worse! Before I had to listen carefully for the problem, but now it's terrible.

    I checked 22,32 and 44 kHz and they are all ok, it's just 48.

    Anyone of you experts Sansa have some ideas? Should I return it and try another? I searched the forum and no one seems to have pointed this out.

    Thank you

    Jonathan

    To work around the problem, try adjusting the equalizer custom.  Set one of the 5 strips the midpoint setting.

  • the song plays on laptop, loaded on the player, but will not play on the device

    There are about 80 of the 480 sogns I have synced my clip that will not play either.  they play fine on my laptop and win 11 med says that they are on the device.  what the hell's going on and can you tell my why Back in Black will not play while Thunderstruck (from the same cd I own) has no problem?

    Try Reripping the files in MP3 format.

  • play movie clip symbol at the end of the animation, but does not appear in the timeline

    Work in Adobe Flash CS5

    When I play my movie in the Flash file, the animation stops at the end of the timeline, as it should. But when I test the movie, or export it to any film format, it will play an instance of a movie clip symbol that I used in the animation. There is no extra frame in the timeline panel beyond which must be considered to be the last image. Y at - it a setting or something I forgot that could cause this instance of the symbol to play at the end of the animation, without air in the main timeline? This can be corrected?

    your movieclip (or a parent) who plays on the main timeline or is loaded by your swf.  If you load this movieclip (published as a swf file), you can be sure that your movieclip (or a parent) is the culprit.

    Use the movie Explorer to find all instances of your movieclip using the library for this movieclip name.  If that does not reveal the culprit, you have either made a mistake in your search or if you have a movieclip in doubles.

Maybe you are looking for