Solved

how can i play internet radio from my swf?

Posted on 2008-06-22
3
727 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
3 Comments
 
LVL 17

Expert Comment

by:Dushan911
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Read about why website design really matters in today's demanding market.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now