Skip to main content
Participating Frequently
January 22, 2021
Question

Upload JavaScript File to HTML Webpage

  • January 22, 2021
  • 1 reply
  • 808 views

Hey guys,

I am taking a course and my instructor wants me to export my interactive Animate .fla file as an HTML5 output and upload it to my HTML website (totally coded from scratch, not a Wordpress site or anything like that). So I have published the file as JavaScript/HTML and it tells me it's a JavaScript file now (.js file extention). I have no idea how to do this and he is not helpful in the least. Could someone please explain or at least direct me to the right place where I might learn how to do this?

 

Thanks 💚

This topic has been closed for replies.

1 reply

Braniac
January 22, 2021

Publishing with HTML and JS combined produces an HTML file, not a JS file.

stceciliaAuthor
Participating Frequently
January 22, 2021

Ok. I'm so confused haha 😂

This is how the published file looks: 

and if you right click and go to properties it says:

 

 

kglad
Braniac
January 22, 2021

in the animate publish settings, by default you publish a html file (something.html) and javascript file (something.js) and possibly an images folder with bitmaps.

 

you can change the publish settings to include the js file in the html file (so you have an html file that contains javascript).

 

in either case, you should create a new directory and save your fla there and then publish to the default directory (which will be that new directory).  everything in that new directory (other than the fla) would need to be uploaded to a file server for you and others to test your product in their browser.