Forum Moderators: open
I maintain a website for a radio station. I have created a rotation flash file for when someone clicks on the "listen live" streaming audio link, the file pops up.
I need to know how to re-direct people from that flash file (immediately without closing the file) to the online streaming link.
In other words, you go to my website, click on LISTEN LIVE. Up pops a flash file and immediately your media player opens up. And at the same time you have my website, the flash file and media player.
Any help?
But to answer your question, you'd create a transparent button over the visible area in your Flash object, then assign a handler to to the button:
my_button.onClick = function() { getURL(currentURL); }
"currentURL" in this case is a variable that can be a member in an array. So if your flash loads a video or sound from a list, you would have a list of URL's that would coincide with it, each URL would be unique to the sound.
Or if there is a way to stream live audio through flash that I'm also unaware of, that would be another good option.
Just go the frame you want, open up the action tab for this frame and use:
getURL("http://www.google.coom", "_new");
That's all :P
edit: although making the stream in flash seems like a much better idea. I suggest you use this method (of using wmp) for now - and work on a newer version using flash.