Groups | Blog | Home
all groups > flash (macromedia) > april 2006 >

flash (macromedia) : Not clickable on a Mac


avylon
4/19/2006 9:42:42 PM
I'm using Flash to toggle audio on/off. It's a pretty simple thing that I'm
doing (see code). I am without a clue as to why my little audio icon shows up
but there's nothing to click. Works fine in IE/FF/NS. Anyone know what I may
be overlooking? Thanks! Patrick

// assigned to layer named "button"
on (release) {
stopStartAudio(playin);
}

//running on main timeline in layer named "actions"
mySound = new Sound();
mySound.attachSound("audiofile");
var playin:Boolean = false;
function stopStartAudio() {
if (playin) {
mySound.stop();
playin = false;
} else {
mySound.start();
playin = true;
}
}
Tom Unger
4/20/2006 12:36:54 AM
avylon;
Not sure what you might mean by:

// assigned to layer named "button"
on (release) {
stopStartAudio(playin);
}

Actions can't be "assigned to a layer" --that particular action should be
placed on a button symbol instance onstage... -Tom Unger

AddThis Social Bookmark Button