Publishing with HTML and JS combined produces an HTML file, not a JS file.
Ok. I'm so confused haha 😂
This is how the published file looks:
and if you right click and go to properties it says:
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.
Oh I didn't know that. I fixed those settings in the Publish window and got as far as publishing the file to my computer but I'm still lost on how to actually upload it. I'm using my own web hosting and I can upload files directly through my web browser. What do I upload and how do I then link it into my page? Does the .fla file need to be on the server?
I've created a directory with a dedicated "Scripts" file in which I put my HTML and .js files and the image file as well, but I don't know how to link it into my html page.
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.
if your website's domain name is kglad.com, and you wanted this project to open in user's browsers when they visit kglad.com, you would change your animate publish settings to publish index.html. by default, when no file is specified in a link/url, browser's look for one named index.html. ie, if you click http://www.kglad.com you'll see the kglad.com index.html file display in your browser.
likewise with everyone else's site. you're looking at the index.html (with rare exceptions) when no file name is specified in a url/link.
if you wanted your project to open in a subdirectly of your domain, you would create a directory (eg, myproject - scripts is not a good name choice for that) and upload your project files. if they were name project1.html, you would direct your browser to:
(i have no such directory or html so that look should lead to a 404 error page.)
It worked!!! Thank you so so so much! Ohmygoodness!! You have no idea how long I've been stuck on this I wish I had come on the forums sooner :') Thank you. This helps me immensely. I really really appreciate it ❤️
I'll make sure to give my project files better names in the future haha. Thank you for pointing that out!