Bind / unbind help please
I am trying to get my head around link/unlink (or on / off) with the following scenario:
1 rectangle and a red ellipse. When you hover over the rectangle, the ellipse becomes blue. When you mouseout/mouseouthandler(), the ellipse turns red again.
2. If you click on the rectangle stays blue ellipse (unbind mouseover/mouseout/mouseouthandler()).
3. If you double-click the rectangle, everything returns to the State, it was in the beginning (bind mouseover/mouseout/mouseouthandler()).
In the control panel actions, I added the code is:
passage of the mouse...
element var is sym.$("Ellipse").css ("background-color", "blue");.
mouseout/mouseouthandler()...
element var is sym.$("Ellipse").css ("background-color", "red");.
Click on...
var element = sym.$("Rectangle").off ("mouseout/mouseouthandler()");
DblClick...
var element = sym.$("Rectangle").on ("mouseover");
var element = sym.$("Rectangle").on ("mouseout/mouseouthandler()");
1 and 2 seem to work fine, but double clicking does nothing. I know this must seem Basic, but since the separation mouseout/mouseouthandler() on click seems to work very well, I can't work on why I can't connect on double click.
Any help gratefully received. Edge using animate CC (but will probably get the last version in a few days if that makes a difference).
Hi there, MilkStudio
Sorry I took so long.
I think I have a solution for you. In the work, I use v2014.1.1 and at home I v2014.0 - version number, that you reported is not one that I recognize so I hope you can open my files! These earlier versions seem to be a little different in how they deal with the code.
Here's a link: Dropbox - unbind2.zip
I imported the Panel Scripts jQuery (jquery - 2.0.3.min.js), and I think it will be bundled with the files, but if you have a really early version of the edge, you may need to use the yepnope trick to import jquery - I understand that very well because I have not used the first versions of the edge!
I did it as a slightly different way from the one I described earlier. Instead of use the classes that I used a variable - this way, the code is much less crowded and you will see what is happening better. I also used the built in functions for the rectangle button, rather than put everything in compositionReady - when I tried to use the code from earlier (that I had to work in a more recent version of the environmental assessment, in the job), it does not work! Maybe something that I did wrong, but I decided to disassemble everything instead.
We have a variable: 'clicked' and 2 functions called 'Tockées' and "Towhat" in compositionReady. We change the variable to 1 when the user clicks the rectangle and back to 0 when you double click.
The mouseout/mouseouthandler() function simply checks that the value of the variable is to see whether he should go back our Red Ellipse.
I hope that all makes sense - I always get my head around things like myself - I'm a Flash Dev, who is trying to learn Javascript, so there may be a more elegant solution to this, but that's how I would do it at my stage of development.
I put a lot of comments in the file to make it more clear.
See you soon
A
Tags: Edge Animate
Similar Questions
-
Generate report with a date picker. Help, please
Hello
I'm building an interactive report which should display the records corresponding to the date picker.
I'm going to pull a report emp_name and LOAD_DT. LOAD_DT is a date column from table1.
Select "emp_name," LOAD_DT from table1
where LOAD_DT =: P44_PICK_A_DATE;
I chose article page to submit P44_PICK_A_DATE
When I choose a date, he gives no error data
Help, please.
Thank you
KJ
Bind variable in the APEX will behave as strings. I normally apply TO_DATE(:P1_MY_DATE) without the date format and rely on application session formats / align.
In your case, it would be more efficient to
where load_date = to_date(:P44_PICK_A_DATE)
unless you do something specific with date formats, then you would be just details the to_date
Keep in mind, this also applies to the numbers, it would be more explicit
where id = to_number(:P1_ID)
Which is related to why there is a function v() and nv().
-
After the last update of iOS10. Even though I am connected to iCloud when I try to display the content he asks me to implement the iCloud. Can anyone help please.
Try to perform a restart- restart your iPhone, iPad or iPod touch - Apple Support
-
When I started to update my iphone to ios 10 and watch 3.0, cannot already display the pictures of my watch. Logo of loading only. And he thinks it will take a hayss of 1000 years. Help, please
Hello
If the software on your watch is being updated, leave your watch and your iPhone until the process is complete (including the not remove your watch on the charger):
-
I can't reach some websites with any browser. I get the message ERR_CONNECTION_REFUSED. If I boot in safe mode I don't have the issue. I tried the reset and repair of everything. Help, please
Try to run this program in your usual account, then copy and paste the result in a response. The program was created by Etresoft, a regular contributor. Use please copy and paste the screenshots can be difficult to read. On the screen with the Options, please open Options and tick the boxes in the bottom 2 before the race. Click on the button "Report share" in the toolbar, select "Copy to Clipboard" and then paste into a response. This will show what is running on your computer. No personal information is shown.
-
Notes crashes in the Sierra. Help, please!
After the upgrade on my iMac (mid-2014), I can't open the Notes. Crashes every time after I clicked through the tutorial on the new updates for Notes. Help, please! Thank you!
Stop your restart the computer. Launch of Notes, but do not use the tutorial.
-
I have an imac 27 "... on power there is no signal to startap, usb ports are not working and its deadlock with the logo of the Apple with the circle of rotation... Help, please
Wake the computer to your Apple store or Apple authorized service for the service provider. He probably suffered a hardware failure.
-
NEED HELP Please im having a problem to forget my password and when I plug it it says its locked with a password he tried to put the itunes thing but it says enter password I put in what I rember, then said lokced for five minutes help me pls
Without knowing the password for your iPhone, there is no way to unlock it, bring even you to the Genius Bar. If you continue to enter the wrong password, you will be locked out of your iPhone, and your data will be unaccessable.
-
6 sec more lost/stolen iPhone. Turned on the 'lost' Mode and displays the number to call if found on-screen. It is w / "Find my iPhone", went up, no response from any home in the area. Later received an email that it was found, still no call to the number on the screen. Several unsuccessful attempts to get it back, now the phone is in offline mode and says that the history of the site is not available. I left a note on all the doors in the place indicated on the "find my iPhone" describing my phone lost and left a number to call. I am leasing through the iPhone upgrade program. Help, please.
There is no way to locate now, unless the one who found it exerts a force on you contact on this number you posted
The good news is, since you have find my iPhone, they will not be able to reuse the phone even if they are trying to restore. Unless they know your password, or you have a valid proof of purchase AGFI won't be deleted.
So if the person who found the phone knows about it, he or she would rather go back because it would be of no use to them.
-
I lost my iphone and its dead and I can't find on find my iphone help please!
I lost my iphone it also died and find my iphone does not. help please
Nothing we or anyone can do.
If your iDevice is lost or stolen
If enable you find my phone before it was lost or stolen, you can track only when connected to the Internet by Wi - Fi or cellular. What you can't do, is follow your device using a serial number or other identification number. Neither Apple nor anyone else may find your device. You can't recover your loss unless you make your device for the loss. It is not covered by your warranty.
If your iPhone, iPod, iPod Touch, or iPad is lost or stolen, what do you do? There are things you should have done in advance - until you have lost it or it has been stolen - and things to do after the fact. Here are a few suggestions:
1. declaration of a lost or stolen Apple product
3. AT & t. Sprint and Verizon can block phones stolen/tablets
4. What-To-Do-When-Iphone-Is-Stolen
6. what to do if your iOS device is lost or stolen
7 6 ways to track and recover your lost/stolen iPhone
9 report Stolen iPad | Stolen lost found online
It pays to be proactive in following the advice on the use of find my phone before you lose your device:
2 set up your iDevice oniCloud
3. OS X Lion/Mountain Lion - in regard to my Mac
4 the free configuration find your iPhone (even on unsupporteddevices)
-
I want to scan in my bar-coded pass for our local sports club. Help please.
I would like to analyze in some of our LOCAL little bar pass coded for sports clubs and our library. I can't find an app that will allow for this. Help please!
Take a picture.
-
Hi someone help please I am signing the apple tv correctly and it says the password for itunes that is incorrect. However, I am now connected from my computer and it is OK
Have you tried to reboot your router, correct your location settings, you use audit stage 2.
-
iPhone is disabled connect to itunes HOW? Help, please.
iPhone is disabled connect to itunes HOW? Help, please.
lyndlebob wrote:
iPhone is disabled connect to itunes HOW? Help, please.
-
I have macbook pro late 2009. I started to upgrade to El Capitan 2 days ago. Downloaded, it stalled during installation. It has frozen about 95% installation and remained so for 2 days. Help, please.
Try to Safe Mode Setup:
https://support.Apple.com/en-us/HT201262
Start safe mode and see if the problem persists:
Restart now ' shift '.
(Wait to take more time to start in this way because it runs a check of directory first. Also give it some time after the start because he runs maintenance routines at the beginning.)
-
I can receive all messages from whatsapp on my Apple Watch, but not the Group whatsapp messages, don't know why... Help, please.
Besides, my watch is custom in Spanish, but only answer messages Whatsapp understands English... anyone know why? Thanks to you all!
Hello
To change the language for a response on your watch: Press answer > firmly press the screen > press on choose language > select Spanish.
Maybe you are looking for
-
I have a new iPhone sitting here 6. It was my daughter, but she has recently updated. I'm not sure of the procedure established for me, choose to do so. Any advice? There is no SIM card, it says, as I load up.Thank youMichael Mitchell, Belleville, ON
-
Fingerprinting fails after updating iOS 9,3/9.3.1
Long story short : iPhone 6, I downloaded iOS 9,3/9.3.1 of fingerprint scanner stopped working the same day. Apple refuses to acknowledge the update of iOS could have abandoned my scanner. I downloaded the update from iOS9.3 about a week ago. That
-
Passing parameters to windows Explorer
There used to be a way to make Windows Explorer open in a specific folder. This was done from the command line or a batch file. Is it still possible with the version of Vista that I like to do it under the control of the program from VBA in Access 20
-
How to install the version full of windows 7 on a new hard drive
I got a new hard drive and install a full version of windows 7 on it, what I need to do something special or just install the new hard drive, then install windows 7
-
I use a PIX 515 with ASA 7.2. I have a couple of tunnels and remote access configuration. The same PIX is used as a firewall between the inside users and the Internet. I'm sure there is a setting for access remote vpn connections to be exempt from th