When a transition within the carousel container finishes, we want to be able to react to that. We also must stop the playhead at various spots within that same container or it will just keep looping forever. Let’s tackle both of these tasks now.
- [Narrator] Right now, even though we have control over…the carousel in terms of moving from left to right,…the images themselves are not changing.…When a transition within the carousel container finishes,…we want to be able to react to that.…Let's tackle that task now.…So open our actions panel…and choosing Frame 1 of our main timeline…there is an additional function that I'm going…to paste in here and it's actually quite large.…You can get this from the Snippets file.…
The function is called 'transitionComplete' and we're going…to bind this to the current scope.…This allows us to to access transition complete from…nested timelines, so like our carousel container would…be able to access this when we scope transition complete…to this, so that's very, very important.…But it's set up to be a function,…just like other functions are,…and there's a couple of parts to this function.…The first is that we declare what…the previous and next images are.…
So we set up some empty variables,…'prevImage' and 'nextImage'.…We then check to see if our current image is equal to zero.…
- Using XML and JSON
- Setting up your Animate project
- Building a carousel container
- Applying animation
- Creating titles with dynamic text
- Ingesting external data
- Rendering images
- Automating transitions
- Designing an RSS display
- Programming the RSS display
Skill Level Intermediate
1. Dynamic Data Fundamentals
About XML and JSON1m 49s
2. Design a Web Carousel
3. Program the Web Carousel
4. Design an RSS Display
5. Program the RSS Display
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.