Is it possible to have a droppable event happen just once?

Hi,
I have a character that when entering a droppable area, triggers an animation to occur. However, I only want this to happen once and not every time my character enters the droppable area, can you help me to achieve this?
here is my code:
var container = sym.$("container");
  sym.$("ALF").draggable({ containment: container });
sym.$('ALF').draggable({
      start: function() {
       sym.getSymbol('ALF').play();
       // Play an audio track
       sym.getSymbol("walkSound").$("step")[0].play();
     stop: function() {
        sym.getSymbol('ALF').stop();
        sym.getSymbol("walkSound").$("step")[0].pause();
  //Droppable... on the target!
  sym.$('DOCKSPACE').droppable({drop: function() {sym.getSymbol("SUBRISE").play();}});

ok, put that at top, see below, but i'm getting a syntax error on line 33 and can't work out how/where i should be closing bracket? don't suppose you can help? appreciate you are v busy.
var active=true;
var container = sym.$("container");
  sym.$("ALF").draggable({ containment: container });
sym.$('ALF').draggable({
      start: function() {
       sym.getSymbol('ALF').play();
  If (active==true){
// play code here
sym.getSymbol("SUBRISE").play();
active = false;
}else{
sym.getSymbol("SUBRISE").stop();
       // Play an audio track
       sym.getSymbol("walkSound").$("step")[0].play();
     stop: function() {
        sym.getSymbol('ALF').stop();
        sym.getSymbol("walkSound").$("step")[0].pause();
  //Droppable... on the target!
  sym.$('DOCKSPACE').droppable({drop: function() {sym.getSymbol("SUBRISE").play();
  sym.$("Text").html("There she blows! Ready for her clean!");}});

Similar Messages

  • Is it possible to have sub-folder events inside an event on iPhoto?

    Is it at all possible to have an Event (eg. Pets) then have sub-events inside that event (eg. Dog, Cat etc.) in iPhoto?
    I can't seem to find anything...
    Any help greatly appreciated.

    No it's not.
    Basically, Events are organisation for those who can't be bothered. SImple date and time grouping of photos.
    If you want more, now it's time to explore Albums and Folders.
    So, a Folder called 'Animals' and within it, two Albums, one for 'Dog' and one for 'Cat'
    Albums are much more flexible than events, you can arrange the photos within albums with much more flexibility. A photo can be in multiple albums using no extra disk space, whereas to have a photo in multiple Events requires a duplicate file and so on.
    FWIW here's a canned answer I use to illustrate some of the organisation possibilities of iPhoto...
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 50k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.

  • Is it possible to have 2 iWeb sites (not just "Start Site")

    I have a great functioning iWeb site, but it is my personal site and I need to create a separate one for my business. Is there a way to do this in iWeb? I don't want to switch back and forth between "start sites"

    Welcome to the Apple Discussions. Yes, you can have multiple sites. One way is to use iWebSites to create a separate domain file for your second site and switch between the two for editing and publishing. I use iWebSites to manage over 40 individual sites.. It lets me create multiple sites and multiple domain files.
    If you have multiple sites in one domain file here's the workflow I used to split them into individual site files with iWebSites. Be sure to make a backup copy of your original Domain.sites files before starting the splitting process and move it to another location on your HD until you're satisfied the separation process is completed and what you want.
    This lets me edit several sites and only republish the one I want.
    You can have multiple sites in one MobileMe account. They would have their own separate URLs as follows: http://web.me.com/yourMMe_accountname/site name. If you have domain names those would be the URLs you would forward to.
    OT

  • In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to him.

    In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to such person, but the only one shows up is the birthday. How to be able to show all those dates linked to people in the agenda in the iCal?
    Thanks

    Hi,
    I sugggest you try my application, Dates to iCal. It is shareware with a 2 week trial period.
    Dates to iCal 2 is a replacement for Apple's birthday calendar for iCal. It has a range of features to allow the user to choose what, and what not, to sync to iCal from Address Book.
    As well as automatically syncing birthday dates from Address Book, Dates to iCal 2 can sync anniversary and custom dates. It can set up to five alarms for each date in iCal and can also set different alarms for birthdays and anniversaries. It allows the option of only syncing from one Address Book group. This application also allows for the titles of the events sent to iCal to be modified to the user's preference.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Is it possible to have listener for orcale shut won event ?

    Hi,
    We know that during normal shut down of the oracle database, message is sent to the clients. Is it possible to have listener for that event using JDC ?
    Any suggestion is welcome.
    TIA,
    Sudarson

    This is not something that Verizon would handle or be able to change.  It would be something that Google would have to change in the Android source code, or the OEMs in their device specific versions.  Or you could just look for another app.

  • Is it possible to have an event within an event?

    I have an event named for my niece, and I have all the pictures of her in it. I'm wondering if it's possible to have events within events, so I can just have 1 event with her name, then when you click on it, sub-events named things like "Christmas" "Thanksgiving" etc.?

    no - events are time based and can not be nested - use albums and smart albums which can be placed in folders and folders can be placed in folders for that kind of organization - Europe folder containing France and Italy folders each containing cities as an example
    Events are just a very basic and inflexible organization for people to start with - albums, folders, keywords and ratings are where the power is
    LN

  • Is it possible to have multiple lines of text show for an event in monthly view?

    as an example, have a few lines of flight info show up without double clicking on event and it would be nice to have the entire event in a monthly printout too. Thank you.

    Hi Scott,
    Thank you very much for your reply and I apologize for getting back to this so late. I started using your suggestions today and I did have some success! The "shadow" button is very clever. Now, I think my lack of javascript syntax knowledge is keeping me from getting it all correct. I experimented with one field, a date field and I created the shadow button as you suggested and it worked perfectly!. The successful code I used for the click event for the gray button (see image below), was:
    form1.SSA.SF_Approver2RIF.SubmitRIFToFinalHrShadowButton::click - (JavaScript, client)
    if (form1.SSA.SF_Approver2RIF.Approver2RIFDate.rawValue == null) {
    xfa.host.messageBox("Please fill in all required fields");
    else form1.SSA.SF_Approver2RIF.SubmitRIFToFinalHrButton.execEvent("click");
    However, I have not yet had luck getting the other fields in that row to work like the date field has though. I don't think I'm coding the "or' part correctly when I begin to add the fields (the next one I'm trying to add after the "or" is the "Name" dropdown list box, but maybet the dropdown list doesn't count as a "null" value like the Date field does?
    My attempt at adding the name field so that two items are being checked is something like this but it does not work:
    form1.SSA.SF_Approver2RIF.SubmitRIFToFinalHrShadowButton::click - (JavaScript, client)
    if (form1.SSA.SF_Approver2RIF.Approver2RIFDate.rawValue == null){
    or
    (form1.SSA.SF_Approver2RIF.Approver2RIFName.rawValue == null)
    xfa.host.messageBox("Please fill in all required fields");
    else form1.SSA.SF_Approver2RIF.SubmitRIFToFinalHrButton.execEvent("click");
    Thank you so much for any additional insights you or the other members may have. I really appreciate it!
    -Chris

  • RE: DropLists in ArrayFields - is it possible to have adifferent sele

    Richard;
    Here you go....
    newList : Array of ListElement = new;
    { add elements }
    row : Integer = { get your row };
    column : Integer = { get by name or just know the number }
    // poof! Watch that down cast!
    (DropList)(<arrayField>.BodyGrid.GetChildInCell(row,column)).SetElementList(
    newList);
    You can also change FieldWidget settings....
    <arrayField>.BodyGrid.GetChildInCell(row,column).FillColor =
    C_BLUE;
    My array field doesn't scroll (lucky me!). See if the AfterFieldScrolled
    event fires at the right time to recalculate the widget state. I haven't
    played with it and I'm far from a Forte GUI guru, but I suspect that you are
    altering the column template and the visible widget is separate from the
    data. So as you scroll, the data would scroll but the new settings stay
    put. That's not what I would want/need. The widget reflects something
    about the data. When the data scrolls, so should the presentation
    properties!
    What may be needed is to somehow derive the presentation state settings
    dynamically from the mapped data. So when the data scrolled, the dynamic
    settings change on the new presentation row.
    Let me know.....
    Scott Irwin
    -----Original Message-----
    From: Richard Finegan [SMTP:[email protected]]
    Sent: Monday, August 24, 1998 1:38 PM
    To: 'Forte Users Mailing List'
    Subject: DropLists in ArrayFields - is it possible to have a
    different selection list per row?
    I have a DropList in an ArrayField column. Is it possible to have a
    different list of selections for each DropList in a different row?
    (ex.
    DropList #1 in row #1 can choose from a/b/c, whereas a DropList #2
    in row
    #2 can choose only from d/e/f, etc.) Technote 4996 seems to imply
    that it
    isn't possible, and everything I've tried so far has failed as well.
    Any insight appreciated.
    Richard Finegan
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    One way to do this is to get at the specific dropList widget in the
    arrayField by calling the getChildInCell(Row,Column) method on
    <..theArrayField..>.BodyGrid. This widget can then be assigned any
    dropList you want. Depending on the uniqueness of the individual
    dropLists, each data row specific dropList can be coded as an attribute
    (array of ListElement) on the mapped class, which can then be assigned
    to the dropList widget.
    A code snippet to do this would be -
    method refreshArray
    begin
    for displayRow in 1 to <myArrayField>.VisibleRows do
    dataRow : integer = displayRow + <myArrayField>.TopRow - 1;
    myDropListWidget : dropList =
    dropList(<myArrayField>.BodyGrid.getChildInCell(displayRow,
    <..columnNumOfDropList..>));
    myDropListWidget.setElementList(myArrayField[dataRow].myElementList);
    end for;
    end method;
    This method has be called only when the user scrolls the arrayField, as
    in -
    when <myArrayField>.AfterFieldScrolled do
    refreshArray();
    Hope this helps.
    Prashant.
    From: Richard Finegan[SMTP:[email protected]]
    Reply To: Richard Finegan
    Sent: Monday, August 24, 1998 11:38 AM
    To: 'Forte Users Mailing List'
    Subject: DropLists in ArrayFields - is it possible to have a
    different selection list per row?
    I have a DropList in an ArrayField column. Is it possible to have a
    different list of selections for each DropList in a different row?
    (ex.
    DropList #1 in row #1 can choose from a/b/c, whereas a DropList #2 in
    row
    #2 can choose only from d/e/f, etc.) Technote 4996 seems to imply
    that it
    isn't possible, and everything I've tried so far has failed as well.
    Any insight appreciated.
    Richard Finegan
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Is it possible to generate a user event when shared variable value change on RT target?

    Hi,
        I wonder if it is possible to generate a user event when a network published shared variable value change?
        Thanks a lot!
        Regards,
        Tom

    Tom,
    I understand not wanting to waster resources on polling but I am not aware that LabVIEW can automatically generate an event on a SV change.
    Maybe a better solution...
    You could implement lower level TCP communication (i.e. have a look at STM - simple messaging protocol) for passing data betweeen RT and PC (instead of using a SV).  You could send a generic command (boolean trigger maybe?) from your RT system when the value of whatever it is the SV is storing has changed.  You can avoid polling on the non-RT system this way.
    Dan

  • Is it possible to have the background colour of a field change based on the entry?

    I previously obtained help from a user here to create a script that autopopulates a field based on options selected in two sets of radio buttons:
    var consequence = this.getField("Consequence").valueAsString; 
    var likelihood = this.getField("Likelihood").valueAsString; 
    if (consequence=="Insignificant" && likelihood=="Rare") event.value = "Low"; 
    else if (consequence=="Insignificant" && likelihood=="Unlikely") event.value = "Low";
    else if (consequence=="Insignificant" && likelihood=="Moderate") event.value = "Low";
    else if (consequence=="Insignificant" && likelihood=="Likely") event.value = "Low";
    else if (consequence=="Insignificant" && likelihood=="Almost Certain") event.value = "Moderate"; 
    else if (consequence=="Minor" && likelihood=="Rare") event.value = "Low"; 
    else if (consequence=="Minor" && likelihood=="Unlikely") event.value = "Low";
    else if (consequence=="Minor" && likelihood=="Moderate") event.value = "Moderate";
    else if (consequence=="Minor" && likelihood=="Likely") event.value = "Moderate";
    else if (consequence=="Minor" && likelihood=="Almost Certain") event.value = "High"; 
    else if (consequence=="Moderate" && likelihood=="Rare") event.value = "Low"; 
    else if (consequence=="Moderate" && likelihood=="Unlikely") event.value = "Moderate";
    else if (consequence=="Moderate" && likelihood=="Moderate") event.value = "High";
    else if (consequence=="Moderate" && likelihood=="Likely") event.value = "High";
    else if (consequence=="Moderate" && likelihood=="Almost Certain") event.value = "Critical"; 
    else if (consequence=="Major" && likelihood=="Rare") event.value = "Low"; 
    else if (consequence=="Major" && likelihood=="Unlikely") event.value = "Moderate";
    else if (consequence=="Major" && likelihood=="Moderate") event.value = "High";
    else if (consequence=="Major" && likelihood=="Likely") event.value = "Critical";
    else if (consequence=="Major" && likelihood=="Almost Certain") event.value = "Extreme"; 
    else if (consequence=="Catastrophic" && likelihood=="Rare") event.value = "Moderate"; 
    else if (consequence=="Catastrophic" && likelihood=="Unlikely") event.value = "High";
    else if (consequence=="Catastrophic" && likelihood=="Moderate") event.value = "Critical";
    else if (consequence=="Catastrophic" && likelihood=="Likely") event.value = "Extreme";
    else if (consequence=="Catastrophic" && likelihood=="Almost Certain") event.value = "Extreme";
    // etc. 
    else event.value = ""; 
    I'm wondering if its possible to have the colour of the field that uses the above script, change based on the entry. E.g. If the answer is Low; make the background colour Green; if its Moderate, make it orange etc.?
    I know its a big ask but thought I would check.
    Thanks in advance.

    One approach would be to have access to a Mac that can run the classic environment or has a pre OS X native installation. These should be able to read the files for dates of creation/modification. There is also SheepShaver that runs on OS X machines.
    https://www.macupdate.com/app/mac/20615/sheepshaver
    http://en.wikipedia.org/wiki/Classic_Environment
    http://www.everymac.com/systems/by_capability/macs-that-support-macos-9-classic. html
    https://discussions.apple.com/message/22597899#22597899

  • Is it possible to set quota or events expiration preferences ?

    Is it possible to set quota or events expiration preferences?
    <P>
    There are admin tools that can go into calendars and delete events over a
    range of time. There is no automatic way to do this with iCS 2.x. You would
    have to write a script to run periodically, loop through all calendars, and
    delete events that are considered "old".
    <P>
    There are no quotas in iCS 2.x.
    <P>
    The admin tools can list calendars for a user. Once you know the calendar, there
    are admin tools that can list events, etc. There is also an admin tool to list
    the total disk usage.

    this may be impossible.

  • Possible to Have ToC Default to Show Only Top Level (collapse sublevels)?

    Howdy!
    I'll bet I'm not the only one wishing for this.  Let's say you're using Captivate 4's Table of Contents feature with a longish movie of Cp slides, which is chunked into bite-size sections content-wise.  In the ToC, though, you can't mimic that same organization scheme; at least, the learner would first need to collapse all the ToC folders you've created so they see only the top-level listing.
    This can be a critical issue:  keeping the at-first-glance list in the ToC brief enough to be inviting to learners, yet allowing learners to drive which details are currently visible.
    A movie's topical hierarchy could be along these lines, for example ...
    Section 1 - National Brands
    What are National Brands?
    Why Are They Important to Our Business?
    Working with Nat. Brands
    Practice Your Knowledge
    Section 2 - International Brands
    What are International Brands?
    Why Are They Important to Our Business?
    Working with Intl. Brands
    Practice Your Knowledge
    You'd like to organize the ToC to show only the section titles (1st level) and to suppress the 2nd-level detail (slide titles) until the learner chooses to expand the folder to see those details.
    I've tried things like grouping the slides into sections in the Storyboard view and organizing the slides into sections strictly within the ToC -- both to no avail.
    Has anyone solved for this need yet?
    I'm all ears, and you'd be doing learners of the world a huge favor.
    Thanks!

    Hi, Jim.
    Thanks for being 'on the case' and looking into this so quickly.  Your
    findings are encouraging, although my user base is generally working with
    IE 6 and FP8 or 9.
    Since the only thing I may influence is getting  IT to help push out FP10,
    I'm hoping it's more of a player- than a browser-version issue.
    I'll test things out by Monday and let you know the results.  Wish me luck!
    Dave
                                                                                    From:       Jim Leichliter <[email protected]>                                                                               
    To:         Dave Tressler <[email protected]>                                                                               
    Date:       03/26/2010 06:02 PM                                                                               
    Subject:    Possible to Have ToC Default to Show Only Top Level (collapse
                  sublevels)?                                                                                
    Dave,
    I just tested this on my local web server and it worked fine.  I created a
    blank project with 8 slides.  Created my TOC with grouping... 2 slides in
    each group.  I turned on self paced learning.  I tried with and without the
    widget and it picked up where I left off in either case.  See
    https://docs.google.com/leaf?id=0B86WuEq6SVwRNWIwMjhjODctMjE2Yy00MWE2LWI5YzEtMGQxYzNjOWQ0Z mI2&hl=en. 
    I published using FP10 and IE8 to view.  Notice any difference between
    your project and this one?
    Thanks,
    Jim Leichliter

  • Is it possible to have an attachment within a pdf doc print at the same time the main doc prints?

    Okay, so this may be kind of a weird question.  We have some users who are wanting to add a page to an already existing xml document and correct me if I'm wrong, but I've read that it's not possible to add/delete pages from a pdf that's in xml format.  Since that is not possible, I have added the page to the xml document as an attachment.  Now what I am wanting to know is if it is possible to have the attachment print out at the same time as the main document.  We are using the latest version of Adobe Reader and I have access to Adobe Acrobat Standard 9 & 10 and then I have access to Adobe Acrobat Pro 7.  I've been unable to find anyting via google or by searching this forum so hopefully I'll draw out some kind of smart cookies and we'll get this figured out.  I appreciate any and all input!
    Thanks,

    I know of no way to do this with Reader or XML.

  • HT1399 Why cant I create a playlist for my music/song videos? Continuous play is also not possible in the video app on the phone!!!! previously, prior to IOS 6, it was possible to have both music videos & songs mixed in the same playlist in the music app

    Why cant I create a playlist for my music/song videos? Continuous play is also not possible in the video app on the phone!!!! previously, prior to IOS 6, it was possible to have both music videos & songs mixed in the same playlist in the music app

    I am back with an update. I turned off Match on both the ipad and the iphone 5. By doing so I was able to sync my Iphone and ipad to itunes and store the music on my devices rather than the slow streaming.  So far this has fixed my problems with the iphone I have all my music, playlist, most of the album art and so on.  But the ipad is a different story.  I have the music and artist but not one playlist  I am sure Apple will have an upgrade soon that will address these issues they are usually very good about this. 
    Now have any of you experienced another problem that has existed as long as I have used faces in Aperture.
    I have over 200 faces and they are organized a-z problem is I have this going on A-Z folowed by a few that start over A-Z followed by another few A-Z and again a 4th time A-Z.  Imagine how difficult it is while I am showing someone the great features of my iphone, ipad and imac.  Which I do talk highly of all the time.  But how do I explain that even though their name starts with a or b or what ever they are not important enough to me to be in the first list of A-Z or even the 2nd or 3rd list of A-Z someohow they are in the 4th section of the list!!!!
    I have managed to get the Imac to fix this but for some reason the IOS devices do not.   Any ideas?
    Thanks Al

  • E72 - Possible to have more than 2 email accounts ...

    E72
    So is it possible to have more than 2 email accounts shown at the home screen?
    Currently one is set as primary and the other as secondary.. I have 4 email addresses I want shown at the main screen..
    Please help.

    jane999 wrote:
    Basically I want to share A1 with somebody else and we both use yahoo email. So I need to sign out before she can sign in. Any way to do that? 
    Thanks in advance for any help!
    You didn't specify whether you are using the "official" Yahoo mail app, or some other email application like K-9.  But either of those allow for the specification of multiple email accounts, and you don't even really need to sign in/out.  Once you set up the accounts within the app, just select the email account that you want to view.  It might be a little more problematic if you want to prevent each other from being able to see the other's email, however.

Maybe you are looking for

  • Officejet 6500 will print in IE8 but not in 3.5.6 Firefox

    Having problems printing off the internet from Mozilla Firefox. I have an Officejet 6500 and it will print in wordpad, open office and internet Explorer but wont print from firefox. Its feeds the page but dosent put any ink on the paper. These proble

  • Display malfunction - iphone 4

    So in a normal day i was using my iphone 4 then it went black because of the battery. when i get it to recharge, it doesn't turn on the display, the apple logo doesnt appear when i turn it on and when the display goes on, the only thing that shows on

  • Probably a daft Mac NOOB question but...

    Is there a way to allocate more RAM/CPU to audio apps? I'm running Logic Pro & I can quite easily overload my system as I use a tonne of plugins in realtime so I can keep them open to edit and automate.. I sort-of design my sound as Im working & i li

  • Why cant I play embeded wave files in firefox but I can in explorer?

    I just embedded a wave file (Godsmack Voodoo) for my website & saved it but when I goto run teh intro no sound, But explorer plays it no problems? What is wrong with Firefox 9.01 & playing the embedded sounds?

  • Text doesn't show up after exporting

    When I export my file, the text that I put in the file with the text tool doesn't show up. Everything else is fine though. Someone please halp!