Music Does Not Play.And Preloader Does Not Work
Could You take a look at my project and see why the song is taking too long to start and how to solve this problem?
The sound is supose to start when the girl starts to dance.
this is the code I am using on her MC:
onClipEvent(load) {
mp1._alpha = 100;
mp1.play();
mp2._alpha = 0;
mp2.stop();
soundurl = "plastic.mp3";
mySound = new Sound();
mySound.onLoad = function(success){
if(success){
this.start(0, 999);
}
}
mySound.loadSound(soundurl, false);
}
and Again my preloader does not work anymore even loading the sound externally.
PLEASE What should I do?
I've struggling in this project for 3 weeks and I cant get any help.
Ultrashock Forums > Flash > Flash Professional
Posted on: 2004-04-17
View Complete Forum Thread with Replies
Sponsored Links:
Why Does The Preloader Work, But The Movie Does Not Play?
I am on the verge of launching my portfolio and when I click on "portfolio" the preloader runs, but nothing shows up... but if I navigate away and click on portfolio again it shows up. Can someone please help me?
My site is staged at: http://stage.designchemist.com/ and if you click on portfolio you will see the issue.
Your help is greatly appreciated!!!
Thanks,
Zach
View Replies !
View Related
Why Does The Preloader Work, But The Movie Does Not Play?
I am on the verge of launching my portfolio and when I click on "portfolio" the preloader runs, but nothing shows up... but if I navigate away and click on portfolio again it shows up. Can someone please help me?
My site is staged at: http://stage.designchemist.com/ and if you click on portfolio you will see the issue.
Your help is greatly appreciated!!!
Thanks,
Zach
View Replies !
View Related
Play Music 1 And Next Play Music 2
Hello!
I have a little problem.
(My english is not well but I try.)
I have 2 music compositions.
1 - 9 sec.
2 - 5 sec.
Music 1 is in frame 1.
Music 2 is in frame 2.
Example action:
Playing music 1 in frame 1, when finished automaticly going to frame 2 and playing music 2 and finished.
How to make it?
View Replies !
View Related
Music.swf Would Not Play, Please Help
I have two movies, one 'main.swf' another 'music.swf'. 'main.swf' loads music.swf into target.
OK, on my 'music.swf' I have the following Action Script on the root:
a = new Sound ();
a.attachSound ("music_01")
a.start("",999);
It plays when opening the music.swf file, opening the main.swf file laods music.swf but won't play the music.
Change the Action Script in music.swf to:
a = new Sound ();
a.attachSound ("music_01")
_root.music.a.start("",999);
Still don't work! Am I missing something?
PLease help
Thanks in advance
View Replies !
View Related
Play Music
I'm trying to trigger the MP3 but not usign the play_btn and stop_btn. What I'm trying to make is to trigger the MP3 when activity=1. Can anybody tell me how to edit the script to achieve that?
thanks
Attach Code
var activity=0;
var music:Sound = new Sound(new URLRequest("http://www.na.com/hill.mp3"));
var sc:SoundChannel;
var isPlaying:Boolean = false;
//stop_btn.addEventListener(MouseEvent.CLICK, stopMusic);
function stopMusic(e:Event):void
{
sc.stop();
isPlaying = false;
}
//play_btn.addEventListener(MouseEvent.CLICK, playMusic);
function playMusic(e:Event):void
{
if (!isPlaying)
{
sc = music.play();
isPlaying = true;
}
}
Edited: 08/12/2008 at 11:30:23 AM by jucasan
View Replies !
View Related
Play Music In A FrameSet... PLEASE HELP
Hi, thanks for visiting!
I´ve got a FrameSet with Left, Top and Main. In the left Frame, there is a menue and below that, there is a simple musicplayer, just with a preloader and start-stop functions. It is working very good, but now the client want to have one of the 3 Sounds starts playing if you are visiting the page. A kind of - onload. If I test the player in flash, it is working... but when I import the Player in the Left Frame, the "onload" effect is not working.
Maybe its wrong to tell the preloader if all frames are loaded he should go to the frame where the song starts. Please help me...
Thanks
View Replies !
View Related
Music List Play
Hello,
i would like to have a list of musics (mp3 files) and some control buttons: Play, Stop, Pause,...
I would choose a music from this list and then i would click play and this music would stream...while the music doesn't start to play i would like to have a message saying the music is streaming for the person to wait a moment.
Any idea, any component, any code, anything?
Thanks,
Miguel
View Replies !
View Related
How Can I Play Bg Music With Actionscript?
i know it can b done cuz i saw it somewhere else, but i forgot how to... i hav 5 frames, and the 5th one play the 1st frame to create an ongoing loop until broken. where and wut actions hav to b placed so that bg music will play and loop forever? i think it went something like this:
music = new Sound();
music.attatchSound("menu loop");
music.start();
View Replies !
View Related
Play Two Music Continuely
My english is not so good but i really hope you will understand me.
I want to play to diffrent sound in mp3 file. I have them named sound1 and sound 2 in my library.
music = new Sound(this);
music.attachSound("sound1");
music.start(0,999);
this is how first starts but how can i make that when this is finished the sound2 will start an so on to infinity.
Thanks
View Replies !
View Related
Help With Play() Starting My Music
Ok so I have a flash movie. In the scene is a movie clip I'm using to turn the music on and off. The way I have that setup is the 2 keyframe thing, click the button it goes to a frame with stopallsounds() and click again its gotoandplay(1). Now, in my MAIN movie I have it stop() at certain points to wait for the user to click on the menu items. When they click I have it play() then gotoandplay(number). however, I think when it resumes playing it also plays this movie clip so the sounds start themselves back up if the sound is off. Do you have any suggestions for what I should do? Am I doing things improperly?
View Replies !
View Related
Play That Funky Music
Hello friends,
A couple of newbie questions concerning playing sound....
I want to make a jukebox on my flash site and i have a few mp3's. The mp3's are 4MB or bigger. My question is, should...
1. Should i import them into my .fla? and if i do, won't that loading time be forever once it's online?
---OR---
2. Should i have them play from an outside source.
aaaand, if the answer is #2, how do I link the songs to my "play" button from an outside source?
also....
Is there a way to shrink these 4MB mp3's even smaller?
What do i do?
I think that's it, but i'm sure i'll post another question concerning this as I go.
Thanking all of you wonderful flash experts in advance.
Pete
View Replies !
View Related
Which Is The Best Way To Play Music Samples?
I've got myself into a right muddle over the last few weeks and am finding that the more I read up on this subject, the muddier the waters become. I could really do with a guiding hand to tell me the best way to tackle this simple problem of mine.
I want to be able to list and play 7 music samples and am building the site using Dreamweaver. I have some knowledge of Flash. All I want are basic 'PLAY' buttons next to each song title in a list. I am not bothered about a stop button. The user can wait until the short track has finished. I don't want a jukebox / mp3 player etc.
I know that the best way to incorporate music/sound into a site is by using Flash and then importing the Flash movie into Dreamweaver. I can create the buttons and am sure I will be able to add the actions to the button down state. Where my confusion lies is with what action to use:
loadSound
loadMovie
gotoAndPlay
Do you get my drift?
Also... to stop multiple tracks playing, am I right in assuming that the first part of my actionscript code will have to start:
on (release) {
stopAllSounds();
And then... Am I best to embed the sound track into the SWF or upload the Mp3 tracks direct to the server?
Hope you can help and thanks in advance !!!
View Replies !
View Related
Can I Design It In This Way(play Music)?
hello,
I'm a poor experience programmer at ActionScript. I want to do something about Music Player, and using the music file around the internet. Can I design it by ActionScript?
Some website to protect music file by HTTP HEADER REFERER field. I want to play music by stream. Can I design a way to handle this guard ? and how to design ?
If there is some wrong about this article, it's free to delete it.
Thanks
==========
About Referer:
14.36 Referer
The Referer[sic] request-header field allows the client to specify, for the server's benefit, the address (URI) of the resource from which the Request-URI was obtained (the "referrer", although the header field is misspelled.) The Referer request-header allows a server to generate lists of back-links to resources for interest, logging, optimized caching, etc. It also allows obsolete or mistyped links to be traced for maintenance. The Referer field MUST NOT be sent if the Request-URI was obtained
Referer = "Referer" ":" ( absoluteURI | relativeURI )
Example:
Referer: http://www.w3.org/hypertext/DataSources/Overview.html
If the field value is a relative URI, it SHOULD be interpreted relative to the Request-URI. The URI MUST NOT include a fragment. See section 15.1.3 for
security considerations.
@ http://www.w3.org/Protocols/rfc2616/rfc2616.html
==========
View Replies !
View Related
Play Music Externally
ok, i have a big file size due to all the sounds that i have on my site. I have the sound attached to each individual button... is there a way i can use the instance of the button and play the sound from an external folder so i can reduce my file size and loading times???
View Replies !
View Related
How To Play Music Automatically?
I have been playing about with a basic flash music player consisting of play, pause and stop buttons.
They all work fine. However what i want the file to do is play the music automatically when the file is run instead of running the file then pressing play.
I have taken out the actual music file as the file is otherwise too large to upload. The music file is called website music128k.
Click below to download.
http://www.sendhere.pwp.blueyonder.c...site sound.fla
I hope someone can help me??!!
View Replies !
View Related
Play That Funky Music
Hello fellas,
Thanks for all the replies the last time. I loved all of the help that everyone was giving me. Now I have a new question, I put in a mp3 song into my flash by importing to library and dragging the music on the stage. Depending on which coputer in the office that I look from the music comes in and plays but my flash plays at different speeds. I know that this is attributed to the computers. But I made a surf movie so I need the music to come in exactly how it is when viewing off line. Is there anyway that I can do this? Thanks for all of the help,
Roxy Gurl
View Replies !
View Related
Play Music In A Loop Once
Hi,
I'm struggling with playing a sound (song) in my flash file only once and having a loop.
I have a bunch of images in my file and I want to loop over and over but I want to play the song only once (and keep the images looping). Is there a way to do that (perhaps with actionscript )?
Thanks in advance!
View Replies !
View Related
_root Goto And Play - Music On Off
I am trying to desing an on off button that can be carried through multiple frames but each frame has a different loop. My root scene has about 7 frames, each with a different loop. I allow the client to go forwards and backwards in the frames. I have most of my interface operational except the music.
I was thinking if the music symbol could sense what the root level frame was, I could I could say something like
if (Number(_root._currentframe)=1 ) {
gotoAndPlay(3); - the beginning of the first loop
}
else if(Number(_root._currentframe)=2 {
gotoAndPlay(200); - the beginning of the second loop
}
The problem is (as you can see)I don't know how to code actionscript and I don't know the terminology for half the stuff in flash yet.
I'm trying to reduce the file size so I don't want a duplicate symbol with a different name and different subcomponents. The equalizer takes up about 50K.
If you could help I would greatly appreciate it.
I'll post this in the actionscript forum too - I'm not sure when to use which but I've gotten some great help on this board.
P.S. I have posed a number of questions on this board and I would not have even begun my first web page if it weren't for the help of so many people - YOU ARE GREAT!
View Replies !
View Related
Play Music Over Multiple Scenes
How do I setup a wav or mp3 to play over multiple scenes of my movie without have to have breaks in the sound. I'd prefer to have it work inside the existing swf instead of making a new one.
Also, is there a way to make just the flash movie pop up outside of the html and play in its own window, instead of being embedded inside the webpage the entire time.
View Replies !
View Related
Play Music Continuously Over Scenes?
I've just realized I've got a big problem. I've got a layout that uses several scenes because I've got a bunch of pages with dynamic text. I was just about to add a soundloop to it when I realized that the sound will reload every time the movie jumps to a new scene. Is there any way to prevent this? I need the music to play continuously, and I've also got a sound toggle on/off button that should work throughout the movie. I'd be really grateful for some advice or anything at all.
View Replies !
View Related
Having Trouble Getting Music To Play On Load
I have a simple MP3 player on stage.
On the play button I have this:
code: on (release) {
if (playing == undefined or playing == false) {
music = new Sound(this);
music.loadSound(tracks.firstChild.childNodes[nodeNum].attributes.path);
title = tracks.firstChild.childNodes[nodeNum].attributes.name;
if (pause == true) {
pausePos = ((slider.dragger._x/100)*music.duration)/1000;
music.start(pausePos, 0);
pause = false;
} else {
music.start(0, 0);
}
playing = true;
gotoAndPlay(2);
}
}
when you click the play button it plays.
I want it to start playing track#1 when the file loads though.
I've tried to modify the code on the play button and place it on the first frame but I get no music and an undefined in my dynamic text box that shows the track name. I tried creating a MC and using a clipEvent(load) but that bombed too.
Can anyone help?
Is this enough information?
-lemorris
View Replies !
View Related
Music Player With Play List But....
Hello all,
This is the idea, I have a top frame where the sound is loaded.
That's working fine, but now i want a player that have a play list.
Now the problem is coming,
The web page is loaded in separated sections.
Let me explain:
if i press home botton, these are the tings that loading new that's: menu, center
en the underline. (center is the contents of home).
and you will hear always the music that's playing in the top frame, where you go: home, biographic, ect you always here the music.
But that's just one track you hear, now i want a player that have a play list in the music area, so you can pick a track there.
the issue that's coming is: if i go to another area, the contact between the music file and the player will be lost, because i want the the file to be loaded in the top frame so you can listened it always, whits area you are at the time.
i Had the idea to put the player in the menu, but this is refreshing every time
the push a area button, like home, biographic, ect.
This is a theoretical thought of mine, but is it possible or is there a other way...?
Greets Desmond
View Replies !
View Related
Problems With Play/start Music
Hi everybody again
Now I'm working with a couple of buttons in my page. The first pauses de music (that is loaded when the swf is loaded) and the second plays again it.
The problem I have is that the sound.start does not start at the miliseconds I tell to it. My actionscript is this:
in the first frame:
stop();
musica = new Sound();
musica.loadSound("../musica/1.mp3",true);
musica.play(2);
in the pause button in first frame:
on(release)
{
posicio=_root.musica.position/1000;
trace(posicio);
musica.stop();
gotoAndStop(2);
}
and the play button actionscript in the second frame:
on(release)
{
trace(posicio);
musica.start(posicio);
gotoAndStop(1);
}
the traces inside the two buttons work, they return the same seconds... but when it's time to start again, it does from the beginning of the song. Why?
I've also tried this: musica.play(posicio); in the play button but it doesn't work...
Any idea of what I'm doing wrong??
View Replies !
View Related
Synchronizing Play Button With Music
I'm a bit of a newb here, and I did try a search before posting. I have a 'click to play' button on my animation that works perfectly. My problem is that when I test the movie or publish it, the music starts playing while the actual animation waits for me to click it to start it. Thus, making the two out of sync with eachother. How do I make it so the music starts when someone clicks the 'click to play' button??
Thanks for any insight!!
View Replies !
View Related
Trying To Get Music To Play Continuously Through Scenes
I have a flash movie that has multiple scenes in it (about 5). When the user chooses a menu selection, the movie jumps to the selected scene. I have a music player movie clip that should play background music continuously throughout the site, however, the music restarts when another scene is selected, even if the user has chosen for the music to be off, it still restarts. During some navigations, the msuic even doubles up on itself and replays again over the previous loop. What could be causing these problems? Does anyone have any advice? Please help, this is driving me crazy!!!!!
Thank you,
SOBE
View Replies !
View Related
How This File Works To Play Music
i've got this attached file for learning.
but after looking into it,
i can't figure out how this .fla manage to play the music...
i see the audio file in the library...'
but why is it no actioinscript whatsoever to trigger the music playing??
anyone can tell me how it works?
(see attached)
View Replies !
View Related
How To Play Continues Background Music
I'm having problems on how to play a background sound that doesn't stop when you click on a new link. when i attach the music to one movie when i load the next the sound stops. if i attach music to the other movies, they start at the beginning.. again. help please
View Replies !
View Related
Can Flash Play Streaming Music?
I was wondering if it's possible for flash to play a music stream off of di.fm. They have a jazz stream that would fit perfect for the site I'm working on. I was just wondering if this was possible to do and if so where can I learn how to do it.
Thanks
View Replies !
View Related
Looping Music Wont Play
I am loading a movie in another flash movie clip. The first movie "animation.swf" has background music that loops twice.
Linked in the library as "Song" and played as below:
loopMusic = new Sound ();
loopMusic.attachSound ("Song");
loopMusic.start (0,2);
It plays fine, but when that file is loaded in the main movie using loadMovie the sound doesn't play.
Any ideas?
View Replies !
View Related
Play And Stop Buttons With Music
hello. im a beginner with flash and i need a little help.
i want to create a small music player (that play only 1 song) which contains-
a Play button - button symbol
a Stop button - button symbol
a title (show what song is currently playing) - movie symbol
music - i guess movie symbol
the only problem i couldnt solve (the rest are working fine) is that the play and stop buttons arent working. the scripts i wrote for them are:
on(press){
a.play();
}
and
on(press){
a.stop();
}
respectively, while "a" is the instant name for the symbol which contains the song.
i think i figured out that the problem is that in the music symbol there is only 1 frame (which contains the song- i just went to frame #1 and dragged to the edit screen the song from the library).
please help me!!
View Replies !
View Related
Can Flash Play Streaming Music?
I was wondering if it's possible for flash to play a music stream off of di.fm. They have a jazz stream that would fit perfect for the site I'm working on. I was just wondering if this was possible to do and if so where can I learn how to do it.
Thanks
View Replies !
View Related
Looping Music Wont Play
I am loading a movie in another flash movie clip. The first movie "animation.swf" has background music that loops twice.
Linked in the library as "Song" and played as below:
loopMusic = new Sound ();
loopMusic.attachSound ("Song");
loopMusic.start (0,2);
It plays fine, but when that file is loaded in the main movie using loadMovie the sound doesn't play.
Any ideas?
View Replies !
View Related
Is It Possible To Make Music Play Only On First View?
I was wondering if there was a way to automatically play music the first time someone viewed the flash file, and then every other time the user viewed the flash file it would only play if the use hit the play button.
Basically I'm using a template system, and for the header i wanted to play music when a visitor first came on the site, but the problem is if they view a different page the music would play again because all the pages use the same header.
View Replies !
View Related
Music Button Wont Play
This music button is driving me insane. Ok I have it set up so that when I click on it the music stops and a short animation plays then stops with a seperate button for it to do the same thing only play. For the stop button I have
ActionScript Code:
on (release) {
tellTarget (_root.Star_Loop_Button) {
gotoAndPlay("out");
}
}
and that works fine. Then I have the play button that has the AS of
ActionScript Code:
on (release) {
tellTarget (_root.Star_Loop_Button) {
gotoAndPlay("in");
}
}
but it never lets me go to the in label. I dont have the music set up in the buttons and I dont need help on that its just the second AS doesnt work. Iv tried everything and cant figure it out. Can some one please help me... This is driving me mad.
View Replies !
View Related
Play Random Music Button?
I was wondering if this is even possible. I wanted to put a button on my flash site that when pressed will play a random song. And if the person happens to dislike it, they can click again and it will stop the current song playing and jump to another random song. I was trying to think the code through but I can't come up with anything.
View Replies !
View Related
Music In Movie Won't Play With LoadMovieNum And Levels PLEASE HELP
Hello,
I have a movie called home.swf and a movie called audio.swf that contains my music.
My audio.swf movie plays the music with this code:
mySound = new Sound();
mySound.attachSound("escapemusic");
mySound.start(0,999);
stop();
The home.swf loads audio.swf with this code:
loadMovieNum("audio.swf", 2);
Before home.swf loads a new movie in level 1, I am loading audio.swf in level 2 (I am assuming I am allowed to do that).
When I test/export the audio.swf file by itself everything works and the music plays.
But when I test home.swf and home.swf loads audio.swf, the audio just won't play and I don't understand why! It is not a level thing, cause I tried to load it into level 1 (that's why I previously said I am assuming I can load in level 2 before I load something in level 1)...
Cany anybody help me please?
Thanks
View Replies !
View Related
Music Doesn't Play From Web But Works From Localhost
Okay, I'm using:
loading = true
mymusic = new Sound()
mymusic.setVolume(100)
mymusic.loadSound("mp3/music01.mp3", false)
and elsewhere:
if (mymusic.getBytesLoaded() == mymusic.getBytesTotal()) {
mymusic.start(0,100)
}
Now this works great from the local machine, but once it goes up on a site, it doesn't always start playing as soon as it's loaded.. but the thing is, sometimes it plays as soon as it's loaded, and sometimes I have to wait until it's loaded, then click on the play button a second time in order to hear anything.
Anyone able to help?
Thanx.
View Replies !
View Related
Music Plays Fine Once, But Does Not Play Second Time Around
Hi
I have a preloader, intro and menu system in the same file.
When I play the file, everything works fine, preloading, intro plays with music and then the menu system comes up.
Thing is, when I return to view the intro again (if anyone was that interested), the movie plays, but the sound doesn't come up.
The sound is in a movieclip on the _root timeline, and I have tried many things to try and reset the clip, ready for the next play request (including onClipEvent(enterframe) and resetting the moveclip with a goto(1); when the menu system appears)
but no joy.
Anyone have any experience with this problem. I can't be the first.
View Replies !
View Related
Code To Randamly Play A Frame (for Music)
Hey,
I got say 5 clips of music on my site.. each in the same MC.. starting and stoppin 2 seconds before the next one starts.. each stopped and with a mc to show whats playig. is there a code I can put so it randomly plays all the 5 songs.. rather than in order I put them... but the user can still select to play any of the 5 songs at any time.
Any help apreciated.
Ian
View Replies !
View Related
Play Music In Main Movie From External SWF
hi
i have created an swf that i am using as a music box thing (contains all the actionscripting for it to work and music). this works fine on its own.
i can load it into my main movie into the correct empty MC, but it doesn't work, no music plays.
the code i have used in the main menu is:
PHP Code:
loadMovie("kol_musicbox.swf",musicEmpty_mc);
how do i get it to play the music?
please help
chris
View Replies !
View Related
Wait For Music To Load Then Play Timeline
I am trying to write some code so that the time will play once the sound file is loaded. I am doing this so the audio and video are in sync will they are playing online.
I have a button that loads the sound. and in the keyframe i have this code.
This is my first attempt on writing this kind of code. please let me know anyone can help. thanks
stop();
buttonLabel.autoSize = "left"
music.loadSound("audio/back1.mp3", false);
//------------button reads music.loadSound("audio/back2.mp3", true);
var BLoaded = music.getBytesLoaded();
var TotalB = music.getBytesTotal();
var precent:Number = Math.round((BLoaded/TotalB)*100)
playMusic = function() {
if (percent = 100) {
gotoAndPlay(nextFrame);
}
}
music.onLoad = function(success) {
if (success) {
(playMusic);
}
}
View Replies !
View Related
|