The first thing we need to do to get everything wired up is to bring our JSON data into the project and then format the data to a structure easily accessible within the code. Since we have set up our project to use jQuery in the Animate Template - this will make our data ingest very simple.
- [Narrator] The first thing we need to do to get…everything wired up, is to bring our JSON data…into the project and then format the data…to a structure easily accessible within the code.…Since we've set up our project to use jQuery…in the Animate template, this will make our data…ingest very simple.…What we'll do is select Actions layer frame one,…and choose Window, Actions.…This brings up the Actions panel.…And here I'm going to paste in the code snippet…for this lesson, and let's talk a little bit…about what all this means.…
So the first thing we do is declare a variable root…equal to this.…This isn't something you always have to do…and there are many different ways of doing it,…but this one way of preserving a local reference…to the current stage.…At this point, even within other functions,…we can invoke root and it's going to invoke a stage.…This variable, carousel items, is going to contain…everything that comes in through our JSON data.…Right now we set it to an empty array.…
As signified by these brackets.…
- 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.