Flash Mp3 Player with 15 sec preview

Hello,
I in desperate need of some guidance. I am trying to make
flash mp3 player that radomly plays mp3's from a specific folder
for only 30 secs.
Any idea's ??
thanks
DK

if you just want to check the time when your app starts, use:
function playSong(mySong:Number):void{
var myTitle = my_songs[mySong].@TITLE;
var myArtist = my_songs[mySong].@ARTIST;
var myURL = my_songs[mySong].@URL;
title_txt.text = myTitle;
artist_txt.text = myArtist;
if (my_channel){
my_channel.stop();
my_sound = new Sound();
my_sound.load(new URLRequest(myURL));
my_channel = my_sound.play();
my_channel.addEventListener(Event.SOUND_COMPLETE, onNext);
    var myTime = new Date();
    var myHour:Number = myTime.getHours();
  var st:SoundTransform=my_channel.soundTransform;
   if ((myhour>=10)&&(myhour<=(22)){
st.volume=1;
} else {
st.volume=0;
my_channel.soundTransform=st;

Similar Messages

  • Flash MP3 player with AM and FM rad

    Why is it that the only MP3 players I see with AM and FM are CD based? Some people have a great desire to listen to AM radio for sporting events, news, or talk radio. It is so annoying for me to have to carry a separate radio with my n200 so that I can have my music as well as AM radio. The funny thing is that I listen to AM radio much more than FM. I usually like to either listen to my music or to AM radio. I also have an MP3 cd player with AM and FM, however that is even larger than both the n200 plus a small separate radio. Since I don't want to constantly swap the earphones from the n200 to the radio and back, I am also carrying two sets of earphones.
    My ideal flash mp3 player would be
    ) At least 4 gigs
    2) have both AM and FM radio
    3) Run on a AA battery.
    AA batteries hold 2.5 times the power of a AAA yet are often lower in price.
    4) have a decent sized display.
    5) Have a separate button that with one press switches from mp3 music to the radio or back.
    6) Supports subscription music
    7) has a built in clock with the time constantly displayed, even when the player is off.
    While such a player would be slightly larger than the Nano Plus, it would be so much more functional.. There are still some who want the smallest possible player so I wouldn't want to see such a player replace the Nano Plus, however it would be nice if such a player would replace the TX FM which is too similar to the Nano Plus(who really cares whether the USB plug is on the player itself?).

    I think the reason you don't see AM radios in 00% digital products (such as MP3 players) is not enough demand to tackle two significant technical issues:
    The ferrite-coil antennas used by most portable AM radios take up a lot of room on circuit boards; some MP3 players are too small for them, while others simply can't give up valuable circuit-board real estate for a feature used by so few people. OTOH, most portable FM radios use the headphone cord as an antenna, so they can be smaller.</LI>
    AM frequencies and channel spacing vary around the world in ways that make a "one size fits all" digital solution very hard to implement. The US AM band runs from 535-705 kHz with 0-kHz spacing (540, 550, ... , 700); in other parts of the world it still runs from 535-605 kHz, and/or uses 9-kHz spacing which is incompatible. OTOH, nearly all major countries, except Japan, have adopted FM bands in the 87.5 (88 in the US) to 08 MHz range, and all spacing schemes are multiples of the narrowest one, 50 kHz (it's 00 kHz in most countries, 200 kHz in the US), so a digital FM tuner covering 87.5-08 MHz with 50-kHz spacing will work everywhere but Japan.</LI>
    Also, digital-radio considerations in the US may inhibit the sale of new AM radios here. The US digital-radio standard is an IBOC (in-band, on-channel) system, where the analog and digital broadcasts share the same frequency and signal. Though this is supposed to allow simultaneous analog and digital broadcasts as long as broadcasters want them (unlike DAB systems in other countries and digital TV even in the US, where the digital signal is separate and broadcasters must eventually give up their analog spectrum), even IBOC broadcasters will eventually go all-digital. Since the bandwidth of digital AM is so limited (at present it only promises "FM quality" while digital FM promises "CD quality") and digital limits analog sound quality (especially on AM where it's poor to begin with), it's likely AM will want to go 00% digital long before FM does. Limiting analog AM radios now makes it easier for AM to make that painful transition.
    Message Edited by RBBrittain on 2-2-2005 09:49 AM

  • Flash mp3 player with transparent background

    hi guys
    i've been mucking about with flash for a couple of years but only doing some animations and stuff
    however now i am trying to build my 1st website and i need a mp3 player with playlist and with a transparent background
    i've been search the net for a freebie (although i would be willing to buy if i found the right one)
    or i am happy to try and build my own in flash but could use a good tutorial
    can anyone point me in the right direction please
    many thanks
    Harv

    http://www.clickpopmedia.com/2008/04/15/making-an-mp3-player-in-as3/

  • Flash MP3 Player with Timer

    Heres the thing:
    I have developped  a mp3 player with a tutorial, and now I need it to  mute when it comes a certain time like 23pm and then unmute at 10am for  example.
    I am a really noob at this and need real help to get this done, its for a christmas family project
    The real idea is to set an hour to mute the sound and another to unmute it.
    The player I have done its the one in the following  tutorial http://www.republicofcode.com/tutorials/flash/as3musicplayer/6.php
    I really hope you guys can help me ! :S
    thanks in advance

    if you just want to check the time when your app starts, use:
    function playSong(mySong:Number):void{
    var myTitle = my_songs[mySong].@TITLE;
    var myArtist = my_songs[mySong].@ARTIST;
    var myURL = my_songs[mySong].@URL;
    title_txt.text = myTitle;
    artist_txt.text = myArtist;
    if (my_channel){
    my_channel.stop();
    my_sound = new Sound();
    my_sound.load(new URLRequest(myURL));
    my_channel = my_sound.play();
    my_channel.addEventListener(Event.SOUND_COMPLETE, onNext);
        var myTime = new Date();
        var myHour:Number = myTime.getHours();
      var st:SoundTransform=my_channel.soundTransform;
       if ((myhour>=10)&&(myhour<=(22)){
    st.volume=1;
    } else {
    st.volume=0;
    my_channel.soundTransform=st;

  • Flash mp3 player with multiple playlist

    Seeja everybody,
    i have a big problem. i would like to create a multiple
    playlist to my player. the buttons for the playlist's are in the
    same flash as the player. please help me. how can i connect this 5
    buttons (see the picture) to my player? maybe some scripts?
    http://img235.imageshack.us/my.php?image=playerla8.jpg
    HTML CODE
    quote:
    <html>
    <head>
    <meta http-equiv="Content-Language" content="hu">
    <meta http-equiv="Content-Type" content="text/html;
    charset=windows-1250">
    <title>gangsta rap</title>
    <style>
    a:link {color: "#666666"; font-family:Arial; font-size:10px;
    font-weight:bold; text-decoration: none}
    a:visited {color: "#333333"; font-family:Arial;
    font-size:10px; font-weight:bold; text-decoration: none}
    a:hover { color: "#3333CC"; font-size:10px;
    font-family:Arial; font-weight:bold; text-decoration: none}
    a:active {color: "#CCCCCC"; font-family:Arial;
    font-size:10px; font-weight:bold; text-decoration: none}
    </style>
    <base target="hlavní">
    </head>
    <body bgcolor="#1B1B1B" topmargin="2" leftmargin="0"
    rightmargin="1" bottommargin="2">
    <table border="0" width="100%" id="table1" cellspacing="0"
    cellpadding="0">
    <tr>
    <td>
    <p align="center">
    <OBJECT
    codeBase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0 ,0,0
    height=100 width=1000
    classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 align="center"
    hspace="1"><PARAM NAME="movie"
    VALUE="mp3player.swf?playlist=rapfrance.xml">
    <PARAM NAME="quality" VALUE="High"><PARAM
    NAME="wmode" VALUE="transparent">
    <param name="salign" value="R">
    <embed src="mp3player.swf?playlist=rapfrance.xml"
    quality="High"
    width="1000" height="100" wmode="transparent"
    type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    salign="R" /></OBJECT>
    </td>
    </tr>
    </table>
    </body>
    </html>
    thank you for your help very much in anticipation.

    http://www.clickpopmedia.com/2008/04/15/making-an-mp3-player-in-as3/

  • Create a very simple mp3 player with flash

    newbie with flash...
    with the FLVPlayback component i can get a nice looking basic player for .flv files easily...
    Q: is there some way to set up the same functions to create a very simple mp3 player with flash?

    Search Google for "Flash MP3 tutorial"  and if you know which version of actionscript you plan to use, try substituting that for "Flash"

  • Setting up Simple Flash mp3 Player

    I have a page with some links to mp3 songs.
    I would like to set things up so that when user clicks a mp3 link, a small flash mp3 player (embedded in the page) starts playing with that songs. The user could click on another song that would replace the last one at any time and have basic controls.
    - flash mp3 player - need 1 that has start / stop and volume buttons (simple)
    BTW: I set this type of thing up in the past with a frameset - top had quicktime player embedded - and bottom song links went to top frame - all was fine but kind of bulky.... looking for something a bit slicker...
    Also would like to do the same for flash / quicktime videos
    Also if there's something free or close to free that is a jukebox type where the song list is part of flash - that might be fun too....
    Thanks in advance - dave

    Wimpy MP3 Player will do everything you want (not free).
    http://www.wimpyplayer.com/products/wimpy_mp3.html
    Free Flash MP3 Player
    http://www.flashmp3player.org/
    Premium Beat Free Flash MP3 Player
    http://www.premiumbeat.com/flash_resources/free_flash_music_player/#mp3Players
    A Google search will reveal many others.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Flash mp3 player volume click

    Hello,
    I have a flash mp3 player i created with actionscript with a volume slider,
    but I want to change the volume from a slider to a click
    how to I do that?
    thanks

    if the volume is currently .5, how do you determine if the volume should go up or down when the button is clicked?

  • Flashvars, loaderinfo for mp3 player with xml

    ok, I am using flash cs5, am pretty new to as3, and I've been trying for 3 days to figure this out, as of yet have not been able to.
    I have built a music community website, obviously members can sign up for an account, and upload mp3 files to their accounts.
    now I'll explain in as much detail as I can.
    Once registration is complete, the php script creates a folder in the members directory on my server with their unique id, then when they go and upload an mp3, it uploads it to their folder and automatically creates a playlist.xml file for the song(s)
    so, I have a prebuilt flash mp3 player that I got from developphp.com, his as3 code calls for a static directory for the audio and xml, now since the flash player will live in the root, and the xml and audio will live in the members/$id folders, I am told to use flashvars and loaderinfo.parameters to do what I need, and that is to load the xml and mp3 files into the player for the profile that is being viewed at that moment, so lets look at what I've put into the html object and embed.
    lets use profile #7
    <param name="movie" value="flplayer.swf?<?php print"$id/playlist.xml" ?>">
                <embed src="flplayer.swf?<?php print "$id/playlist.xml" ?>"> (please tell me if I have done this incorrectly)
    now if we go to the profile.php?id=7 page, thius is what the page source looks like:
    <param name="movie" value="flplayer.swf?7/playlist.xml">
                <embed src="flplayer.swf?7/playlist.xml>">
    now here is where I am stuck, as I said the flash mp3 player urlLoader and URLRequest, and I have been searching for days to figure out what I am supposed to do to get the player to pick up on the flash vars, here is the top part of the as3 code where it calls for the mp3 and the xml.
    stop();
    var myFormat:TextFormat = new TextFormat();
    myFormat.color = "0xFFFFFF";
    list.setRendererStyle("textFormat", myFormat);
    var trackToPlay:String;
    var pausePosition:int = 0;
    var songURL:URLRequest;
    var isPlaying:Boolean = false;
    var i:uint;
    var myXML:XML = new XML();
    var XML_URL:String = "mp3_playlist.xml";
    var myXMLURL:URLRequest = new URLRequest(XML_URL);
    var myLoader:URLLoader = new URLLoader(myXMLURL);
    myLoader.addEventListener("complete", xmlLoaded);
    function xmlLoaded(event:Event):void {
        myXML = XML(myLoader.data);
       var firstSong:String = myXML..Song.songTitle[0];
       var firstArtist:String = myXML..Song.songArtist[0];
       songURL = new URLRequest("mp3_files" + firstSong + ".mp3");
       status_txt.text = "1. "+firstSong +" - "+firstArtist;
         for each (var Song:XML in myXML..Song) {
    i++;
    var songTitle:String = Song.songTitle.toString();
    var songArtist:String = Song.songArtist.toString();
    list.addItem( { label: i+". "+songTitle+" - "+songArtist, songString: songTitle, Artist: songArtist, songNum: i } );
    var myArray = new Array (0,0);
             list.selectedIndices = myArray;
    gotoAndStop(3);
    I am not asking for free work, I'm just trying to get pointed in the right direction, through searching I have been trying to find out how and what to change, and I have been having a great deal of trouble finding the info, I'm ready to pull my hair out.

    ok, here is the object/embed section from dreamweaver
    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="386" height="250">
                  <param name="movie" value="flplayer.swf">
                <embed src="flplayer.swf?xml=members/$id/playlist.xml">
                  <param name="quality" value="high">
                  <param name="wmode" value="opaque">
                  <param name="swfversion" value="9.0.45.0">
                  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                  <param name="expressinstall" value="Scripts/expressInstall.swf">
                  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                  <!--[if !IE]>-->
                  <object type="application/x-shockwave-flash" data="flplayer.swf" width="386" height="250">
                    <!--<![endif]-->
                    <param name="quality" value="high">
                    <param name="wmode" value="opaque">
                    <param name="swfversion" value="9.0.45.0">
                    <param name="expressinstall" value="Scripts/expressInstall.swf">
                    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                    <div>
                      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                      </div>
                    <!--[if !IE]>-->
                    </object>
                  <!--<![endif]-->
                  </object>

  • Creative's flash MP3 player strat

    I don't understand Creative's strategy in the flash MP3 player market. The n200, v200, Muvo Mix and Muvo tx fm seem too similar. I like the idea of leaving out the radio, line in and mic on some models to lower the cost, however leaving off the display is imo a great mistake(I could do without the backlight though). How about more di'versity in the flash player offerings? How about a slightly larger player that takes a AA battery and has both an AM and FM tuner? How about a flash memory based player with 2 gigs of storage(Have the 28 meg players all been phased out? Perhaps soon the 256 meg players should be phased out?)

    From a business perspecti've Creative have to tally all of these bugs against resource and impact. If the bug is small, unlikely to be found and/or doesn't affect many users, chances are they won't fix it. It may irritate the hell out of a small group of users, but that's business unfortunately, particularly in large companies.

  • HT1460 Where can I find a dockable MP3 player with no games on it?

    I understand factory pre-loaded games can't be removed from an iPod. Apparently they serve some vital purpose. Who sells a dockable MP3 player with no games on it? I would gladly trade in one or more of my iPods for something like that.

    fabulous, thankyou. The flashplayer is great. P7 thing looks
    brilliant
    too - good to know it's there if I ever need it. Thanks
    again.
    djinn Wrote:
    > webber wrote:
    > > Hi, does anyone know of a good flash image player
    to insert into my
    > > webpage?
    > >
    > > I want one which is very simple and plain so that
    it doesn't clash
    > with
    > > my page design.
    > >
    > > The user needs to be able to click on 'next' when
    they want the next
    > > image to come up, rather than the images just
    fading in and out
    > > automatically.
    > >
    > > I have Macromedia Flash, but not a smidgen of
    experience in using
    > it,
    > > so it needs to be very simple to operate.
    >
    > I like this one.........
    >
    >
    http://www.monoslideshow.com/
    >
    > If you go to the demo page - you can customise the
    various albums that
    > are part of the demo and download the resulting xml file
    to use with
    > your purchased version.
    >
    > PVII have a very nice javascript offering, although not
    flash it is
    > well
    > worth a look.......
    >
    >
    http://www.projectseven.com/products/galleries/ssm/index.htm
    >
    > HTH
    >
    > --
    > chin chin
    > Sinclair

  • Flash mp3 player HELP!!!

    i am tying to add a flash mp3 player to my blog posts to have samples of the scores on each page using this:
    http://creativetechs.com/tipsblog/embed-a-free-flash-mp3-player-on-your-blog/
    the code i have is this:
    <object type="application/x-shockwave-flash" width="400" height="170"
    data="http://web.me.com/cbarrywdw03/KlausBadelt/MusicPlayerExample/xspfplayer.swf?playlisturl=http://web.me.com/cbarrywdw03/KlausBadelt/MusicPlayerExample/playlist.xspf">
    <param name="movie"
    value="http://web.me.com/cbarrywdw03/KlausBadelt/MusicPlayerExample/xspfplayer.swf?playlisturl=http://web.me.com/cbarrywdw03/KlausBadelt/MusicPlayerExample/playlist.xspf" />
    </object>
    i am tying to get it in the blank empty space on the right above the track listing and to the right of the cover as seen here:
    http://web.me.com/cbarrywdw03/KlausBadelt/CreditsBlog/Entries/2010/4/1_Die_Jagd_nach_der_heiligen_Lanze_-_OriginalScore.html
    as you can see i can only get the player to show up on the left anywhere form the top to the bottom.
    please help me in getting it in that empty space mentioned above, thank you and take care!
    chris
    Message was edited by: MacAVUser08

    You should paste the object code in a HTML Snippet.
    All your songs and playlist should be in the MusicPlayerExample folder.
    And then test that all performs as it should.
    If you do that you have no problems.
    But you pasted the code in the HTML page itself after publishing. If you do you have to check the path to all the files.
    You would have found that there is no file here :
    http://web.me.com/cbarrywdw03/KlausBadelt/Credits_Blog/Entries/2010/4/swfobject. js
    Rule of thumb : Keep custom stuff out of the Site folder iWeb creates.
    I pasted your code in a HTML Snippet and 3 demo MP3s played in the flashplayer. So no problem there.

  • Embedding a flash mp3 player?

    Hi,
    I'm trying to embed a flash mp3 player in my iweb site. I don't want people to be able to download the files, just listen to them, so Flash seems to be the way to go.
    Can anyone recommend a resource for learning how to do this? I've found the Flash player that I want to use, I know how to insert the HTML snippet in iweb and have the code. But all the instructions I read reference SWF files, XML files, etc and I don't know what any of that is. I just want a juke box style flash player on a couple of my pages.
    Any help would be greatly appreciated. Thanks a lot!
    G4 laptop, Leopard
    Message was edited by: more-gtr
    Message was edited by: more-gtr

    If you want to play the songs and sell them you can use Snocap - otherwise you can use Esnips...
    http://roddymckay.com/Satellite/JukeBox.html
    You upload your song files to their site and all you do is copy and paste the HTML in to a snippet box.

  • How to make an Mp3 player, with some neat looks?

    Hey guys,
    I need to make an mp3 player, with some nice looks.
    Please help!

    maybe try this
    http://jplayer.org/

  • Mp3 player  with  built in speaker

    HI,
    I am looking for a basic mp3 player with a built in speaker under $100.
    I just want to listen to podcasts that I download on my macbook and then
    transfer to an mp3 player. I don't need video or lot of bells and whistles - but a built-in-speaker is crucial as well as being able to marry with a mac.
    Simple drag and drop would be ideal.
    Thanks a lot for any suggestions.

    MP3 players come in a range of options and prices. iPods are probably the best, but are also among the pricier. You can see a bunch of options here: http://www.bestbuy.com/site/Audio/iPod-MP3-Players/abcat0201000.c?id=abcat020100 0&searchterm=mp3%20player&searchresults=1
    Since this is an iTunes Forum, please be aware that the automatic sync option for iTunes only applies to iPods, and does not work with other players. You can however use your MP3 tracks both in iTunes and in your portable player.

Maybe you are looking for