Groups | Blog | Home
all groups > macromedia flash sitedesign > march 2005 >

macromedia flash sitedesign : On/Off button help needed urgently


tralfaz
3/6/2005 2:19:22 PM
[quoted text, click to view]


// code on timeline that holds the button, not attached to button
itself
// button has instance name of button1

button1.onRelease = function()
{
_root.whiteline._visible = (line) ? true : false;
line = ! line;
}

HTH
tralfaz

abdulgomaa
3/6/2005 7:52:27 PM
I am trying to make abutton that shows and hides a movieclip when it is
pressed. I set this in the frame :

val = $line
$line = 0

and this on the button

on (release) {
if ($line == '0') {
_root.whiteline._visible= false
$line = '1';
} else {
$line == '1';
_root.whiteline._visible= true

}
}

Can you please help me as fast as possible because i amm stuck and i need the
help despratly. thank you
ASGSOFT

AddThis Social Bookmark Button