all groups > flash (macromedia) > february 2007 >
You're in the

flash (macromedia)

group:

Button faisl to work when placed in movie clip...



Button faisl to work when placed in movie clip... DFEd462
2/3/2007 8:27:26 PM
flash (macromedia): I'm having a little problem with a flash site that I'm building. It has a
scrolling menu bar so the buttons in the bar need to be embedded in the movie
clip. My buttons work fine when they are outside of the movie clip, but when
they are placed into the movie clip, they do not work.

I am calling the buttons with actionscript and I am referencing the scene and
the frame number in the scripting. Here is how the script currently looks:

The frame label for the button is "my_btn"
The scene name where the movie clip is located is called "Main"

my_btn.onRelease = function(){
gotoAndPaly ("Main", 15);
}

I have the script placed on frame 1 of the "Main" scene. I have also tried
placing it inside of the movie clip and on the actual button - all with no
results.

I have built a basic FLA file to troubleshoot this issue, I can e-mail it to
anyone if they are interested.

Any suggestions? I'm at my wit's end!!!! :)

Re: Button faisl to work when placed in movie clip... SugnaShane
2/4/2007 5:26:29 AM
my_btn.onRelease = function(){
gotoAndPaly ("Main", 15);
}

I assume this is a mistake:
gotoAndPaly

Paly instead of Play

Your instance name for the button is my_btn?
Did you give the MC and instance name of "Main"?

Better if we had the fla.

Shane
AddThis Social Bookmark Button