• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Server interaction with client

New Here ,
Aug 14, 2019 Aug 14, 2019

Copy link to clipboard

Copied

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.

Views

351

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2019 Aug 14, 2019

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2019 Aug 14, 2019

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2019 Aug 14, 2019

Copy link to clipboard

Copied

I forgot about yours, n. tilcheff​.

I've just edited my comment.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 18, 2019 Aug 18, 2019

Copy link to clipboard

Copied

Thanks for all that info

Which of those is the GOOD one, though?

Also, in this particular case, I was talking specifically about where to get info on Generator - you didn't answer my question as to whether something like it still exists or not...?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2019 Aug 18, 2019

Copy link to clipboard

Copied

LATEST

You're gonna have to find out depending on your needs and style.

And what do you call Generator? Could you give some example?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines