RE: [Flashcoders] movieclip actions not working

2006-03-20 Thread Byron Canfield
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


Re: [Flashcoders] movieclip actions not working

2006-03-19 Thread a
could you show us a sample of how you are coding this? it seems like a 
very simple thing. and as it turns out, there is about 4 ways i 
could think of doing it right off the top of my head.


whats not working? the link to the site? the rollover to frame 20? the 
more info you give us the easier it is to help.


Ben Deroo wrote:

that's not it, does not work.

on what timeline are you putting your actions? I've tried on the main
timeline and on the m1 timeline (which is what I think you mean) but
both don't work.

here's my description again:
create a new movie
create a blue square and make that a movieclip symbol , name it m1,
create a red square and make that a movieclip symbol , name it m2,

drag a copy of m1 to the stage and give it instance name m1
open m1 and add some frames to the timeline (50 or so, does not matter)
stop action on frame 1
stop action on frame 20
at frame 20 (of the m1 timeline), drag a copy of movieclip m2 on the
stage, name it m2,
place it just below the blue square
I want the following to happen:
when a user rolls over the movieclip in the main timeline (m1), I want
the m1 timeline to advance to frame 20. You should then see a blue
square and a red square.
When a user clicks on the RED square (m2), I want them to go to a
website (http://www.website.com)


anyone?
thx,
Ben




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks
Sent: zondag 19 maart 2006 2:59
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] movieclip actions not working

  

stop action on frame 1



stop();
m1.onRollOver = function() {
gotoAndStop(20);
//or play();
}


  

stop action on frame 20



stop();
m2.onRelease = function() {
getURL(http://www.website.com;, _blank);
}

___
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


RE: [Flashcoders] movieclip actions not working

2006-03-19 Thread Ben Deroo
Hi,

The action on the m2 movieclip does not work, it will not launch a URL.
I've posted a sample fla file here:

http://www.citogrid.com/v3/images/fla/whynot.fla

all actionscript is in the first frame of the main timeline. Remember,
I ONLY want the URL to be launched when clicked on the red box.
Sequence should be: launch the swf, mouse over the blue box, see the
red box, click the red box and a URL should launch. So the m2
movieclip should trigger the getURL, not the m1 movieclip.

I agree with you, it should be simple, and I can do it, but I'd like
to do it using only movieclips and no buttons. That's where I'm stuck
:-)

thanks,
Ben

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of a
Sent: zondag 19 maart 2006 10:10
To: Flashcoders mailing list
Subject: Re: [Flashcoders] movieclip actions not working

could you show us a sample of how you are coding this? it seems like a
very simple thing. and as it turns out, there is about 4 ways i
could think of doing it right off the top of my head.

whats not working? the link to the site? the rollover to frame 20? the
more info you give us the easier it is to help.

Ben Deroo wrote:
 that's not it, does not work.

 on what timeline are you putting your actions? I've tried on the main
 timeline and on the m1 timeline (which is what I think you mean) but
 both don't work.

 here's my description again:
 create a new movie
 create a blue square and make that a movieclip symbol , name it m1,
 create a red square and make that a movieclip symbol , name it m2,

 drag a copy of m1 to the stage and give it instance name m1
 open m1 and add some frames to the timeline (50 or so, does not matter)
 stop action on frame 1
 stop action on frame 20
 at frame 20 (of the m1 timeline), drag a copy of movieclip m2 on the
 stage, name it m2,
 place it just below the blue square
 I want the following to happen:
 when a user rolls over the movieclip in the main timeline (m1), I want
 the m1 timeline to advance to frame 20. You should then see a blue
 square and a red square.
 When a user clicks on the RED square (m2), I want them to go to a
 website (http://www.website.com)


 anyone?
 thx,
 Ben
___
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] movieclip actions not working

2006-03-19 Thread Byron Canfield
Your first button event handler has already intercepted the mouse event.
The button event handler nested inside is therefore ignored entirely.

For your first button event:

