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

how to place a download link into adobe animate animation

Contributor ,
Mar 14, 2024 Mar 14, 2024

Copy link to clipboard

Copied

hello there

i making an music animation

with sheet music animated with a line passing as 

the sound goes......

at the end of presentation i want to place a button

with download link .... to get the original sheet in order

to study at home and print........

for example the link of sheet uploaded to mediafire.com 

what am i suposed to do ?

thanks to all 

leo

Views

94

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 ,
Mar 14, 2024 Mar 14, 2024

Copy link to clipboard

Copied

where's the file?  if it's on the same server as your html file, it's easy to code.

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
Contributor ,
Mar 14, 2024 Mar 14, 2024

Copy link to clipboard

Copied

the file is in a site of uploading documents...

how do i make a button for downloadin the sheet

thanks?

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 ,
Mar 14, 2024 Mar 14, 2024

Copy link to clipboard

Copied

this.b.addEventListener("click",downloadF.bind(this));
 
function downloadF(){
downloadFF(site of uploading documents, yoursheetmusic);
}
 
 
function downloadFF(url, fileName) {
fetch(url, {
method: 'get',
mode: 'no-cors',
referrerPolicy: 'no-referrer'
})
.then(res => res.blob())
.then(res => {
const aElement = document.createElement('a');
aElement.setAttribute('download', fileName);
const href = URL.createObjectURL(res);
aElement.href = href;
aElement.setAttribute('target', '_blank');
aElement.click();
URL.revokeObjectURL(href);
});
};

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
Contributor ,
Mar 14, 2024 Mar 14, 2024

Copy link to clipboard

Copied

thanks you are the man 

i ll try it later 

at the moment i am watching how to make an animated button in youtube

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 ,
Mar 14, 2024 Mar 14, 2024

Copy link to clipboard

Copied

LATEST

ok

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