How to check whether music has finished playing and go to another frame

I have a bunch of music samples which are set up to play on
the click of a button, and at the same time go to another frame in
the movie clip so it says 'playing', with a stop button that takes
you back to frame 1. If you don't click stop, though, when the song
ends, it stays on this second frame, even though there is nothing
playing anymore, which is a bit confusing for the viewer.
So I need to tell flash to check whether the song is finished
playing, and then if it is, go back to frame 1. I have no idea how
to do this; have basically done it all using tutorial and samples
and my limited actionscript knowledge, but I can't find this
particular code, and don't really have any idea how to write it
from scratch.
Many thanks!
Here's my first frame actionscript:
stop();
this.createEmptyMovieClip ("mcSoundHolder",
this.getNextHighestDepth());
var mySound:Sound = new Sound (mcSoundHolder);
btn_Song1.onRelease = function():Void {
stopAllSounds();
mySound.loadSound("Soaring1-Burlesque.mp3", true);
gotoAndPlay("Song1");
btn_Song2.onRelease = function():Void {
stopAllSounds();
mySound.loadSound("Soaring2-PopCyclePotpourri.mp3", true);
gotoAndPlay("Song2");
btn_Song3.onRelease = function():Void {
stopAllSounds();
mySound.loadSound("Soaring3-PopCycle-SongofLight.mp3",
true);
gotoAndPlay("Song3");
and so on...

I am not sure how Tomcat handles this, but you need to use two-way (mutual authentication) request but not enforce SSL between Tomcat and the client browser. This will make the browser prompt the user for the cert they want to send. Then you'll need to tackle the other part of your problem, getting the correct content displayed depending on whether the user sent a cert or not. I'm even less help there than I was on the first part of your question.
So, yeah - good luck with that
Lee

Similar Messages

  • How to check whether campaign has been uploaded to online server

    Hi,
    How to check whether campaign has been uploaded to online server by using SQL analyzer
    Thanks,
    Rasheed

    Hi Rasheed,
    To quickly check if the campaign has been uploaded from MSA to the server, you can check the TR_STATUS column on the SMOPCCAMPN table for your campaign, if the value is P000 or P*** then it has been uploaded to the server and is waiting for confirmation, if the status is O, it has been uploaded and created in the server.
    Best Regards,
    Ankan

  • How to check whether  entity has been persisted in the current transaction

    Hello,
    I am porting functionality which relay heavily on lifecycle of the entity.
    For example methods like these:
    * returns true if the instance has been modified, deleted or newly made
    * persistent in the current transaction
    public boolean isModified(final EntityObject entity)
    public boolean isDeleted(final EntityObject entity)
    For some of these callsI have found how to port them to toplink und just want to validate that this is the right way:
    protected static UnitOfWork getUnitOfWork(EntityManager entityManager) {
    return ((JpaEntityManager) (entityManager.getDelegate())).getUnitOfWork();
    public static boolean isModified(EntityManager entityManager, Object entity) {
    UnitOfWorkChangeSet set = getUnitOfWork(entityManager).getCurrentChanges();
    ObjectChangeSet oset = set.getObjectChangeSetForClone(entity);
    return !oset.getChanges().isEmpty() || oset.isNew();
    public static boolean isDeleted(EntityManager entityManager, Object entity) {
    UnitOfWorkChangeSet set = getUnitOfWork(entityManager).getCurrentChanges();
    return set.getDeletedObjects().keySet().contains(entity);
    but I did not find how to do following with the eclipselink:
    * returns true, if the given entity object has been persistet during the
    * current transaction
    * @param entity
    * @return true, if the given entity object has been persistet during the
    * current transaction
    public boolean isPersistent(final EntityObject entity)
    Questions:
    - how can I check whether the entity is persistent in the sense already stored in the DB ?
    - how can I check whether the entity has been persisted in the current transaction ?
    Thanks in advance.
    Andre Teshler

    Hi Andre,
    In Eclipse link there are Entity listeners which will define the life cycle events like preInsert(),postInsert() etc.On successful insertion of an object its postInsert() life cycle method gets called.If you have to validate whether object inserted successfully then best place is to override the postInsert() and check for the existence of the record.All the event life cycle methods take a DescriptorEvent as parameter which will give handle to API as given below.In the same method you can check if this insert operation succeeded in the same transaction.
    package model;
    import java.util.Vector;
    import org.eclipse.persistence.descriptors.DescriptorEvent;
    import org.eclipse.persistence.descriptors.DescriptorEventAdapter;
    import org.eclipse.persistence.descriptors.DescriptorEventListener;
    import org.eclipse.persistence.internal.sessions.ObjectChangeSet;
    public class SampleEntityLIstener extends DescriptorEventAdapter {
    public SampleEntityLIstener() {
    super();
    public void postInsert(DescriptorEvent event) {
    event.getRecord().containsKey("pass the object");
    event.getChangeSet().getUOWChangeSet();
    public void preInsert(DescriptorEvent event) {
    Once you implement the DescriptorEventListener,need to register with the Entity so that life cycle methods gets called and respective business logic gets executed.
    Hope this helps,
    Regards,
    P.Vinay Kumar

  • How do i share music on 1 computer and movies on another?

    i have apple tv and i was wondering if it was possible to have the music on one computer and the rented movies on another?
    if it is possible, than is it possible to put the music on 1 computer with (lets say itunes ID: user1 and user2) user1 and movies with user 2?

    Assuming you have the 2nd gen Apple TV you can only set up Home Sharing with one iTunes ID at a time. I would set up Home Sharing with the iTunes ID that has the music collection. For movies I would use AirPlay to send to the Apple TV.
    See these support articles
    http://support.apple.com/kb/ht3819
    http://support.apple.com/kb/HT4437

  • How to check whether the system has eclipse environment: urgent

    Hi gurus
    can you please tell me how to check whether my crm system has eclipse envirionment.
    Thanks
    shashi

    There is no way to check whether a system is used productively or not, I believe what you mean is checking a client is productive or not in an ABAP-stack based system. Remember although a SAP ABAP system is identified by a SID but from a business perspective the system is recognized by a client, as it is a unique business identity.
    Thus, to check whether the client is productive or not in txn SCC4 check the role of the client, it will show you the correct status. The data of SCC4 is stored in table T000, you can also opt to check that.
    - Regards, Dibya

  • Original iPad, all music has stopped playing, no "Music", pandora or iheart radio.  How do I hear the music once again?

    Help!  Original iPad, all music has stopped playing, no preloaded "music" app, pandora or iheart radio.  How do I hear the music once again?

    Never Mind -  found help on another thread.  Rebooted the ipad, and all items now will play.

  • How to see whether GR has been done on PO or Inbound Delivery

    Hi Gurus
    How to know whether GR has been done on PO or inbound delivery. Is there any report or tables through that we can see this.
    Regards
    Irfan

    Hi
    If you check the material document posted for GR it should specify
    If the GR is done with respect to Inbound delivery then the inbound delivery number will be in material document if I remember it correctly.
    Please check and advice
    Deepak

  • How to check Whether the File is in Progress or used by some other resource

    Hi All,
    I am retrieving a file from the FTP server using Apache commons FTP.
    I need to check whether the file is fully retrieved or in progress.
    for now i can able to use the file which is partially retrieved. it is not throwing any file sharing exception or i am unable to find whether it is in progress.
    How to check whether the file is in progress ? or The file is accessed by some other resource ?
    Pls Help me.
    Thanks,
    J.Kathir

    Hi Vamsi,
    Explicitly such kind of requirement has not been catered and i dont think you would face a problem because any application that is writing to a file will open the file in the read only mode to any other simultaneous applications so i think your concerns although valid are already taken care off .
    In the remote case you still face a problem then as a work around. Tell the FTP administrator to set the property to maximum connections that can be made to ftp as one. I wonder if you have heard of the concept of FTP handle , basically the above workaround is based on that concept itself. This way only one application will be able to write.
    The file adapter will wait for its turn and then write the files.
    Regards
    joel
    Edited by: joel trinidade on Jun 26, 2009 11:06 AM

  • How to check whether system privilege are granted

    How to check whether system privileges like 'create session' and other ones are granted for user.
    Is there any sys table where this information is available?
    Regards - Neuron

    Keep in mind select * from dba_sys_privs where grantee = 'some-user' will give you a list of privileges granted to some-user directly. To get complete list of system privs granted to a user both directly an via roles use:
    ACCEPT USER PROMPT 'Please enter user name: '
    COLUMN PATH FORMAT A90
    SET LINESIZE 132
    SELECT  PATH,
            PRIVILEGE
      FROM  DBA_SYS_PRIVS,
              SELECT  'DIRECT GRANT' PATH,
                      '&USER' GRANTED_ROLE
                FROM  DUAL
             UNION ALL
              SELECT  LTRIM(SYS_CONNECT_BY_PATH(GRANTED_ROLE,'->'),'->') PATH,
                      GRANTED_ROLE
                FROM  DBA_ROLE_PRIVS
                START WITH GRANTEE = UPPER('&USER')
                CONNECT BY PRIOR GRANTED_ROLE = GRANTEE
      WHERE GRANTEE = GRANTED_ROLE
    /Now on top of privileges granted to a user, user also has privileges granted to PUBLIC. To get privileges user receives via PUBLIC run the above script specifying PUBLIC at the prompt.
    SY.

  • How to check whether user login in SNC mode or Non - SNC Mode

    Hi
    When SNC is enabled system will accept secure network connections. But,It is up to the user to login in SNC mode or NOT.
    Can any one let me know How to check whether user login in a SNC mode / Non-SNC mode?. Is it only through SU01?.
    Is there any other possibility?. where to check if user login through RFC connections?.
    Please correct me if i am wrong.
    Regards
    Srinivas P.

    Hi,
    Where to check if user login through RFC connections?
    Check T-Code SM04 on every instance. In the column Type you can see what kind of login has been used (GUI, RFC, Plugin, System).
    But,It is up to the user to login in SNC mode or NOT.
    Depends. Check these [parameters|http://help.sap.com/saphelp_nw04/helpdata/EN/19/164442c1a1c353e10000000a1550b0/content.htm]:
    snc/accept_insecure_cpic     
    snc/accept_insecure_gui      
    snc/accept_insecure_r3int_rfc
    snc/accept_insecure_rfc      
    Regards,
    Sven

  • How to check whether a Oracle server is installed or not ?

    Hi,
    How cani check whether a Machine has oracle server installed or not ?
    I have a machine where i have the client tools installed but not server. In that case how can i check whether this machine has oracle server is installed or not?
    Thanks in Advance..

    user11000236 wrote:
    Hi,
    How cani check whether a Machine has oracle server installed or not ?
    I have a machine where i have the client tools installed but not server. In that case how can i check whether this machine has oracle server is installed or not?
    Thanks in Advance..http://tinyurl.com/ngunhv
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • R12.1.1 staging complete! How to check whether the stage is Good

    Hi Gurusl,
    I have completed staging R12.1.1 for Hp unix B.11.31. I want to know how to check whether the stage is good for installation or whether it is corrupted. Is there any metalink note or script from where we can check it. Ur help will be highly appreciated. Thanks in advance
    regards,

    Hi,
    Please refer to (Note: 802195.1 - MD5 Checksums for R12.1.1 Rapid Install Media).
    Regards,
    Hussein

  • How to check whether transport path exist between two systems in sld??

    Hi,
         I have two systems namely 'A' and 'B' and created business systems for both of them.Then i created transport path between the two systems.How i check whether what i have done is right in SLD.

    <b>WRT to CMS</b>
    am not sure with this but u can try:
    1. Start CMS: http://<host>:<J2EE Engine http port>/webdynpro/dispatcher/sap.com/tcSLCMS~WebUI/Cms.
    2. Goto lansdscape configurator and check there
    Message was edited by:
            Prabhu  S

  • How to check whether follow on document is created for sc or po,is there any table or fm available?

    How to check whether follow on document is created for sc or po,is there any table or fm available?

    Hello Venu
    Check FM: BBP_PD_SC_GETDETAIL and BBP_PD_PO_GETDETAIL table E_HEADER_REL
    Check this: SRM Shopping cart and PO tables link
    Regards

  • How to check whether there r new txt files in a folder n file creation date

    How to check whether there r new text files in a specified folder and what is the date of creation of the text file.........?

    Hi
    I have been searching for a solution to find the date of creation of a file for over 6 months now but haven't found it. So I presume that it is not possible though I havent found any authentication of my assumption in any document.
    Cheers!
    Shailesh

Maybe you are looking for

  • Installing flashplayer 8

    I have an eMac with OS 10.2.8 installed. I am trying to install flash player 8 but I keep getting error messages. error 108:9, -5000 Access denied error and then You do not have enough access privleges for this installation. I have uninstalled player

  • AC adapter gets very hot

    I have a new Thinkpad Edge e530. The adapter gets very hot when the battery is charging.  Not so hot that I can't hold it, but still, very hot. Relevant specs: * Adapter:  65 W * Battery:  "the bigger one" (6 cell LI Bat-75+,62WH) * Graphics:  integr

  • Flex - scroll wheel ok using IE, but not on FF or Chrome?

    Switching between browsers during debugging and noticed the scroll  wheel does not work in Firefox or Chrome, but is fine in Internet  Explorer. Anyone else notice this? Suppose I could use a scroll listener  and manually do it, but would much rather

  • Error -21872 occurred at mod_Validate RS code prms.vi

    I am receiving the error message "Error -21872 occurred at mod_Validate RS code prms.vi"  Can any body guide me how to fix it. See attached VI for further details. JK Attachments: RS_Encode_V2.vi ‏17 KB

  • Meeting Requests - sending multiple options for a meeting time / or / group voting option

    Good day, As a manager of three divisions in my company, and with frequent external meetings with suppliers, I often face a challenge when proposing meeting times - with busy shedules, I like to always propose 2 or 3 availabilities in my schedule for