Be a Supporter!

Nested button problem..

  • 271 Views
  • 5 Replies
New Topic Respond to this Topic
zuperxtreme
zuperxtreme
  • Member since: Jan. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Nested button problem.. 2008-09-17 17:48:28 Reply

errr... This might sound very stupid, but what am I doing wrong?

I have an MC called gallery, within it an MC called ventana9 and within that a button. I want to execute something when the button is pressed, but nothing happens. If I try executing the script on ventana9 it works.

:/

http://spamtheweb.com/ul/upload/170908/6 7624_test.php

The button is where it says "visitar website, hacer clic aca".

I'm calling it like this:

_root.gallery.ventana9.Button_prueba.onR elease = function() {
getURL("http://gsestudio.com.ar/cerokm", "_blank");
};

All instance names are right. Could it be the tween? I don't get it...


BBS Signature
Blaze
Blaze
  • Member since: Aug. 4, 2005
  • Offline.
Forum Stats
Member
Level 22
Programmer
Response to Nested button problem.. 2008-09-17 17:51:13 Reply

At 9/17/08 05:48 PM, zuperxtreme wrote: All instance names are right. Could it be the tween? I don't get it...

AS2 o AS3?

I assume you know spanish. :P
AS2...

Porqué no lo ponés en el botón y ya?

on(release)
{
_root.getURL("","_blank");
}

??

zuperxtreme
zuperxtreme
  • Member since: Jan. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Nested button problem.. 2008-09-17 17:54:20 Reply

Yes, AS2, y si, hablo español. Pero prefiero hablar ingles asi me entienden todos.

I tried putting it within it too, but that doesn't work either :s


BBS Signature
Musician
Musician
  • Member since: May. 19, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Nested button problem.. 2008-09-17 18:07:00 Reply

From what I can tell there's nothing obviously wrong with the code. What I would do is remove the tween and see if it works like that. depending on the result, you'll know if the tween was causing it or not. If it's not, try placing a trace(); within the onRelease function to see if there's an output.


I have no country to fight for; my country is the earth; I am a citizen of the world
-- Eugene Debs

zuperxtreme
zuperxtreme
  • Member since: Jan. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Nested button problem.. 2008-09-17 18:11:13 Reply

I removed the tween and the problem persists. Trace outputs nothing.

Can you have a button within 2 mc's? I don't see why not :S


BBS Signature
zuperxtreme
zuperxtreme
  • Member since: Jan. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Nested button problem.. 2008-09-17 18:16:02 Reply

And I just made an Mc, another within it and a button within that and it works fine :S

The fuc........


BBS Signature