Solved

how can i play internet radio from my swf?

Posted on 2008-06-22
3
730 Views
Last Modified: 2008-10-14
So i am looking to start playing an internt radio station through my swf.  I found the radio station on the net and want to incorporate it into my project.   The code there is what i have on the page to get it to play.  anyway i can put that into a flash file and make it play from a button or something?
<?php include("http://ads.fusionchicago.com/campaigns/functions.php"); ?>      <a href="http://ads.fusionchicago.com/campaigns/assets.php?id=myspaceradio" target="new">
      <?php insert_one(ID): ?>
      </a>      <embed allowScriptAccess="never"name="Player1"  style="FILTER: xray; background:336699"pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://www.fusionchicago.com/streams/128.asx" width="72" height="25" type="application/x-mplayer2" showtracker="0" showstatusbar="0" displaysize="false" autosize="0" autoplay="true" volume="100">

Open in new window

0
Comment
Question by:flashactions
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 21843770
var my_sound:Sound = new Sound();
my_sound.loadSound("http://www.helpexamples.com/flash/sound/song1.mp3", true);

0
 
LVL 12

Expert Comment

by:SamuelRostol
ID: 21843977
Dunshan: Does that play a streaming radioconnection as well, or just a mp3-file?
0
 
LVL 8

Accepted Solution

by:
Dreammonkey earned 500 total points
ID: 21844388
This will only play MP3 files, the Sound() function in Flash only supports mp3
I think you'll have to load the code above into a blank html window...
put code on button like


listenToRadio_btn.onRelease = function(){
    _root.createEmptyMovieClip("loader_mc", this.getNextHighestDepth());
    loader_mc.getURL("http://www.streamradio.com","_blank");
}

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question