I was able to get it to work by deleting the m1 button event handler
function, however, the button event handler for m2 cannot be executed
before m2 actually exists, and since it comes into existence on frame 20
of m1, the button event handler function must also be run on frame 20 of
m1.

-- 
Byron "Barn" Canfield


> thanks for the help. If you say it can never work, then I assume it can
> never work... I'll do a little rethinking as you suggest and use the
> oldstyle buttons where needed.
>
> Ben
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Andy
> Johnston
> Sent: maandag 20 maart 2006 1:41
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] movieclip actions not working
>
> ben, you cannot have a button inside another button...
>
> That is why your code wont work.
>
> paste this over your current code
>
> m1.onRollOver = function ():Void
> {
>     this.gotoAndStop (20);
> };
> m1.onRollOut = function ():Void
> {
>     this.gotoAndStop (1);
> };
> m1.m2.onPress = function ():Void
> {
>     trace("HI")
>     getURL ("http://www.cnn.com";, "_blank");
> };
>
> as you will see the trace("HI") will never fire because the m1 button
> movieClips hit area will expand to the total size of the movieClip.
>
> rethink your setup, this will never work despite all the help in the world
>
>>have you tried that Byron, and does that work for you? I've tried it
>> here,
>>and makes no difference at all...
>>
>>strange that such a simple thing is so hard to solve...
>>
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of Byron
>>Canfield
>>Sent: maandag 20 maart 2006 1:18
>>To: flashcoders@chattyfig.figleaf.com
>>Subject: RE: [Flashcoders] movieclip actions not working
>>
>>Actually try this, instead.
>>
>>m1.onRollOver = function(){
>>      delete this.onRollOver;
>>      //this.play();
>>      this.gotoAndStop(20);
>>}
>>
>>
>>
>
> _______________________________________________
> 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

Reply via email to