Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > Simple Stuff (Newbies)

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-05-2001, 09:27 PM   #1
DigiScript
Registered User
 
Join Date: Jan 2001
Location: Cincinnati, Ohio, USA
Posts: 43
Default

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 ....?
DigiScript is offline   Reply With Quote
Old 02-05-2001, 09:51 PM   #2
Strok
Registered User
 
Join Date: Nov 2000
Location: Toronto Canada
Posts: 789
Send a message via ICQ to Strok
Default

It is a position for Masked object.
Strok is offline   Reply With Quote
Old 02-06-2001, 04:13 PM   #3
DigiScript
Registered User
 
Join Date: Jan 2001
Location: Cincinnati, Ohio, USA
Posts: 43
Default

I know, but where do the values (20 and 30 for x and y) come from?
DigiScript is offline   Reply With Quote
Old 02-07-2001, 01:00 AM   #4
Strok
Registered User
 
Join Date: Nov 2000
Location: Toronto Canada
Posts: 789
Send a message via ICQ to Strok
Default

[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]
Strok is offline   Reply With Quote
Old 02-07-2001, 02:07 PM   #5
DigiScript
Registered User
 
Join Date: Jan 2001
Location: Cincinnati, Ohio, USA
Posts: 43
Default

Thanks Strok
DigiScript is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.