Can´t find the way to make it work

Hi I asked this in this forum and others but nobody could give me an answer. I´m gonna try to explain it with more information and all the ways I had try to make it work.
First I´ll show you how my proyect is structured :
Those are all the scenes of the proyect (it is an interactive book).
My problem is with the scene5 (" _escena5") it looks like this :
Ok the current action affects to the symbol selected "_filtroEscena5" and it has this inside :
Allright,now I will explain the action:
I need to drag the symbol "_filtroEscena5" but only when I click on the "Ellipse". Ok, the easy way to do this is with a handle on the .draggable property well this works fine. The problem is the other part of the action. I have on the "_escena5" a few triggers "btnFantasma", "btnOsos" and "btnVini" those trigges have to been activate when the ellipse goes over. This is a scene of a lantern, you drag the light and when you illuminate the Triggers something happens.
So here is my problem, I can´t get the last part working. I first used the accept drop function. I made my triggers droppable and at the accept parameter I put this:
sym.getSymbol("_escena5").getSymbol('_filtroEscena5').$('Ellipse'),
But this does not work, if I make a rectangle o something like these to test it and put it on the accept it works, but not with the "Ellipse".
So I tried other thing...
At the draggable property of the "_filtroEscena5" I call the drag parameter and set this function :
drag : sym.getSymbol("_escena5").getSymbol('_filtroEscena5').$('Ellipse').draggable({
                                           start: function(e){},
                                           drag: function(e,ui){},
I do this to get the id of the Ellipse and then on the drop function of the Triggers i set this :
drop:function(e,ui){
         if(ui.draggable.attr('id')=="Stage__escena5__filtroEscena5_Ellipse"){alert("es vini");
             sym.getSymbol("_escena5").getSymbol('_filtroEscena5').$('Ellipse').draggable('destroy');
This made it responds only to the Ellipse element and then destroy the draggable property to make sure than when I drag it again I move all the symbol and not just the "Ellipse". And this is the problem with it, if I stop dragging the lantern at a trigger it works but if I stop it at any other place when I drag the Ellipse again it moves alone, the symbol does not move with it.
So I call a function at the stop parameter at the .draggable property of "_filtroEscena5" and call again this:
    sym.getSymbol("_escena5").getSymbol('_filtroEscena5').$('Ellipse').draggable('destroy');
All right now I move all the symbol only when I touch and drag the "Ellipse" and don´t care where I stopped it, when I drag it again it works. The problem? this broke the drop function for the triggers it´s like when you stop the drag and then ejecute the drop so when you stop the drag you lose the id information.
I don´t know what more I can do I tried other things but nothing change because this is for tablets and can´t use the mouseover like on the browser.
Plese some help my I spent a lot of time with it.
Thanks again.
Gabriel

Hi
Based on http://www.macosxhints.com/article.php?story=20090923134257835 I rewrite the script to do that. You can set alarms and mail alarms.
(If you don't know nothing about Applescript, just copy the following lines to a Script Editor file and run it, or may ask)
tell AppleScript to activate
display dialog "You want to delete all the previous alarms?" buttons {"Yes", "No"} default button 1
set del_alarm to the button returned of the result
display dialog "You want to receive an email at the same time of the alarm for the events?" buttons {"Yes", "No"} default button 1
set send_email to the button returned of the result
set alarm_date to get_data()
tell application "iCal"
tell calendar "Birthdays"
set all_events to every event
repeat with this_event in all_events
tell this_event
if del_alarm = "Yes" then
delete every sound alarm
delete every display alarm
delete every mail alarm
end if
if send_email = "Yes" then
make new mail alarm at end with properties {trigger interval:-alarm_date}
end if
make new display alarm at end with properties {trigger interval:-alarm_date}
end tell
end repeat
end tell
end tell
on get_data()
set prompt to "Setting the alarms" & return & return & "Days after the event:"
set dialogResult to display dialog prompt buttons {"Cancel", "OK"} default button 2 default answer 3 with icon 1
set dias to text returned of dialogResult
set prompt to "Setting the alarms" & return & return & "Hour of the day: "
set dialogResult to display dialog prompt buttons {"Cancel", "OK"} default button 2 default answer 8 with icon 1
set hora to text returned of dialogResult
set tiempo to (dias * 24 * 60 - hora * 60)
return tiempo
end get_data

Similar Messages

  • My imovie is frozen and i can't find a way to make it work.

    My i Movie is frozen and i can not find a way to make it work, HELP!!!

    Hi,
    Please use the following tips/instructions to fix:
        http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02221706&cc=us&lc=en&dlc=en
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How do I view what slide I'm on out of how many I have total in keynote? I know on powerpoint it's at the bottom right of the window but I can't find it on keynote nor can I find the option to make it appear. Any help would be greatly appreciated.

    How do I view what slide I'm on out of how many I have total in keynote? I know on powerpoint it's at the bottom right of the window but I can't find it on keynote, nor can I find the option to make it appear. Any help would be greatly appreciated.

    Your steps so far are OK but you may want to try:
    1 Trash your user library Caches folder (House Icon with short name in Finder window (hard drive window)GOTO:House icon > Library folder > caches folder
    2 Trash the com.apple.Safari.plist file in User library > preferences folder > Safari.plist as well as removing the library Safari folder its self.
    3 you can selectivly re-install Safari 2.0 from your OS Tiger Install disk 1, (see Knowledge base article 301229 for how to just select the Safari Application) without doing a complete system Archive and Install.
    4. Create a new Test user account on the system and test how Safari responds in the Test user, see if its a user related issue and not system issue.
    5. Still no Safari response? have to do an Archive and install (not preserving user and network settings)article 107120
    PS. Issue may be related to actual internet connection connectivity, power cycle cable modem and router or airport if using one as well as the computer(keep unplugged for 3-5 min) and plug the cable modem in and then the router/airport then power on the computer. Do the Airport Admin utiliy (applications, utilities on HD_1)update.
    - do a hard reset of airport knowledge base article 108044(Express base) and 107451 (Extreme base)
    - Check with internet provider for connection issues "cannot find server" ect.

  • Upgrade os x 10.6.8 to lion 10.7... Can't find the way to do it... Please help!

    I've a mac book air first version with os x 10.6.8. I ve just bought an i pad 3, and i'd like to use i cloud, but on the air it doesn't work. If i try to upgrade it to mountain lion, it says that is not possible if i don t have at least the 10.7.4......... But i can t find the way to download it.....
    Can anybody help me?????
    Thank you very much!
    Andrea

    Welcome to Apple Communities
    Your computer isn't compatible with 10.8. To buy Lion, call Apple Store

  • Where can I find the way to hide this TOOLTIP?

    Hello everyone!
    My name is Inspire.
    I have got a trouble with Dreamweaver cc 2014.
    Where can I find the way to hide this TOOLTIP? The Dreamwaver's CSS tooltip.
    I would like to say this tooltip is a TERRIBLE design. It BLOCKED my vision.

    Edit > Preferences > Code Hints.
    You can change default preferences for code hints. For example, if you don’t want to show CSS property names or Spry code hints, you can deselect them in code hints preferences. You can also set preferences for code hint delay time and closing tags.
    Even if code hints are disabled, you can still display a pop-up hint in Code view by pressing Control+Spacebar.
    Nancy O.

  • HT4061 HOW CAN I GET THE CODE TO MAKE IT WORK IN EGYPT

    HOW CAN I GET THE CODE TO MAKE IT WORK IN EGYPT
    this is my details    serial: DN*******8GH
    IMEI : ****
    MEID : ****
    MODE : MD656LL
    <Edited By Host>

    If your phone is not unlocked you need to contact the carrier it's locked to.

  • How do I transfer files from a flash drive to iMac. I get a folder with "no name" which I can live with but I can't find any way to make the actual physical transfer of the files to the iMac.

    How do I transfer files from a flash drive to my new iMac?  I get a folder with "no name" that I can live with but I can't find a way to transfer the flass drive files to to iMac hard drive.

    What happens when you try to drag & drop the files?
    ~Lyssa

  • I wnat to exit firefox sync in other drive but can't find the way to do it.This dirve is common PC,so I have to do that

    I was use firefox sync in the other drive which one is common PC and several man use it.Because it, I want to delect the data in this PC,but I know If i do that,my data will be lose in everywhere. SO I try to exit my account in this drive But I can't find the manage to exit the account.And my password
    was note in this drive that I think is maybe Dangerous for my personal data in friefox sync.
    May I have to delect The firefox sync add-one?

    Do you have specific problems with Flash that you needed to visit the Adobe help pages?
    Make sure that you allow the plugin-container.exe process in the firewall.<br />
    See http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins
    There are other things that need attention:
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
    Update the [[Java]] plugin to the latest version.
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • HT1918 how do I cancel subscriptions on Itunes?  I can't find the way to do it?

    Question
    How do I cancel subscriptions on ITunes?  I can't seem to find the way!

    There are instructions on this page for managing and stopping auto-renewing subscriptions : http://support.apple.com/kb/HT4098

  • The ProgressBar error - Can't find the __package__.js - Used to work fine

    Hello everybody
    Yesterday I created a page with some progress bar on it using the BluePrints components and it worked great. Today I come to work and nothing works. I used the HTTP monitor to study the requests and I got what you see below.
    Request 4:
    Request URI     /appcontext/dynamic/bpui_progressbar_handler/writeAjaxResponse.faces     Edit...
    Request 3:
    Request URI     /appcontext/static/META-INF/dojo/src/io/__package__.js     Edit...
    Request 2:
    Request URI     /appcontext/static/META-INF/dojo/src/__package__.js     Edit...
    Request 1:
    Request URI     /appcontext/static/META-INF/dojo/__package__.js     Edit...
    Which all had the same response status:
    HTTP exit status (as set by servlet)     404: Not Found     Edit...
    So in other words it just can't find the resources for some reason. I found a 'solution' here (which had to do with shale-remoting)http://forum.java.sun.com/thread.jspa?threadID=778815&messageID=4439351
    and I did it but it still gave this:
    Request URI     /appcontext/dynamic/bpui_progressbar_handler/writeAjaxResponse.faces     Edit...
    So does anyone have an idea what is going on here? Because I spent 8 hours on this with no result.
    It used to work great until yesterday. I do not remember chaning anything...
    Thanks in advance

    The first time I used the progressbar this was all I had in my web.xml
    <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    After it gave me all those problems with the __package__ thing so my web.xml ended up like this
    <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>/faces/*</url-pattern>
         </servlet-mapping>
    <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    And now I got the same ol' problem all of a sudden. I don't know what's wrong. I use the Visual Pack by the way and the project was first started with Creator 2.1. Is there anything I should know?
    I think I should better check out the source so as to get the whole picture of shale-remoting...
    Thanks guys...I hope we solve this thing together

  • I'm new to keynotes and I have a lot of powerpoint presentations I'm trying to salvage.  I can't get the slides to change on a click plus I can't find the way to change the "transition" time changes within each slide.  Where can I find the answer

    I'm new to keynotes and I'm trying to salvage several powerpoint presentations.  I can't control my slide presentations by clicking to change slides and/or for transitions within the slides.  I'm sure there's an answer but I can't find it.  Can someone please give me directions.

    Show the Inspector;   view > show inspector
    to run a presentation using manual control:
    Inspector > Document: set Presentation to Normal
    many transitions set in PowerPoint are not available in Keynote;  to set the transition options:
    Inspector > Slide > Transition
    select the effect you want and either choose auto or manual control

  • Firefox says it can not find the server (Windows Internet Exployer works fine

    When I try to connect to Firefox,I get the message can not find server.(All my hardwired computers,to Dsl).When we try Windows Internet Exployer it works fine.That is what I am using to send this message.

    Not sure of your answers: is the problem solved (as marked) or not.
    Did you go through the solution for the Firewall that you use.
    :http://kb.mozillazine.org/Firewalls
    When you say it works okay on new browser do you mean IE or do you mean if you reinstall Firefox. As far as I know it is the Firefox updates that get are mostly affected. What Firewall do you have.
    Also see
    :http://kb.mozillazine.org/Error_loading_websites#Other_security_programs

  • When I attempt to install a non-Apple app using a CD, I do not get the prompts that are supposed to occur automatically and can't find a way to make them start. I am installing Rosetta Stone.

    When I attempt to install a non-Apple app - in this case Rosetta Stone - I do not get the prompts to follow after inserting the CD.  I have searched for a way to activate them with no luck.

    Rosetta Stone does make a Mac OS X compatible version of their software.  You may be elligible for a crossgrade or a Mac version of their CD.  Or you might need to consider installing Windows on your Mac, if the disc only has a .exe file.

  • I had a Javascript 'alert' box appear on a page I am developing, and clicked on the tickbox to hide further dialogue boxes from that page. Now I want to see the alert boxes again, but I can't find a way to make them appear. Please can anyone advise?

    I have tried the following so far:-
    * Restart Firefox
    * Erase all cookies for the webpage under deveopment
    * Search 'Options' for an applicable setting
    * Looked in about:config for an applicable setting

    Firefox 7.0.1 wiped out ability
    * to test JavaScript from the location bar, say goodbye to JavaScript tutorials
    * invoke JavaScript in any manner from the location bar, either directly or with a keyword shortcut.
    * resize or move windows with JavaScript
    See bug references in
    *http://kb.mozillazine.org/Resizing_oversize_window
    As a result
    *I can no longer place windows on screen where and how I want them.
    *Can no longer test/modify/fix at the location bar from code such as in the MozillaZine page above.
    Design a browser for idiots and only idiots will want to use it.

  • Can't find the way to prevent pop ups

    Can't get to the options tab to control pop ups. Advertising messages etc just keep appearing unsolicited.

    Do a malware check with some malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

Maybe you are looking for