(FLA-MX)goto funtion not working properly

Hey new here,

Working with the 30 day demo, I have flash 5 but cannot upgrade till after xmas.

I have a scolling menu, that works wraps around and everything, all nice and pretty.

When I place a get url on the button state the url opens,

When I place a goto on the button state nothing happens, the supposed scene is a no show.(I have also tried this on the mouse down in the MC state with the same results)

I started the scrolling images as buttons then f8’d again and converted to MC’s…the MC’s have a zoom funtion on them, btu i removed it to see if that was a possible cause to no avail.

Hi,

Are you putting your script inside of the button editing mode?

If you are go back to the main stage and click on your button and launch the actions panel. If you’re in normal and not expert mode double click on the gotoAndPlay and make the adjustments you need to add to your master peice.

Hope this helps

yeah…putting ur actions in the actualy button is bad…and makes editing a whole lot harder. I didn’t even know u could do what ur doing…

You said the “Scene” is a no go… are you using Scenes? (ack)

If so, you can only change scenes from the main timeline, so if your button is encased in a movie clip it will not work. You will have to create a blank frame after your final stop() action on the main timeline, and on that empty frame you will put your gotoAndPlay code.

Also, you can use button handlers on movie clips in Flash MX, which rocks. (like on (press) and such).

Yeah it’s using scenes, I made the scrolling menu, and my friend made the rest of the site, I never knew I was suppose to be linking till today so it kinda therw me.

So the geturl will work on an encased button, but a goto will not work on an encased button…this is correct?

If I put the gotoandplay after the menu how is that going to work when I click on an image?

A goto will work on an encased button, a gotoandPlay that goes to a new Scene will not work on an encased button.

To get it to work, on your button you need to have <B>_root</B>.gotoAndPlay(#);

This will bring it to the root, then place in your frame number or label that contains the gotoAndPlay scene actions.

:goatee:
I just want to take a minute here and say thank you all for your help…I will be back here again…I usually go to flashkit, and the MM news groups for queries, but the responces there are slow if at all…here I never posted before, and get many people trying to help.

So thanks all.

FYI:

I redid the scrolling menu from scratch only using buttons, there is no smooth zoom to the mouse over instead a straight pop-up but everything works like it is suppose to.

you guys rock

allan

I am glad you got the menu working :slight_smile:

Yeah, I hear flashkit is a rough forum to post at, never been to their forum so I wouldn’t know.

You might have been able to do that zoom thingamabob you were talking about if your buttons were really movie clips.

You can apply on(press) events and things like that directly to a movie clip in Flash MX, but not in Flash 5.

This allows you to do much more interesting things with buttons :slight_smile:

I dont even use buttons anymore :-…lol.