[Flashcoders] OnPress, transparent bitmaps
Hey list (I'm a new member), I used to do the following: - create a container clip (mc) - create a clip within mc to hold an image (mci) - create a clip within mc to hold an alpha mask (mca) - mci.setMask(mca) The result was that onPress, useHandCursor, etc. would only respond when rolling over the revealed portion of mc. Now, with Flash 8, I'm trying the following: - create a container clip (mc) - dynamically composite a bitmap with an alpha and attach it to mc This all displays beautifully, is faster, offers better performance, BUT - now onPress, useHandCursor, etc. respond when rolling over the complete clip (transparent pixels are not ignored). Is there a solution for this? I'm aware of the ability to hittest with bitmap objects, but that won't solve the problem of overlapping clips. I'm coming from a Director background - where setting the 'clip' (sprite) to Mask ink would solve the problem. I gather that's not quite how Flash does things. Ideas? Thanks in advance, r o b | Robert Gordon | The Article 19 Group Inc. | phone: 514.938.8512 | email: [EMAIL PROTECTED] | http://www.article19.com ___ 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
Re: [Flashcoders] OnPress, transparent bitmaps
well.. you can dynamically set another MC to be the hitarea.. On May 30, 2006, at 2:36 PM, Robert Gordon wrote: Hey list (I'm a new member), I used to do the following: - create a container clip (mc) - create a clip within mc to hold an image (mci) - create a clip within mc to hold an alpha mask (mca) - mci.setMask(mca) The result was that onPress, useHandCursor, etc. would only respond when rolling over the revealed portion of mc. Now, with Flash 8, I'm trying the following: - create a container clip (mc) - dynamically composite a bitmap with an alpha and attach it to mc This all displays beautifully, is faster, offers better performance, BUT - now onPress, useHandCursor, etc. respond when rolling over the complete clip (transparent pixels are not ignored). Is there a solution for this? I'm aware of the ability to hittest with bitmap objects, but that won't solve the problem of overlapping clips. I'm coming from a Director background - where setting the 'clip' (sprite) to Mask ink would solve the problem. I gather that's not quite how Flash does things. Ideas? Thanks in advance, r o b | Robert Gordon | The Article 19 Group Inc. | phone: 514.938.8512 | email: [EMAIL PROTECTED] | http://www.article19.com ___ 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 ___ 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
Re: [Flashcoders] OnPress, transparent bitmaps
Bingo! Is there any overhead incurred if I hang the other MC (the one ot be used as the hitArea) off the MC of interest, but set its _visible property to false? I'm still getting my sense for what sucks cycles and what doesn't... Thanks Michael, r o b | Robert Gordon | The Article 19 Group Inc. | phone: 514.938.8512 | email: [EMAIL PROTECTED] | http://www.article19.com From: Michael Bedar [EMAIL PROTECTED] Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Date: Tue, 30 May 2006 14:57:58 -0400 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] OnPress, transparent bitmaps well.. you can dynamically set another MC to be the hitarea.. On May 30, 2006, at 2:36 PM, Robert Gordon wrote: Hey list (I'm a new member), I used to do the following: - create a container clip (mc) - create a clip within mc to hold an image (mci) - create a clip within mc to hold an alpha mask (mca) - mci.setMask(mca) The result was that onPress, useHandCursor, etc. would only respond when rolling over the revealed portion of mc. Now, with Flash 8, I'm trying the following: - create a container clip (mc) - dynamically composite a bitmap with an alpha and attach it to mc This all displays beautifully, is faster, offers better performance, BUT - now onPress, useHandCursor, etc. respond when rolling over the complete clip (transparent pixels are not ignored). Is there a solution for this? I'm aware of the ability to hittest with bitmap objects, but that won't solve the problem of overlapping clips. I'm coming from a Director background - where setting the 'clip' (sprite) to Mask ink would solve the problem. I gather that's not quite how Flash does things. Ideas? Thanks in advance, r o b | Robert Gordon | The Article 19 Group Inc. | phone: 514.938.8512 | email: [EMAIL PROTECTED] | http://www.article19.com ___ 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 ___ 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 ___ 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