Copy link to clipboard
Copied
I did a site using Flash and ActionScripot 2.0. Back then you could publish your Flash to 100% height and width. The site as shown in image is 100% vector. I have the original file and converted to HTML5.
The hamonica would drop in frm the top left and the guitar would be up from the bottom right.
I tried in the publication settings doing stretch to fit which worked good for the harmonica dropping but cut out most of the bottom sections. If the option to stretch to fit horizontally exists is there a vertical.
The animations are important here coming from the side of the browser and not the middle. Is it not the best idea to publish in this manner, a complete site?
i don't know the answer without working/testing this.
Copy link to clipboard
Copied
you'll need to edit the an.makeResponsive() function in your js file so it does not maintain the aspect ration of your stage.
Copy link to clipboard
Copied
Thanks kglad, this goes above and beyond using the publishing options like make responsive and center on page. Any idea what the code might look like. Thanks for your response.
Copy link to clipboard
Copied
yes, this will require editing outside animate. and yes, the needed code will already be in that function. you just need to remove the aspect ratio check and assign the width ala the code in the branch where stage width/height is greater than screen width/height. the other branch will show how to size the height.
Copy link to clipboard
Copied
This is what I have, I see the function, I am guessing percentages are not used.
Is it the if and else if loops that need to be modified.
Copy link to clipboard
Copied
this an.makeResponsive
Copy link to clipboard
Copied
Thanks a million for your help, I can not get this to work. I tried altering the publish settings from responsive to non responsive then e=ntering the code provided in Animate but still getting blocked content (not full page). Attached is a PDF with the HTML and JavaScript. The first two pages are HTML, I dont know what I am doing wrong.
Copy link to clipboard
Copied
are you checking your browser's developer console for errors?
Copy link to clipboard
Copied
I was not doing that, I am no where near as adept as you with JavaScript. I have some understanding.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
what's the play() error from?
Copy link to clipboard
Copied
I know Animate files need to be run from a server. There is a JavaScript security issue that impairs functionality when run locally
Copy link to clipboard
Copied
use the test in animate to circumvent those errors.
Copy link to clipboard
Copied
I use Visual Studio with Live Server
Copy link to clipboard
Copied
i can't help you with viz studio.
what's your an.makeResponsive() function?
Copy link to clipboard
Copied
I tried the one you posted
Copy link to clipboard
Copied
that's the unedited version published by animate.
Copy link to clipboard
Copied
Thats what I thought becuase I did a text/file comparison and there were no differences. How do you go about altering to get the 100% / 100%
Copy link to clipboard
Copied
i don't know the answer without working/testing this.
Copy link to clipboard
Copied
Thanks for your help and the time spent. I thought responsive was done more in the CSS. Its interesting that JavaScript plays such a big role but not surprising. Once I find the answer I will post.