m1.onRollOver = function() {
gotoAndStop(20);
//or play();
this.enabled = false;
}
-- 
Byron Barn Canfield


 stop action on frame 1

 stop();
 m1.onRollOver = function() {
   gotoAndStop(20);
   //or play();
 }


 stop action on frame 20

 stop();
 m2.onRelease = function() {
   getURL(http://www.website.com;, _blank);
 }



___
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] movieclip actions not working

2006-03-19 Thread Ben Deroo
Thanks for your help, but have you actually tried it? When I paste your
code, it does not make a difference at all, the m2 button still does not
launch a url when clicked.

again, here's a link to a fla. See if you can get that to work...
http://www.citogrid.com/v3/images/fla/whynot.fla 

thx,
Ben

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Byron
Canfield
Sent: maandag 20 maart 2006 0:33
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] movieclip actions not working

Your first button event handler has already intercepted the mouse event.
The button event handler nested inside is therefore ignored entirely.

For your first button event:

m1.onRollOver = function() {
gotoAndStop(20);
//or play();
this.enabled = false;
}
-- 
Byron Barn Canfield


 stop action on frame 1

 stop();
 m1.onRollOver = function() {
   gotoAndStop(20);
   //or play();
 }


 stop action on frame 20

 stop();
 m2.onRelease = function() {
   getURL(http://www.website.com;, _blank);
 }



___
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] movieclip actions not working

2006-03-19 Thread Byron Canfield
All my code does is terminate the interception of the button event by the
first button. It does not address other code errors.

As was asked before, where is the code for the second button? Is it on
frame twenty of the m1 movieclip? And, if so, has the button instantiated
by the time the button event handler function is created?

-- 
Byron Barn Canfield


 Thanks for your help, but have you actually tried it? When I paste your
 code, it does not make a difference at all, the m2 button still does not
 launch a url when clicked.

 again, here's a link to a fla. See if you can get that to work...
 http://www.citogrid.com/v3/images/fla/whynot.fla

 thx,
 Ben

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Byron
 Canfield
 Sent: maandag 20 maart 2006 0:33
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] movieclip actions not working

 Your first button event handler has already intercepted the mouse event.
 The button event handler nested inside is therefore ignored entirely.

 For your first button event:

 m1.onRollOver = function() {
   gotoAndStop(20);
   //or play();
 this.enabled = false;
 }
 --
 Byron Barn Canfield


 stop action on frame 1

 stop();
 m1.onRollOver = function() {
  gotoAndStop(20);
  //or play();
 }


 stop action on frame 20

 stop();
 m2.onRelease = function() {
  getURL(http://www.website.com;, _blank);
 }



 ___
 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


RE: [Flashcoders] movieclip actions not working

2006-03-19 Thread Ben Deroo
Hi,
the code for the m2 is on the first frame of the main timeline.
I'd like all code to be on the first frame of the main timeline.
also, to avoid confusion: there are not button instances, only movieclips,
as you can see in the fla file. There are no code errors (according to
flash)

I'm sure what your code does is fine, but it does not achieve the set
goal... when I click on the movieclip m2, I'd like a URL to be launched.

does anyone know how to do this? 

thx,
Ben

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Byron
Canfield
Sent: maandag 20 maart 2006 1:09
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] movieclip actions not working

All my code does is terminate the interception of the button event by the
first button. It does not address other code errors.

As was asked before, where is the code for the second button? Is it on
frame twenty of the m1 movieclip? And, if so, has the button instantiated
by the time the button event handler function is created?

