Loading Flash Video through XML

Hello,
I have an Flash gallery that loads dynamic content from an
XML file. I'm trying to display a flash movie in the main display
section, so when a user clicks a thumbnails the corresponding video
would play in the main display area. Right now the thumbnails are
displaying wonderfully but when I try to load an external swf file
using the loadClip() method, that itself is the the container of an
FLV(01.swf + 01.flv), the video doesn't play. Nothing loads. But
the funny thing is I tried to load a simple swf file and it loads
fine. I'm guessing it has to do with the video. There's some
drawback to loading flash videos in this manner. I've attached the
code, and would appreciate any help. Thanks.

check the path to your video. it should be relative to the
_level0 swf's embedding html.

Similar Messages

  • How do i load an image through XML?

    Hi.
    My code is below. What I am trying is to dinamically load images from xml. I attach the holder from the library, and when i try to target it and addChild to him i get an error:
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    xmlLoader.load(new URLRequest("links.xml"));
    var xmlLength:int;
    var iconPos:Number = 0;
    function LoadXML(e:Event):void {
    xmlData = new XML(e.target.data);
    var xmlLength = xmlData.link.length();
    for (var i=0; i<xmlLength; i++) {
    var d:MovieClip = new icon();
    content_mc.addChild(d);
    d.name = "d"+i;
    var target:DisplayObject = content_mc.getChildByName("d"+i);
    var ldr:Loader = new Loader();
    ldr.load(new URLRequest(xmlData.link[i].icon));
    target.addChild(ldr);
    How can i make this happen and load the image into it's holder?
    Thank you.

    Code from adobe's sample packages cut&&paste&&edit:
    AS4 code:
    import flash.events.IOErrorEvent;
    var fotoElenco:Array;
    var fotoXML:XML;
    var fotoURLRequest:URLRequest=new URLRequest();
    var fotoURLLoader:URLLoader=new URLLoader();
    var fotoLoader:Loader=new Loader();
    var fotoPosition:Number=0;
    var errorMessage:TextField=new TextField();
    caricaFoto();
    function caricaFoto():void
        addChild(errorMessage);
        fotoURLRequest.url="gallery.xml";
        fotoURLLoader.load(fotoURLRequest);
        fotoURLLoader.addEventListener(Event.COMPLETE, showFoto);
        fotoURLLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorEventXML);
    function ioErrorEventXML(event:IOErrorEvent):void
        manageErrorMessage(true, 0);
    function manageErrorMessage(val:Boolean, num:Number):void
        if(val && num==0){
            errorMessage.x=stage.stageWidth/2;
            errorMessage.y=stage.stageHeight/2;
            errorMessage.text="Errore caricamento file XML";
        if(val && num==1){
            errorMessage.x=stage.stageWidth/2;
            errorMessage.y=stage.stageHeight/2;
            errorMessage.text="Errore caricamento file IMMAGINE";
    function showFoto(event:Event):void
        fwd_mc.buttonMode=true;
        back_mc.buttonMode=true;
        back_mc.addEventListener(MouseEvent.CLICK, manageFoto);
        fwd_mc.addEventListener(MouseEvent.CLICK, manageFoto);
        fotoElenco=new Array();
        fotoXML=XML(fotoURLLoader.data);
        for each(var prop:XML in fotoXML.foto)
            fotoElenco.push({url:prop.@url, didascalia:prop.@didascalia});
        viewFoto(fotoPosition);
        gallery_mc.addChild(fotoLoader);
        manageButton();
    function manageButton():void
        if(fotoPosition<1){
            back_mc.visible=false;
        }else{
            back_mc.visible=true;
        if(fotoPosition>=fotoElenco.length-1){
            fwd_mc.visible=false;
        }else{
            fwd_mc.visible=true;
    function manageFoto(event:MouseEvent):void
        switch(event.currentTarget)
            case fwd_mc:
                if(fotoPosition<fotoElenco.length-1)
                    fotoPosition++;
            break;
            case back_mc:
                if(fotoPosition>0)
                    fotoPosition--;
            break;
        viewFoto(fotoPosition);
    function viewFoto(num:Number):void
        fotoLoader.load(new URLRequest(fotoElenco[num].url));
        fotoLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorEventIMG);
        didascalia_txt.text=fotoElenco[num].didascalia;
        manageButton();
    function ioErrorEventIMG(event:IOErrorEvent):void
        manageErrorMessage(true, 1);
    XML code:
    <?xml version="1.0" encoding="UTF-8"?>
    <gallery>
        <foto url="img/immagine1.jpg" didascalia="Didascalia 1 foto"/>
        <foto url="img/immagine2.jpg" didascalia="Didascalia 2 foto"/>
        <foto url="img/immagine1.jpg" didascalia="Didascalia 1 foto"/>
        <foto url="img/immagine2.jpg" didascalia="Didascalia 2 foto"/>
    </gallery>

  • Problem loading flash video

    My nephew set up my website for me and showed me how to load
    video files three years ago. I am now trying to add some more but
    the Insert > Media > flash route is uploading the files but
    they're not appearing anywhere on the specified pages. The other
    folders with flash video have files called
    FLVPlayer_Progressive.swf and clearSkin_1.swf. What do these do and
    how do I get them into the new folder I am creating for the new
    flv. files?

    It would've been better if you posted a url. A first guessing
    it's that
    you inserted with the wrong choice. It should've been
    insert>Media>Video
    Flash.
    Anyway for more help post a url pls.
    Cheers
    InCog wrote:
    > My nephew set up my website for me and showed me how to
    load video files three
    > years ago. I am now trying to add some more but the
    Insert > Media > flash
    > route is uploading the files but they're not appearing
    anywhere on the
    > specified pages. The other folders with flash video have
    files called
    > FLVPlayer_Progressive.swf and clearSkin_1.swf. What do
    these do and how do I
    > get them into the new folder I am creating for the new
    flv. files?
    >

  • Loading  Flash Video in Dreamweaver

    Hi:
    I'm moderately experienced with Dreamweaver and have just
    begun using flash to create videos. I created a flash video and a
    swf. file in flash and it all worked fine. I then put the entire
    folder (flash project, flv video and swf file) on my web site. When
    I insert the swf. it won't play in dreamweaver or in preview in
    browser. I've had a little tutoring in this and my tutor thought
    that dreamweaver can't locate the swf file even thought the content
    path seems to be fine.
    I've tried a few different ways and it just doesn't work. Can
    anyone suggest any things I can look at to solve this. I know that
    this should all work so I assume I have a setting or preference set
    incorrectly.
    Any ideas.
    Thanks,
    Rex

    KB Boy wrote:
    > The url is www.whitepineproductions.ca/MaxBates2.html
    The code on that page looks as though it is generated by
    Dreamweaver CS3
    (or possibly an earlier version of Dreamweaver). Dreamweaver
    CS4 uses
    different code, which can be inserted in a template editable
    region
    without difficulty.
    To get around the problem in your case, deselect the option
    to prompt
    users to download the Flash Player if necessary. That's what
    is
    preventing you from using an FLV in a template page.
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com

  • Load Commodity codes through XML

    Hi,
    I'm trying to upload the commodity codes through an XML file.
    Transaction code - /SAPSLL/LLNS_UPL102
    I'm getting the following error.  Can someone help me with this.  Can anyone send me a file with the correct format which was accepted here earlier.
    Error during consistency check for numbering scheme : Initial load
    Message no. /SAPSLL/CORE_LLNS060
    Diagnosis
    The file to be uploaded is an initial file. This means that numbers and the corresponding scheme definition must not already exist in the system.
    System Response
    Processing is suspended.
    regards
    Surender

    Hi,
    I'm trying to upload the commodity codes through an XML file.
    Transaction code - /SAPSLL/LLNS_UPL102
    I'm getting the following error.  Can someone help me with this.  Can anyone send me a file with the correct format which was accepted here earlier.
    Error during consistency check for numbering scheme : Initial load
    Message no. /SAPSLL/CORE_LLNS060
    Diagnosis
    The file to be uploaded is an initial file. This means that numbers and the corresponding scheme definition must not already exist in the system.
    System Response
    Processing is suspended.
    regards
    Surender

  • Firefox will not load any flash video, on any website.

    Hello, just recently firefox decided to stop loading flash video.
    Eg. Youtube, metacafe, etc.
    I tired uninstalling flash and reinstalling it, uninstalling firefox and reinstalling it, ive also tried scanning for viruses, and nothing has worked. Sometimes it will load the advertisement for youtube videos but thats it, after that it just stays black and the controls for the player still work as normal, but there is no video or audio.
    I've tried to install a different browser to see if that would make a difference and it did, i can view flash videos on chrome but the moment i go back to firefox, videos dont work anymore.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    Your More system details list shows some modified network.http prefs that do not have the default value.<br />
    Try to disable HTTP pipelining and reset all user set network.http prefs via the right-click context menu to their default values.
    *http://kb.mozillazine.org/about:config
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)

  • Uploading .FLV (flash video) to Windows 7 quicktime

    I am looking to load flash video (.flv) files to quicktime so I can download to IPOD. Does quicktime pro do this or is there some software that will allow me to do it?
    I do not know of another method to get them on the IPOD.
    Thanks,
    Dwamp

    Try this : http://www.formatoz.com/
    It will convert anything from, to and back again for the iPod.
    Edit : You can also simply change the extension to .mov or .m4v.
    If the .flv file contains h.264/aac then that's it.
    Message was edited by: Wyodor

  • Brightcove video through BM

    Hello all,
    I am having an issue with brightcove media. Brightcove.com provide media for sites like the history channel. When we visit the site, the prview of the video comes up but we can not get the actual videos. It seems to be any site that uses flash video through brightcove.com.
    We currently run BM 3.7 with all up to date patches and proxycfg file from Craig's web site.
    Anyone else have this problem and have an easy solution? I do not want to spend too much time on this one as we are planning on replacing our BM 3.7 servers with new hardware and upgrading to BM3.9 in the very near future.
    Thanks,
    Steve D.

    In article <[email protected]>, Sjdimare wrote:
    > Anyone else have this problem and have an easy solution? I do not want
    > to spend too much time on this one as we are planning on replacing our
    > BM 3.7 servers with new hardware and upgrading to BM3.9 in the very near
    > future.
    >
    Can you give exact URL's and testing sequence to show the issue? I can
    try it through some BM 3.9 servers, and if you give easy-to-follow testing
    procedure, others usually give it a try also.
    Craig Johnson
    Novell Support Connection SysOp
    *** For a current patch list, tips, handy files and books on
    BorderManager, go to http://www.craigjconsulting.com ***

  • Flash Video Issues In Safari 5 w/ 10.1 Flash Plugin

    Hey Folks-
    I've tried everything I can think of and read everything I could find, but I am still finding that there are a variety of flash-based video sites with content that is not loading. Some flash video loads, some does not. The pattern is not at all clear, but for example, the flash video on PBS.com and ESPN.com always fails to load. This development seems to be new to Flash 10.1, but does not replicate in any other browser.
    I've uninstalled and reinstalled flash, repaired permissions, cleaned out the plugins folder, reapplied the OS combo update, etc, etc. No change.
    Below are the errors that show up in the activity log associated with a few failed flash video loads- I'm not really clear on how the plugin works on the backend, so I am not sure I can make heads or tails of these, but I knew some of you would be able to. Any suggestions are welcome! Thanks very much!
    http://fpdownload2.macromedia.com/get/flashplayer/update/current/install/version .xml10.1.82.76~cpuArchitecture=x86_64&lang=en&os=Mac&osVer=10.6.4&playerType=pl& cpuWordLength=64 (NOT FOUND)
    http://www-tc.pbs.org/video/media/images/assets/videos/1397474775/1397474775_Par tnerPlayer.jpg (NOT FOUND)
    UPDATE:
    When trying to load flash video content on ESPN just now, the video starts to load, then the flash controls disappear and the video just remains black. The browser reports no errors and nothing shows up in the activity log.

    This may be applicable to your problem:
    Update 10.6.4 included an out-of-date version of FlashPlayer*. Try deleting it and installing the latest one from Adobe even if it has the same version number as the one you have:
    The latest version of Adobe FlashPlayer can be obtained from here:
    http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash
    (You can check here: http://www.adobe.com/products/flash/about/ to see which version you should install for your Mac and OS.
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157
    and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe.
    * To avoid this situation in the future, Apple recently announced that Macs would in future not have Flash Player pre-installed, precisely to avoid this situation, saying:
    We're happy to continue to support Flash on the Mac, and the best way for users to always have the most up to date and secure version is to download it directly from Adobe.
    They also noted that this will be happening across all Macs in the future, though there may be some models still in the channel with Flash pre-installed.
    (Source: http://www.engadget.com/2010/10/22/apple-responds-on-missing-flash-in-new-macboo k-airs-says-get-us/ )

  • No sound on flash videos on the internet after suspend and hibernate

    I have this:
    00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller
    Everytime I resume from suspend or hibernate with firefox open alongside with fully loaded flash videos, playing the videos doesn't produce any sound anymore.  I need to restart firefox in order to make it work again..:(
    Any ideas?
    Thanks for the help in advance

    I'm also having this problem.  Xfmedia plays audio just fine before and after suspend/resume, but pandora.com and hulu.com in firefox do not.  Also noticed that CPU usage skyrockets when trying to restart audio/video after resume in pandora/hulu.  In hulu, video restarts, but audio does not. 
    Interestingly, CPU usage also spikes if I restart audio in Xfmedia after resume, but the CPU hog is firefox not Xfmedia and Xfmedia audio plays just fine.  Have to close the hulu or pandora tab to get the CPU usage back to normal.  Wondering if it's just a bug in flash for linux.
    My hardware/software:
    MSI PR201 laptop
    Linux jims_laptop 2.6.30-ARCH #1 SMP PREEMPT Mon Jul 20 11:20:32 UTC 2009 i686 Intel(R) Core(TM)2 Duo CPU P7350 @ 2.00GHz GenuineIntel GNU/Linux
    00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
    local/alsa-lib 1.0.20-1
        An alternative implementation of Linux sound support
    local/alsa-oss 1.0.17-1
        OSS compatibility library
    local/alsa-utils 1.0.20-2
        An alternative implementation of Linux sound support
    local/gstreamer0.10-bad-plugins 0.10.12-1 (gstreamer0.10-plugins)
        GStreamer Multimedia Framework Bad Plugins (gst-plugins-bad)
    local/flashplugin 10.0.22.87-1
        Adobe Flash Player
    local/firefox 3.5.1-1
        Standalone web browser from mozilla.org

  • 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..

  • Flash video on web page takes long very time to load before it starts playback

    I just created a basic flash file to play a video on my web page and it's taking several minutes to load before it starts playback.
    I'm using progressive downlaod and the file is in *.mov format and is 84MB in size. At first that seemed large to me for web play back, but I thought it could handle it since I thought the way progressive download works is that it would start playing the first frame right away and progressively play other frames as they download. However, this seems to be downloading the whole file first (or a major part of it) before starting any playback at all.
    Is there some kind of setting I'm missing or is my understanding of the download incorrect and the file size is too large?
    Some vitals:
    - I'm using Flash Pro CS5
    - To create my flash file, I used the standard import video wizard and selected the a file that is "on my computer" and "load external video with playback component" and then, I selected one of the standard skins.
    - To deploy the vidoe on my webiste I have three files:
    1) swf file containing the FLV component
    2) the swf file related to skin
    3) the actual video (84MB, mov file)
    - Web page includes/embeds reference to swf file

    Thanks for your response again. Looks like things have changed a bit to complicate this a little more.
    adninjastrator wrote:
    Are you saying that if I wait long enough it will start to play .... from the link you posted?
    What you are implying here is correct. The file won't play no matter how long you wait.  Looks like it's because of the "source" file settings in the Import Wizard may now be incorrrect. This is why it's not playing in the new file. 
    When I created my original Flash Video using a MOV file, during the import wizard, when asked "Where is your video file?" I selected the option "Already deployed to a web server...". Here I entered the url to where the video file is located on my production server.
    When I created the new Flash Video using F4V file, during the import wizard, when asked "Where is your video file?" I selected the option "On your computer". Here I selected the file from my local drive.
    Sorry for not pointing out the inconsistency earlier - I didn't think it mattered and plus I couldn't get the F4V file to import from the web server.
    Anyway, I've changed my object tag using the acutal published html that flash generates and have uploaded all source files to same location.
    http://www.upperhand.com/tv/video-intro.html
    To sum up the problem(s) I need help with:
    Issue #1 - When trying to import F4V file using import wizard, I cannot use "Already deployed to a web server..." as an option for the file location. I believe this is creating issue #2
    Issue #2 - For some reason, the F4V file will not load into the SWF file when it's published to my production server. 
    It works when viewing locally through browser as c:\inetpub\wwwroot\mywebsite\video-intro.html
    It doesn't work when viewing on development server through browser as http://localhost/mywebsite/video-intro.html
    It doesn't work when viewing on production server through browser as http://www.mywebsite.com/video-intro.html
    Issue #3 - When the above are resolved, I'm not certain if my orignal question/issue will be resolved...  browser tries to downlaod full file before any playback.  

  • Embeded Flash files stop loading part way through after update to 10.2

    Hello, I am currently having an issue with Flash. After the last update to 10.2, flash files, both audio and video, stop loading part way through them and do not start up again. For instance, on youtube, about 2 minutes worth of video will load but load slowly and then stop completely. The only way to get it to advance is to click past the section that has loaded and it will load the next 2 minutes. On Myspace Music, a song plays about 40 seconds each time and stops completely and will not load anymore, even if I try to skip to another part of the song. I am running Windows 7 Ultimate 64bit edition with Firefox 4.0 Beta 12 64 bit edition as well. Also I have tried clearing my cache, cookings, temp files, removing and installing Flash countless times, including older versions, as well as tried Google Chrome and IE. All give me the exact same issue no matter what I do. It is really frustrating because I cannot watch or listen to anything embeded in Flash online without having to keep clicking the next section every little bit. If anyone can help, please do and I thank you.

    Hi, Since your OS is a 64bit, are you using the 32bit browser for IE? I see you have the FF beta. Have they come out with a 64bit browser? I don't follow the FF beta so if that's true, it's news to me.
    Let me know,
    Thanks,
    eidnolb

  • Loading flash through ajax does not work in IE 6.

    Hi all,
    I am having some problems on a site I'm developing. When I
    load a video from youtube, etc, and do so dynamically through ajax,
    it does not work on IE 6. Mind you it does work on all other
    browsers. This problem happens with multiple copies of IE 6 so it
    is reproducible. Not sure if there are any web devs here but any
    help would be greatly appreciated.

    Well, this probably belongs over in the Flash forum. That's
    where the developer questions go.. It's surely a matter of the way
    the code is written (or possibly the paths to the different
    components. There are security restrictions on certain types of
    loading that may also come into play. Hard to tell without more
    detail.

  • Loading video via xml

    I am trying to build a simple applications driven by a flat
    xml file and adobes spry framework. I am developing a news console
    that supports video. Here is what I am trying to do:
    I have an xml file which list various parts of the "news
    console" eg. headline, story, video ect.
    The video however is hosted through vimeo. Is there a way to
    embed video that is hosted on another site through xml and have it
    appear on an html page? How would I go about doing this?
    I tried placing the embed code form vimeo using cdata but all
    that does is make the code appar on the page and not the actual
    video.
    I would really like it if someone could steer me in the right
    direction.
    Thanks

    the swftools module in Drupal has a generic player that only has autoplay available. Since my client wishes not to have the videos autoplay, installed and configured another video player module called Flowplay, but apparently that has issues with xml.
    So I've installed and configured another module called JW Player. I can set this up on the server that the Drupal install is on, but when I try to get a video to play using
    "xmlPath: "http://www.mydomain.com/feeds/video/93/detail.xml", it won't play it.
    If I put a video on the same site as the Drupal install, it finds it and plays it with the JW skin. My client will want to use the other more appealing video player skin.
    Also I think the code "swfPath: "http://www.mydomain.com/videos/swfs", may call the skin and some options that appear after the video has played. Both xml's don't seem to work. Investigating this is when I found out about Flash's problem with xml being used when more than one server is used.
    so there are 4 things workinghere: Drupal, Flash, xml and javaScript. It's complicated. maybe it makes sense to see if the code I'm using (the xml) is right. the videos were playing before so the xml was getting to the other server. that's what puzzles me. thanks, any ideas?

Maybe you are looking for

  • Install CUE 8.6.1

    Hi, I have an ISM module with the wrong image (SRSV instead of normal CUE) I have downloaded "cue-vm-full-k9.SPA.sme.8.6.1.prt1" and I am using the command: service-module isM 0/0 install url ftp://cisco:[email protected]/cue-vm-full-k9.SPA.sme.8.6.1

  • Issue installing System Update 5.01

    Hello all I am having an issue installing System update 5.01.  I looked in the logs within the temp directory and it says error 1602 which is user canceled.  However, I am not canceling the install.    I also tried http://support.microsoft.com/mats/P

  • How to read a file content from portal

    Hi experts, I have a file (xml or xlsx), which i have kept in D drive. then using GUI_UPLOAD, i have read file content into internal table. then i am proceeding furthur. but in real, my file will be in portal (means https:\\in.xyz.com\........\TEST.X

  • CSS bootup problem

    Hi, I have one CSS11501 without PCMCIA flash disk, I tried to booted it via network, it can normally boot, but after bootup, there are some error message. After login to CSS, it accept very few command only. The attachment is the screen capture file

  • I'm looking for a flatbed scanner than can scan documents that are 11" x 17"

    As the title states, I need to scan some documents that are 11" x 17". These documents are inked comic pages on vellum, which is sort of a thick, semi-translucent kind of paper. I think I'll need to lay these pages flat to scan them, instead of runni