Flash mp3 player (pause player while the mp3 loads)
The following text below is apart of the mp3 player that I have that plays a song, but when the website is launched the song playes right away, which I DO NOT WANT. how do i add a mute to this so that it does not affect the loading process.
fscommand("allowscale", "false");
dd = new Sound();
dd.loadSound(http://www.mywebsite/song/example/link, true);
xx = bar._width;
orginal_width = bar._width;
_root.soundbtndis._visible = false;
_root.soundbtndis.disabled = true;
this.onEnterFrame = function() {
t1 = int(dd.duration/1000/60);
t1 = t1+" : "+int((dd.duration/1000-(t1*60)));
ddf = int((dd.duration-dd.position)/1000/60);
elapsed_sec = int((((dd.duration-dd.position)/1000/60)-ddf)*60);
if (elapsed_sec<10) {
elapsed_sec = "0"+elapsed_sec;
if (ddf<10) {
ddf = "0"+ddf;
if (_root.stpd) {
elapsed = _root.t1;
} else {
elapsed = ddf+" : "+elapsed_sec;
//mo=dd.position/1000
//elapsed =
vol = dd.getVolume()+" %";
dur = dd.duration;
pos = dd.position;
per = (pos/dur)*100;
m = (pos/dur)*100;
bar._width = (m*xx)/100;
drag._x = _root.bar._width+_root.bar._x;
//drag._y = 136;
if (stpd) {
xx = 0;
} else {
xx = orginal_width;
// function keys
if (Key.isDown(67)) {
pauseit();
if (Key.isDown(88)) {
playit();
if (Key.isDown(86)) {
stopit();
this tutorial does not help.
Since we are on this topic, does anyone know of a way to create an mp3 player that pauses other songs in your play list when you hit play?
Similar Messages
-
Display ("Please Wait") message WHILE the page loads
Hello All,
I have adf/jsf application. How to add message " Please Wait While Page Loads" WHILE+* the page is loading ?
I am thinking of Window.confirm(" Please Wait While The Page Loads") Is there a better (More Modern) way to do this?_
Many Thanks,John, when I type <af:statusIndicator and ctrl + space, JDev does not show statusIndicator as one of the choices. I tried adding code but it seems it does not recognize statusIndicator as one of the tags. I am using other jsf and adf tags on the same page :(
Thanks, -
ITunes 10.6.3 not importing mp3 files but will play the mp3 files
Hi
I recently updated my iTunes to v10.6.3 on my mac. However, I cant seem to add new music to my iTunes library. Dropping and dragging doesnt work even though the '+' curser appears and importing music using command + O doesnt work either. There is no indication of the music being analysed or anything.
However, when I click on an mp3 file it opens and plays in iTunes but will not be added to the library. If I click on the mp3 file again from finder, it will play in iTunes from the last point..
Does anyone have any ideas of wrong? Its frustrating me because I need to sync music to my iPhone and I cant
ThanksYe playing the file should automatically add it to iTunes but its not since I updated iTunes.
The music plays and I can see the the time bar in the window on the top of iTunes but the file is not located in the iTunes library or anywhere in iTunes so I cant right click it.
At the moment the mp3 file is on my desktop. Normally dropping and dragging it into iTunes adds it into my 'iTunes' folder in the 'Music' folder.. but this is not happening. I've tried manually adding the file into the 'iTunes' folder using the appropriate folder titles etc.. but iTunes will not detect the new mp3's. Wierd!!
I think I might just have to re-install iTunes -
Showing "something" while the application loads.
I have a JDBC application that is slow to load on a few of the machines it runs on due to the age of the machines. In most popular Java programs, eg Limewire, JBuilder, Mozilla, etc..., a pane with the company logo pops up and then goes away when the program has loaded. I have tried to implement this technique in my application but it doesn't seem to be working :-\ If anyone has any ideas or can point me to a code example it would be greatly appreciated.
Regards,
TimCheck out the SwingSet demo that comes with JDK1.3.
Its in jdk1.3\demo\jfc\SwingSet2
Execute it: java -jar SwingSet2.jar
Try searching the forum for "splash screen", I think I
may have seen other posts on this topic.Check out my response to:
http://forum.java.sun.com/thread.jsp?thread=231709&forum=57&message=829052 -
Flash .flv stand alone player.
Dear members:
I have recently downloaded some .flv files from the Internet
and tried to view them without any success. I have installed in my
computer the CS3 premium suite that includes Flash CS3 so I was
surprise that the videos wouldn't play. Right clicking on these
files I have the choice to open them using (1) Flash Player.app
which is selected as the default and also (2) Adobe Flash CS3.app,
(3) Flash MX 2004 and (4) SAFlashPlayer. None of these applications
actually plays the videos. When I select both Flash Player.app and
SAFlashPlayer the applications load and they appear Mac OS X's menu
bar but nothing happens.
Please forgive me if this is a basic question but I haven't
been able to locate a stand alone version of Flash Player for
download on Adobe's web site. The one I found seems to be the one
that is installed in browsers so that they can play Flash media.
Where can I find and download the stand alone Flash Player ?
Thank you in advance for your help.
Joseph ChamberlainHello, fredingston.
After I placed my original post I found a plug-in for
QuickTime that allows it to play Flash videos. The name is Perian
and does a very good job. Quite a convenient solution for those
with Macs.
Thanks to you second post I was able to find and download the
new Adobe Media Player and really liked it. The interface is quite
nice and I think it has more functions that I haven't yet had the
chance to explore (it seems far more than just a simple player).
I noticed that in Adobe Media Player the videos seem to play
with better quality so this will definitely become my default
player for Flash media from now on.
Thank you again for your reply and helpful answers to my
questions.
Best regards,
Joseph -
Flash with linked flv: Waiting while playing
Hello
for an automatic running projector I want to use flash with
linked flvs. While the flash is running the movie shell wait, after
finishing playing the movie jumps to next marker.
I used following script:
on exitFrame
if sprite (5).playing then
go to the frame
end if
end
The script don't function. Has anyone an idea how to let the
movie waiting for the end of embedded flash?
Thanks and regards
PeterIf the .flv is loaded in to a movieClip in your .swf, you
would want to
test the clip's playing property, not the .swf. Another
method is to
build a telltale in to the .swf to mark the end of the .flv
play. You
could set a boolean variable in the .swf and then look at the
value from
the Director movie. A better method is to call a Director
function from
the .swf, when the .flv finishes.
Rob
Rob Dillon
Adobe Community Expert
http://www.ddg-designs.com
412-243-9119
http://www.macromedia.com/software/trial/ -
Flash Player 10 crashing while streaming an MP3
I am currently building a streaming MP3 application, but have run into a problem. If I stream my MP3 using Flash Player 10.0.12 or older it works great. However, if I use Flash Player 10.0.22 or newer, Flash Player is crashing. It is happening primarily in IE, but I have had it crash in FireFox and Chrome as well. IE 6 is crashing almost instantly in my XP scenario. When I use Flash 10.0.12 the MP3 streams flawlessly in all of my test environments. Has anyone encountered similar problems while streaming an MP3 using the latest Flash player?
My test scenarios:
Vista Ultimate
IE7 / FireFox 3.5 / Chrome 3.0
Flash 10.0.32 (fail) / Flash 10.0.22 (fail) / Flash 10.0.12 (success) / 9.0.246 (success)
XP (32-bit)
IE 6 / FireFox 3.0 / Chome 3.0
Flash 10.0.32 (fail) / Flash 10.0.22 (fail) / Flash 10.0.12 (success) / 9.0.246 (success)
I am using the SWF Sound project in my solution: http://code.google.com/p/swfsound/
I have been able to capture several debug logs per Adobe's support instructions, but am still awaiting approval to submit them to the bug database. Any help or information is greatly appreciated.
Sincerely,
Jeremy TolsdorfHi, The only general information that I could give you is to try turning off the hardware acceleration feature, which is turned on by default. You right click any video, Settings, Display Settings and UN check the H.A. It has also been recommended to update the graphic and video drivers to the latest versions. If that doesn't work, then there is some other conflict on the system. Anti-Virus and or add ons in the browsers(s) Now this is assuming that Flash Player is Installed correctly, along with the IE and non-IE browsers that Flash Player supports.
This site explains the hardware acceleration:
http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html
Hope this helps.
Thanks,
eidnolb -
I am running windows xp sp2 and I have set my dowload location under (tools/options), but when I select an MP3 file to download, firefox does NOT copy the file to my chosen location on my HD - instead, it opens up a new window with a makeshift "player" and begins loading the player with the MP3 file. The problem is that I have no idea where on my system firefox has copied this file to, so, I cannot leave and come back later and play this MP3 file using winamp. I have to listen to it right then or lose it - if I close that new window (with that puny little "player"), then I lose the download, wherever firefox put it on my PC (I got no idea where it is). This is all under firefox 25.0
I am also running FIrefox 12.0 on an older windows 2000 machine and that works perfectly - I can download any MP3 file I want, and firefox 12.0 (on win2k, sp4) downloads it to my chosen location (on my HD), and it gives me the download window so I can watch its progress and have some control over pause, and resume, and, when it is done, the download window offers me the option to "open containing folder" so I can make sure it got to where I wanted it. In other words, Firefox 12.0 on WIn2k, sp4 works better than firefox 25.0 on winxp sp2!!!!! What gives? I went through and set up my options for XP just like I did with Win2k and it all looks good, but firefox 25.0 just ignores my chosen location and always defaults to give me that makeshift player and I am not able to actually copy the mp3 file to my harddrive - it makes firerox 25.0 almost unusable since downloading mp3 files is a big part of my firexfox use - please help - I am not able to upgrade windows at this time, and, since firefox 12.0 still works fine on win2k, I can't understand what happened at firefox?Phillipp,
I tried it again using "save link as", and this time it actually worked! I just now downloaded several more using the "save link as" option, and it works perfectly. Thanks. Problem solved.
Littleberry -
Using the mp3 player with various comput
Hello,
I was wondering if I can use the mp3 player with more than one computer, that's to say, not only with the first one. I'm in the USA now but I li've in Italy, so if I buy it here and use it here to download songs, then will I be able to use it in Italy too? Meaning, will I be able to use it with another computer and download others song on it's
And another question, concerning the battery, what happens when it dies? Because on the mp3 player homepage I read something about replacing it but I would like to know more about it. The battery is a big concern because I'm choosing between Ipod and this one, and on the discussion forums of Ipod, it wasn't very reassuring. While I had heard that Creative's battery is good.
Thank you very much. Please answer soon.Lithium Ion batteries last on average 3 years at peak performance from date of manufacture. More here in the Zen FAQ at Nomadness.net.
-
Hi. I'd really appreciate any help anyone could offer on the
following problem:
I'm working on a web site for a music composer. It has
various page: news, about, contact etc.... I'd like to have a flash
mp3 player at the bottom of the screen that plays music regardless
of what page of the web site you are on. However the playlist from
the player is contained on the "music" page of the site.
i.e you go to the "music" page (from the main menu), and
select a track - it then starts playing the in music player - but
the music player does not stop when you visit other pages.
I think the general problem is getting the main swf to
communicate with the music player swf. - Any ideas? I think this
would be a really cool feature for a site.
Red VikingHave a look at the LocalConnection class in the actionscript
dictionary
Remove '_spamkiller_' to mail -
I can't get the mp3 player to work
I can't get the mp3 player to work after I paid for it
I keep getting a triangle with and exclamation mark no matter what I rename my mp3 file to. I put the mp3 file into my muse folder desktop, any hints?
-
Flash cc 2014, the mp3 that I imported won't play while I'm in the program
The audio works fine when I export the file but not while I'm in the program. I'm working in an action script on a mac book pro, and the file is an mp3. At first it worked fine but it now won't work in a new document either. I imported it to the library and the mp3 is in the same folder on my laptop as the project. I have a lip sync animation that's due in a few days and I've never used flash to do anything aside from compiling traditional animation (of the on paper variety).any advise would be much appreciated.
open the mp3 in audition and resave. that fixes most problems.
-
Method to create Player directly from the mp3 bytes array
I was checking JMF and didn't find any method to play a mp3 informing its byte array
Wouldn't it be an interesting method ? Ok, URL is much easier, but I am talking about ID3 files that has sequences of mp3 chuncks in the same file... Anyone knows a way to build a Player from mp3' array of bytes ???sergio_abreu wrote:
Err, Sorry but I desagree.I expected as much
It seems you didn't understand my question well.Quite possibly
I think the form I wrote was confusing:
In +"Anyone knows a way to build a Player from mp3' array of bytes ???+"
I meant: Anyone knows a way to create a Player or MediaPlayer CLASS from DYNAMIC mp3' array of bytes ???That's even less coherent, to be honest
Have you seen the structure of an ID3 music file (album) ? It's a collection of mp3 chuncks in only one file.ID3 is simply metadata about a work. It is not "chunks of MP3"
I have already designed a ID3 class (I called "ID3Info" ) in Java that extracts/shows (dump) all the mp3 from the ID3 file.ID3 isn't a file format. Nor can you extract an MP3 from it
The thing I would need now is to have some methods in Manager Class from which I could choose which bytes of a generic file I want to load as an mp3 song, that's all.This makes zero sense. Like saying "I need a kettle which will turn furniture into weather"
It would be nice if there were 2 new different methods:
1) Player createRealizedPlayer( byte[] songBytes, String fileExtension);
Arguments: the song byte array and the extension, ex. "mp3"And what would this method do? Where does the byte[] come from? What is in the file, that you also need in order to play the song? How is this - assuming it's possible - easier, better, than just playing the file?
2) Player createRealizedPlayer( java.net.URL genericFileURL, int beginPosition, int endPosition, String fileExtension);
Arguments: the URL of a file containing varios mp3 chuncks and the begin / end of the bytes to be loaded as a song and a String to describe the type of file ("mp3" for example)See above
PS: If you find it interesting, I am willing to contribute to enrich even more the Java Media framework. If you think my ideas are not valid, I just ask someone to send me the jmf source code so that I can alter some classes for my tests only.Why do you need JMF source code? I don't think this magical upside-down-ness is going to enhance anything, to be honest -
after mixing a project i select bounce and burn the disc that is burned plays on any cd player but when i try to burn the wav or mp3 file that was created the resulting disc will only play in a computer this also happens with video projects help please are there any settings i need to alter as it seems the wav or mp3 file i ceated is being converted to a data file somewhere between the folder and disc drive
Same thing for a movie file.. If you want to play back the movie via a DVD and a DVD player you must create a Movie DVD and not just burn files to a data DVD... as Data DVDs are just storage devices for files and therefore will only work with computers...
Movie DVDs are special formats that include things like menus and special file formats.. so they can playback via a DVD Player...
You will need a 3rd party DVD Burning app like Toast which is what i actually use.... or the more popular DVD Creator app...to create and then burn a Movie DVD that will playback on a DVD Player....
https://answers.yahoo.com/question/index?qid=20101220205435AA70beb -
Insert advertisement in a flash player while the video buffers
Hi!,
I have a web site with videos and they will be streamed thru
a flash player. Now my requirement is basically a skin with the
following feature..
A JPEG advertisement is displayed while the video connects
and buffers. Once the video is ready, the JPEG is removed and the
video plays. At the completion of the video, the JPEG is replaced.
I shall be using a banner ad management software so as to make a
geo targeting ad..
Well my requirement is that I need to have static
advertisement displayed while the video connects and buffers. JPEG
is removed and the video plays. At the completion of the video, the
JPEG is replaced.
Can anyone help me as to how it is done OR give me script for
the same.
Please feel free to contact me on my email..
[email protected]
regards,
AjeetSince you will be constructing a Flash swf to house the FLV
Component for the video playback, you could simple load the
jpeg(banner) into a MovieClip that resides on a level above the
Player instance. You could use the Player's event handlers to
control when the MovieClip is 'visible', and define a system to
load the banner content dynamically, working with your management
software.
I don't think you can place a static image 'into' the FLV
while the next video is loading (I could be wrong), but you could
easily make it appear that way, by constructing the MC
accordingly.
Maybe you are looking for
-
HI in my company in MM module MM people generating Purchase Order So we r using smartform for Purchase order. actually problem is company is having another 3 Group compnies. each and every company want different layout and formating for each page in
-
Hi, I am fascinated (by or of?) apple wireless keyboards. So I bought the version (of or with?) my mother tongue: german (MB167D/A) After that, I was so fascinated about the high quality item that I decided to buy the english (US) version too. Got th
-
How to cast presentation variable
Hi, How to cast the presentation variable in answers Thanks in advance naresh
-
Why JSTL change the encoding of response?
Dear all, I use JSTL to display multiple language, and it can work fine. I also have a servlet to let the user to select the display language. All the request and response encoding is set to UTF-8, but I found that when user choose language to Chines
-
Printing a portion of a Numbers Spreadsheet
I've generated a spreadsheet in numbers, and I would like to print a portion of the spreadsheet. I have selected the portion I want to print and and I select print preview the whole page is given to print, multiple pages,etc..It's a simple spreadshee