Please help; next btn and onSoundComplete()

Hi,
Can someone help me form tearing out any more hair? The
following code should work but it is not, it should play the next
song:
this.sound_obj.onSoundComplete = function(){
(song_nr==songfile.length-1)?_global.song_nr=0 :
_global.song_nr++;
_root.sound_mc.songStarter(songfile[song_nr],
songname[song_nr]);
I have it also attached to a Next button, as follows;
next_btn.onRelease = function(){
(song_nr == songfile.length+1) ? _global.song_nr=0 :
_global.song_nr++;
_root.sound_mc.songStarter(songfile[song_nr],
songname[song_nr]);
The XML code is as follows;
?xml version='1.0' encoding='utf-8'?>
<songs>
<song name="i-tuts" file="ituts_track.mp3" ><song
/>
<song name="test2" file="test2.mp3" ><song />
</songs>
Any help, will greatly reduce hair loss ;)
Boxing Boom

well I can't be sure not knowing the rest of the document's
structure, but it looks like you have some scope problems here.
1) remove the 'this' keyword from onSoundComplete, if the
'sound_obj' is local to the frame it shouldn't be needed.
2) I noticed you have a '_global' reference to the 'song_nr'
var, yet you are not using the _global within the the conditional
expressions.
3) just wondering if the arrays 'songfile' and 'songname' are
within the same scope as this frame, they would need to be, or have
a reference to their locations.

