How to play a specific scroll position a symbol ONCE?

Hello

I was wondering if it is possible to trigger a symbol to play when a user scrolls past a point of scrolling specific only once?

I managed to create a trigger for a symbol that fires at a specific scroll position, but he fires several times (when the user continues to scroll)

I tried to use:

"is' eqivalent, so that it would only start at a certain time of scroll, but this only triggers the symbol to play if the user uses their mouse scroll wheel and does not play if the user uses the scrolling of the window.

Here is my code (my apologies if this is disorder I only started to learn JQuery a week ago):

{$(window) .scroll (function ()}

var mySymbolObject = sym.getSymbol ("rollHead");

var y_scroll_pos = window.pageYOffset;

var scroll_pos_test = 500;

if(y_scroll_pos > scroll_pos_test) {}

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

mySymbolObject.play (1000);

}

if(y_scroll_pos < scroll_pos_test) {}

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

mySymbolObject.stop ();

}

});

I know the Manager '.one' (if that's the right term) can raise an event trigger once, but I can't seem to make it work.

Any help or advice would be much appreciated.

Thank you very much.

Jon

P.S. I want to just say a HUGE thank you to Adobe for advanced manufacturing. It's an incredible tool, and the fact that it is free makes it a million times better.

Hi, Jon-

Sounds like what you want to do is to save the State somehow.  You can use a variable - in your code here:

First of all, in your compositionReady:

sym.setVariable ("symbolPlayed", false);

Later, in your code:

if(y_scroll_pos > scroll_pos_test) {}

var symbolPlayed = sym.getVariable ("symbolPlayed");

If (! symbolPlayed) {}

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

mySymbolObject.play (1000);

Add to the variable

sym.setVariable ("symbolPlayed", true);

}

}

And so on.

Hope that helps!

-Elaine

Tags: Edge Animate

