Flasher Archive

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


Subject: Re: FLASH: How to have a MC target it's self?
From: Charles Goran
Date: Thu, 21 Sep 2000 22:47:08 +0100

Looks like the "this" solution was the ticket. However I have now
duplicated a self referring MC with the "this" targeting but the .hitTest
is only working for one of them.

onClipEvent (enterFrame) {
if (this.hitTest(_root.drag) == true) {
setProperty (this, _visible, false);
_root.text = "hit";
}
if (this.hitTest(_root.drag) == false) {
setProperty (this, _visible, true);
_root.text = "no hit";
}
}
The demo may be viewed a:
http://www.digitalrain.org/hittest/

Please help!!
Cheers,
Charles



sHANE bECKER wrote:

> you could also try _self that actually refers to itself
>
> i've successfully had a mc unload itself that way.
>
> sHANE
>
> Susan Yoo wrote:
> >
> > use "this"
> > _root points to the main timeline
> > (correct me if I'm wrong because I haven't actually used "this" yet)
> > Hope this helps.
> >
> > --sueyoo
> >
> > > -----Original Message-----
> > > From: Charles Goran [cgoranatfood [dot] com (mailto:cgoranatfood [dot] com)]
> > > Sent: Thursday, September 21, 2000 2:38 PM
> > > To: flasheratchinwag [dot] com
> > > Subject: FLASH: How to have a MC target it's self?
> > > Importance: High
> > >
> > >
> > > Hi. I'm trying to make the jump to 5 and I can't figure out
> > > how to have
> > > a MC target it's self?
> > > I want a duplicated MC to do a collision detect and then remove it's
> > > self if it == true.
> > >
> > > onClipEvent (enterFrame) {
> > > if ("".hitTest(_root.dolphin) == true) {
> > > _root.score = _root.score+100;
> > > }
> > > }
> > >
> > > Please help!!
> > > Charles Goran
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > NudeGuru.com is proud to sponsor the Flasher list
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > IT'S THE ART OF MONEY, HONEY!
> > Tips and Advice from some of the most popular Flash
> > artists + industry power-brokers on how to hold onto
> > your rights, negotiate contracts and get full value
> > for your work.http://www.nudeguru.com from Franke James
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > To unsubscribe or change your list settings go to
> > http://www.chinwag.com/flasher or email helpatchinwag [dot] com
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> NudeGuru.com is proud to sponsor the Flasher list
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> IT'S THE ART OF MONEY, HONEY!
> Tips and Advice from some of the most popular Flash
> artists + industry power-brokers on how to hold onto
> your rights, negotiate contracts and get full value
> for your work.http://www.nudeguru.com from Franke James
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: How to have a MC target it's , Susan Yoo
  Re: FLASH: How to have a MC target it's , sHANE bECKER

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