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

Como puedo vincular una ID a un sonido en la biblioteca de Adobe Animate CC 2017?

Community Beginner ,
Nov 21, 2016 Nov 21, 2016

No funciona el doble click, sólo se abre el panel de Propiedades y ahí no esta la posibilidad de asignarle ID.

Gracias.

1.1K
Translate
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

correct answers 1 Correct answer

Adobe Employee , Nov 21, 2016 Nov 21, 2016

Hi Juan,

This is a known bug in Animate CC 2017 and should be fixed soon.

For now please try any one of these workarounds to set linkage names:

1. Using JSFL:

     (Select the audio file in library then run the below JSFL snippet)

          var lib = fl.getDocumentDOM().library;

          lib.setItemProperty('linkageExportForAS', true);

          lib.setItemProperty('linkageClassName', 'myLinkageName');

2. Using AS3 doctype:

     Copy your audio to a new AS3 type document.

     Open the audio Properties,

...
Translate
Community Expert ,
Nov 21, 2016 Nov 21, 2016

attach a screenshot showing the problem.

Translate
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 Beginner ,
Nov 21, 2016 Nov 21, 2016

On the library, i can't get an ID for that sound. Double Click doesn't work.
(sorry the bad ennglish)

Translate
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
LEGEND ,
Nov 21, 2016 Nov 21, 2016

You have to double click in the Vinculacion column, then type in the ID you want. You only show the properties to edit the linkage name when you are using AS3.

Translate
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 Beginner ,
Nov 21, 2016 Nov 21, 2016

Double click on the Vinculacion column doesn't work.
Double click just opens the properties window of that element.

Translate
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
LEGEND ,
Nov 21, 2016 Nov 21, 2016

Can you check to see if any keys are sticking, the Alt key in particular? If you're on Windows Alt-double click might be a shortcut to Properties, and if Animate sees the Alt key as if it's being pressed, that could explain things.

Translate
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 Beginner ,
Nov 21, 2016 Nov 21, 2016

No keys are sticking.
This is Animate 2017, on Animate 2016 works just fine.

Translate
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 ,
Nov 21, 2016 Nov 21, 2016

it's a canas document. i don't think you can link a sound that way.

you could place the sound in a movieclip and use the new constructor, but better would be to use: SoundJS v0.6.2 API Documentation : SoundJS

Translate
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
LEGEND ,
Nov 21, 2016 Nov 21, 2016

You link symbols in a Canvas document by double clicking on the linkage column and typing in the linkage name that you want. I've never known double-clicking in the library to open the properties panel, you always have to either right-click and choose properties, or click the i button. The fact that double clicking the column is opening up the panel is strange.

Juan, does double clicking the Nombre column allow you to rename a symbol, or does that open properties as well?

Translate
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 ,
Nov 21, 2016 Nov 21, 2016

try an mp3, not a symbol.

Translate
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 Beginner ,
Nov 21, 2016 Nov 21, 2016

kglad escribió:

try an mp3, not a symbol.

I'm trying to link a mp3 file, not a symbol

Translate
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 ,
Nov 21, 2016 Nov 21, 2016

my message was to colin.

there's a difference between what colin's saying and what i'm saying.  my experience is the same as yours: assigning a linkage for a symbol in canvas is no problem.  assigning a linkage for an mp3 brings up the 'sound properties' panel and a linkage cannot be assigned there either.  at least, i can't do that and you can't do that.

the question is can colin do that.

Translate
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 Beginner ,
Nov 21, 2016 Nov 21, 2016

kglad escribió:

my message was to colin.

there's a difference between what colin's saying and what i'm saying. my experience is the same as yours: assigning a linkage for a symbol in canvas is no problem. assigning a linkage for an mp3 brings up the 'sound properties' panel and a linkage cannot be assigned there either. at least, i can't do that and you can't do that.

the question is can colin do that.

Kglad, We have the exactly same problem.

Translate
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
LEGEND ,
Nov 21, 2016 Nov 21, 2016

That was a useful observation! No I can't, not with an MP3. But I have done so hundreds of times in the past.

Juan, would you be willing to log a bug here?:

Feature Request/Bug Report Form

Translate
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 Beginner ,
Nov 21, 2016 Nov 21, 2016

Yes, i will. Thanks guys.

Translate
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 ,
Nov 21, 2016 Nov 21, 2016

in the mean time, you should be able to work around that problem by adding the sound to a movieclip timeline (if you don't want to use an external mp3).

Translate
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
LEGEND ,
Nov 21, 2016 Nov 21, 2016

It will end up being an external MP3 no matter what. In the case of the movieclip timeline approach Animate publishing will create the code needed to play it. But if you wanted to play it with code you would have an awkward approach of having to create a new movieclip from the library, and add it to the stage, just to hear a sound at the right time.

Translate
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 ,
Nov 21, 2016 Nov 21, 2016

good point.

so there's no reason to import an mp3 to canvas: use the sound api to play an external mp3.

Translate
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
LEGEND ,
Nov 21, 2016 Nov 21, 2016

If only that was true! I've tried hard to play arbitrary external MP3s, it doesn't work out, the sound seems to need to be declared in the manifest. Playing a sound on the fly doesn't work. At least not in my attempts.

Translate
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 ,
Nov 21, 2016 Nov 21, 2016

what manifest?  this is for canvas, correct?

if so, i use this and it works without problem:

createjs.Sound.alternateExtensions = ["mp3"];

createjs.Sound.addEventListener("fileload", loadHandler.bind(this));

createjs.Sound.registerSound("./sound/guitare.mp3", "sound_id");  // use the correct path and assign a sound id

function loadHandler(event) {

     var instance = createjs.Sound.play("sound_id");   // sound id used here

/*

optional

     instance.addEventListener("complete", handleComplete.bind(this));

     instance.volume = 0.5;

*/

}

/*

optional

function handleComplete(){

}

*/

Translate
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
LEGEND ,
Nov 21, 2016 Nov 21, 2016

manifest is a section early on in the JS file that Animate publishes.

It could be that when I tried it manually that I got something wrong.

One tip on the alternatives part, you're asking for MP3, and you suggest MP3 as an alternative. Here's how I would have the alternatives:

createjs.Sound.alternateExtensions = ["ogg"];

that way you can talk to an mp3 as you would normally do, but you could also have an .ogg for Firefox users. Playing mp3 and having an alternate of mp3 might not gain much.

Translate
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 ,
Nov 21, 2016 Nov 21, 2016

thanks for the alternatives info.  i never paid attention to it having copied it from the docs.

(and when did you change your avatar?)

Translate
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
LEGEND ,
Nov 21, 2016 Nov 21, 2016

Recently! I was in the Animate live chat thing the other day, and someone at Adobe told me how to set my forum avatar to match my profile one.

The picture is taken from my Xbox 360 avatar.

Translate
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 Beginner ,
Nov 21, 2016 Nov 21, 2016

Colin, if i double click the Nombre column, does allow me to rename the symbol. That works fine.
The issue is just with the Vinculacion column (Linkage column)

Colin Holgate escribió:

You link symbols in a Canvas document by double clicking on the linkage column and typing in the linkage name that you want. I've never known double-clicking in the library to open the properties panel, you always have to either right-click and choose properties, or click the i button. The fact that double clicking the column is opening up the panel is strange.

Juan, does double clicking the Nombre column allow you to rename a symbol, or does that open properties as well?

Translate
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 Beginner ,
Nov 21, 2016 Nov 21, 2016

I don't think so kglad
In Animate 2016 works with canvas document,

Translate
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