Highlighted

Very Limited Actions In HTML Canvas. Doesnt Have Levels, Audio, Video Loading Scripts ?

Community Beginner ,
Nov 20, 2019

Copy link to clipboard

Copied

When we have a HTML5 canvas project, i see the HTML5 canvas scripts are very basic, just a few to select from, such as gotoAndPlay etc, theres no sound loading scripts, video loading scripts etc. How does one do audio and video loading. What about webpage levels ? So basically ANIMATE cant do everything that flash could when it came to website design ?

Adobe Community Professional
Correct answer by ClayUUID | Adobe Community Professional

You "load" video by dynamically creating a div floated over the Animate canvas element and then putting an HTML video element in it.

 

This is how you dynamically load and play sounds:

https://createjs.com/docs/soundjs/modules/SoundJS.html

 

I have no idea what you mean by "webpage levels".

Topics

ActionScript

Views

224

Likes

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

Very Limited Actions In HTML Canvas. Doesnt Have Levels, Audio, Video Loading Scripts ?

Community Beginner ,
Nov 20, 2019

Copy link to clipboard

Copied

When we have a HTML5 canvas project, i see the HTML5 canvas scripts are very basic, just a few to select from, such as gotoAndPlay etc, theres no sound loading scripts, video loading scripts etc. How does one do audio and video loading. What about webpage levels ? So basically ANIMATE cant do everything that flash could when it came to website design ?

Adobe Community Professional
Correct answer by ClayUUID | Adobe Community Professional

You "load" video by dynamically creating a div floated over the Animate canvas element and then putting an HTML video element in it.

 

This is how you dynamically load and play sounds:

https://createjs.com/docs/soundjs/modules/SoundJS.html

 

I have no idea what you mean by "webpage levels".

Topics

ActionScript

Views

225

Likes

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
Explorer ,
Nov 25, 2019

Copy link to clipboard

Copied

When using HTML5 canvas, you have the full power of javascript.  Animate uses the CreateJS libraries, specifically.

Likes

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
Reply
Loading...
Adobe Community Professional ,
Nov 25, 2019

Copy link to clipboard

Copied

You "load" video by dynamically creating a div floated over the Animate canvas element and then putting an HTML video element in it.

 

This is how you dynamically load and play sounds:

https://createjs.com/docs/soundjs/modules/SoundJS.html

 

I have no idea what you mean by "webpage levels".

Likes

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
Reply
Loading...
Plainman LATEST
Community Beginner ,
Dec 08, 2019

Copy link to clipboard

Copied

Hi Clay, Thanks for the reply. To start with i tried the audio js in my animate project and nothing happened. I have the mp3 which is Violin.mp3 in the same local folder of the project and want to load it as a background sound to the webpage. I changed "sound" in the script given to "Violin.mp3" and left the others as is. It didnt work. Then i tried a lot of other other permutations and combinations of replacing, but still it doesnt work. Can you please hint which keywords in that script shold contain my local mp3 files name ?

Likes

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
Reply
Loading...