Copy link to clipboard
Copied
No funciona el doble click, sólo se abre el panel de Propiedades y ahí no esta la posibilidad de asignarle ID.
Gracias.
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,
...Copy link to clipboard
Copied
attach a screenshot showing the problem.
Copy link to clipboard
Copied
On the library, i can't get an ID for that sound. Double Click doesn't work.
(sorry the bad ennglish)
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Double click on the Vinculacion column doesn't work.
Double click just opens the properties window of that element.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
No keys are sticking.
This is Animate 2017, on Animate 2016 works just fine.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
try an mp3, not a symbol.
Copy link to clipboard
Copied
kglad escribió:
try an mp3, not a symbol.
I'm trying to link a mp3 file, not a symbol
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?:
Copy link to clipboard
Copied
Yes, i will. Thanks guys.
Copy link to clipboard
Copied
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).
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
good point.
so there's no reason to import an mp3 to canvas: use the sound api to play an external mp3.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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(){
}
*/
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
thanks for the alternatives info. i never paid attention to it having copied it from the docs.
(and when did you change your avatar?)
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
I don't think so kglad
In Animate 2016 works with canvas document,
Find more inspiration, events, and resources on the new Adobe Community
Explore Now