Similar Questions

  • How to play movies from memories in pictures for Mac?

    In iOS, there is a button to play movies, memories, but on my Mac, there is no such key.

    Memory starts to play, but is not full screen.

    How to play memory as I can on iOS?

    Also, memories can be shared from my Mac on shared albums and/or sync with my iOS devices?

    Thank you

    Hi Jerry,

    Thanks for posting your questions here in the Community Support from Apple. I see that you are curious about the visualization of your memories on your Mac. I'm happy to help answer your questions.

    It seems that it's not possible to watch movies from memory to a Mac. Take a look at the following information:

    Memory movies only work on your iPhone, iPad, iPod touch and Apple TV. You will see films of memory on your Mac.

    To answer your question on the sharing of memories, take a look at this information:

    Save and share your favorite memories

    You want to save a memory for later? Scroll down to the bottom of the screen and tap or click Add to favorite memories. You can find it in the album favorite memories from your Photos app. If you decide that you do not want to save a memory, tap or click on remove from favorite memories.

    When you add memory to your Favorites, preserve you and keep to go far when pictures creates new memories.

    You can also share your experiences with family and friends. On your iPhone, iPad or iPod touch, you can share movies of memory as you would share any other video. Read a movie memory, then tap to display the options for editing and sharing. Type and choose to share the movie via E-mail Messages, iCloud, sharing photos, Facebook, YouTube and more.

    On your Mac, you can share photos and videos that are contained in a memory. Click on to share through email, Messages, iCloud, photo sharing, Facebook and other.

    You want to make sure that you follow these steps for memories to be synchronized between your devices:

    Before you start

    Update your iPhone, iPad or iPod touch iOS 10 or later and your Mac for Sierra macOS or later.

    If you want to get the same memories on all your Apple devices:

    1. ICloud implemented on all your devices.
    2. Connect to iCloud with the same Apple ID on all your devices.
    3. Turn on iCloud photo library on all your devices you want to use with memories.
    4. Update your Apple TV (4th generation) tvOS 10 or later.

    Enjoy your memories in pictures - Apple Support

    See you soon!

  • Only when you use Facebook to play games, specifically Bejeweled Blitz, lately it hangs or is extremely slow.

    Only if you use Facebook to play games, specifically Bejeweled Blitz, lately it freezes completely or suddenly is so slow I'm bangining the key to get the mouse to move. Now playing the same game, but not through Facebook, he normally plays at the correct speed. Unfortunately only on Facebook are there applications, so I prefer to play there, even if I bought the game, there is not all the add ons. I can do to get the game to replay correctly?

    original title: problems of Facebook games

    Hi PamelaMarcus,

    ·         What web browser do you use?

    ·         Did you do changes on the computer before the show?

    ·         It was working fine?

    ·         You get the error message?

    If you are using Internet Explorer, follow these methods.

    Method 1: Follow the steps in the article.

    Can't access some Web sites in Internet Explorer

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

    Method 2: Perform an optimization of Internet Explorer on the computer of the article.

    How to optimize Internet Explorer

    http://support.Microsoft.com/kb/936213/ro

    Note: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Method 3: Update the latest version of the flash player.

    http://get.Adobe.com/flashplayer/

    Method 4: Update the graphics/display drivers.

    How to manage devices in Windows XP

  • How to restore a side scrolling for USB Microsoft Comfort Mouse 6000

    My question is quite simple as shown above in the title:

    How to restore a side scrolling for USB Microsoft Comfort Mouse 6000?

    I'm running Windows 7 x 64 professional, and everything went well & smooth (my 16 GB of RAM much help on that) until

    a few days ago when I noticed - after some windows recent updates there is no icon scrollbars appearing when you click the mouse wheel and therefore there is no scroll option in one of the browsers, I use Mozilla or Google Chrome or IE.

    Everything in trying to solve this nuisance, I must say I did a lot of web research.

    I also read and tried all your technicians where suggesting that solutions in the articles:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/facing-issues-with-Microsoft-Optical-USB-wheel/5e4ce992-83e1-460A-8bd2-99ceb1bf0756?auth=1

    and

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

    ... Change usb port, haven't set all the default settings, no improved pilot using IntelliPoint 8.2 64 bit for Windows 7, don't have to uninstall/reinstall drivers, have accessed HID service and set it to Auto etc.

    It doesn't help

    Nothing else to try?

    Dan

    PS side that neither on the side of scroll my mouse goes really well (where the mouse has not suffered any material damage or other concerns)

    Small update

    Today I take back my previous Microsoft Intellimouse Optical Usb and that works like a charm, including a scrolling sideways feature smooth

    I must say 2 things:

    1. I replaced it because I wanted a mouse blue laser instead of the red light of the IntelliMouse laser to adapt to the blue of the Razer Lycosa keyboard and now I regret it because vousLe mousey is in possession of someone else family: p

    2. I have test the mouse USB of Comfort 6000 on another PC-work on Windows XP and also not on the side scrolling is so clearly hardware failure of the intermediate wheel after a few less than 7 months

    I'm starting to consider that this 6000 comfort USB mouse (which is not one of the cheapest) was a bad choice because it lasted not more than 7 months, despite a decent use and friendly of TI - i don't play shooters or those games that are material mouse pointing.

    In conclusion: he certainly wanted to consider other mice light blue other businesses that might last longer

    Sorry for my post that you lost some of your time

    so:

    CLOSED TOPIC

    Hi Dan,.

    I appreciate the efforts you have made and I thank you for sharing the information. Your comments would probably help some users faced with a similar question.

  • How to play a sound on a button to the bottom of the State?

    Hello

    That is my question. How to play sound on CLICK or down state of the button? I don't know how to slap a sound on the timeline, but not how to put specifically for the button and that's down from the State.

    Thanks for the help in advance.

    go to the scenario of the button and attach a sound to its low chassis.   You probably want the sync event property.

  • How to play the next song with the repetition of the same song over and over again

    How to play the next song with the repetition of the same song over and over again.

    In this screenshot, shot an Apple article, you can see four icons at the bottom of the screen. Look at the third argument of the right, with the two arrows going in a circle. It's the repeat function. When turned on, you can tap the icon to turn it off.

  • How to play the QTVR mov in IMAC

    I have create a QTVR mov file in 3d software. Anyone know how to play the QTVR mov in iMAC? Quick time could not play it.

    You need to install QuickTime Player 7

    Download QuickTime Player 7 for Mac OS X 10.6.3 or later

  • How to play the song with .wma extension

    How to play the song with .wma extension

    If it does not DRM, use VLC. If so, no Mac OS X software can play or convert.

    (142864)

  • How to find a specific voice memo file in the backup from my iPhone to my Mac? I know where to find the backup, but not how to recover specific files. Thank you.

    How to find a specific voice memo file in the backup from my iPhone to my Mac? I know where to find the backup, but not how to recover specific files. Thank you.

    You can't look "inside" a backup. Just use iTunes to sync with your iPhone, then you'll see a separate category for voice memos in the sidebar.

  • BIOS WMI question - how to disable a specific device in the boot list?

    Hello

    I have question for WMI, how to disable a specific device in the boot list? I found "BootODD" "BootFDD" etc. in the documentation, but I have no idea how to use. And here my question.

    Documentation:
    http://APS2.toshiba-tro.de/KB0/TSB3803HR0000R01_TOSHIBA_BIOS_WMI_Interface_Guide_-_13_Rev_1.1.PDF

    Do you know that pdf is a guide for authors of vb script?
    I don't think running a script against the BIOS is a good way to learn.

    In any case, here is a link to download Microsoft Scriptomatic which is a very good place to learn [http://www.microsoft.com/en-us/download/details.aspx?id=12028]

    Also, try a search for examples of WMI scripts there necessarily one who does your job.

    Good luck

  • How to play (or convert) a file .avi on my MacBook Pro?

    How to play (or convert) a file .avi on my MacBook Pro?

    Probably by installing VLC, but some AVI files can not be played in Mac OS X; AVI is a container, not a format.

    (141493)

  • Safari resets the scroll position when changing tab

    Safari resets the scroll position when the tab changes.

    For example, to open two tabs. In one of them, go to

    https://developer.Apple.com/library/Mac/documentation/GraphicsImaging/conceptual/drawingwithquartz2d/dq_overview/dq_over...

    and scroll down to the bottom.

    Arrived at the tab other and then return to the tab where you just scrolled down.

    Surprise, the page has been made scroll up, or almost.

    (In my case: OSX Safari 9.0.3 10.10.5,)

    It's very annoying when reading long pages.

    Send feedback to Apple. They will not respond, but at least know that there is a problem. If enough people send feedback, it can become the problem solved as soon as possible.

    Your comments

    Or you can use your Apple ID to register on this site and go the Apple BugReporter. Allegedly, you will get a response if you submit your comments.

    Comments via Apple Developer

  • How to play the video file from Gigashot A40FE?

    I have 40 GB A40FE cam gigashot.

    I can't able to play the video file from this cam. no support for the folder.

    Please give me answer.
    How to play that format or I want to convert or download any player for whom?

    Hello

    Have you tried to read this file using the VLC Player?

    It is a small player and the best is that it is just for free! :)
    He plays most file types, and I think that you should test.

    See you soon

  • How can I remove specific MacBookPro (s) and PC which have been taken by a thief (s) numere?

    How can I remove specific MacBookPro (s) and PC which have been taken by a thief (s) numere?

    I don't see an option in iTunes to reauthorize a MacBookPro (s) and PC numere specific.

    It has an option to reauthorize all but, when I click on it it gives the following message:

    Failed to remove permission

    You can only Deauthorize all computers once a year. You must wait until 24 February 2016 before you can remove all your computers again. If you encounter problems computers, please contact Support Apple customer visiting http://www.apple.com/support/itunes/store/

    I suspect that this may be a security risk in iTunes, Apple/iTunes is not allowing customers to withdraw the authorisation of systems that have been stolen by thieves.

    Unless you are able to connect to remote computers, there is no way to do. If you wish, click here and ask the staff of the iTunes Store to perform a second remove all.

    (138421)

  • How to play Internet hearts on Windows7

    in windows xp, you can select Start, games and play the hearts of the internet.  How to play internet heart now that I have upgraded to windows7?  Thank you.

    Games on the internet that did not exist in Windows XP have been removed from Vista.  You can play those and many other games on the MSN Gaming Zone. Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for