Skip to main content
Participant
August 14, 2019
Question

Server interaction with client

  • August 14, 2019
  • 2 replies
  • 440 views

Suppose I have an E-comm site where there are pics of potatoes and tomatoes,with their prices listed beneath them. These prices are live prices, i.e. they need to be pulled off a server - how would I pull this off?

Also, is there any Animate equivalent to what Generator was for Flash back in the old days? What's a good book that contains info about it, and programming it and so on?

Thanks.

This topic has been closed for replies.

2 replies

JoãoCésar17023019
Community Expert
Community Expert
August 14, 2019

About learning Animate CC, you can:

- Access Adobe offical help;

- Visit Animate's official channel on YouTube.

- Search for online video tutorials and courses on YouTube, bloopanimation.com, Lynda.com / LinkedIn Learning, Pluralsight, snorkl.tv, flash-powertools.com, Skillshare, Udemy, among others;

- Buy books from stores like Amazon;

- Facebook groups, Twitter accounts, and so on.

Regards,

JC

JoãoCésar17023019
Community Expert
Community Expert
August 14, 2019

I forgot about yours, n. tilcheff​.

I've just edited my comment.

JoãoCésar17023019
Community Expert
Community Expert
August 14, 2019

Hi.

You can use an XML HttpRequest.

Say for example you want to get some quiz/trivia questions from a database like Open Trivia DB. You could write:

var xhttp = new XMLHttpRequest();

xhttp.onreadystatechange = function ()

{

    if (this.readyState == 4 && this.status == 200)

        console.log(xhttp.responseText);

};

xhttp.open("GET", "https://opentdb.com/api.php?amount=10", true);

xhttp.send();

You can host your own files as well, of course.

I hope this helps.

Regards,

JC