Setting javascript to make falling snow

I have managed to make a flake in Edge to flash randomly after following a tutorial on lynda.com
My javascript knowledge is fairly limited but I used the following code on a trigger inside the flake symbol I made:
var randomFrame = Math.floor(Math.random()*5000);
var maxWidth = $('#Stage').width();
var randomX = Math.floor(Math.random()*maxWidth);
var randomY = Math.floor(Math.random()*300);
sym.play(randomFrame);
var myName = sym.getSymbolElement();
$(myName).css({'position':'absolute','top':randomY+'px','left':randomX+'px'});
This all works as a randomly appearing flake which doesn't look like snowfall. Can anyone give me advice on code to make the symbol float down from the top of the stage and repeated lots of times to look like snowfall?
Any help we be really appreciated,
Many thanks

Check out this javascript. Why reinvent the wheel? This should help you modify your code.
http://www.hypergurl.com/snowmaker.html

Similar Messages

  • How to set a specific starting time for the falling snow code snippet

    Hi everyone
    I want to use the falling snow code snipet but I don't want it it to start as soon the movie starts.
    So how to set a specific time to start the falling snow?
    Thanks
    Patricia

    put the code (that's not in a function body and excluding variable declarations and import statements) in a function body and call it using the timer class.

  • HTML Snippet Challenge: how to add falling snow to my iweb pages?

    Using the source code and assets provided on this site...
    http://www.schillmania.com/projects/snowstorm/
    ...can anyone help me with embedding this into my iweb pages? The snippet html is a snap, but I don't know how to link the folders containing the images or the script.
    I am working with version# 1.3.20081215.
    And if this won't do it, can anyone recommend another way that I can embed falling snow on my iweb pages?
    Thanks for any help.

    Welcome to the discussions. This may help (or it may not)...
    http://web.mac.com/catucker/InsideOutside/Javascript.html

  • Setting up icloud mail on snow leopard - what are the settings?

    I have converted my mobileme account to iCloud - but due to the hardware on my desktop must remain with Snow Leopard.  How do I set up the mail application to use my new iCloud email account.

    To properly set up iCloud mail on Snow Leopard 10.6.8 (Which is not supported).  You can do the following steps to manually set  up the account. (TRIED & TESTED)  ***Please know this may not work on all Macs running 10.6.8.
    If you have moved your MobileMe account to iCloud or have a straight iCloud account here are the steps for mail  There are no work arounds for Calendars, Bookmarks, or Contacts.
    There are 15 Steps total.
    If you are adding the account from mail preferences you will need these steps.
    Remove their previous account (after making sure anything important is backed up).
    Open the Mail application (On the desktop.  Looks like a Stamp w/Eagle) up on the Mac.
    Once you are there, click on "Mail" from the top menu bar and go to "Preference".
    Then go to "Accounts".
    Let me know once you are there. Do you see your MobileMe account on the left pane?
    Click on your MobileMe / iCloud account and then the to delete it.
    Then click the ( + ) sign:
    1) In the Add Account pane, enter in the full iCloud email address and password
    2) DONOT click 'Create' or it will try to automatically set up the account. Hold down Option and the 'Create' button will switch to 'Continue'. Click Continue
    3) For Account Type, change the drop down menu to IMAP
    4) Change the Incoming Mail server to imap.mail.me.com
    5) Enter the full email address for User Name.
    6) Hold down Option again and the 'Create' button will switch to 'Continue'. Click Continue
    7) Check the box to use SSL and make sure Authentication is set to Password
    8) Hold down Option again and the 'Create' button will switch to 'Continue'. Click Continue
    9) Change the Outgoing Mail server to smtp.mail.me.com
    10) Make sure the 'Use Authentication' box is checked.
    11) Enter the full email address for User Name and then enter the password
    12) Hold down Option again and the 'Create' button will switch to 'Continue'. Click Continue
    13) Check the box to use SSL and make sure Authentication is set to Password
    14) Click Create and Click Create again on the final pane.
    15) Done

  • HT201304 It would be tremendously helpful to be able to access, set restrictions, and make changes from the parents device to all devices under the same iTunes account, so that I could make changes to my kids devices without physical access.

    Please help!
    It would be tremendously helpful to be able to access, set restrictions, and make changes from the parents device, to all devices under the same iTunes account, so that I could make changes to my kids devices without physical access.
    I understand that I can set up a different Apple ID for the kids devices, or take physical control of the device and make the changes myself. However, my teenage son is technically savvy enough to have a job in Silicon Valley, as are most young people these days. However, in order to access his devices the current way, I first have to bypass the four digit pass code. This starts a fight of why I need in the device and continues to escalate. The argument that I am the parent will gain access but the fight is simply exhausting, and quite frankly shouldn't have to happen at all. He is not yet an adult, he did not pay for his iPad or iPhone and I, as a parent, should have not only have the right to change options at will, and from anywhere, but look at history or current activity when I feel like it.
    I currently have the settings where app and in-app purchases require my password to be put in, and he must come to me to type it in, but I need more control and would like, and should be able to access any of our six devices and make individual changes simply by logging in to my account, with my password.
    If I can see all my devices on the "Lost My iPhone" app, this technology should be easy to make happen.
    C'mon parents! I have a pretty good kid, given all things that they can get into, but I am not stupid. For everything I see has been done, there is much more I haven't seen. I want my children to be kept safe and be able to know what they are looking at or listening to. We parents are the only ones who know our beliefs and what our kids can handle and when.
    Thanks for any support or information that I may be missing in order to fulfill my request.

    There are mobile device management solutions that can do this, including in Apple's OS X Server system, but most parents generally find that setting this up is more work than it's worth. If you're interested, though, there are a couple that at least purport to be free (I don't know if there are any hidden "gotchas"):
    http://www.unwireddevicelink.com/features/
    https://meraki.cisco.com/products/systems-manager
    and Apple's system:
    http://www.apple.com/osx/server/features/#profile-manager
    I don't think any, however, allow you to see current activity or browser history. iOS doesn't expose those to access from MDM solutions, to the best of my knowledge.
    Regards.

  • Setting in quiz maker to retake a test in an LMS

    I created a course with Captivate 4 and loaded it to the GeoLearning LMS I took the course an passed it.  then i needed to make some changes and i reloaded the course and when I retook the course i could not answer the questions because it was in review mode.  What settings do I need to change so a person can go into the course and retake it at anytime no matter if they passed or failed the course
    Captivate 4
    Setting in
    Quiz maker are REPORTING:
    Scorm 1.2
    report Status:  Complete/Incomplete
    Report to LmS as:  Percent
    Choose Report Data:  User access only
    Reporting Level:  Interactions and score
    LMS customization settings Unchecked Never send Resume Data
                                              Checked Escape Version and session ID (not sure what this one does)
    SETTINGs
    Required Optional
    Settings only checked Show progress  The Allow userto review quiz is checked but grayed out.( do i need to uncheck this?)
    Please help I am getting very frustrated.

    Sorry, I don't know much about LMS. I have make up my mind to learn this thing because it's really important for E-learning which is the direction I'm going to make a difference.
    Right now, I can only suggest you try some other tools, like this wondershare quiz maker. Maybe it will make a difference.
    Good Luck!

  • Trying to download falling snow effect for iMovie...

    I wonder if someone can help me?
    I'm trying to create a falling snow effect on a short movie I am creating. I have found a couple of websites that have an option to download this effect, but everytime I do it, it downloads this:
    StuffIt (c)1997-2002 Aladdin Systems, Inc., http://www.aladdinsys.com/StuffIt/
    br r“n
    ••Reserved•••••• ;@ª—ûaºSÈò ñ£      üÜ  ë snow flakes ¬—•••• 0@     UBr‡ ˇˇˇˇ•••• 9ª—¢öºSÈùr qr    «Ì     .DS_Store◊2@B¡’  4 OÚc†c0ÿek >≠R— ¸Îö"î≥¯òé‚
    Z‘’HFoÑÁIH∏Õ °H –◊mÿu„SÖ<∫Zó÷≤f •‰èo=U'c¢‹)V"r ∆Wø'fi,U]Ï;®2£  XhL©Ê=JüN÷$aëÊrd` ß%ƒyÅÕ`•_ ,” <”“ ÷Ô±A ≥*ùê D+§ÒO?NG ⁄ù;flu‘^L ·flQ0ˇÖf ΩY?Sæ Àä◊™eüÊ\≈p-lÌ+ à‰XñÙ‡+I∞™Iõ–hKgÉ«¶J»Û6r̈ ç≠ÿ È+à »l ∏‡ ŸU Pa8+ƒ¬å≥: ˚“ d»ò ·Ò
    ...I've not copied the whole thing because it is SO long!
    This is one of the websites I've tried downloading from: http://www.imovieplugins.com/fxhome.html
    I've searched the internet trying to find another download, or at least some help, but can't seem to find much that is of any use.
    Really hope someone can help!

    It's definitely advised to have a backup, but that is not normally a reason why a download does not work.
    So, can you try to post the exact message you got please. And, please post the exact steps you took to get where this happened.
    Please do not use all caps - it is very difficult to read and considered shouting on the internet.

  • How do i get fcp set up to make multi clip cuts buy just clicking on the boxes in the viewer

    how do i get fcp set up to make multi clip cuts buy just clicking on the boxes in the viewer

    This forum is all about FCP X. You should ask your question in the FInal Cut Pro Studio forum.

  • Any Ideas on a how to falling snow?

    I have a image that I would like to make a little snow
    falling over it. As a amateur rookie at flash, I'm looking for a
    tutorial or some generous genius to explain how a dummy could do
    it?
    thks

    try my GG strew component, no any script required
    Sample
    Download

  • Setting up Time Machine with Snow Leopard and MyBook World Edition II NAS

    I have just successfully set up Time Machine on my MyBook World Edition II NAS. It's not so straightforward, and the information on the Western Digital support site is either unhelpful or flat-out wrong, so here's a post that will hopefully save people in a similar position a lot of time and frustration.
    Here are the key facts:
    1. The MyBook World Edition II NAS does support Time Machine -- if you upgrade to at least firmware Release 1.01.14 (9/29/09). See http://www.wdc.com/wdproducts/updates/?family=mbworld. Amazingly, the Level I support people at Western Digital told me that Time Machine is not supported! I had to point him to this link.
    2. MyBook World Edition II comes with a built-in user, WD_Backup, which appears to be the only user that can be used for the backup.
    3. Follow the instructions here: http://www.wdc.com/wdproducts/updates/docs/en/appletimemachine.pdf. BUT, what the instructions don't tell you is the password for that user, which Mac OS will ask you for during the Time Machine setup. On my device, it was "admin" but other posts say the password can be "backup" or "wd_backup."
    4. Ignore some of the misleading statements in the Western Digital "knowledge base." For example, it says Time Machine is not supported. That used to be true but with the firmware update, is no longer true. Also, some instructions direct you to make a partition on your drive for Time Machine using Disk Utility. This is not possible, as far as I can tell, because the MyBook World Edition II shows up as a "share," not a "device" in the system, and therefore Disk Utility does not see it.
    5. The reason I wanted to set up a partition, where I could limit the disk space, is that I read that Time Machine creates daily backups, with incremental versions of documents. Thus, the Time Machine backup will eventually fill up whatever space is given to it. Since I could not partition the MyBook World Edition II, what I did instead was to enable the "Quota" functionality and then put a disk quota on the WD_Backup user. I hope this will do the trick. (I have the further issue of having two Time Machine backups, one for me, one for my wife. How our Time Machines will battle it out for the disk space, I have no idea.)
    I hope that the Western Digital people will create greater flexibility for Time Machine users in future firmware updates.
    Anyway, hope this helped.

    You do need to know that Apple may not support this: Here's the official word: http://support.apple.com/kb/HT1733 (Leopard) or http://docs.info.apple.com/article.html?path=Mac/10.6/en/15139.html (Snow Leopard).
    You may be able to get it to work successfully, but there's no guarantee it will work well, or in the future.
    From a post in another forum (found by V.K.):
    The technical reason why Apple limits Time Machine to 10.5 AFP volumes appears to be to prevent disk image corruption. There were additional features added to AFP in 10.5 to support Time Machine. These presumably allow the disk image engine to force disk image journal data to write out all the way to the disk. Without such features, a network interruption can result in a corrupted filesystem on the disk image despite journaling. Remember, journaling relies on the journal being written all the way to disk before the changes take place. If you can't guarantee that (e.g., because of network/NAS buffering) then the journal is useless. Time Machine appears to rely heavily on disk journaling to deal with network drop-outs, interrupted backups, and the like. Take this away and your data is at risk.
    If the NAS you are using supports these features it should report them to the OS and you should natively be able to choose that volume. If you have to trick the OS to use the volume it means the NAS does not support it.
    To summarize: if you care about your backup data you should avoid using non-natively supported AFP servers.
    That post obviously applies to Leopard; Snow Leopard appears to have added some requirements, that are also not supported by all NAS devices: some that were working with Leopard no longer work with Snow Leopard.
    As long as you understand the risks, it's your call. But do yourself a favor and maintain some sort of secondary backup, such as a "clone" via CarbonCopyCloner or SuperDuper, or some other backup app. (Many of us do that with any backup app: no app is perfect, and all hardware fails, sooner or later.)

  • When calculation in query it set as amount digit setting and not make sense

    Version: (Please provide the current version)
    2005B Patch 35
    Description of requirements: (Please provide a detailed description)
    Because Taiwan NTD currency has 0 digit as amount digit, we need to set amount as 0 digit but price as 4 digits.
    While we use query to write report and we use caculation in the query, the query tool
    set the digit of the result as amount digit setting which is zero. No matter how we declaire
    the type in query, we can't change the result. It is not make sense in report.
    We suggest to cancle this digit setting function to use type in sql query.
    Business needs: (Please describe the impact on your business, if the functionality is not realized)
    We can't use query function for report.
    Current Workaround: (Please describe the workarounds you are using at the moment)
    Use outside report tool.
    Proposed solution: (Please suggest how the new functionality should work)
    We suggest to cancle this digit setting function to use type in sql query.

    I have the same problem. Writing an email is a completely different thing from browsing the web and often you will need information from the website that includes the "mailto:"-link to write the mail. Thus opening the mail client in the same window really is not an example of ergonomic GUI design.
    Manual workarounds will not work as nowadays often mailto-links are scrambled in a javascript to prevent spam. The new tab/window will then show the javascript command in the address bar, which will, of course, fail to function.
    Opening Gmail in a new window or new tab by standard when using it as the default mailto-client in Firefox would be most welcome.
    BTW this is how it works Chrome by standard, too. And I actually do not want to switch back just because of the handling of mailto-links. But it is too annoying on the long run.

  • JavaScript to make button invisible button visible again

    Hi
    I have been trying to create a form in LiveCycle Designer (part of Acrobat Pro ) that keeps a button (call it #1)invisible until another button (call it #2) is clicked, at which click event the invisible button(#1) becomes visible. I've been using JavaScript and either setting the #1's presence as "invisible" in the object editor or scripting it as a formready event presence = "invisible". I've scripted in the click event for #2: #1.presence = "visible". This doesn't work to get #1 to show on #2's click. I've tried a few more similar script with no success.
    I'm relatively new to Designer, though have some experience with JS.
    Is there another way to script to initially make an object "invisible" and get it to become visible by a runtime event?
    I would appreciate any help.
    Kind Regards,
    Stephen

    Template needs to be saved as Dynamic in order to see those dynamic features working. You have that saved as Dynamic and still have no luck try the following....
    #1.presence = "visible";
    xfa.layout.relayout();
    Note: 1. A button name can not start with "#" hope you are using some meaningful names.

  • I constantly get the message "uninstal set javascript application since downloading new version of Firefox today - how do I get rid of this

    I downloaded the new version of Firefox today and ended up with the error box or message -javascript application - uninstall set. I cannot get rid of it and it appears with every key stroke. It's on everything I use on Firefox.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Is there any way to make a snow leopard partition on an early 2011 MacBook Pro that was upgraded to Lion, without the original boot disk?

    So I have an early 2011 MacBook pro,  I believe it shipped with snow leopard originally, as I purchased and upgraded to Lion fairly early on.  I am trying to make a partition right now and have it run snow leopard so I can use programs that have PowerPC.
    I should note, I replaced both the RAM and the harddrive in my Macbook pro.  I changed from 4 GB of ram (that came shipped) to 8 GB of ram from a 3rd party, that I installed on my own months ago, have registered in the computer and have been working fine for quite some time now.
    Also I should note I replaced my harddrive.  I went from what ever the standard 500 GB harddrive that shipped with 15 inch early 2011 MB pro's.  I now have a 3rd party SSD that's 240GB's that I also installed on my own, (at the same time as the RAM---Black friday items)  The harddrive has been working just fine since then.
    In installing the harddrive I borrowed a friends external harddrive and used a program called carbon copy cloner to get everything over to the SSD.
    Now here is my issue.  I have ordered the Snow Leopard (10.6.3) install disks from apple, I have created a partition on my SSD for snow leopard, but when I try to select the install disc for snow leopard at boot I get three beeps.
    I know this issue has been posted elsewere but it said answered and the answer is no longer available.  I also am unsure if any of the RAM or Harddrive swapping could have been causing the issue.  I have the old harddrive and RAM still, but unfortunatley have no external harddrive anymore or money to afford one.
    Is there any way I can install a partition that runs snow leopard on my early 2011 MB pro with what I have (new SSD, New RAM, Current version Lion running, no external drive, lack of original snow leopard disks [I lost them ] and the general 10.6.3 snow leopard boot disks).
    Let me know If there is anything I can do.  I'm a now broke college student so i'd like to spend as little $$$$ as possible
    *PS I should also note the DVD drive is working fine, it reads the disk, the disk is brand new, it plays DVD's fine and has never had any issues in the years i've used it for similar tasks*
    sorry for the long drawn out post, I just wanted to include as much as possible from what I've seen other people have issues with

    BrettGoudy wrote:
    ...Is there any way I can install a partition that runs snow leopard on my early 2011 MB pro with what I have (new SSD, New RAM, Current version Lion running, no external drive, lack of original snow leopard disks [I lost them ] and the general 10.6.3 snow leopard boot disks)...
    As the last post suggests, call Apple and order a replacement original disc for about $17.  They will ask you the model and serial numbers.
    Your retail version of Snow Leopard OS 10.6.3 will not work on that Mac as it requires a minimum of OS X 10.6.7 to boot and operate.
    Another alternative is to again borrow another Mac to install your retail Snow Leopard into an external HD or partition, upgrade it to 10.6.8 and then clone it back to a partition on your MBP.

  • In icloud for email, how do I set preferences to make copy 18 pt and to automatically cc emails to my own addy?

    This is far more confusing than I want it to be. I want to set the preferences on my icloud email so the body type is 18 pt. And I want to automatically cc all emails I send to my email addy so I have a copy. I was set up to do this before I was forced to swithchover to icloud. How do I make these preference changes? Also, is their an auto spell check? If so, how do I turn that on? It's apparentlllly nottt working on this postttt. And I might as well ask this question, too, as I kinda stumbled into this. Now that I am on iclound, will I have to do anything with the photos on my computer that I have saved in iphoto? And does someone actually answer these questions?

    To alter the font, in the composing screen click the Show format bar icon. A
    Adjust format for this email. 

Maybe you are looking for