?
Solved

how can i play internet radio from my swf?

Posted on 2008-06-22
3
Medium Priority
?
741 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 2000 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

Industry Leaders: 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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

765 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