For lance loop error message "undefined term"?

I am trying to add a playlist to my music player, that load in xml. I have the text box to the top, and in the data are added after the code XML is done loading.

I get an error on line 32, I will highlight it later, something not defind not.

Here is my code:

var my_songs:XMLList;
var my_total:Number;


var my_sound:Sound;
var my_channel:SoundChannel;


var current_song:Number = 0;


var song_position:Number;
var song_paused:Boolean;


var myXMLLoader:URLLoader = new URLLoader();


var songNames:Array = new Array();
songData.text = "Playlist:\n";
myXMLLoader.load(new URLRequest("playlist.xml"));
myXMLLoader.addEventListener(Event.COMPLETE, processXML);
function processXML(e:Event):void {
          var myXML:XML = new XML(e.target.data);


          my_songs = myXML.SONG;
          my_total = my_songs.length();
          //playSong(0);


          myXMLLoader.removeEventListener(Event.COMPLETE, processXML);
          myXMLLoader = null;
          setUpPlaylist();
}
function setUpPlaylist():void
{
          for (var i:int = 0; i <= my_total;i++){
                    songNames.push(String(i)+ ". "+ my_songs[i].@TITLE);
                    //songData.appendText("A\n");
                    songData.appendText(String(i+1)+ ". " + my_songs[i].@TITLE + "\n");
          }
}
function playSong(mySong:Number):void {


          var myTitle = my_songs[mySong].@TITLE;
          var myArtist = my_songs[mySong].@ARTIST;
          var myURL = my_songs[mySong].@URL;


          title_txt.text = myTitle;
          artist_txt.text = myArtist;


          if (my_channel) {
                    my_channel.stop();
                    my_channel.removeEventListener(Event.SOUND_COMPLETE, onNext);
          }


          my_sound = new Sound();
          my_sound.load(new URLRequest(myURL));
          my_channel = my_sound.play();
          my_channel.addEventListener(Event.SOUND_COMPLETE, onNext);
}


next_btn.addEventListener(MouseEvent.CLICK, onNext);
function onNext(e:Event):void {
          current_song++;
          if (current_song>=my_total) {
                    current_song=0;
          }
          playSong(current_song);
}
prev_btn.addEventListener(MouseEvent.CLICK, onPrev);
function onPrev(e:MouseEvent):void {
          current_song--;
          if (current_song<0) {
                    current_song = my_total-1;
          }
          playSong(current_song);
}


pause_btn.addEventListener(MouseEvent.CLICK, onPause);
function onPause(e:MouseEvent):void {
          if (my_channel) {
                    song_position = my_channel.position;
                    my_channel.stop();
                    song_paused=true;
          }
}
play_btn.addEventListener(MouseEvent.CLICK, onPlay);
function onPlay(e:MouseEvent):void {
          if (song_paused) {
                    my_channel = my_sound.play(song_position);
                    song_paused=false;
          } else if (!my_channel) {
                    playSong(current_song);
          }
}

It's the line 32:

songNames.push(String(i)+ ". "+ my_songs[i].@TITLE);

Edit:

I was also wondering if it was possible to make a list of clips video (or buttons) that can be controlled by a scroll bar.

The video clips will have to be made through as3, with text on them (again added by as3) and then controlled through more code.

What fuels the text box?  As I said, I can't say if function update, that you have demonstrated is linked to the problem since I see not what runs it, but if you happen to be dynamically reading in the text to an external resource, you can update the front scroll bar the new text in the text box.

Tags: Adobe Animate

