Define a variable with the position of an item and use it to trigger an event

Hi Edge-heads,

I want to use the position of a movable object to trigger another object to hide/show.

I tried implementing a variable using jquery. position() and then by testing this variable.

It is in compositionReady;

var pos = ("draggable") .position ();

If (pos > = 850) {}

SYM.$("obj1"). Hide();

SYM.$("obj2"). Show();

}

This doesn't seem to work...

Thank you

Justin

Have

$(e.target) .parent () .position)

Since you have a symbol empty div containing the image of caterpillar, caterpillars of target position is returned from the enclosing div which is always 0.

Tags: Edge Animate

Similar Questions

  • How to create a file name variable with the County and the date?

    Objective: Create a file name variable with the County and the date

    Error: get a lot of error. Do you know how to change my code?

    Question: how to create a file name variable with the County and the date?

    Mini code:

    std::string * rawfilepath;
    std::string * rawfilename;

    rawfilepath = "./shared/documents/";
    RawFileName = rawfilepath + 'rawlog -' + 0 + '-.txt ';
    QFile file (rawfilename);
    If (file.exists ()) {}
    rawfilenamecount ++;
    RawFileName = "./shared/documents/rawlog-" + rawfilenamecount + "-.txt ';
    }

    Thank you for your attention,

    Thank tzander reminding me the idea. Method of cascades is not good for me because all of the kernel code is written by Native. If I change the channel to QString, I need to change a lot of codes.

    Solution is below.

    While (access (rawfilename, F_OK)! = - 1) {}
    rawfilenamecount ++;
    sprintf (format, RawFileName, rawfilenamecount);
    fprintf (stderr, "file exists");
    }

    Rawlog = fopen (rawfilename, "w"); Save the file in a specific path.
    fprintf (rawlog, "System Time (ms)" "");

  • Control a movieclip with the position of the mouse

    Hello everyone,

    I worked on a small project at work, I'm trying to controll a movieclip which consists of 60 still images of an aircraft (total 120 frames) that when played will show a view of 360 degrees of said aircraft. I can make it work with buttons, but ultimately I want to control the movieclip by moving the mouse. If anyone can help, that would be wonderful. Thanks in advance.

    Here is the code:

    import flash.events.MouseEvent;

    AC. Stop();

    stage.addEventListener (MouseEvent.MOUSE_MOVE, mouseMove);

    function mouseMove(event:MouseEvent):void
    {
    If (mouseX > 800 & & (mouseX < 1600))
    {
    ac.gotoAndStop (ac.currentFrame + 1);

    if(AC.currentFrame == 120)
    {
    ac.gotoAndStop (1);
    }
    }
    on the other
    {
    ac.gotoAndStop (ac.currentFrame - 1);

    if(AC.currentFrame == 1)
    {
    ac.gotoAndStop (120);
    }
    }
    }

    Using this code, the SWF file acts ok without error. I can do the movieclip play in any direction, however, when you move the mouse in the opposite direction that the movieclip continues to play forward or backward.

    Thank you

    Tommy

    There are at least two ways you can address this problem and they both require to control the position of the mouse more closely.  Now you have a general... If it's 800 > ahead and if his < 800="" step="" back,="" but="" when="" you="" step="" back="" from="" 1200="" to="" 1199="" you="" are="" still=""> 800, if you take one more step.  You need to either follow the change in mouse position or the position of the mouse to determine the framework of movieclip.  The second one is probably easier to design and will also be more accurate if the intention is to have a rotation for a displacement of the full scale of the mouse... otherwise you could just step back of a pixel at a time and in 120 pixels of movement... that might be what you want-the purpose is not explained in what you provided.

    (1) following the change of the position of the mouse - you must keep track of where the mouse was against where the mouse is when you check it... if(previousMouseX > currentMouseX)... you need to make the animation go back, etc...

    (2) with the position of the mouse to determine the frame movieclip - divide 120/1600... This is the number of images per pixel.  Take the current value of mouseX and multiply by that and make it an integer - go to this issue of image in the animation... simplifies this entire function similar to...

    function mouseMove(event:MouseEvent):void {}

    ac.gotoAndStop (int(mouseX*120/1600));

    }

    but refine to remember that there is no image 0

  • I have a problem with the previous results of LEDs and indicators of compensation

    I'm working on a proper VI for my building project, but there is a problem... The project here is to define the occurrence of the error and the error type to decide what actions are required to protect the circuit. This isn't a problem here...

    The problem is when I run the VI for the first time... Everything is good and I got what I need... But when I run it after that... The new results to come out with the results of the first round... So my problem is with the previous results of LEDs and indicators of compensation

    Hope my question is clear and not confusing

    Well, show us a code instead. How do you call the VI?

    Have you tried the option: "properties of the VI... run... clear the flags when called?

  • Variables in the table of contents, glossary and Index

    RoboHelp can use variables in the table of contents, glossary and Index.
    My project needs variables both in terms and definitions (glossary and Index).

    Hi OLH

    That is right. But who knows what will happen in the next version. Currently you can use conditional tags for the table of contents and Index, but not of variables. From a development perspective, there are a lot of problems with the help of the variables of table of contents, glossary and Index, it is not as simple as adding variables to the content of the main .htm file. But it would be a great improvement for the next version.

    Don't forget to submit an enhancement request and play your part by Adobe to aware of these issues.

    http://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

    Kind regards
    Craig

  • I'm looking for a theme of book with the right combination of text and photo layout.

    I'm doing a book project I have Photos for Mac. I would like to include text, but then discovered that some themes have not; the I took has only pages full of text. Another is, but offered just 3 photos on each page, in strange layouts.

    The main problem is that when I pick I see nothing other than the cover. I have to build the project to see what I get. Is there another way to see them, or choose one based on preferences?

    And when did things become so shitty? I have created a book in iPhoto, and it was really easy.

    Mostly by trial and error.  What I did is create a test with a few photos with the first theme of book available.  I then he reproduced several times and changed the theme to one of the others.  I now have a test for each of the themes book.

    When I want to create a new book with a particular theme I duplicate the test book, rename it and use it.

    There is something generally wishing to each of the book themes: features and Photo Book Formats.  If descriptions are insufficient, so trial and error described above will be necessary.

  • Apple Watch magnetic charging Dock is compatible with the adapter USB 12W power and if so, is the adaptor 12W shorten the charging time?

    Apple Watch magnetic charging Dock is compatible with the adapter USB 12W power and if so, is the adaptor 12W shorten the charging time?

    Yes and no.

  • I can't download Netflix. I can download/update of other applications.  I checked my limitations and my iOS is updated.  I tap on the little cloud to download, a circle flashes briefly then reappears the cloud with the arrow.  I rebooted and hard r

    I can't download Netflix. I can download/update of other applications.  I checked my limitations and my iOS is updated.  I tap on the little cloud to download, a circle flashes briefly then reappears the cloud with the arrow.  I rebooted and restarted hard.  Netflix working on other Apple devices.

    Try to download to your computer, iTunes then sync it to your device.

  • I'm told my iPod classic is not compatible with the latest version of iTunes and I need to buy a new iPod

    I have an iPod classic, 160GB, 2009 (I think that I bought in 2011, but they say it's a 2009 version).  I took good care of her, and it worked wonderfully for me.  Recently, with the latest updates of my OS, iTunes, etc. on my MacBook, I got the iPod synchronization problems.  This last time I tried, the iPod has not been recognized by iTunes, or it would be recognized and switch between connected and synchronization, but never go further.  Finally, if I left it long enough that, it would eventually be sync, but then he would go back and forth between sync synchronization, connected and finishing.  After leaving he did that for a while, he would finally come with an error message saying that the iPod could not be synchronized.  Then my iPod was erased at all to this subject (everything is always on my iTunes at least library).  I tried to restore my iPod, which she did, and then synchronize everything again.  He went through the process of synchronization, only to say in the end could not be synchronized.  Sometimes my iPod not even be recognized by iTunes.

    So I called Apple Support and they told me that my iPod software is not compatible with the iTunes software.  Both were up to date, so I think I 2.0.4 on my iPod and 12.3.2.35 on my iTunes.  Apple told me that I can't go back to an earlier version of the iPod software because I have no iPod backups on my iTunes.  Therefore they told me the only solution is to spend $ 400 on a new iPod, which I can't afford to do it, nor have you I feel it's a reasonable solution, since my iPod is perfectly good and I was very careful care of her.

    Is there anything that can be done to make the two compatible?  Can I download an older version of iTunes?  I'll be able to get my most recent iTunes library on the older iTunes?  Should not continue making it compatible, the iPod classic and iTunes since so many people use iPod classic, and they are the only thing like him around?

    I looked in the other forums on the topic, but nothing seems to talk about this compatibility problem and provide a solution.  Someone at - it ideas?  Can you manually manage your music on your iPod, even if the two are not "compatible"?

    Thank you!

    So I called Apple Support and they told me that my iPod software is not compatible with the iTunes software.

    Seriously...?  My 'classic' 3rd gen iPod in 2003 still works fine with the latest version of iTunes and the latest OS X.  Even the original iPod should still work (assuming the iPod itself still works).  Your iPod classic 2009 is certainly consistent.  That support the needs of the person coming back through training...

    When you connect it now, it seems in iTunes?  Are you able to select in iTunes, go to the settings screen, where you see the iPod photo and name in the upper left corner of the window and a box below that?

  • Running game - this version of the file is not compatible with the version of Windows you are using. Check your computer's system information to see whether you need a x 86 (32 bit) or an x 64 (64-bit) version of the program

    I'm having the same problem that is described in this topic: http://social.answers.microsoft.com/Forums/en-US/vistagaming/thread/f15edea1-f88f-492e-bb42-4db2b06fdf05

    My error message is: "this version of the file is not compatible with the version of Windows you are using. Check your computer's system information to see whether you need a x 86 (32 bit) or an x 64 (64-bit) version of the program and then contact the software publisher. »

    I tried to run the program in question (Castle of the winds) in each mode of compatibility that is on the list and it is giving me this error message every time. Other people have managed to get the program to work, so I don't know, it does not work on Windows 7, but I can't make it work for me.

    Help?

    Hi autohaptic,

    (a) on the computer what Edition\Version of Windows 7 operating system do you use? What type of system? 32-bit or 64-bit

    If you are running Windows 7 64-bit operating system, you can install the 64-bit computer game program.

    (b) on the computer which the castle of the winds game version are you running?

    I want to clarify, if you try to install the program or trying to run.

    Step 1: Put the computer in a clean boot, and then try to run the game

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    You can consider the right version of the game for your computer relocation program.

    Make older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • During the installation of Microsoft Flight Simulator 2004, the following error occurs: the version of this file is not compatible with the version of Windows you are using.

    Former title: Microsoft Flight Simulator will not install on Windows 7

    I have Windows 7 Home Premium 64-bit.  I try to install MFS 2004.  The first 3 discs work fine, but when I insert disk 4 to complete the installation, I get the following error message:

    "The version of this file is not compatible with the version of Windows you are using.  Check your computer's system information to see if yo need a x 86 (32 bit) or x 64 (64-bit) version of the program and then contact the software publisher. »

    I have a Dell Studio 1558

    Intel i5 - 520 M

    ATI Mobility Radeon HD 5470 graphics card

    8 GB RAM DDR3

    What can I do?

    Hello

    1. which edition of Windows are you using? Is - this edition is 32-bit or 64-bit?
     
     
    Given that the game is compatible with Windows 7, I suspect that the conflict can be 32-bit or 64-bit architecture.
    The link below shows the compatibility of this game with Windows 7.
     
     
    Method 1.
    We must ensure that the edition of the game must correspond with the operating system.
    If you use 64-bit in this game, you need the 64-bit Windows to install it.
    Method 2.
    If the above information matching I you recommend to start the computer in clean condition and then try to install the game.
    See the article below for instructions on how to start your computer in a clean boot state.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: When the diagnosis is complete, don't forget to reset your computer to normal startup. Follow step 7 in the above article.
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to copy a folder to an external hard drive with the same file on it and have it just add new files instead of replace all old already on there, as well as to add new?

    I want to copy a folder to an external hard drive with the file already on it and not having to replace all the files each time. I just want to click and drag the folder to the external hard drive and have it add new files I've added in the folder on my pc over time on the external hard drive. It's annoying to have to replace alllll the files each time.

    Thank you!

    A simple way is to use the second copy of Centered.com software. It is reasonably priced and will do exactly what you want. MS - MVP - Elephant Boy computers - don't panic!

  • I get a screen blue with the Dell logo on it and no office mouse pointer or even. __

    Remember - this

    Only, I get a screen blue with the Dell logo on it and no office mouse pointer or even.

    is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Check with Dell to see if there is a disc of diagnosis of material that you can download or order for your computer to test and see why it is not booting.  Also check the LEDs on the front that can display a code error, or for a series of beeps which may indicate an error code.

    "Arlingtonal" wrote in the new message: * e-mail address is removed from the privacy... *

    * Remember - this *.

    I get a screen blue with the Dell logo on it and no office or even the mouse pointer.*

    is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    * You have problems with programs
    * Error messages
    * These recent changes made to your computer
    * What have you tried to solve the problem

  • virus: I struggled with the virus for some time and cannot get rid of them

    I have struggled with the virus for some time and cannot get rid of them. I bought a few programs, but they have also been infected. any suggestions for a really good virus buster.

    Hello

    First of all, an antivirus solution to an already infected system of loading is usually pretty useless. The bug will block all attempts to remove or load what it sees as a threat. Second, without knowing which virus you are affected by, it is difficult to be precise.

    You can take action include:

    (a) work in safe mode, there is much less likely that the virus is able to load and resist actively.

    (b) the safe mode, run utilities malwarebytes.org and AV solution that was installed * before * your infection.

    (c) post is back with a better description of what is on your system to learn more targeted advice.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • I have a problem with the drag (cursor snap) video and audio stuttering!

    I have an emachine windows vista home edition and have caused problems with the drag (cursor snap) video and audio stuttering.  my hardware configuration includes an HP printer and a video camera from Microsoft with pregnant beyond the keyboard, monitor, and system speakers routine.  Are there updates or the settings that I can apply to correct this problem?

    http://www.eMachines.com/support/drivers.html

    The latest drivers/software for your machine come directly from eMachines.

    Click the link above for them.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for