While all of the core functionality is now present, the formatting of each piece of data is imperfect - and we need to control the animation present within the details renderer.
- [Voiceover] While all the core functionality…is now present,…the formatting of each piece of data is imperfect.…We need to format the date…and control exactly how much data is coming out…in these fields.…Let's scroll way down to the bottom…and I have a couple utility functions that I've created.…You can find them in the Snippets file…and I'll paste them in right now.…One function goes ahead and formats a date.…The other function will truncate a string.…So basically, for the date function we pass in the pubdate…that comes back in the RSS feed…and it'll go ahead and go through,…figure out the month, the date, the full year,…and so forth and return a nicely formatted string.…
Similarly, the truncString function,…what it does is you pass in a string…and you also pass in how many characters…you want to truncate.…Then we go ahead and see if the length of the string…is greater than the characters we've passed in.…If it is greater than, we need to create a substring…and what we'll do is actually append ...…so the user knows that there is more to read…
- 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.