if thats the case you should have a movieClip that contains your buttons
in the library. Set its linkage then attach it under your m1 movieClip...
_____
|____| m1 - main button
menu_mc - library linkage
_____
|____| button1_mc // these are all instance named in the menu_mc clip
in the library
|____| button2_mc
|____| button3_mc
m1.onRollOver = function():Void{
var subMenu:MovieClip = attachMovie("menu_mc", menu_mc, 100); //
grab the menu from library
subMenu._x = this._x+this._height; // set the menu._x to the m1's x
location plus its height
subMenu._y = this._y; // set the menu._y to the m1's y location
}
maybe something along those lines?
Yes, something like that, but i wanted:
a) only use movieclips
b) all actionscript in main timeline in frame 1
I can and have done it plenty of times using movieclip and regular buttons,
no problem. Wanted to try something new, guess it was a bad idea :-)
Ben
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Johnston
Sent: maandag 20 maart 2006 1:55
To: Flashcoders mailing list
Subject: Re: [Flashcoders] movieclip actions not working
what are you trying to achieve with this anyhow? a drop down menu type
of system or what?
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
_______________________________________________
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