Skip to main content
November 17, 2007
Answered

on(release) not working

  • November 17, 2007
  • 7 replies
  • 731 views
Whats wrong with this code?
see below
I've tried to use this simple code to attach AtttachMovie2 from my library to "blank_mc" on the stage.
When I test the movie i get no trace in the Output window and it doesn't attach the movie. I've checked all the linage settings and there fine. Anyone have an idea what is happening??
This topic has been closed for replies.
Correct answer ggshow
nothing happen? not even error message?
and you dont understand kglad message, yes that can't be all your code.
where is your } sign?

make sure there is no any other button instance in your button.

and,
make sure there is not any onRollOver/onRollOut/onPress/onRelease script attached to it's parent movieclips

7 replies

kglad
Community Expert
Community Expert
November 19, 2007
when i press the black button a blue rectangle appears on screen and the following appears in the output panel:

_level0.blank_mc
_level0.blank_mc.attached_mc
kglad
Community Expert
Community Expert
November 18, 2007
i don't find anything unusual. what am i supposed to find?
November 19, 2007
You mean that this worked for you???? I can't get it to load the MovieClip!!!!
kglad
Community Expert
Community Expert
November 18, 2007
did you read ggshow's message? make sure there are no mouse handlers attached to any ancestor of your button. if there are not, post a link to your fla.
November 18, 2007
Here is the link to my AttachMovie test.
Text
Thanks for you help!
Please let me know what you find.
Participant
November 17, 2007
is this a joke?
clbeech
Inspiring
November 17, 2007
do you have a 'blank_mc' instance on Stage? you also may need ot target this as _parent.blank_mc

what is the trace returning?
ggshowCorrect answer
Participating Frequently
November 17, 2007
nothing happen? not even error message?
and you dont understand kglad message, yes that can't be all your code.
where is your } sign?

make sure there is no any other button instance in your button.

and,
make sure there is not any onRollOver/onRollOut/onPress/onRelease script attached to it's parent movieclips
November 17, 2007
This may appear to be inane but it is very frustrating. I have verified all the parameters; the } was inadvertently left off when I pasted the code. The trace returns nothing not even undefined. I have tried everything I can think of. Would someone be willing to look at the fla file and see what the problem is?
kglad
Community Expert
Community Expert
November 17, 2007
that can't be all your code.
November 17, 2007
I'm running a test and it should load the Clip on release, but nothing happens!!