Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-22-2006, 04:31 PM   #1
sporArbejder
Registered User
 
Join Date: Mar 2006
Posts: 2
Default masking...pretty much nothing

i am trying to get into actionscript 3.0, and am encountering troubles using the masking fascilities.
it should be as simple as oneShape.mask(theOtherShape); but teh flex compiler keeps insisting that 'Call to a possibly undefined method 'mask' through a reference with static type 'flash.display:Shape'.
here's what I tried out:
ActionScript Code:
package {     import flash.display.MovieClip; import flash.display.Graphics.* import flash.display.Shape; import flash.display.Sprite; import flash.display.*; import flash.display.DisplayObject; import flash.util.trace; import flash.events.*; //yeah the import is overkill but i wanted to figure out whether it was //because i hadn't implemented a certain class I got that error message     public class slider extends MovieClip {         private var stageCon:Sprite=new Sprite();         public function slider() { this.addChild(stageCon); var maskee:Shape=new Shape(); var masked:Shape=new Shape(); maskee.graphics.beginFill(0x445544,1.0); maskee.graphics.drawRect(10,100,100,50); masked.graphics.beginFill(0x556677,1.0); masked.graphics.drawRect(0,110,100,50); stageCon.addChildAt(maskee,0); stageCon.addChildAt(masked,1); masked.mask(maskee);                 }             } }
hope somebody out there in the big sea of knowledge can see through this.

Y!

Last edited by hangalot; 03-22-2006 at 07:49 PM..
sporArbejder is offline   Reply With Quote
Old 03-22-2006, 07:52 PM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

mask is a property not a method (you are thinking setMask from as2)
ActionScript Code:
masked.mask = maskee;
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 03-23-2006, 09:08 AM   #3
sporArbejder
Registered User
 
Join Date: Mar 2006
Posts: 2
Default wow!

didn't think these forum-thingies actually worked.
than you very much, hangalot - that helpedmealot.
sincerely

Y!

Quote:
Originally Posted by hangalot
mask is a property not a method (you are thinking setMask from as2)
ActionScript Code:
masked.mask = maskee;
sporArbejder 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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Masking with text dmannew Other Flash General Questions 6 01-18-2006 07:40 PM
masking problem ssipse ActionScript 1.0 (and below) 3 09-30-2004 02:32 AM
Turning off masking in the ScrollPane... kuleraen ActionScript 1.0 (and below) 1 06-24-2003 07:41 PM
DynamicTextBox - Fonts outLine - Masking mayam ActionScript 1.0 (and below) 3 10-10-2002 02:23 PM
Problems with sized pop ups and url masking mmdesignr ActionScript 1.0 (and below) 1 02-26-2002 06:10 PM


All times are GMT. The time now is 06:40 PM.


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.