 |
 |
flash + music + website
|
 |
|
 |
|
Mac Enthusiast
Join Date: Nov 2001
Location: Washington, DC 20009
Status:
Offline
|
|
I'm trying to add a flash file that will loop a piece of music while visitors are viewing the website. I haven't been able to find a straight forward tutorial for this and am pretty clueless when it comes to flash.
I need to know how to first insert the music in to the intro page and then also how to keep the music play even after a user clicks to a different page on the site. Is this even possible?
|
|
Just my $.02 :-)
Ti Powerbook 1Ghz w/ Superdrive ......and lovin' it! :)
|
| |
|
|
|
 |
|
 |
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
Originally posted by milf:
...even after a user clicks to a different page on the site. Is this even possible?
unless you're using frames, or have it in a pop-up, then... no.
|
|
"Have sharp knives. Be creative. Cook to music" ~ maxelson
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Dec 2002
Status:
Offline
|
|
If you end up going that route (constant music playing) have it be a frame of some type that contains controls for volume and play/pause because website music is often very annoying. Even if its good music, people usually have their own music playing already.
|
|
Travis Sanderson
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Nov 2001
Location: Washington, DC 20009
Status:
Offline
|
|
I agree that it is annoying, but it's what they want. They are in the music recording business, so the background music sort of goes along with what they do.
I figured having a small frame would be the best way to have the music continue through every page. I'll look in to that.
Now I just need to figure out how to add the flash music.
|
|
Just my $.02 :-)
Ti Powerbook 1Ghz w/ Superdrive ......and lovin' it! :)
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2001
Location: england
Status:
Offline
|
|
is the website all flash? if so, you could do this:
Create a new flash movie, import your sound file and drag it onto the stage.
click the first frme in the timeline, and in the property inspector (the palette at the bottom of the screen) there should be a box that says "loops'- enter something rediculous in there- like 1000, and set the sync to "stream". publish the movie and call it something like "music.swf" (no quotes)
in the first frame of the main site/intro or whatever, add the code
loadMovieNum("music.swf",10)
if you want a button to stop the music, just make a button called "stop" with the code:
on(press){
unloadMovie(10
}
and to start:
on(press){
loadMovieNum("music.swf",10)
}
there are other ways, perhaps better, but this is the most basic and i think it will do what you want it to. Sorry if it isnt- i just needed a break from work so enjoyed posting this 
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Nov 2001
Location: Washington, DC 20009
Status:
Offline
|
|
I'm glad a response to my question gave you a needed break from work. This post is serving a similar function for me this fine morning. ;-)
Unfortunately, the site I built has no flash integrated. I don't know flash at all, so an attempt to develop a flash-based website would be moronic.
Would your example work anyways or do I need to find a different approach? I've already decided that I am going to keep the music on just the first page and explain to my friend that....um....it's not good to have music continuing throughout the user's visit....or something.
Thanks for the responses.
|
|
Just my $.02 :-)
Ti Powerbook 1Ghz w/ Superdrive ......and lovin' it! :)
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Feb 2002
Location: NY
Status:
Offline
|
|
Originally posted by milf:
I'm glad a response to my question gave you a needed break from work. This post is serving a similar function for me this fine morning. ;-)
Unfortunately, the site I built has no flash integrated. I don't know flash at all, so an attempt to develop a flash-based website would be moronic.
Would your example work anyways or do I need to find a different approach? I've already decided that I am going to keep the music on just the first page and explain to my friend that....um....it's not good to have music continuing throughout the user's visit....or something.
Thanks for the responses.
My suggestion would be to have a pop-up window that played the music. This way it can be continuous through the site or the user can just close the window.
I think there is an example at www.arianightclub.com but it doesnt seem to wanna work in safari.
Rather then compromise your work i think a popup box would be the way to go.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Nov 2001
Location: Washington, DC 20009
Status:
Offline
|
|
Redstar,
That is a great idea and I think I will use it. It would be a pain to rework the design I've already created. The pop-up window will also allow the visitors to turn off the music by closing the window.
The music is essentially ad advertisement for an album release. I'll have the pop-up page display for 15 seconds with a picture of the album cover and the music playing. Then I'll use javascript to minimize the window, so that the visitor can continue surfing the site.
Can anyone recommend a good tutorial for adding music to a site using Flash?
|
|
Just my $.02 :-)
Ti Powerbook 1Ghz w/ Superdrive ......and lovin' it! :)
|
| |
|
|
|
 |
|
 |
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
|
|
|
"Have sharp knives. Be creative. Cook to music" ~ maxelson
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|