Similar Questions

  • Consistency of disk for the startup error message

    When my G580 is booted up an error message produced by saying that my drive should be checked for consistency. However, when it will check disk this does not happen, instead it says to go to the system restore. When I go to the system restore, it is disabled. I have run the check disk from Lenovo and it appears clear. What can I do to remove this message?

    Hi folkfanatic,

    Welcome to the Lenovo Forums.

    Your problem might be similar to this thread from microsoft. Can you try the solution that has been published and see if you still get errors.

    Let me know your results

    See you soon

  • Smartphones from blackBerry Desktop Manager for Mac KB19454 error message

    Hi all

    I am new to the community and would appreciate any help. I have two recent problems for which I'm looking for troubleshooting tips. The priority problem is first mentioned below.

    I just met this error message, "For help to resolve this problem, refer to KB19454 in the Knowledge Base of BlackBerry Desktop Manager" when trying to sync my Curve 8320. I use a Mac and I've not met difficulties of synchronization for downloading the new version of Desktop Manager for Mac in December/January. I was not able to download the last updated however. I saw a post initially by a user who has the same problem, but I didn't know the question, and so I am hopeful of possible suggestions for resolution.

    The other problem I have experienced recently, it's that I can't compose an SMS/MMS message. I can only answer to someone's message. When I try to send just one, by default back to the list of messages.

    Please Note: I don't have wireless on my phone. I use Blackberry Desktop Manager Version 1.0.1

    Also note that I am not able to access e-mail messages per day, but will try to return answers / inquires as quickly as possible.

    Thanks in advance for the help.

    Hi and welcome to the Forums!

    For your first question, I can't tell if you still worked through the reference KB... If not, you can find it here.

    For your second question, I'm not sure... but maybe it will help you:

    • Each time a random strange behavior or slow creeps, the first thing to do is a battery pop reboot. With power ON, remove the hood back and remove the battery. Wait a minute, then replace the battery and cover. Power on and wait patiently through the long reboot - about 5 minutes. See if things return to functioning. Like all computing devices, BB suffers from memory leaks and others... with a hard reboot is the best remedy.

    Best!

  • 'incorrect type for the socket' error message during the installation of flash player.

    MacBook Pro (15-inch) with El Capitan 10.11.5, Safari 9.1.1 OSX Version.

    Message received from new flash update. Conducts system preferences to download. Download went to the file downloads. Close all windows including the browser. Opened, dmg began to download. Error message as follows "Type incorrect Protocol for socket AdobeFlashPlayer_21_a".

    DMG trashed, uninstalled Flash Player, downloaded from the Adobe site, same message. Started in safe mode. Shut down, started normally, always impossible to download Flash Player. Now, I don't have any Flash Player and cannot download any version.

    Help would be appreciated, thank you very much. Pat

    It is possible the error of mounting the DMG is related to the 10.11.5 update.  Please see cannot load DMG files after installing 10.11.5 | Apple Support communities.  A number of people get the same error, with various software, when mounting the DMG if none of the suggestions in that work of forum for you, contact Apple support for assistance.

    As an alternative, you can also try using the installer in offline mode, posted at the bottom of the problems Installation | Flash Player | Mac page, in the section "Problems", but I suspect exhibit you the same behavior.

  • Password and username error message undefined VIX

    Hi, I installed VIX on orchestrator. For some reason, when I try to run the workflow as - create a temporary file in the comments OR check the comments file

    I get the following error message

    Process validation of reports 2 errors in the workflow. Disable the control validation in the preferences or correct errors.

    Looking further, I see the follwing erro message "configuration of 'defaultvCenterUSername' attribute not set and Aiiribute ' defaultvCEnterPAssword not defined configuration."  I think it has to do with the username and password of vix, but don't know where to put this in place.
    Thanks for your help!

    It's Configurations, not the flow of work in a tab.

    Christophe.

  • Not enough for an image error message

    Not enough for an error message image on the latest version of adobe reader

    • Change the zoom settings you can see the content of the document. Try to reduce the Zoom factor, or click on get full Page stop. You can do this persistent setting (to avoid change for each document) in Edit > Preferences > Page Display > Zoom > Fit Page.
    • Resave the PDF file in Acrobat (you can download the trial of http://www.adobe.com/cfusion/tdrc/index.cfm?product=acrobat_pro&loc=us ) as a PDF optimized, using the optimization settings of PDF Standard, or PDF file size reduced.
  • Default location for My Documents - Error Message

    I followed a tutorial online on changing the default location of the My Documents folder.

    I have moved from C to E, where I had more room.

    Now, I want to go again - but when I go into properties, restore the default values and apply it finally said he can't move a particular file, its file name is too long. So I closed the screen IE cancelled out of them. Found the directory that contains the files and delete it.

    Restarted the PC and when I try and move the default my documents location it still doesn't move and it gives me the same error message.

    How can I work around this problem and move the my docs back to the c drive?

    Thanks, Sam

    1. I have created a folder on your desktop (any name will do, is not serious).  Drag all your documents to the E: drive in this folder.
    2. So now that documents of drive E: is totally empty, go ahead and move the location using the properties box, as if you were in front.
    3. Then after that the move is done, drag all the files from the Office folder in the actual location and delete the folder you made in step 1.
  • Olive Mobile Viewer for Tablet gives error message when downloading n Chicago Tribune for offline reading.

    When you try to download the Chicago Tribune for offline reading using the mobile viewer of olive trees for tablets, I get the message "an error occurred while average download try again."

    We do not support the "Olive Mobile Viewer' it is an application used by the Forum to display their website. The help of the Tribune are to

    https://members.chicagotribune.com/help/

    "Feel free to call us at 1-800-TRIBUNE (1-800-874-2863), or email Bill Adee, VP/Digital Development & Operations (billadee to tribune.com).

    You can also get help via our Twitter and Facebook pages. »

  • Look for vCenter VM error message with special events

    Greetings,

    I am wanting to look through the events of multiple vCenters (4.x 5.x) mode, for events with a particular sentence (lock lost on *.vmdk)

    I was looking at Alan Renouf vCheck to try out of the room that would allow me just to search for events in logs vCenters VM.

    His VI Events.ps1 #23 file contains the following:

    $Result = @(get-VIEvent-maxsamples 10000-Start ($Date).) AddDays(-$VCEventAge)-error | Select @{N = 'Host'; {E = {$_.host.name}}, Createduserid, @{N = 'User'; "E={($_. ({{UserName.Split("\")) [1]}}, fullFormattedMessage)
    $Result

    I'm looking to search for a specific text string in the events of the VM, and I was wondering if there was any ideas on the best way to do it.

    I want to be able to specify the number of days back to back as shown above.  I want to show the host on the virtual machine is running, (s) Lun, it is located, the date and time of the message.

    Can I just add a search string in the script above?   If so what setting would be to clarify?

    Any suggestion would be appreciated.  Thank you.

    I do not know the eventtype, but perhaps this can help.

    The following tries to find the event by checking the message for text.

    $daysBack = 7
    $tgtMsg = "The lock protecting" Get-VIEvent -maxsamples ([int]::MaxValue) -Start (Get-Date).AddDays(-$daysBack) |
    where {$_.fullFormattedMessage -match $tgtMsg} | Select @{N="Type";E={$_.GetType().Name}}, @{N="Host";E={Get-View $_.Host | Select -ExpandProperty Name}},
    @{N="VM";E={Get-View $_.VM | Select -ExpandProperty Name}}, @{N="Message";E={$_.FullFormattedMessage}}
    

    If this does not work, you can just list any events that have occurred in the last 7 days.

    $daysBack = 7
    $tgtMsg = "The lock protecting"
    Get-VIEvent -maxsamples ([int]::MaxValue) -Start (Get-Date).AddDays(-$daysBack) |
    Group-Object -Property {$_.GetType().Name}
    
  • In Adobe Creative cloud, I go to Apps and I get the error message undefined and I can't download anything, I'm on windows 7 64 bit.

    I use Adobe Creative Cloud, I go into Apps and I get the error undefined.  I can't download anything.  I'm trying to update the app, nothing.  I can even see what I downloaded previously.  I'm using windows 7, 64 bit.

    It worked well for me for up to this morning.

    Hi Renaze10 ~.

    It is due to do not have the administrator rights on the PC.

  • Weird error message "undefined format": but defined - someone ' can someone help?

    Here is the < form > code:

    <!--list generated dynamically bowling center names-->

    < cfselect class = "selectBox" name = "regHomeCntr" >

    < option selected = "selected" > where is your Center bowling House? < / option >

    < cfloop query = "getBowlCenters" >

    < option value = "#getBowlCenters.ctrName #" > #getBowlCenters.ctrName # < / option >

    < / cfloop >

    the < cfform > passes information above for model (below) for insertion into DB. EVeRyThiNg successfully treats (as shown in the table at the top of the web page variable). Even the name of the bowling center is passed as a variable to the processing page, but CF always tells me that the variable is not set, but I see that he spent the variable to the next page. I thought it was because I had the wrong < CFSELECT >, but no matter what is selected, the variable is passed. I'm puzzled.

    The following code hangs:

    < name cfquery = "getTournaments" datasource = "#dbs #" >

    SELECT *.

    OF tournamentFeatures

    WHERE tName = ' #URL.tName # '.

    < / cfquery >

    < table >

    < b >

    < td > < strong Variable name > < / strong > < table >

    < td > < value > < / strong > < table >

    < /tr >

    <!-loops on the URL structure and displays the names of variables and values->

    < cfloop collection = "" #URL # "item ="Nomvar">"

    < cfoutput >

    < b >

    < td >

    #VarName # < table >

    < Td > #URL [VariableName] # < table >

    < /tr >

    < / cfoutput >

    < / cfloop >

    < /table >

    < p > < / p >

    < table >

    < b >

    < td > < strong Variable name > < / strong > < table >

    < td > < value > < / strong > < table >

    < /tr >

    <!-loops on the FORM, structure and displays the names of variables and values->

    < cfloop collection = "" # form # "item ="Nomvar">"

    < cfoutput >

    < b >

    < td >

    #VarName # < table >

    < td > #form [VariableName] # < table >

    < /tr >

    < / cfoutput >

    < / cfloop >

    < /table >

    <! - inserts the new tournament entry in the registration table - >

    < name cflock = "addRegistrationRecord" type = "exclusive" timeout = "20" >

    < cftransaction >

    < name cfquery = "insertRegistration" datasource = "RBDS" >

    INSERT INTO

    tournamentReg

    SET

    tNom = #URL.tName #,.

    adate = ' #URL.tDate # '.

    regDateTime = ' #URL.regDateTime # ',.

    regNumber = ' #URL.regNumber # '.

    regFName = ' #form.regFName # ',.

    regLName = ' #form.regLName # ',.

    streetAddr = ' #form.streetAddr # ',.

    cityStateZip = ' #form. CityStateZip #',

    regPhone = ' #form.regPhone # ',.

    regEmail = ' #form.regEmail # ',.

    lastBook = ' #form.lastBook # ',.

    usbcCard = ' #form.usbcCard # ',.

    < cfif tNom EQ #URL.tname # 'double' AND IS 'Yes' >

    bowlWith2 = ' #form.bowlWith2 # ',.

    < cfelseif tNom EQ #URL.tname # AND 'threePerTeam', it is 'Yes' >

    bowlWith3 = ' #form.bowlWith3 # ',.

    < cfelseif tNom EQ #URL.tname # AND 'fourPerTeam', it IS 'Yes' >

    bowlWith4 = ' #form.bowlWith4 # ',.

    < cfelseif tNom EQ #URL.tname # AND 'fivePerTeam', it IS 'Yes' >

    bowlWith5 = ' #form.bowlWith5 # ',.

    < cfelse >

    singlesTournament = ' #form.singlesTournament # '.

    < / cfif >

    regHomeCntr = ' #form.ctrName # ' (PLANT HERE)

    tNom = ' #URL.tName # ' AND tDate = ' #URL.tDate # '.

    < / cfquery >

    Try the code yourself on an online site to see what I mean.

    First of all, go: http://www.renobowls.com/tournaments.cfm, then click on the button to the right of the Test 2. You do not have to fill in the text boxes, but one of the Bowling centers select in the drop-down list. Then click on ' to register me.» You will see all the variables via the form at the top of the page... Including the Bowling Center you just select from the drop-down list on the previous page. How can he be passing the variable but the query (insertRegistration) indicates is not defined! UHGRRRR...

    INSERT INTO tournamentReg (tDate, tName, regDateTime, regNumber) VALUES ((param 1), (param 2), (param 3), (param 4))

    Your cfquery does not match the error. Look at the generated sql code.  Is valid or is it an extra comma in the column list?

  • UBBCONFIG configuration for Tuxedo/Q-error message queue server rebuild

    Hello..

    Use Tuxedo10g R3 on AIX 5.3...
    Use IBM COBOL...

    I need to write a program with the Concept of the queue in cobol, so for that I created queuespace and queue using the qmadmin command...

    When you set up the UBBCONFIG file, according to the document I mentioned:

    http://e-docs.BEA.com/Tuxedo/tux80/PDF/usingq.PDF

    I used (pg no: 28)
    TMQUEUE SRVGRP = "TMQUEUEGRP1" SRVID = 1000 RESTART = GRACE Y = 0 CLOPT = "s myqueuespace:TMQUEUE" in the section servers but while "
    Start TMQUEUE could not start... so I went to the alternative option provided in the same document that

    BuildServer o TMQUEUE s myqueuespace:TMQUEUE - r TUXEDO/QM.
    ${TUXDIR}/lib/TMQUEUE.o f
    followed by
    ..
    ..
    ..
    TMQUEUE SRVGRP = "TMQUEUEGRP1" SRVID = 1000 RESTART = GRACE Y = 0.
    CLOPT = "-A"

    during the reconstruction TMQUEUE get this error:
    BuildServer o TMQUEUE s myqueuespace:TMQUEUE - r TUXEDO/QM - f ${TUXDIR}/lib/TMQUEUE.o
    LD: 0711-317 ERROR: Undefined symbol: .qs_tcm_setup
    LD: 0711-345 use - bloadmap or - bnoquiet for more information.
    CMDTUX_CAT:1832: ERROR: cannot run cc - brtl - qstaticinline - qrtti = all-I$ TUXDIR/include - o TMQUEUE BS - 23f0be.c - L$ {TUXDIR} / lib

    /usr/Oracle/Tuxedo10g/lib/TMQUEUE.o - brtl - qstaticinline - ltux - lbuft - lqm - ltmib - lfml-lfml32 - lengine - lpthread

    can someone help me with this?

    Thanks in advance...

    Hello

    When you created the qspace, I'm guessing that you do not specify a number of fairly high process. In the qspacecreate of qmadmin command, there is a parameter that controls the number of processes that can join the queuespace. You should increase this number by changing the queuespace with the qmadmin command qspacechange or by recreating the queuespace.

    Kind regards
    Todd little
    Chief Architect of Oracle Tuxedo

  • Not enough space for music DB error message.

    Hello. Whenever I try to open my Sansa clip mp3 player continues to display the message: "not enough space for music DB. Please free 30 MB. And I have 2 GB. It happened when my brother said he tried to better the music so he can get over. That's all what he says is reached. Now I can't fix it. I tried to remove even the files that are on it that did not help. It comes only to return when I reopen it the Clip. Is there someone who knows the solution to this? Thank you very much.

    PromisedPlanet wrote:
    Select "Format" in the menu "settings".  (Careful, this will delete all the music on the video.)

    It's the extreme solution. Try this first.

  • can not play at char in line 2 for the video error message 5773 code 0

    Hi, whenever I try to play video on www.cbc.ca the Player opens but the video does not start.  bottom left, there is a java script error which reads:

    Line 2

    char 5773

    error: access denied

    code 0

    URL: http://www.cbc.ca/video

    If anyone knows how I can fix this I would be very happy.  Thank you

    Hi, thanks.  I use internet explore.   I downloaded firefox to see if another browser might change things, but he did not.  until I received this answer, I found a site that has detected that I had an old version of java that can interfere with the new version then I uninstalled the old version and restarted my browser and now the video on the site seems to work!  If he gives me again, I'll try your suggestions. It's probably a good idea to optimize internet Explorer anyway.

    Thank you

  • Tecra 9000 - error message with Windows XP SP3 home edition

    Hello

    I have a Tecra 9000 in very good condition, until yesterday, I have no problem!
    After updating my Windows XP service pack 2 on the "service pack 3", everything works fine but when I press the button 'TOSHIBA controls' and 'mouse' for setting, Windows error message occure: "run a dll as an app"!

    Even if I go to "Start" and "Control Panel" and press the mouse, after setting close icon, or just simply do nothing (cancel), the same message! I did not notice any other problem with the TOSHIBA utility!
    My driver for mouse is "Logitech mouse ware, 9.40! Can you help me?

    This oldie works well with Windows XP SP2 home edition and in my opinion you should use without SP3. Try to remove the SP3, and I hope that everything will work properly again. Problem is that the old tools and utilities designed for Toshiba probably aren't tested and updated to SP3.

    I have more Satellite M70 and use sill with SP3. I don't want to risk anything and have problems.

Maybe you are looking for