Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-11-2012, 06:22 PM   #1
anor8ografos
unknown user
 
Join Date: Apr 2012
Location: fcing greece
Posts: 2
Default embeding external code

hi all.
i am here because i cant solve my problem on google(dont ask me ask google) about how to embed code in a new flash project.
My question is very simple.
My radio streaming provider (caster.fm) allow me to embed there player in my blog or site.
Everybody knows wix.com
is so easy to embed the player in there site.But how do i do that in my own flash project?
anor8ografos is offline   Reply With Quote
Old 04-12-2012, 03:07 AM   #2
tango88
FlashByNight.com
 
tango88's Avatar
 
Join Date: Aug 2006
Posts: 289
Default

Basically, you are talking about embedding code in an HTML document compared to "embedding code in a Flash movie".

Unfortunately, Flash doesn't work that way. You need to import the assets and handle it from inside the Flash movie. This would be a reasonably advanced task, although in the end, it might not be so many lines of code.

For example, a podcast may be an mp3 file with the details kept in an XML document. So you would need flash to read the XML file first and then use the details to import or stream the mp3.

In order for us to help you, you need to give more and clearer details. At the very least, you need to give the filetypes you are dealing with.
__________________
Games and more:
Flashbynight.com | Tutes | Twitter
tango88 is offline   Reply With Quote
Old 04-12-2012, 06:30 AM   #3
anor8ografos
unknown user
 
Join Date: Apr 2012
Location: fcing greece
Posts: 2
Default

@tango88
thx for advanced.. i have only a single line of code

Code:
<script type="text/javascript" src=".......caster.fm/embed.php?uid=14141"></script>
the rest must be easy i gess to understand.
on an emty movie i want flash go and play that code (1st step)
anor8ografos is offline   Reply With Quote
Old 04-13-2012, 06:31 AM   #4
tango88
FlashByNight.com
 
tango88's Avatar
 
Join Date: Aug 2006
Posts: 289
Default

Right. So this is a line of Javascript code which, in turn, calls a php script, which uses the variable uid=14141 to fetch a video or data stream.

To make a long story short, you are NOT going to be able to drop that line of code into Flash.

In fact, one of the reasons for using a php script is to hide the mechanics of what is happening here. Now we don't know the filetype or the location it's being fetched from.

Maybe someone else has an idea to help you; I don't know.
__________________
Games and more:
Flashbynight.com | Tutes | Twitter
tango88 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:22 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.