How do I use cookies to control which part of the timeline to play from?
Hi there,
I have created an animation with Adobe Edge. My site uses Concrete5 and I am pulling in the Edge content into an IFRAME on my home page (there my be a better way to do this and I'm open to suggestions). I want the animation to play from the start when someone first visits the site, but if during their browser session they navigate back to the home page, I want the animation to only play a shorter segment of frames near the end.
My question is, how do I use cookies to acheive this? I'm new to javascript/jquery.
I've included the following code on compositionReady, (found in another post on this forum) but don't have a clue how to continue...
// insert code to be run when the composition is fully loaded here yepnope( { nope:[ '/js/jquery.cookie.js' ], complete: init } ); function init() { //create your cookie's initial values here }
My temp site is here - http://79.170.40.43/nutcrackerdesign.co.uk/
On revisting the homepage, I only want to play from when the green 'How can we help?' button drops in.
Many thanks!
Russ
Hi, Russ-
I found this article, which seemed really helpful in describing how cookies work in JavaScript:
http://www.quirksmode.org/js/cookies.html
Remember that JS works just fine within Animate, so on your compositionReady, you can read your cookie and then set the play based on that. You should probably uncheck the autoplay for your Stage and control the play of your Stage from the compositionReady.
Good luck!
-Elaine
Similar Messages
-
how can someone use a stolen iphone? does erasing the phone (which I feel like I should do) make it easier for the thief to use the iphone? If I don't erase it, it doesn't seem like anyone should be able to use the phone because of my password. Also, is it possible to retrieve anything that has been sent to the phone (i.e. text messages) since it was stolen through icloud? The "find my iphone" app says the device is offline but it rings when I call my number -- any idea how that would be the case? Thanks!!
You have a password, so good move on your part. Whether you erase it or the thief does, they still get to use the iPhone as theirs. Which is more important (pick one), protecting your data or punishing the thief?
Ringing occurs at the carrier. Chances are you're going to voicemail after only two or three rings. If you have an iCloud backup also a good move. Re-read my question in the first paragraph. -
when I go on a song on my music on my iPod touch 4th gen I can no longer get the bar across the top of the screen which allows you to change which part of the song you are up to, how do I get it back?
hello, please install the search reset addon - it will revert the most common customizations those adware programs do in firefox back to the default: https://addons.mozilla.org/firefox/addon/searchreset/
-
I got a new iPhone yesterday. The sales people set it up to use. I want to have all the apps, pics, etc from my iPod to be on the new iPhone. How do I do this from my iCloud backup of the iPod??
http://support.apple.com/kb/HT1766?viewlocale=en_US&locale=en_US
Go to Settings>General>Reset and tap Erase All Content and Settings. This will erase your device. Then you will go through the setup screens again as you did when your device was new, and when given the option, select Restore from iCloud Backup.
This link gives another overview of backup and restore:
http://support.apple.com/kb/HT4859?viewlocale=en_US&locale=en_US
Be aware that photos should always be synced to a computer for archiving and that relying on a restore from an icloud backup may not return all (or any) of your photos. Once on the computer, you can sync the photos to the new device...
Syncing Photos:
From device to computer...
http://support.apple.com/kb/HT4083
From computer to device...
http://support.apple.com/kb/HT4236 -
How can I use FaceTime between 2 I-Pads sharing the same email account
How can I use FaceTime between 2 I-Pads sharing the same email address
Cstearns-
I only have one iPad, but was able to add myself to the list of Favorites. When I tried to call, I was not available!
You should also take a look at the Skype App for iPhone. It works on the iPad, where you can choose 2X to expand the display. I haven't tried to add myself to Skype, but have been able to have it connected on both my computer and the iPad at the same time.
You might also consider getting a second address from G-Mail, just for use with FaceTime.
Fred -
Living in Europe how can I use a gift card valid only on the U.S. iTunes Store
Living in Europe how can I use a gift card valid only on the U.S. iTunes Store?
Sorry... iTunes Gift Cards are only Valid in Country of Issue.
-
How can I use a vector image to stretch with the backgrounds in Muse master pages?
How can I use a vector image to stretch with the backgrounds in Muse master pages?
Maybe there's a bug. I think it's only showing it when it wants to because look:
-
So how can I use my iPhone or stream music on the ATV without having use of the computer?. I am limited I have wifi iPhone ATV and hd TV. My ATV has a setting for AirPlay as well. Please help :)
Use AirPlay.
-
How can i use both Windows and Mac os at the same time on my iMac
How can i use both Windows and Mac os at the same time on my iMac
You can use Parallels desktop or VM Fusion to run both operating systems at the same time. Both programs work well, but I personally perfer VM Fusion.
-
6th gen nano says i have used 3gb of other memory: how do i remove this and how do i find what is in that part of the memory
The operating system for the iPod, album art, databases, etc. all make up the "other stuff". Think of it as all the backstage things required to make your ipod work.
i -
T60 Fan Replacement - Which part is the right one?
How do I know which fan model number to use? I have a 2613-CTO but on the parts info listing, 2613-CTO matches with 4 different model numbers:
41V9931 (integrated)
41W6406 (integrated)
41V9932 (discrete)
41W6407 (discrete)
How do I know which part is the correct one for my laptop?
Any assistance would be much appreciated, thanks!!!Any "discrete graphics" fan will do just fine, since that's what you have in that T60.
Hope this helps.
Cheers,
George
In daily use: R60F, R500F, T61, T410
Collecting dust: T60
Enjoying retirement: A31p, T42p,
Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you. -
How can I configure my new Mac Pro to output the timeline via HDMI
How can I configure my new Mac Pro to output the timeline in FCP 7 (yes, I have X, but I'm using 7 right now). I have two monitors running from TB2, but want to have the third for a client monitor.
If I use all three via TB2, it's literally three monitors, and I want to edit on my CineDisplay. I only want the client to see the timeline video on the third monitor. When I hook up HDMI I get no signal, in fact, I can't have the HDMI cable hooked up for TB2 to work with the third.
Thanks,
GEvans
DarthPro
3.7 QCIntelXeonE5
12 GB
AMD FirePro dual D300 2048MB
OSX 10.9.2If you use all ThunderBolt displays, or stick with DisplayPort and Mini DisplayPort (free conversion between the two with only a cheap cable) you can have up to six displays.
If you attach "legacy" displays with "any-old adapter", you can have up to two, and the built-in HDMI counts as one if you use it.
Any more requires ACTIVE Adapters.
The US$100 Apple ACTIVE Mini DisplayPort to Dual-Link DVI adapter works in every case, even displays over 1920 wide.
StarTech and Accell make US$35 ACTIVE adpters that work for displays up to 1920 wide. -
Title says it all!
How do I select all instances of a clip in the timeline at once without manually shift+clicking each instance?
The reason I want to do this is because I have a music video with MANY quick cuts. So clips are cut up and splattered all over the place. I am colour-correcting now and so I want to be able to select one clip everywhere it exists in the timeline so I can drag the effect onto all them at once, without having to find each instance of the clip in the timeline. This "batch select" would make it so I don't miss any instances of the clip and also saves a ton of time going through the timeline and shift clicking each time the clip turns up.
I hope PP is smart enough to do this
Thanks in advance!
-- TimPick one instance of the clip, maybe even the first bit ... and use the new Master Clip feature ... here's first a written explanation and then a video tutorial on doing this ... it's a great feature.
Adobe Premiere Pro Help | Master Clip Effects
How to apply effects to all instances of a clip | Adobe Premiere Pro CC tutorials
Neil -
How do you import audio books so they are like the ones you buy from itunes
how do you import audio books so they are like the ones you buy from itunes?
There are a number of tools for merging the files into one. Personally I don't bother, but you'll find links on my page which describes how to manage Audiobooks on iPods.
tt2 -
i have LR from 2 through 4.4, I am simply trying to adjust CR2s, and convert the them JPEG. LR says my Perfectly Clear is expired but my update is up to date and all paid for. What is Perfectly Clear and how do i get this puppy to be part of the team?
Perfectly Clear is a 3rd party commercial plugin for Lightroom.
http://www.athentech.com/products/plugins/
Have you ever installed it as a trial in the past?
Maybe you are looking for
-
My hard drive died last week, and I needed to install a new one. Previously, I was able to save a .doc with text and inserted photo to .pdf and then to .jpg. Now I can get the .pdf but can't determine what to do to convert to .jpg. Does anyone kno
-
How to create Transfer order from material document uFF08Move type is 101uFF09
Hi all, is there any function module, BAPI to create transfer order from a material document number? I want to use FM L_TO_CREATE_SINGLE,but the result is "Movement type 101 for manual transfer orders does not exist". Is the parameters error? Thank y
-
HR - have to add description for the customised field in infotype 4118.
I need to add description for the customised field in info type 4118 in HR module.
-
Specification creation in specification workbench
Hi EHS guru, When I am on the Specification creation screen using the specification workbench transaction, there are the following tab appears: Specification Header tab Restriction tab Identifiers tab References tab Mate
-
Hide Password in FTP_CONNCET FM
Hi, In FTP_CONNECT we need to pass user name and password. Here if we pass hard coded password then that thing will be open to all. So my requirement is u201CHow to hide or encrypt FTP user password from user for security reasons?u201D Here I also wa