FLV & SWF player with XML Playlist

What I want is to create a player that can handle SWFs and
FLVs or just FLVs, that load from a XML playlist.
Now I have seen the tutorial (Creating a Dynamic Playlist for
Progressive Flash Video) url:
http://www.adobe.com/devnet/flash/articles/prog_download.html
But this populates a list that you have to click to play the
next movie, but I want it to play swf1 or flv1 then 2 then 3 and so
on, then loop. But I can't find a tutorial for this anywhere?
Any ideas, I need a detailed tutorial or a working example?

I recently made something like that, but then my project
consultor, made me change to use only flv files.
The project is going to be an internal tv channel for a
university, here in Portugal. First I thought of mixing SWF and
FLV's together, but then it required that someone that used the
system, knew how to program SWF's, because you need to change a
flag (variable) at the end of the playback of the SWF. This change
of flag status indicates that this SWF is over and pass to the next
entry of the playlist. Without this, I think that you would never
know when to go to next entry. so, the code resembled a little like
this:
if ((_root.percen_tx.text == "100%") || (_global.over == 1
&& _global.tipo[_global.num]=="1")) {
_global.over = 0;
_root.percen_tx.text = "";
if (_global.num == (_global.filmes.length-1)) {
_global.num = 0;
switch (_global.tipo[_global.num]) {
case "1" :
loadMovie(_global.filmes[_global.num], _root.swf_cont);
_root.descr_tx.text = "";
_root.percen_tx.text = "";
break;
case "0" :
_root.contentor.my_FLVPlybk.contentPath =
_global.filmes[_global.num];
_root.descr_tx.text = _global.descr[_global.num];
break;
} else {
_global.num += 1;
_root.percen_tx.text = "";
switch (_global.tipo[_global.num]) {
case "1" :
_global.over=0;
loadMovie(_global.filmes[_global.num], _root.swf_cont);
_root.descr_tx.text = "";
_root.percen_tx.text = "";
break;
case "0" :
_root.contentor.my_FLVPlybk.contentPath =
_global.filmes[_global.num];
_root.descr_tx.text = _global.descr[_global.num];
break;
A brief explanantion:
_global.over -> 0 (not over); 1 (is over)
_global.tipo -> value that comes from an xml, and
indicates if this playlist entry is a SWF or a FLV (they go to
different MC's);
_root.percen_tx -> Indicates the percentage of the FLV
file that was already read. "100%" is over
This is not the most efficient way to do it, because you can
use listeners and so on, but at the time I abbandoned this, at this
stage. Now it's only FLV, and only a few lines of code.
You can see the project at www.ipvctv.com
Hope it helped a bit.

Similar Messages

  • Creating a FLV video player with full screen option

    > This message is in MIME format. Since your mail reader
    does not understand
    this format, some or all of this message may not be legible.
    --B_3258016930_5977304
    Content-type: text/plain;
    charset="ISO-8859-1"
    Content-transfer-encoding: 8bit
    Hi!
    I am trying to create a video player that will allow full
    screen functions
    like what we can see on youtube. I know how to create the
    window and the pop
    up but the only problem I am having is having the original
    video in the
    small screen to pause or go silent when the full screen mode
    is activated.
    How can get it done?
    Thank you.
    °K.
    --B_3258016930_5977304
    Content-type: text/html;
    charset="ISO-8859-1"
    Content-transfer-encoding: quoted-printable
    <HTML>
    <HEAD>
    <TITLE>Creating a FLV video player with full screen
    option</TITLE>
    </HEAD>
    <BODY>
    <FONT FACE=3D"Arial"><SPAN
    STYLE=3D'font-size:12.0px'>Hi!<BR>
    <BR>
    <BR>
    I am trying to create a video player that will allow full
    screen functions =
    like what we can see on youtube. I know how to create the
    window and the pop=
    up but the only problem I am having is having the original
    video in the sma=
    ll screen to pause or go silent when the full screen mode is
    activated. How =
    can get it done?<BR>
    <BR>
    Thank you.<BR>
    <BR>
    <BR>
    <B>&deg;K.<BR>
    </B> </SPAN></FONT>
    </BODY>
    </HTML>
    --B_3258016930_5977304--

    Hello,
    You should ask in the
    Windows Phone forums on the Microsoft Community forums.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Need help embedding a mp3 player swf with xml playlist

    Im a noob to Flash (started tuesday, haha) and so far everything is coming along just fine, but i need to put music in the swf. I have a button set up that slides a swf mp3 player in from the side but i dont know how to make the playlist work with it.
    The player is from this site:
    http://www.bezzmedia.com/swfspot/samples/flash8/Mp3_Player_with_XML_Playlist
    Using the xml playlist with html is simple enough, but im not sure how to use it with Flash Catalyst. Is there an easy way to do this?
    My original plan was to have a text list of the songs with a play button next to each one, then when you click on the play button it would set the state of any other songs to Stopped so you can just pick what song to play and if another song was playing it would stop. Im not sure how to do this either (like i said, i started learning this week), so i just tried embedding someone else's (ugly) mp3 player.
    Anyway, if anyone knows a relatively easy way to have a playlist in my swf please let me know. Thanks!

    If I understand you correctly, you've imported a SWF into Catalyst using Import Artwork on the File menu. When your app runs, you want to pass that swf a parameter that tells it what URL to read a data file from. The SWF is not one that you've created, rather, you got it from some web site.
    This is not something that you can do in Catalyst. However it should be possible to do in Flash Builder. I found an article discussing several ways to do it, at http://www.actionscript.org/forums/showthread.php3?t=175951. One idea is the following code snippet
    <fx:Script>
        <![CDATA[
        import flash.events.*;
        private function setVars(event):void
            event.target.content.yyyyyy = "zzzzzz";
        ]]>
    </fx:Script>
    <mx:Image source="xxxxx" complete="setVars(event)" />
    where "xxxxx" is the path of the SWF (you can put it somewhere in your Flash Builder project, or reference it via an URL), and yyyyy is the name of the parameter that the SWF expects, and zzzzzz is the path to the data file. The <Image> tag is what Catalyst created when you imported the SWF. (btw.the Image and SWFLoader tags are almost identical).
    I hope this gives you enough info to make progress.

  • Random Play with XML Playlist

    I created a custom flv player and loaded a xml playlist. I
    would like to the play the videos randomly. could anyone help me
    with my script.
    the following is my current action script:
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    ns.setBufferTime(30);
    ns.onStatus = function(info) {
    if(info.code == "NetStream.Buffer.Full") {
    bufferClip._visible = false;
    if(info.code == "NetStream.Buffer.Empty") {
    bufferClip._visible = true;
    if(info.code == "NetStream.Buffer.Stop") {
    ns.seek(0);
    theVideo.attachVideo(ns);
    rewindButton.onRelease = function() {
    ns.seek(0);
    playButton.onRelease = function() {
    ns.pause();
    var videoInterval = setInterval(videoStatus,100);
    var amountLoaded:Number;
    var duration:Number;
    ns["onMetaData"] = function(obj) {
    duration = obj.duration;
    function videoStatus(){
    amountLoaded = ns.bytesLoaded / ns.bytesTotal;
    loader.loadbar._width = amountLoaded * 200;
    loader.scrub._x = ns.time / duration * 200;
    var scrubInterval;
    loader.scrub.onPress = function() {
    clearInterval(videoInterval);
    scrubInterval = setInterval(scrubit,10);
    this.startDrag(false,-5.3,this._y,193.3,this._y);
    loader.scrub.onRelease = loader.scrub.onReleaseOutside =
    function() {
    clearInterval(scrubInterval);
    videoInterval = setInterval(videoStatus,100);
    this.stopDrag();
    function scrubit() {
    ns.seek(Match.floor((loader.scrub._x/200)*duration));
    var theMenu:ContextMenu = new ContextMenu();
    theMenu.hideBuiltInItems();
    _root.menu = theMenu;
    var i1:ContextMenuItem = new ContextMenuItem("::::
    VideoControls ::::",trace);
    theMenu.customItems[0] = i1;
    var i2:ContextMenuItem = new ContextMenuItem("Play / Pause
    Video",pauseIt,true);
    theMenu.customItems[1] = i2;
    var i3:ContextMenuItem = new ContextMenuItem("Replay
    Video",replayIt);
    theMenu.customItems[2] = i3;
    var i4:ContextMenuItem = new ContextMenuItem("Copyright 2006
    VideoLightTV.com",trace,true);
    theMenu.customItems[3] = i4;
    function pauseIt() {
    ns.pause();
    function replayIt() {
    ns.seek(0);
    var vlist:XML = new XML();
    vlist.ignoreWhite = true;
    vlist.onLoad = function() {
    var videos:Array = this.firstChild.childNodes;
    for(i=0;i<videos.length;i++) {
    videoList.addItem(videos
    .attributes.url,videos.attributes.url);
    ns.play(videoList.getItemAt(0).data);
    videoList.selectedIndex = 0;
    var vidList:Object = new Object();
    vidList.change = function() {
    ns.play(videoList.getItemAt(videoList.selectedIndex).data);
    videoList.addEventListener("change",vidList);
    vlist.load("videos.xml");

    Try something like this:
    vidList.change = function() {
    var nextVideo =Math.floor(Math.random()/videos.length);
    ns.play(videoList.getItemAt(nextVideo).data);

  • SWF player with controls

    am to making a SWF player on Flash CS3 (AS2 & AS3) for web with controls like Play, Pause, Forward, Rewind, Time, Seek bar etc.
    This player will load external SWF and user can play them as other movie file play.
    My Player screen size is 300X300Px. I have accomplished all necessary coding for the same and some of the SWF files are playing well but some of the SWF files are not playing well.
    Here is the list of some major problem that I am facing form….
    1.       Some SWF file does not shows scroll bar as they are bigger than my player screen.
    2.       While pressing Pause button, some of the content/animation for the loaded SWF file are stop but some of them are still animating.
    3.       Some SWF file does not show there background (especially color).
    4.       Some of the SWF file does not show actual time/frame as some file shows correctly
    I request to all you Flash developer to please suggest me any possible solution for the above said problems.

    1. swf files are not designed to have/show scrollbars.  That is something you will need to design into your player's functionality.  If the content your player is showing is larger than the viewing area, you need to add scrollbars to your player.
    2. Not everything in a Flash file animates on the main timeline... some elements can be movieclips that animate on their own... and some animations are done using only actionscript.  You would need to know details of each element in the swf so that you could target things and command them as needed to make them stop playing... this is highly unlikely to be able to accomplish.
    3. When you load an swf file into another swf file, it does not include the background it has as an independent file... the background of the main file is the only one used.  Your loaded swfs will have to have background graphics drawn in.
    4.  If I understand what you are trying to explain, this is another case of the main file controlling the show. Whatever the main file's frame rate is, is the frame rate that all loaded swf files use.

  • As3 code to support swf player with control buttons

    i need code for swf player.the player consists of play, pause ,stop, next and previous with seek bar and time control.i had try my code which not support my swf ......the code is ............
    function swfLoadedHandler(e:Event):void {
    trace("swf loaded");
    currentSWF=MovieClip(swfLoader.content);
    playerSwf.btForward.addEventListener(MouseEvent.CL ICK, button_forward);
    playerSwf.btRewind.addEventListener(MouseEvent.CLI CK, button_rewind);
    playerSwf.btPause.addEventListener(MouseEvent.CLIC K, button_pause);
    playerSwf.btPlay.addEventListener(MouseEvent.CLICK , button_play);
    currentSWF.addEventListener(Event.ENTER_FRAME , checkLastFrame);
    function checkLastFrame(e:Event):void {
    if (currentSWF.currentFrame==currentSWF.totalFrames) {
    currentSWF.stop();
    playerSwf.sliderMc.width=(currentSWF.currentFrame/currentSWF.totalFrames)*140;
    function button_forward(e:Event):void {
    currentSWF.nextFrame();
    function button_rewind(e:Event):void {
    currentSWF.prevFrame();
    function button_pause(e:Event):void {
    currentSWF.stop();
    function button_play(e:Event):void {
    currentSWF.play();
    swfLoader.load(swfFile);
    playerSwf.container.addChild(swfLoader);
    function closePlayer(e:MouseEvent):void {
    playerSwf.container.removeChild(swfLoader);
    removeChild(player);
    pls help me with another code to run my swf with player.....and i had attached my swf and player pls help me frds........

    Make your code agree with your file's setup.  If the file you provided for viewing is the file that the code is not working with, it is understandable since the code does not reflect the elements of that file.  Especially since there is no such code in that file, but also because if the code you showed was in that file, it does not target objects properly... mostly due to the lack of an object named playerSwf that your code uses to target all the objects thru.

  • FLV Player with Dynamic Playlist

    So this is the first time I've experimented with a Dynamic
    Playlist in an FLV Player and I'm learning a lot. I found a
    tutorial on the Adobe site similar to what I'm looking to create.
    [URL="
    http://www.adobe.com/devnet/flash/articles/prog_download.html"
    one is for Progressive Download, which I want.[/URL]
    The same person also wrote one for [URL="
    http://www.adobe.com/devnet/flash/articles/video_player.html"
    I only mention that, because in the Streaming version, the videos
    have the standard Adobe video controls in them, and the Progressive
    tutorial does not. Usually I just create my own controls and link
    it to the video component that I'm using, but this tutorial is
    different than I normally roll.
    In the library there is an object type "Video", which I can't
    recall ever seeing before. If I delete it from the stage my videos
    won't play, so it's definitely important. It doesn't give
    parameters like the FLVPlayback does so I can't choose controls on
    it. I don't know if there is a way.
    Or maybe I need to build my own controls and find a way to
    tie them into what we have here, but that would be stretching the
    bounds of my knowledge, and I was hoping to have this up soon to
    send to a potential employer.
    What I'm looking for is some help to get pointed in the right
    direction to just add the controls to the player in that tutorial.
    If there is an "easy button" somewhere that I can push that'd be
    great. If I need to get dirty I'm willing to, but I'm a bit lost
    right now.
    Thanks in advance for any help!

    Search for JW player on Google and look at that.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • Flashvars, loaderinfo for mp3 player with xml

    ok, I am using flash cs5, am pretty new to as3, and I've been trying for 3 days to figure this out, as of yet have not been able to.
    I have built a music community website, obviously members can sign up for an account, and upload mp3 files to their accounts.
    now I'll explain in as much detail as I can.
    Once registration is complete, the php script creates a folder in the members directory on my server with their unique id, then when they go and upload an mp3, it uploads it to their folder and automatically creates a playlist.xml file for the song(s)
    so, I have a prebuilt flash mp3 player that I got from developphp.com, his as3 code calls for a static directory for the audio and xml, now since the flash player will live in the root, and the xml and audio will live in the members/$id folders, I am told to use flashvars and loaderinfo.parameters to do what I need, and that is to load the xml and mp3 files into the player for the profile that is being viewed at that moment, so lets look at what I've put into the html object and embed.
    lets use profile #7
    <param name="movie" value="flplayer.swf?<?php print"$id/playlist.xml" ?>">
                <embed src="flplayer.swf?<?php print "$id/playlist.xml" ?>"> (please tell me if I have done this incorrectly)
    now if we go to the profile.php?id=7 page, thius is what the page source looks like:
    <param name="movie" value="flplayer.swf?7/playlist.xml">
                <embed src="flplayer.swf?7/playlist.xml>">
    now here is where I am stuck, as I said the flash mp3 player urlLoader and URLRequest, and I have been searching for days to figure out what I am supposed to do to get the player to pick up on the flash vars, here is the top part of the as3 code where it calls for the mp3 and the xml.
    stop();
    var myFormat:TextFormat = new TextFormat();
    myFormat.color = "0xFFFFFF";
    list.setRendererStyle("textFormat", myFormat);
    var trackToPlay:String;
    var pausePosition:int = 0;
    var songURL:URLRequest;
    var isPlaying:Boolean = false;
    var i:uint;
    var myXML:XML = new XML();
    var XML_URL:String = "mp3_playlist.xml";
    var myXMLURL:URLRequest = new URLRequest(XML_URL);
    var myLoader:URLLoader = new URLLoader(myXMLURL);
    myLoader.addEventListener("complete", xmlLoaded);
    function xmlLoaded(event:Event):void {
        myXML = XML(myLoader.data);
       var firstSong:String = myXML..Song.songTitle[0];
       var firstArtist:String = myXML..Song.songArtist[0];
       songURL = new URLRequest("mp3_files" + firstSong + ".mp3");
       status_txt.text = "1. "+firstSong +" - "+firstArtist;
         for each (var Song:XML in myXML..Song) {
    i++;
    var songTitle:String = Song.songTitle.toString();
    var songArtist:String = Song.songArtist.toString();
    list.addItem( { label: i+". "+songTitle+" - "+songArtist, songString: songTitle, Artist: songArtist, songNum: i } );
    var myArray = new Array (0,0);
             list.selectedIndices = myArray;
    gotoAndStop(3);
    I am not asking for free work, I'm just trying to get pointed in the right direction, through searching I have been trying to find out how and what to change, and I have been having a great deal of trouble finding the info, I'm ready to pull my hair out.

    ok, here is the object/embed section from dreamweaver
    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="386" height="250">
                  <param name="movie" value="flplayer.swf">
                <embed src="flplayer.swf?xml=members/$id/playlist.xml">
                  <param name="quality" value="high">
                  <param name="wmode" value="opaque">
                  <param name="swfversion" value="9.0.45.0">
                  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                  <param name="expressinstall" value="Scripts/expressInstall.swf">
                  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                  <!--[if !IE]>-->
                  <object type="application/x-shockwave-flash" data="flplayer.swf" width="386" height="250">
                    <!--<![endif]-->
                    <param name="quality" value="high">
                    <param name="wmode" value="opaque">
                    <param name="swfversion" value="9.0.45.0">
                    <param name="expressinstall" value="Scripts/expressInstall.swf">
                    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                    <div>
                      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                      </div>
                    <!--[if !IE]>-->
                    </object>
                  <!--<![endif]-->
                  </object>

  • Flash mp3 player with multiple playlist

    Seeja everybody,
    i have a big problem. i would like to create a multiple
    playlist to my player. the buttons for the playlist's are in the
    same flash as the player. please help me. how can i connect this 5
    buttons (see the picture) to my player? maybe some scripts?
    http://img235.imageshack.us/my.php?image=playerla8.jpg
    HTML CODE
    quote:
    <html>
    <head>
    <meta http-equiv="Content-Language" content="hu">
    <meta http-equiv="Content-Type" content="text/html;
    charset=windows-1250">
    <title>gangsta rap</title>
    <style>
    a:link {color: "#666666"; font-family:Arial; font-size:10px;
    font-weight:bold; text-decoration: none}
    a:visited {color: "#333333"; font-family:Arial;
    font-size:10px; font-weight:bold; text-decoration: none}
    a:hover { color: "#3333CC"; font-size:10px;
    font-family:Arial; font-weight:bold; text-decoration: none}
    a:active {color: "#CCCCCC"; font-family:Arial;
    font-size:10px; font-weight:bold; text-decoration: none}
    </style>
    <base target="hlavní">
    </head>
    <body bgcolor="#1B1B1B" topmargin="2" leftmargin="0"
    rightmargin="1" bottommargin="2">
    <table border="0" width="100%" id="table1" cellspacing="0"
    cellpadding="0">
    <tr>
    <td>
    <p align="center">
    <OBJECT
    codeBase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0 ,0,0
    height=100 width=1000
    classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 align="center"
    hspace="1"><PARAM NAME="movie"
    VALUE="mp3player.swf?playlist=rapfrance.xml">
    <PARAM NAME="quality" VALUE="High"><PARAM
    NAME="wmode" VALUE="transparent">
    <param name="salign" value="R">
    <embed src="mp3player.swf?playlist=rapfrance.xml"
    quality="High"
    width="1000" height="100" wmode="transparent"
    type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    salign="R" /></OBJECT>
    </td>
    </tr>
    </table>
    </body>
    </html>
    thank you for your help very much in anticipation.

    http://www.clickpopmedia.com/2008/04/15/making-an-mp3-player-in-as3/

  • Publishing swf file with xml feed

    I am working in actionscript 3 trying to create a flash banner ad that will be put on multiple sites.  The ad will grab a rss feed and display a number from that feed insie the banner ad.  The Flash file works fine on my local computer when I test it.  The feed is showing up just fine in the ad.  When I publish the ad for the web and test it out on my server, the feed does not display in the ad.  I have checked to make sure network access is selected in the publish settings.  I also have a crossdomain.xml policy file on the server with the feed.  My server is listed in the policy to allow access.  I keep thinking I am overlooking something, but can't figure it out.  Any help would be greatly appreciated.
    Here is the code for the action script:
    var rssLoader:URLLoader = new URLLoader();
    var rssURL:URLRequest =
             new URLRequest("http://www.rssfeed.com/rssfeed");
    rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
    rssLoader.load(rssURL);
    var rssXML:XML = new XML();
    rssXML.ignoreWhitespace = true;
    function rssLoaded(e:Event):void{
        var rssXML:XML=new XML(e.target.data);
    trace (rssXML);
        if (rssXML.channel.item[0].description >= 61)
            {rssXML.channel.item[0].description="60+"}
            testXML.text=rssXML.channel.item[0].description;
    Here is the crossdomain.xml policy file:
    <?xml version="1.0"?>
            <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
            <cross-domain-policy>
            <allow-access-from domain="domain.net"/>
            <allow-access-from domain="www.domain.net"/>
            <allow-access-from domain="anotherdomain.com"/>
            <allow-access-from domain="www.anotherdomain.com"/>
            <allow-access-from domain="yetanotherdomain.com>"/>
            <allow-access-from domain="www.yetanotherdomain.com>"/>
            </cross-domain-policy>
    Message was edited by: WRGrun262

    try:
    Security.loadPolicyFile("http://www.rssfeed.com/crossdomain.xml");
    var rssLoader:URLLoader = new URLLoader();
    var rssURL:URLRequest =
             new URLRequest(http://www.rssfeed.com/rssfeed);
    rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
    rssLoader.load(rssURL);
    var rssXML:XML = new XML();
    rssXML.ignoreWhitespace = true;
    function rssLoaded(e:Event):void{
        var rssXML:XML=new XML(e.target.data);
    trace (rssXML);
        if (rssXML.channel.item[0].description >= 61)
            {rssXML.channel.item[0].description=60+}
            testXML.text=rssXML.channel.item[0].description;
    this should be crossdomain.xml in the rssfeed.com root directory
    <?xml version="1.0"?>
            <!DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd>
            <cross-domain-policy>
    <site-control permitted-cross-domain-policies="master-only"/>   
    <allow-access-from domain="domain.net"/>
            <allow-access-from domain="www.domain.net"/>
            <allow-access-from domain="anotherdomain.com"/>
            <allow-access-from domain="www.anotherdomain.com"/>
            <allow-access-from domain="yetanotherdomain.com>/>
            <allow-access-from domain="www.yetanotherdomain.com>/>
            </cross-domain-policy>
    Message was edited by: WRGrun262

  • Swf import with xml etc.

    Hi,
    I've got an swf photogallery but it pulls it's data from an xml and I was wondering how I would import this?
    The idea is that when someone clicks photo gallery in the menu it goes to a seperate page where to photogallery automaticly loads. If someone could explain me how to do this I would be very greatfull.
    (right now when I just import the swf, it does nothing at all)
    Jason.
    This is the photo gallery I'm talking about: http://www.mediafire.com/?cemjgyozlwk

    This question has been answered in the FAQ.
    Please see if the discussion there answers your question.
    -Bear

  • Making xml playlist to play swf files inside one swf

    Hi,
    I have made an swf file and xml playlist.
    I want to include swf filepaths in xml playlist so i would be able to choose from my the list, which file i want to play.
    My list-component reads data from the xml, but i cannot get the swf files open there.
    I will attach my .fla file so you understand what i'm talking about.
    the .fla:
    http://www.mediafire.com/file/m24dz0gmzwz/Untitled-1.fla
    xml file:
    http://www.mediafire.com/file/gdyzzymy5mn/swfList.xml
    would you guys look at my files? i know i can play .flv files but i want to know how to play swf files inside another swf. The swf files should be loaded to  by the xml list.

    Hi
    we want to give some clarifications
    As per our requirement we need to play same swf file ( about
    5 in number) always.
    These swf files are kept in some folder and during run time
    we need to play these swf files inside our Mac / windows
    application using flash player.
    we don't need to play any swf file, but the same swf files
    we need a api / sdk to implement this
    Any help will be very well appreciated
    Sudesh

  • Problems with FMS2 streaming flv through xml playlist

    I've been testing for the first time FMS2 and has been quite
    a pain to make it work, I've been able to stream a single flv file
    but now that I've tried to stream multiple flv using a xml playlist
    (using the same example provided in
    http://www.adobe.com/devnet/flash/articles/video_player.html)
    and it wont work.
    I have IIS and FMS2 in the same computer.
    In the example provided by Adobe was an error in
    VideoSource.as in line originally was:
    my_FLVPlybk.contentPath = nav.attributes.url + "/_definst_/"
    + stream.attributes.name+".flv";
    And had to change "/_definst_/" to "_definst_/" to make it
    work, since path are:
    rtmp://localhost/videsource/_definst_/fish.flv for example
    and not:
    rtmp://localhost/videsource//_definst_/fish.flv
    Once that was solved and tested it works locally (in the same
    machine where the server is installed) but when testing from
    another computer it doesn't stream any videos.
    All the files are place the way it supposed to be in:
    \applications\videosource\streams\_definst_ (here are the
    videos)
    \applications\videosource (here is the main.asc)
    Then in IIS:
    \Inetpub\wwwroot\playlist (playlist-demo-1.xml,
    VideoThumb.as, VideoSource.as, VideoSource2.html, VideoSource2.swf,
    SteelExternalAll.swf).
    When tested local with
    http://localhost/playlist/VideoSource2.html
    or
    http://localhost/playlist/VideoSource2.swf
    works, but
    when trying from another computer in the same network or
    outside with
    http://my_server/playlist/VideoSource2.html
    wont stream like I said before.
    In the single flv stream (without xml playlist) I seem to be
    able to stream, just made a .fla with a FLVPlayback component
    pointing to: rtmp://localhost/test/_definst_/test.flv
    And trying
    http://my_server/test.html
    works fine.
    I've done the following:
    1. Added a MIME type to IIS for .flv and .swf
    2. Vhost.xml is open for all networks
    (<Allow>All</Allow>)
    3. Change the Global Security Settings for the Flash Player
    to access the .flv on the IIS server.
    4. No firewalls activated (for testing purposes).
    And it works with the single .flv stream but not with the
    xml playlist and I've run out of ideas or what to do, so I'm in
    need of anyone who can help me out and give me some insight.
    Thanks in advance.

    Sounds like a Flash Player security issue because you are
    running from a desktop. One of the items that can be different
    between Test Movie and a published test is security and any
    internet protocol. Flash Security errors fail silently.
    Look at
    NetConnection.connect
    method for the security warnings and references.
    If you plan to deploy from a web server, test there and it
    will likely work.

  • Player with external html-playlist

    Hey Everybody!
    I'm quite new with Flash, but dying to now more about it (and being able to make all kinds of wicked things).
    But for now, I'm a noob yet. With a question I really can't figure out myself:
    I made a video player in flash (AS 3.0, Flash CS3), which plays an .flv file. It works great and when I export it, I get an perfectly working .swf file that plays the .flv file.
    But what I want now is to make the .swf file play different .flv's each time. So I want to create a playlist. But the playlist must not be in flash but in HTML (and javascript I guess). So I want that one link in the html can influence the .flv source of the .swf player. (right now the .flv source is included in the .swf file).
    Could anyone please explain to me how I can do that in simple non-professional english...?
    I would be very very thankfull!
    And thanks for your time anyway!

    What you might prefer to do is to have an xml data file rather than editing the html/javascript of the web page.  To have a Flash file work with javascript in the page is more complicated to understand than using an xml file because you have to use ExternalInterface (which can cause your face to wrinkle up trying to reason it out at times).
    Here's a link to a tutorial that will show you how you can use a simple RSS feed (xml data file) to provide data to the Flash movie...
    http://www.gotoandlearn.com/play?id=64

  • Require Help with Flash Video XML Playlist

    flash devs,
    all i'm doing to playin videos from a xml file - (used lots
    of info and code from Lee's XML Video Playlist Tutorial)
    after spending hours getting this to work correctly in AS3
    and how i want it to work i've hit a brick wall
    i've got 2 components on stage - vid_select (List) & vid
    (Player)
    i can load my flv videos from my xml file just perfect but
    after the first video is done it stops.
    i'd like to have my video player play through the xml file
    and then restart at the beginning...
    i've attached my code...
    if anyone could possibly help me so that it "loops" through
    all the video in my xml list that would be
    so greatly appreciated...
    i'm new to AS and am learning alot but some code gets
    complicated and i'm not sure what to add...
    thanks in advance
    @pixeladdikt

    Again thank you for your help in advance...
    I put the script folder into the root. As far as the .flv
    file it is showing up as being "put" to my web server. when i
    checked the root folder it is there. again i am having the same
    problem.. the local view works but when i check it on the web it
    just shows that there should be a flash video there but it does not
    show up.
    i created a new root for this test page the new link is..
    http://www.wfwa.org/TESTindexfolder/TESTindex.asp
    here are the files that are showing up in it...
    flashprojectwebvid.fla
    flashprojectwebvid.html
    flashprojectwebvid.swf
    PBSpromo.flv
    SteelExternalPlaySeekMute.swf
    TESTindex.asp
    and the Scripts folder
    thanks again for any help..

Maybe you are looking for