Nested button problem..
- zuperxtreme
-
zuperxtreme
- Member since: Jan. 2, 2005
- Offline.
-
- Forum Stats
- Member
- Level 08
- Blank Slate
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...
- Blaze
-
Blaze
- Member since: Aug. 4, 2005
- Offline.
-
- Forum Stats
- Member
- Level 22
- Programmer
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
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
- Musician
-
Musician
- Member since: May. 19, 2005
- Offline.
-
- Forum Stats
- Member
- Level 04
- Blank Slate
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
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
- zuperxtreme
-
zuperxtreme
- Member since: Jan. 2, 2005
- Offline.
-
- Forum Stats
- Member
- Level 08
- Blank Slate
And I just made an Mc, another within it and a button within that and it works fine :S
The fuc........

