two flash Qs
- Started
- Last post
- 1 Response
- xaoscontrol
1)
I'm adding an mp3 player to my new site. It loads mp3 by way of xml and what I'd like to do is have it start playing when the user comes to the site. That I have figured out and it works fine. I have flash movies with sound in them so I don't want the music from the mp3 player to compete with the sound in the movies. Anyone have any good suggestions on how to handle that? I have my main timeline with the first frame containing the preloader and the second the main movie clip. That main MC would have all of the sub MCs within. I thought of setting the button to tell the mc to go to another frame in the main MC which could have an action in it telling the mp3 player to pause or stop or something....music is streaming, btw..and then have a 'reset' or something which would bring the movie back to its original state. The thing is that I'm afraid that will not only cause the movie to reset, but the mp3 player to reset as well...so then it would go back to the beginning of the first track on the tracklist..where I'd rather it pause or start playing another track. Then again, I do offer the ability to change tracks so if somone got sick of the first song, they could click ahead to the next.
Heavy.com has something similar to what I would like to do.
2)
This is stupid but I'll ask anyway:Does anyone know if there is a limit number of javascript pop-up windows that a flash movie will open? Not at once, of course....one window at a time. If I use the same line of javascript code in getUrl=" url" more than 6 times, then any link after that 6th link doesn't want to work. Ive had this issue but have never inquired about it.
Anyway...any suggestions would be greatly appreciated.
- unfittoprint0
#1 construct a pause function for the main Sound object. use the position sound property to get the track's current pos, link it to a variable. Whenever you would like to start your main movie, just use the start in the 'saved' track position.
#2 not that i'm aware of.