-- 
Byron Barn Canfield


 Thanks for your help, but have you actually tried it? When I paste your
 code, it does not make a difference at all, the m2 button still does not
 launch a url when clicked.

 again, here's a link to a fla. See if you can get that to work...
 http://www.citogrid.com/v3/images/fla/whynot.fla

 thx,
 Ben

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Byron
 Canfield
 Sent: maandag 20 maart 2006 0:33
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] movieclip actions not working

 Your first button event handler has already intercepted the mouse event.
 The button event handler nested inside is therefore ignored entirely.

 For your first button event:

 m1.onRollOver = function() {
   gotoAndStop(20);
   //or play();
 this.enabled = false;
 }
 --
 Byron Barn Canfield


 stop action on frame 1

 stop();
 m1.onRollOver = function() {
  gotoAndStop(20);
  //or play();
 }


 stop action on frame 20

 stop();
 m2.onRelease = function() {
  getURL(http://www.website.com;, _blank);
 }



 ___
 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


RE: [Flashcoders] movieclip actions not working

2006-03-19 Thread Ben Deroo
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);
}

-- 
Byron Barn Canfield


 Thanks for your help, but have you actually tried it? When I paste your
 code, it does not make a difference at all, the m2 button still does not
 launch a url when clicked.

 again, here's a link to a fla. See if you can get that to work...
 http://www.citogrid.com/v3/images/fla/whynot.fla

 thx,
 Ben

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Byron
 Canfield
 Sent: maandag 20 maart 2006 0:33
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] movieclip actions not working

 Your first button event handler has already intercepted the mouse event.
 The button event handler nested inside is therefore ignored entirely.

 For your first button event:

 m1.onRollOver = function() {
   gotoAndStop(20);
   //or play();
 this.enabled = false;
 }
 --
 Byron Barn Canfield


 stop action on frame 1

 stop();
 m1.onRollOver = function() {
  gotoAndStop(20);
  //or play();
 }


 stop action on frame 20

 stop();
 m2.onRelease = function() {
  getURL(http://www.website.com;, _blank);
 }



 ___
 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


Re: [Flashcoders] movieclip actions not working

2006-03-19 Thread Andy Johnston

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


RE: [Flashcoders] movieclip actions not working

2006-03-19 Thread Ben Deroo
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


Re: [Flashcoders] movieclip actions not working

2006-03-19 Thread Andy Johnston
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


RE: [Flashcoders] movieclip actions not working

2006-03-19 Thread Ben Deroo
yes, I know, done that before.Like I said, I wanted to try something new by
using only movieclips... unsuccessfully :-)

thx for the help

Ben

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Johnston
Sent: maandag 20 maart 2006 2:19
To: Flashcoders mailing list
Subject: Re: [Flashcoders] movieclip actions not working

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http

RE: [Flashcoders] movieclip actions not working

2006-03-18 Thread Steven Sacks
 stop action on frame 1

stop();
m1.onRollOver = function() {
gotoAndStop(20);
//or play();
}


 stop action on frame 20

stop();
m2.onRelease = function() {
getURL(http://www.website.com;, _blank);
}

___
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] movieclip actions not working

2006-03-18 Thread Ben Deroo
that's not it, does not work.

on what timeline are you putting your actions? I've tried on the main
timeline and on the m1 timeline (which is what I think you mean) but
both don't work.

here's my description again:
create a new movie
create a blue square and make that a movieclip symbol , name it m1,
create a red square and make that a movieclip symbol , name it m2,

drag a copy of m1 to the stage and give it instance name m1
open m1 and add some frames to the timeline (50 or so, does not matter)
stop action on frame 1
stop action on frame 20
at frame 20 (of the m1 timeline), drag a copy of movieclip m2 on the
stage, name it m2,
place it just below the blue square
I want the following to happen:
when a user rolls over the movieclip in the main timeline (m1), I want
the m1 timeline to advance to frame 20. You should then see a blue
square and a red square.
When a user clicks on the RED square (m2), I want them to go to a
website (http://www.website.com)


anyone?
thx,
Ben




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks
Sent: zondag 19 maart 2006 2:59
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] movieclip actions not working

 stop action on frame 1

stop();
m1.onRollOver = function() {
gotoAndStop(20);
//or play();
}


 stop action on frame 20

stop();
m2.onRelease = function() {
getURL(http://www.website.com;, _blank);
}

___
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