Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 82585

Re: Hit a little roadblock:

$
0
0

Thank you Joel.

 

I don't know if you have access to Lynda.com, but this is the url of this particular segment:  Loading text for each image from the Course Creating a Slideshow with Edge Animate

 

I thought that the loading of the data file  is done in the script on the fifth line:

 

 

 

 

 

//Variable

imageCount = 2;

displayCount = 1

 

 

//JSON

 

 

$.getJSON("slides.json", function(data){

 

 

  //LoadData

  function loadData(i){

  sym.$("photo").attr("src", data(i).image);

 

 

  //Using data for the text

  sym.$("title").html(data(i).title);

  sym.$("desc").html(data(i).desc);

  sym.$("countText").html(data(i).displayCount + " of " + data.length);

  }

 

 

  loadData(imageCount);

 

 

});

 

My understanding was that once I run this in the browser, the third picture from the json file will be loaded with its properties displayed on that slide, and the running counter.


Viewing all articles
Browse latest Browse all 82585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>