PDA

View Full Version : variables-issue


elquejido
03-12-2006, 03:15 PM
hi all!
could anyone give me a hint on how to integrate a variable into the text-part of a command...

var trigger = _root._currentframe;

_global.Behaviors.Sound.song"trigger".mp3.start(0,1);


doesn't seem to work...


thanx in advance. el que...

Cota
03-12-2006, 07:32 PM
it would be something like
_global.Behaviors.Sound["song" + trigger].mp3.start(0, 1);