Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: Just beginning with ActionScript... |
From: | Bawol, Brian |
Date: | Tue, 5 Dec 2000 16:30:25 GMT |
Hi Sebastien,
Couple things...you need to make your 'visible=false' a 'visible==false' (2
equals signs)
Also, get rid of the Quotes around your "target" s. This code should work
if I'm not explaining properly:
on (release) {
if (target._visible==false) {
setProperty (target, _visible, true);
} else {
setProperty (target, _visible, false);
}
}
Ciao,
Brian
-----Original Message-----
From: Sebastien Brassard [sbrassardubisoft [dot] qc [dot] ca (mailto:sbrassardubisoft [dot] qc [dot] ca)]
Sent: Tuesday, December 05, 2000 11:00
To: flasherchinwag [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 helpchinwag [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 helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]