Similar Messages

  • HT4623 please help - installed IOS7 and now I am having problems playing Words Free on my Iphone.  It gives me a pop up telling me to connect to ITunes but will not connect.  Cannot get out and have to continually shut down my phone and start over.

    please help - installed IOS7 and now I am having problems playing Words Free on my Iphone.  It gives me a pop up telling me to connect to ITunes but will not connect.  Cannot get out and have to continually shut down my phone and start over.

    Hi, jeantwin.
    Thank you for visiting Apple Support Communities.
    The steps in the article below may help you resolve the issue with push notifications.
    iPad and iPod touch: Unable to use YouTube or Push notifications
    http://support.apple.com/kb/ts3305
    If the issue persists, try signing out of your Apple ID and then sign back in.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    Cheers,
    Jason H.

  • Can't find a playlist I created on my playlist or computer? I didn't delete it. I don't want to create it again because it took a long time. please help me find and recover.

    Can't find a playlist I created on my playlist or computer? I didn't delete it. I don't want to create it again because it took a long time. please help me find and recover.

    Playlists only exist as part of the larger iTunes library listing so if you are not seeing it there it doesn't exist anywhere else.  I know with my older version of iTunes it is very easy to accidentally delete a playlist.  With newer versions it may be possible to recover it with the undo feature in the menu but this likely will only work immediately after the deletion.

  • PLEASE Help! - Bridge and Premiere CC- "the operation could not be completed" and export error - MAC

    Dear Adobe Community,
    I got my first imac a few days ago, and i decided to install Adobe CC.
    When i want to run Adobe Bridge, says "the operation could not be completed", the same happens with Adobe After Effects.
    And I also have a problem with Premiere, when i want to export a project says that premiere must close.
    This is the try version, is this a problem of Adobe or Apple? i'm very worried
    Help!
    Thank you!
    Ivana

    Muchas gracias!!! Ha funcionado!
    El 11/02/2014, a las 00:02, Federico Platon <[email protected]> escribió:
    Re: PLEASE Help! - Bridge and Premiere CC- "the operation could not be completed" and export error - MAC
    created by Federico Platon in Foros de usuario a usuario - View the full discussion
    Confirma que se trata de una cuestión de permisos.
    Por cierto te aconsejos actualices la 9.1  a 9.2, posiblemente se habría arreglado así también.
    Bueno los pasos son:
    2. Select Go from the Finder Menu.
    3. Select Computer.
    4. Select Macintosh HD.
    5. Select Users.
    6. Select your user profile.
    7. Right click on user profile. Select Get Info.
    8. Go to bottom and unlock with admin password to make changes.
    9. Make sure your user profile has Read and Write privileges by selecting from dropdown menu.
    10. Go down to wheel at very bottom and select Apply to enclosed items. This should allow Adobe Bridge to run properly.
    Creo que no se necesita traducción.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6107188#6107188
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6107188#6107188
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6107188#6107188. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Foros de usuario a usuario at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • IF YOU HELP MY NANO upgraded when you install PERFECT BUT DOES NOT APPEAR ON THE SCREEN NOTHING BUT as if you were OFF if turned PLEASE HELP OR MORE AND HAS THE NEW UPDATE

    IF YOU HELP MY NANO upgraded when you install PERFECT BUT DOES NOT APPEAR ON THE SCREEN NOTHING BUT as if you were OFF if turned PLEASE HELP OR MORE AND HAS THE NEW UPDATE

    iPod not recognized in 'My Computer' and in iTunes for Windows

  • I want to be a good SAP user but please help me how and can i do the right step about SAP

    i want to be a good SAP user but please help me how and can i do the right step about SAP

    Hi,
    you can start learning SAP from an end-user/key-user perspective with the online learning portal of SAP Learning Hub, business user edition.
    Further information can be found here:
    SAP Learning Hub
    Regards,
    Arnold

  • Please help with importing and using imovie and idvd

    Hi,
    Please forgive my lack of knowledge. I previously had a mini dv camcorder that was so easy to use with imovie hd. Now that I have switched to an HD Usb 2.0 camcorder that has built in 16gb memory and memory cards, I have had such a great deal of trouble. I really hope you can help and point me in the right directions.
    Importing movies are fine, but they take so long! Currently, when I import a movie, I set the camcorder to PC mode and import through imovie. But the camcorder stays on, and I'm not sure if this is the best way or healthiest for the camcorder. Do you have a better/faster way to import movies? Is there a way to drag the video from the memory onto the computer, and then from there import the movie? I think at least I wouldn't have to leave the camcorder on.
    Also, one major issue I have is that each movie is broken down into 100 or so clips. I coach basketball, and videotape the games. When there is stoppage, I pause the camcorder. I guess that creates so many clips, so that when the film is imported, there are over 100 clips for the entire movie. Is there a way of making that just 1 entire movie/clip?
    Once I have imported the entire movie, which is 100+ clips, I want to simply create a dvd of the game. I know I have to share it, but do you have a better suggestion as to how I should handle this?
    In the past, all I did was import the mini dv movie into imovie HD, share into idvd, and then that was it, dvd made. This process had become so time consuming.
    Please help!

    Yes, I recognized there would be a slight pause between clips - but after all - you paused the camera at those points.
    Putting them all in sequence in iMovie and then encoding in iDVD will take a lot of time.
    An old favorite saying of mine is "not every job worth doing, is worth doing well'. The meaning being sometimes 95% is good enough so you can go on to the next job.
    How much work do you want to put into each DVD? Can you live with the slight pauses?
    would you suggest using a memory card?
    Yes, but 16GB cards aren't cheap (yet).

  • Please help with jsp and database!!

    Hello,
    i first created a jsp page and printed out the parameters of a user's username when they logged in. example, "Welcome user" and it worked fine...
    i inserted a database into my site that validates the username and password, and ever since i did that in dreamweaver, when a user logs in sucessfully, it returns the jsp page like its supposed to, only that it says "Welcome null" instead of "Welcome John." pretty strange, huh!? can anyone please help? thanks!
    here is the important part of the code to Login.jsp, and LoginSuccess.jsp: <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" %>
    <%@ include file="Connections/Login.jsp" %>
    <%
    // *** Validate request to log in to this site.
    String MM_LoginAction = request.getRequestURI();
    if (request.getQueryString() != null && request.getQueryString().length() > 0) MM_LoginAction += "?" + request.getQueryString();
    String MM_valUsername=request.getParameter("Username");
    if (MM_valUsername != null) {
      String MM_fldUserAuthorization="";
      String MM_redirectLoginSuccess="LoginSuccess.jsp";
      String MM_redirectLoginFailed="LoginFailure.jsp";
      String MM_redirectLogin=MM_redirectLoginFailed;
      Driver MM_driverUser = (Driver)Class.forName(MM_Login_DRIVER).newInstance();
      Connection MM_connUser = DriverManager.getConnection(MM_Login_STRING,MM_Login_USERNAME,MM_Login_PASSWORD);
      String MM_pSQL = "SELECT UserName, Password";
      if (!MM_fldUserAuthorization.equals("")) MM_pSQL += "," + MM_fldUserAuthorization;
      MM_pSQL += " FROM MemberInformation WHERE UserName=\'" + MM_valUsername.replace('\'', ' ') + "\' AND Password=\'" + request.getParameter("Password").toString().replace('\'', ' ') + "\'";
      PreparedStatement MM_statementUser = MM_connUser.prepareStatement(MM_pSQL);
      ResultSet MM_rsUser = MM_statementUser.executeQuery();
      boolean MM_rsUser_isNotEmpty = MM_rsUser.next();
      if (MM_rsUser_isNotEmpty) {
        // username and password match - this is a valid user
        session.putValue("MM_Username", MM_valUsername);
        if (!MM_fldUserAuthorization.equals("")) {
          session.putValue("MM_UserAuthorization", MM_rsUser.getString(MM_fldUserAuthorization).trim());
        } else {
          session.putValue("MM_UserAuthorization", "");
        if ((request.getParameter("accessdenied") != null) && false) {
          MM_redirectLoginSuccess = request.getParameter("accessdenied");
        MM_redirectLogin=MM_redirectLoginSuccess;
      MM_rsUser.close();
      MM_connUser.close();
      response.sendRedirect(response.encodeRedirectURL(MM_redirectLogin));
      return;
    %>
          <form action="<%=MM_LoginAction%>" method="get" name="Login" id="Login">
            <table width="55%" border="0">
              <tr>
                <td width="41%">Username </td>
                <td width="59%"><input name="Username" type="text" id="Username" value="" size="25" maxlength="10"></td>
              </tr>
              <tr>
                <td>Password </td>
                <td><input name="Password" type="password" id="Password" value="" size="25" maxlength="10"></td>
              </tr>
              <tr>
                <td> </td>
                <td><input type="submit" name="Submit" value="Submit"></td>
              </tr>
            </table>
          </form>And LoginSuccess.jsp where i want it to print out the "Welcome username
             <%String Name=request.getParameter("Username");
         out.println ("Welcome ");
         out.println (Name); %>

    <%@ page contentType="text/html; charset=iso-8859-1"
    language="java" import="java.sql.*" %>
    <%@ include file="Connections/Login.jsp" %>
    <%
    // *** Validate request to log in to this site.
    String MM_LoginAction = request.getRequestURI();
    if (request.getQueryString() != null &&
    request.getQueryString().length() > 0) MM_LoginAction
    += "?" + request.getQueryString();
    String
    MM_valUsername=request.getParameter("Username");
    if (MM_valUsername != null) {
    String MM_fldUserAuthorization="";
    String MM_redirectLoginSuccess="LoginSuccess.jsp";
    String MM_redirectLoginFailed="LoginFailure.jsp";
    String MM_redirectLogin=MM_redirectLoginFailed;
    Driver MM_driverUser =
    =
    (Driver)Class.forName(MM_Login_DRIVER).newInstance();
    Connection MM_connUser =
    =
    DriverManager.getConnection(MM_Login_STRING,MM_Login_US
    RNAME,MM_Login_PASSWORD);
    String MM_pSQL = "SELECT UserName, Password";
    if (!MM_fldUserAuthorization.equals("")) MM_pSQL +=
    = "," + MM_fldUserAuthorization;
    MM_pSQL += " FROM MemberInformation WHERE
    E UserName=\'" + MM_valUsername.replace('\'', ' ') +
    "\' AND Password=\'" +
    request.getParameter("Password").toString().replace('\'
    , ' ') + "\'";
    PreparedStatement MM_statementUser =
    = MM_connUser.prepareStatement(MM_pSQL);
    ResultSet MM_rsUser =
    = MM_statementUser.executeQuery();
    boolean MM_rsUser_isNotEmpty = MM_rsUser.next();
    if (MM_rsUser_isNotEmpty) {
    // username and password match - this is a valid
    lid user
    session.putValue("MM_Username", MM_valUsername);
    if (!MM_fldUserAuthorization.equals("")) {
    session.putValue("MM_UserAuthorization",
    ion",
    MM_rsUser.getString(MM_fldUserAuthorization).trim());
    } else {
    session.putValue("MM_UserAuthorization", "");
    if ((request.getParameter("accessdenied") != null)
    ll) && false) {
    MM_redirectLoginSuccess =
    ess = request.getParameter("accessdenied");
    MM_redirectLogin=MM_redirectLoginSuccess;
    MM_rsUser.close();
    MM_connUser.close();
    response.sendRedirect(response.encodeRedirectURL(MM_re
    irectLogin));
    return;
    %>
    <form action="<%=MM_LoginAction%>" method="get"
    "get" name="Login" id="Login">
    <table width="55%" border="0">
    <tr>
    <td width="41%">Username </td>
    <td width="59%"><input name="Username"
    ="Username" type="text" id="Username" value=""
    size="25" maxlength="10"></td>
    </tr>
    <tr>
    <td>Password </td>
    <td><input name="Password" type="password"
    ="password" id="Password" value="" size="25"
    maxlength="10"></td>
    </tr>
    <tr>
    <td>�</td>
    <td><input type="submit" name="Submit"
    me="Submit" value="Submit"></td>
    </tr>
    </table>
    </form>
    And LoginSuccess.jsp where i want it to print out the
    "Welcome username
             <%String Name=request.getParameter("Username");
         out.println ("Welcome ");
         out.println (Name); %>When the page is rediredted u r not passing the user name in the query string,so it is not availble in the query string for LoginSuccess page
    Since u have added user in session user this
    <%String Name=(String)session.getValue("MM_Username") ;%>
    <%     out.println ("Welcome ");
    <%      out.println (Name); %>

  • Please Help! Drag and drop does not work in Adobe AIR 3.1 (FlashBuilder 4.6)

    I am working on a PC is made of air and flashbuilder 4.6.
    Drag and drop application does not work in Flash Builder 4.6.
    However, the same source will work with Flash Builder 4.5.
    Please help me.
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                  xmlns:s="library://ns.adobe.com/flex/spark"
                                  xmlns:mx="library://ns.adobe.com/flex/mx"
                                  backgroundColor="#323232" width="100%" height="100%"
                                  initialize="init(event)"
                                  nativeDragEnter="onDragEnter(event)"
                                  nativeDragDrop="onDragDrop(event)">
              <fx:Script>
              <![CDATA[
                        import mx.events.FlexEvent;
                        protected function init(event:FlexEvent):void
                                  addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER, onDragEnter);
                                  addEventListener(NativeDragEvent.NATIVE_DRAG_DROP, onDragDrop);
                        private function onDragEnter(event:NativeDragEvent):void
                                  if (event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT))
                                            NativeDragManager.acceptDragDrop(this);
                        private function onDragDrop(event:NativeDragEvent):void
                                  var arr:Array;
                                  arr = Array(event.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT));
                                  startImage.source = (arr[0] as File).url;
                ]]>
              </fx:Script>
              <s:layout>
                        <s:VerticalLayout/>
              </s:layout>
              <s:BorderContainer id="bc" borderStyle="solid" width="200" height="80%"/>
              <s:Image id="startImage" width="100%" height="100%"
                                             horizontalAlign="center" verticalAlign="middle"/>
      </s:WindowedApplication>

    Thank you answers, but it was not the answer I wanted.
    [Problem]
    * Flash Builder 4.5.1(updater) or Flash Builder 4.6
    - If you have installed on pc, does not work adobe air drag and drop
    [Solution]
    1. Reinstalling the Windows 7 (32bit).
    2. Install Flash Builder 4.5.
    3. Flash Builder 4.5.1 updater and Flash Builder 4.6 does not install.
       (Instead of using Flex SDK 4.6 is set up)
    In addition, Windows7 64bit environment does not work drag and drop.
    Is there another solution?

  • Please help me download and install Flash Player!

    One day, I had no problems viewing Flash on my computer. Then
    one day last week, it told me I needed to download Flash Player 8
    to view The Vine on E!Online. I haven't been able to download Flash
    Player 8 or 9. Or anything from this site, for that matter.
    I went here (
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoi d=BIOW),
    clicked download. Clicked the yellow strip that appeared to install
    the Active X control or whatever it's called. A pop-up asked if I
    wanted to install or do not install. I clicked install, then
    nothing happens. No download box shows up or anything.
    I've un-installed my flash player (if i even had one) and
    have tried so many times to download a new flash player.
    PLEASE HELP!

    ive uploaded the exe file to my server, so
    go
    here and save it to your comp, unzip the file, and run the
    program.

  • Please help.. me and my hubby both have the iphone 4 and use the same email address and itunes account. I got mine yesterday and activated it to find all my husbands contacts on my phone. I deleted them and he lost all his contacts. How can we stop this !

    Hy please help...
    My husband purchased  an iphone at xmas and evrything was fine until i purchased 1 yesterday . We both use the same email address which is linked to our itunes account (ithink) I registered mine yesterday and all my husbands contacts came on to my phone, so i deleted them and he lost them all on his phone :-( now if he adds or deletes anything i get it or the other way round please please help

    If you are saying that you both have iCloud accounts and use the same icloud ID, then yes, the contacts will be deleted.  The idea is that all devices using the same icloud ID are kept in sync.  You need to use different IDs.  You can keep the same iTunes ID so you can share the songs and apps.  But use different icloud IDs.

  • Please Help- IPod Classic and Mac/Itunes

    Hi all,
    I'm new here because I have a bit of a problem. Please forgive me for my lack of general computer/Ipod knowledge...
    I purchased my MacBook about 4 1/2 years ago. I'm not sure exactly what model I have, but the age should help you determine that.
    I also purchased my Ipod about 5 years ago. I think it's the first "video" Ipod that came out. It's 40 Gig, white, and pretty basic.
    I've taken exquisite care of my Ipod because I'm just interested in putting my new CD's on it, and taking it with me in the car so I don't have to lug around 40 CD's all the time.
    Anyway, for the last 2 years or so, my process of putting new music on my IPod was as follows:
    1. Open Itunes
    2. Import CD
    3. Hook Ipod up to the USB port (my Ipod is not synched)
    4. Click and highlight the new CD and drag it to my Ipod
    5. After updating, disconnect my Ipod
    6. Delete CD off of Itunes libary
    This has gone off without a hitch for quite some time.
    The other day, I went through this exact process, as I've purchased a new CD, but I had an issue.
    After I plugged my Ipod in, Itunes recognized it, as usual. But, on the Ipod screen, it continued to flash "do not disconnect." After a half hour of waiting, it didn't go away. I tried to drag the new songs to my Ipod like usual, and then disconnect, but to no avail.
    In the past, when I hooked up my Ipod, after about 20 seconds, the "Do Not Disconnect" screen would disappear, and take me to my main menu (on the Ipod).
    Now, that screen doesn't turn off, and I can't get new songs onto the device.
    Please help...I'm not very good with any of this, and would very much like to hear my new music.
    Thanks for your help!
    Jeff

    hold the menu and middle buttons down together until the screen on the ipod goes blank. that restarts it then try your normal process again

  • Please Help - Time Capsule and External hard drive Issues

    Recently, I switched from Comcast to AT&T uverse as my internet provider and I started experiencing problems.
    (1) I have a 4th generation Apple Time Capsule which I am using as my router.
    (2) Connected to the Apple Time Capsule - USB - is an external hard drive (not for backup with Time Machine.)
    (3) I have a 2011 Macbook pro which I use to access my file on my time capsule and external hard drive.
    (4) I had been using my AT&T portable Hotspot from my cell phone to get internet access on my MacBook pro from remote locations to gain access to my external hard drive which is attached to the time capsule.
    (5) On August 2, 2014, I switched from Comcast to AT&T and had the AT&T turn off the router function. (I have been using the router from my apple time capsule)
    (6) Under Network I switched to bridge mode.
    (7) And since August 2, 2014 my time capsule has not been backup.
    THE PROBLEM - I need to be able to use the hotspot function from my cell phone to gain access on the external hard drive using my MacBook Pro which I was able to do before. Now it is showing time capsule under finder but unable to connect.
    Do I need to reset my Time Capsule since I have a new service provider. Everything else works fine - meaning able to get internet signal but unable to access my external hard drive and backup my time capsule. Please HELP.

    (5) On August 2, 2014, I switched from Comcast to AT&T and had the AT&T turn off the router function. (I have been using the router from my apple time capsule)
    (6) Under Network I switched to bridge mode.
    (7) And since August 2, 2014 my time capsule has not been backup.
    If you got ATT to turn off router function in their modem..
    Then 6. is wrong.. You cannot have the Network switched to bridge mode..
    You must have it set to dhcp and nat.
    That is also why you cannot backup.. the TC is off the network.
    Please change back to router mode in the TC.
    Ensure the internet tab shows dhcp and you create a wireless network.
    Then power down the TC... power down the ATT modem.. wait about 20min (you can try 5min.. but it might not be long enough).
    Power up the ATT modem.. wait 2min for things to flash lights in de right blinkin order.. then start the TC.
    Open the airport utility and make sure your TC captured the public IP and is now working as the router.
    That should fix that end of it.. the hotspot end??
    Tell us what happens.

  • PLEASE HELP flashing light and playbook doesn't switch on!!

    Hello,
    I have my tablet won't switch on and when I try to turn on, the red light and green light flashing 5 times. And then nothing. Unable to turn on.
    I tried a reboot by pressing power + volume - and nothing!
    I tried to update with BlackBerry Desktop Manager (latest version) and when the update reaches the end error message comes to me and it there was a problem: "A connection to the tablet Could not be ESTABLISHED. Please connect your tablet and try again. "
    I also tried to charge it with a 2000mA charger for several hours and still nothing.
    I no longer guarantee
    Please help me, I do not know what to do.
    thank you
    sorry for my english

    Same thing happened to me yesterday. After the error message, I plugged in the charger. It took quite a while but the tablet started charging. It reinstalled the update when it reached the 20% level. Another update error came up to change my setting. I checked my setting but didn't change anything and just reinstall update again which this time was a success. Hope this would help.

  • HT5676 my macpro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help!! and what does internal error got to do with installing a printer?

    my macbook pro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help me!! and what does internal error got to do with installing a printer?

    my macbook pro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help me!! and what does internal error got to do with installing a printer?

Maybe you are looking for