| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jan 2001
Location: Cincinnati, Ohio, USA
Posts: 43
|
In the Mask follows Mouse tutorial, what exactly is happening here?
// Move the masked object by exactly the opposite amount this.masked_object._x = (20-x); this.masked_object._y = (30-y); I assume it means exactly the opposite amount as the mouse, but I don't get it... where does the 20 and 30 come from? And if the mouse is at 400, 100, shouldn't the object disappear by going to -380, -70?? I know this is simple, so why can't I understand it ....? |
|
|
|
|
|
#2 |
|
Registered User
|
It is a position for Masked object.
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jan 2001
Location: Cincinnati, Ohio, USA
Posts: 43
|
I know, but where do the values (20 and 30 for x and y) come from?
|
|
|
|
|
|
#4 |
|
Registered User
|
[swf] src="http://www.actionscripts.org/help/stuff/20x30.swf" quality=high width="200" height="100"[/swf]
[Edited by Strok on 02-06-2001 at 07:06 PM] |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Jan 2001
Location: Cincinnati, Ohio, USA
Posts: 43
|
Thanks Strok
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| quick question about rollover | karatechop | ActionScript 1.0 (and below) | 3 | 09-16-2004 01:25 AM |
| Quick Question on Duplicating movie clips | Fishinghat | ActionScript 2.0 | 1 | 09-05-2004 03:07 PM |
| Quick question re: using style sheets | mcmcom | ActionScript 1.0 (and below) | 2 | 09-04-2004 09:28 AM |
| quick question to do with forms | rustybones | ActionScript 2.0 | 7 | 08-09-2004 11:09 PM |
| addProperty on prototype (quick question) | Mortimer Jazz | ActionScript 1.0 (and below) | 13 | 06-01-2003 02:52 PM |