you just showed us the simple attaching of a movieclip from the lib...

Haikal Saadh wrote:
Hello.

I'm having some problems with hitTest();

Even though I've assigned a hitArea that's actually smaller than the area of a certain component, the actual hitArea seems to be the rectangle containing everything that's visible in the component. What gives? Have I misunderstood something?

Here's the code that assigns the hitArea:

       //trace("Loading hit area: " + __hitArea);
       hitAreaClip = attachMovie(__hitArea, "_hitAreaClip", depth++);
       hitAreaClip._visible = false;
hitArea = hitAreaClip; // make this component's hitArea be this just loadeded clip.

__ hitArea gets set as the property 'hitAreaSkin' at authortime.
Any ideas?


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to