[Xerte] Rollover irregular shapes

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Nov 8 16:52:08 GMT 2010


Only for MovieClips. This is the hitTest method:  I think images (.pngs?) are always the whole shape.

Rollovers for MovieClips do this automatically.

The trick is probably more pain than you need, but you could inspect the colour at the current cursor position, and

if (not the backgroundCOlour){ blah }

Otherwise import the image into flash and breakApart, then save out a swf.

What is it?

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 08 November 2010 16:45
To: Xerte list
Subject: [Xerte] Rollover irregular shapes


Any way to trick the rollover cursor into ignoring the transparent parts of an image?

Cheers,

Dave

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101108/9c97f923/attachment.html


More information about the Xerte mailing list