Please help. Trying to create external xml vidoe playlist. Desperate!

I was given an assignment to  create and external video playlist using an xml file.  I have never used  flash before, know nothing about encoding and all that was given to the  class in terms of instuctions was a short tutorial that has no  resources for troubleshooting.  We were given everything; the external  playlist file equipped with the video skin, the video list, actionscript  that loads the xml and the xml file.  We were told that all we need to  do is change the names of the videos in the xml file to match the names  of our videos.  I did that.  We were also told we needed to "name  target", but we were not informed on how to do this.  I have tried  everything, visited every tutorial and I cannot figure out how to get  this damn thing to work.  I cannot even get flash to load the xml file.  PLEASE HELP.
Here is the xml file:
<?xml version = "1.0" encoding = "i-8859-1"?>
<playlist>
<ADogWithoutABone
flvurl="ADogWithoutABone.flv"
desc="Hyper Wall First Video" />
<Highway
flvurl="Highway.flv"
desc="Hyper Wall Second Video" />
<PsychoBabble
flvurl="PsychoBabble.flv"
desc="Hyper Wall Third Video" />
<SomethingElse
flvurl="SomethingElse.flv"
desc="Hyper Wall Fourth Video" />
</playlist>
I tried putting in the entire address of the file location, but it did nothing.
Here is the actionscript in the flash file:
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xmlLoader.load(new URLRequest("playlistXML.xml"));
function xmlLoaded(event:Event):void {
var playlistXML:XML = new XML(event.target.data);
var item:XML;
for each(item in playlistXML.videoname) {
trace("item: "+item.attribute("flvurl").toXMLString());
myPlayList.addItem({label:item.attribute("desc").toXMLString(), data:item.attribute("flvurl").toXMLString()});
//Select the first video
myPlayList.selectedIndex = 0;
//And automatically play it
myPlayScreen.play(myPlayList.selectedItem.data);
//Add a listener to detect when new video is selected and play it
function listListener(event:Event) {
myPlayScreen.play(event.target.selectedItem.data);
myPlayList.addEventListener(Event.CHANGE, listListener);
I  tried placing the full address of the xml file in, along with the file  address of the videos, but again it did nothing.  Everything is located  in the same file, and the videos in a sub file in that file. I tried  taking out the sub file and putting all the videos in the same file, but  it did nothing.  I am sure it's something very simple, but like I said I  have NO experience with this whatsoever. I am SO lost and DESPERATELY  need help. PLEASE someone SAVE MEEEE!
Thanks

to parse your xml correctly use:
function xmlLoaded(event:Event):void {
    var playlistXML:XML=new XML(event.target.data);
    var item:XML;
    for each (item in playlistXML.children()) {
        trace("node: "+item.attribute("flvurl").toXMLString());
        myPlayList.addItem({label:item.attribute("desc").toXMLString(), data:item.attribute("flvurl").toXMLString()});
    //Select the first video
    myPlayList.selectedIndex=0;
    //And automatically play it
    myPlayScreen.play(myPlayList.selectedItem.data);
you more problems after that, though.  is myPlayList a list component?

Similar Messages

  • URGENT help needed in creating external xml video plalist. Please help!

    I was given an assignment to  create and external video playlist using an xml file.  I have never used  flash before, know nothing about encoding and all that was given to the  class in terms of instuctions was a short tutorial that has no  resources for troubleshooting.  We were given everything; the external  playlist file equipped with the video skin, the video list, actionscript  that loads the xml and the xml file.  We were told that all we need to  do is change the names of the videos in the xml file to match the names  of our videos.  I did that.  We were also told we needed to "name  target", but we were not informed on how to do this.  I have tried  everything, visited every tutorial and I cannot figure out how to get  this damn thing to work.  I cannot even get flash to load the xml file.  PLEASE HELP.
    Here is the xml file:
    <?xml version = "1.0" encoding = "i-8859-1"?>
    <playlist>
    <ADogWithoutABone
    flvurl="ADogWithoutABone.flv"
    desc="Hyper Wall First Video" />
    <Highway
    flvurl="Highway.flv"
    desc="Hyper Wall Second Video" />
    <PsychoBabble
    flvurl="PsychoBabble.flv"
    desc="Hyper Wall Third Video" />
    <SomethingElse
    flvurl="SomethingElse.flv"
    desc="Hyper Wall Fourth Video" />
    </playlist>
    I tried putting in the entire address of the file location, but it did nothing.
    Here is the actionscript in the flash file:
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    xmlLoader.load(new URLRequest("playlistXML.xml"));
    function xmlLoaded(event:Event):void {
    var playlistXML:XML = new XML(event.target.data);
    var item:XML;
    for each(item in playlistXML.videoname) {
    trace("item: "+item.attribute("flvurl").toXMLString());
    myPlayList.addItem({label:item.attribute("desc").toXMLString(), data:item.attribute("flvurl").toXMLString()});
    //Select the first video
    myPlayList.selectedIndex = 0;
    //And automatically play it
    myPlayScreen.play(myPlayList.selectedItem.data);
    //Add a listener to detect when new video is selected and play it
    function listListener(event:Event) {
    myPlayScreen.play(event.target.selectedItem.data);
    myPlayList.addEventListener(Event.CHANGE, listListener);
    I  tried placing the full address of the xml file in, along with the file  address of the videos, but again it did nothing.  Everything is located  in the same file, and the videos in a sub file in that file. I tried  taking out the sub file and putting all the videos in the same file, but  it did nothing.  I am sure it's something very simple, but like I said I  have NO experience with this whatsoever. I am SO lost and DESPERATELY  need help. PLEASE someone SAVE MEEEE!
    Thanks

    It might be a crossdomain.xml problem.
    Please make sure that the server hosting the xml allows the domain where the swf is hosted.
    You can start with:
    <?xml version="1.0" encoding="utf-8" ?>
    <cross-domain-policy>
        <allow-access-from domain="*"/>
        <site-control permitted-cross-domain-policies="master-only"/>
    </cross-domain-policy>

  • Please help - Trying to create a realistic liquid morphing

    Hello
    I’m fairly new to Flash and vector art but have a
    project to create a Flash based flowchart that is made up of liquid
    blobs that morph to show the various paths to the chart.
    I’ve had a go making the blobs in flash but when l go
    to animate them, it all looks a bit rubbish - see:
    http://www.mintmedia.co.uk/example2.html
    Could anyone suggest a better way of attempting to do this
    animation....
    Thanks in advance
    Rich

    Is there no way to create an appcontroller that works like an applescript? Or get an applescript to be recognized so a new NSButton added to the Bookmark bar be activated?
    i.e.
    *tell application "System Events"*
    * tell application "Safari" to activate*
    * keystroke "n" using {command down}*
    * delay 0.1*
    * keystroke "l" using {command down, shift down}*
    *end tell*
    Or,
    _Something Like:_
    / AppController /
    *#import <Cocoa/Cocoa.h>*
    *@interface AppController : NSObject*
    *IBOutlet id NSButton;*
    *-(IBAction) autoFill:,delay 0.1,checkSpelling:(id)sender*
    @end
    I really don't know if that AppController looks anything like it should or if it's even close.

  • Please Help me for creating BexReport.

    HI Experts,
    Please help me to create the below report.
              < 5 days or less      6-10 days          11-15 days      16-20 days     > 20 days
    No of Orders     3          5               2                          10                       20
    *** %                   7.50%        20%             25%                50%                           100%
    where <5days or less is the count of age(present date - order on date) of the Orders which falls under respective bucket.
    Thanks and regards
    KPS Moorthy.

    space       I< 5 days or less  I     6-10 days              I  11-15 days     I 16-20 days  I     > 20 days
    No of Orders     I   3      I   5                I 2I     10     I 20
    *** %I     7.50%     I20%     I25%   I     50%I     100%I
    i differenciated every column by "I".
    Shanbhu: Thanks for Reply.
    for AGE: if we do in backend  start routine the time wen we execute the DTP that day date is taken for age calculation.But we want the age calculation as present date(time wen the report is executing)-Create on order date.
    Thanks and regards\
    KPS moorthy

  • Please help me to create the index

    hi gurus,
    i have one table with one raw datatype column. It will stores encrypted data.
    I created a view which shows decryted data of the above table. I need create an index on decrypted data for avoiding full table scan. Please help me to create the index.
    thanks in advance..

    Perhaps you could create a function-based index, although if you're going to make it so easy to read the decrypted version I'm not sure why you want to encrypt it in the first place.

  • Please help me to create JOB

    Please help me to create JOB that executes only on saturday , sunday. How can i do this. Please help me with specimen.
    Thanks

    Hi,
    Here is PL/SQL code to run a PL/SQL block using dbms_scheduler every Saturday and Sunday at 8pm.
    dbms_scheduler is present in Oracle 10g and up. In earlier versions you will have to use dbms_job as given above.
    -- ========================================
    grant create job to user_that_runs_script ;
    Then as the user do
    BEGIN
    dbms_scheduler.create_job(
    job_name => 'my_weekend_job',
    job_type => 'PLSQL_BLOCK',
    job_action => 'schema.my_stored_proc();'
    repeat_interval => 'FREQ=DAILY;BYDAY=SAT,SUN;BYHOUR=20;BYMINUTE=0;BYSECOND=0',
    comments => 'this job runs every Saturday and Sunday at 8pm',
    enabled=>true);
    END;
    Hope this helps,
    Ravi.

  • Support ,​ ​ This is Thamer mohammad  ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .​ ​ Best wishes

    Support ,​
    This is Thamer mohammad
    ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .​
    Best wishes

    These boards aren't Apple Support; nobody here can reset the questions. Click here, phone Apple, and ask for the Account Security team, or fill out and submit this form.
    (90021)

  • HT5312 Dear Apple Support ,  I can't remember my security question answers , so Please help me to Create new Security Question for my Account .  Best wishes

    Dear Apple Support , I can't remember my security question answers , so Please help me to Create new Security Question for my Account .  Best wishes
    <Email Edited by Host>

    Welcome to the user to User Technical Support Forum provided by Apple.
    Please do not post personal information on a Public Forum.
    I have requested the Hosts remove it for you
    For your issue...
    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
    Or Email Here  >  Apple  Support  iTunes Store  Contact
    More Info >  Apple ID: All about Apple ID security questions
    Note:
    You can only set up and/or change a Rescue Email Before you forget the questions/answers.

  • Dear Apple Support ,  This is amany alnajjar ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .

    Dear Apple Support ,
    This is amany alnajjar ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • Dear Apple Support ,  This is FAHAD ALGORWAN ,I can't remember my security question answers , so Please help me to Create new Security Qu

    Dear Apple Support ,  This is FAHAD ALGORWAN ,I can't remember my security
    > question answers , so Please help me to Create new Security Qu

    Please do not make multiple posts. One is enough. These are user forums, so you are not speaking to Apple here.
    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • Dear Apple Support , This is ***Abdurrahman*** ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account . Best wishes,

    Dear Apple Support ,
    This is ***Abdurrahman*** ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .
    Best wishes,

    The people on these boards aren't Apple Support and can't do that for you. You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (102461)

  • I can't remember my security question answers , so Please help me to Create new Security Question for my Account .

    rt ,
    This is ***majed*** ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .
    Best wishes,

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact iTunes Support / Apple in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • I can't remember my security question answers , so please help me to Create new Security Question for my Account : ********  , Best wishes

    I can't remember my security question answers , so please help me to Create new Security Question for my Account : **********
    , Best wishes
    <Personal Information Edited by Host>

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple - I've asked the hosts to remove your email address from your post (it's not a good idea to post personal info on any public forum).
    If you have a rescue email address (which is not the same thing as an alternate email address) on your account then the steps half-way down this page will give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • Help trying to create a button in safari please.

    trying to create a button that runs an applescript. I have been discussing it in 101 but cross posting it here because it's not getting much interest over there.
    Any help would be nice. I have read Become an xCoder and it doesn't seem to answer my questions.
    http://discussions.apple.com/thread.jspa?threadID=1514799&tstart=0

    Is there no way to create an appcontroller that works like an applescript? Or get an applescript to be recognized so a new NSButton added to the Bookmark bar be activated?
    i.e.
    *tell application "System Events"*
    * tell application "Safari" to activate*
    * keystroke "n" using {command down}*
    * delay 0.1*
    * keystroke "l" using {command down, shift down}*
    *end tell*
    Or,
    _Something Like:_
    / AppController /
    *#import <Cocoa/Cocoa.h>*
    *@interface AppController : NSObject*
    *IBOutlet id NSButton;*
    *-(IBAction) autoFill:,delay 0.1,checkSpelling:(id)sender*
    @end
    I really don't know if that AppController looks anything like it should or if it's even close.

  • PLEASE HELP LOCATE SONGS FROM EXTERNAL HD (Cloud)

    First off, I would like to thank ANYONE who can help me out please! I am desperate now for some advice to help me through this, I have spent the last 10 Hours (Not Exaggerating) trying to find a solution to my problem online and reading through countless things I HAVE NOT been able to get an answer to resolve the issue that I am having. Please I beg you to help me! I just wanna call Apple Support so that someone can walk me through this but I am using a Windows and they won't take calls from Windows users (which is kind of lame since I am an Iphone/Ipad/Itunes customer just not on an Apple Computer) and honestly I would even pay money to have this issue fixed already I just don't wanna waste any more time on it!!!
    SO, that being said. Here is the most concise explanation I can give you of my troubles!
    1. I have both a Laptop and a Desktop. My Laptop has been my primary source for Itunes for the passed 8 years, however, it is old and I want to start using my Desktop for Itunes from now on..also, I NEED to free up space on my Laptop so that I can back up my Iphone 5 which has a broken screen, but that's another story!
    2. I Purchased something called a "WD MY CLOUD" Which is basically a personal ICloud that has 2TB of external HD Space on it. I hooked up my WDMyCloud and configured it, got it working perfectly, and I began the multiple hour long process to transfer my ITUNES Folder from my Laptop over to the WDMyCloud.
    3. All of the files and songs were successfully transferred from my Laptop to the WDMyCloud.
    4. I Installed Itunes onto my Desktop.
    5. I shift+clicked Itunes and chose the Itunes Library from my WDMyCloud. I believe the file is found in: \\WDMYCLOUD\Oliver\iTunes\iTunes Library. (And that is the .itl)
    6. When I have Itunes open, I go to preferences, and I change the MEDIA Folder to the iTunes Music Folder located on my WDMyCloud. I believe the file is found as: \\WDMYCLOUD\Oliver\Itunes\iTunes Music. (It does have all of my songs in there on the WDMyCloud in Folders by Album or however itunes had it organized)
    7. Now I am staring at my Itunes Playlists and All of my Songs are there, however, whenever I try to Play ANY Song on there I receive this error: "The song "xx" could not be used because the original file could not be found. Would you like to Locate it?" (And no, I would not like to manually locate over 3,000 songs)
    Also, every single Song has an "!" Exclamation mark next to it.
    8. If I use "Get Info" about the track to see where Itunes is looking for the track, I will show you an example now here to what it says:
    "file://localhost/C:/Users/Oliver/Downloads/Firebeatz - Gangster (Original Mix).mp3"
    (Now I do realize that this is incorrect, it should be looking for the songs in my WDMyCloud, that path above is from my Laptop's Downloads Folder and I have no idea how to fix this.)
    9. I have also tried using the "FindTracks.vbs" on my \\WDMYCLOUD\Oliver\Itunes\iTunes Music Folder and this did nothing, at all.
    10. I have opened the Itunes Library XML that is saved onto my WDMyCloud from my Laptop, and it shows the script as:
    <plist version="1.0"><dict><key>Major Version</key><integer>1</integer><key>Minor Version</key><integer>1</integer><key>Date</key><date>2014-05-24T16:40:35Z</date><key>Application Version</key><string>11.2</string><key>Features</key><integer>5</integer><key>Show Content Ratings</key><true/><key>Music Folder</key><string>file://localhost//WDMYCLOUD/Oliver/Itunes/iTunes%20Music</string><key>Library Persistent ID</key><string>5C3728163E81BB1D</string><key>Tracks</key>
    <p
    ^^ Now I'm not really sure how clumped up that is going to look once I post cuz when I tried copy/pasting it from the XML on to here it came out looking super weird, but as you can see the key thing there is that the file it says it's looking in is the Itunes Music file in my WDMyCloud. So I don't know what could be wrong with the XML script path if there is anything wrong with it at all. The rest of the XML is super super long list of all my tracks and albums an such which is obviously unimportant to this matter. But maybe this can help figure out my problem.
    Anyway, that's about as far as I was able to get after 10 hours of research, and like I said, still no solution. I'm stuck! Please please please help me figure this out! One of the biggest reasons I purchased this WDMyCloud was to use it as a consistent Itunes mediator between my devices and I absolutely MUST free up space on my Laptop ASAP and this is the only way! Thank you so much for your help in advance!!

    See Make a split library portable for some general advice on making a working library portable. It should be less hassle than fixing a broken one.
    Since the library works perfectly on the laptop I would suggest you start over and do it like this;
    1. Create a new iTunes folder in the root of the external as \\WDMYCLOUD\iTunes (capitalised as shown please, just to appease my OCD)
    2. Copy into it the following items from C:\Users\Oliver\Music\iTunes
    Album Artwork
    iTunes Library.itl
    iTunes Library Extras.itdb
    iTunes Library Genius.itdb
    sentinel
    3. Shift-start iTunes and open the library at \\WDMYCLOUD\iTunes\iTunes Library.itl
    4. Under Edit > Preferences > Advanced change the media folder to \\WDMYCLOUD\iTunes\iTunes Media (again capitalised as shown please)
    5. Use File > Library > Organize Library. Tick both boxes, or the one that isn't greyed out, then click OK.
    iTunes will gather in copies of all your media files, putting them into the correct locations so that the library is in the modern layout, and able to be moved from one machine to another.
    I'd recommend you clone the entire iTunes folder to another drive (see this backup tip) before you think about cleaning the originals.
    If your library is large then having the library files on a network share will slow things down as the database has to be written out almost any time you do anything with your library. Once you've connected the library to the new computer and had it opened and working you can copy the library files and Album Artwork folder into the local C:\Users\Oliver\Music\iTunes folder (deleteing what is already there first) then shift-start-iTunes and connect to C:\Users\Oliver\Music\iTunes\iTunes Library.itl. If/when you want to move the library to a different drive/computer copy the files back out to the drive and access the library there at lease once before the move.
    tt2

Maybe you are looking for

  • How do I redeem my gift card?

    I recently bought a 25$ iTunes gift card in the US and I live in Canada. When I go to redeem my card in the US store, it says my account is only valid for purchases in the Canadian iTunes store and when I go to redeem it in the Canadian iTunes store,

  • Error while transporting structure

    Hi I have tried to move a structure CI_FAGLFLEX04 from development to quality. But I am getting a transport error as follows.. Table CI_FAGLFLEX04 could not be activated (E- Nametab for table CI_FAGLFLEX04 cannot be generated ) This structure is used

  • Sql developer 3.0 EA 1 & Oracel server on OpenVMS

    For Developers! We have: Oracle server on OpenVMS. SQL Developer on Windows XP. In DBA we have a problem with file names on openvms - It says about file name like 'DISK$1111:[oracle10g.oradata.db]system.dbf' - not valid. You must change this bug! Ple

  • Writing text on an image inserted in a single cell of a table

    Given a table with a cell...I can insert an image into the cell... CAN I SOMEHOW insert text on top of the image in the cell? Thanks, --bill

  • How about some high speed help, from these AMD 64s

    Hi Guys  2 things First there is a Folding Team called MSI HQ Red Rockets, organised by RexB, You can see how we are doing here http://vspx27.stanford.edu/cgi-bin/main.py?qtype=teampage&teamnum=37766 As it is from Stamford Univ, and is for Medical Re