Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: Just beginning with ActionScript...
From: Ola Janson
Date: Tue, 5 Dec 2000 16:31:41 GMT

add one = to the if ("target"._visible=false)

try
on (release) {
if ("target"._visible==false) {
setProperty ("target", _visible, true);
} else {
setProperty ("target", _visible, false);
}

}

and dont put the button in the movieclip otherwise the invisibility will
stop the button from working

-----Original Message-----
From: Sebastien Brassard [sbrassardatubisoft [dot] qc [dot] ca (mailto:sbrassardatubisoft [dot] qc [dot] ca)]
Sent: Tuesday, December 05, 2000 5:00 PM
To: flasheratchinwag [dot] com
Subject: FLASH: Just beginning with ActionScript...


Hi all,
I'm trying to have a movie clip disappear when you press a
button... then reappear when you press the same button again.
so far it's *not* working... here's the actionscript
attached to my button.. what am I doing wrong?

on (release) {
if ("target"._visible=false) {
setProperty ("target", _visible, true);
} else {
setProperty ("target", _visible, false);
}

}
The name of the movie clip is "target".

Thanks,
S.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]