simple buttons

hi
i have a simple movie and have few trucks come across the screen and all of that is a movie
the trucks are graphics and have a recktengular drown  on it and on top of that they have text written onit
i want them as they come in across to stop and act as buttons so when you press on them it takes you to a new scene
can anybody please help me
i tried everything i could
i converted the whole thing on the main movie scene to buttons
i added actions
i even click on the truck twice and grouped it and converted to button and then added action i have no idea what the hell is going on
can anybody help
i am using flash mx not mx 2004
thanks
macipodAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

blue-genieCommented:
why don't you just add invisible buttons (ie. with only a hit stage) in the frame where the truck stops, convert the rectangle you have ontop of the trucks to buttons.
0
OBCTCommented:
I think I have a solution to your problem but first I would like to know what actions you used, just so I know I'm not going to give you something to try when you've already done it.

Cheers

-OBCT
0
r2farCommented:
Well, if you don't want them to be clickable until they stop, Perform your animation then after the animation in the timeline add keyframing.  In those keyframes convert those graphical trucks into buttons and add the goto's and whatever else you need.

If you want the trucks to be clickable as they move. (not sure if you tried this or not but...), convert the trucks into buttons right off the bat and motion tween the buttons movement around the screen.

Let me know if you already tried these methods :-)
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

macipodAuthor Commented:
yes i tried some of the methods
i basically ran the truck on the motion twin once they come in across i converted them before i added motion twin and then i tried to go to actions and addthe on relase goto scene 2 but it doesn't seem to be working
i don't knwo why
i tried to add the invisibe button over it it works but maybe i get thetrucks to be buttons insted of the invisible button
thnaks
0
r2farCommented:
I am guessing you want truck shaped buttons that move once, right?

try this:
1) make the truck buttons first, add the action script to them before you do anything else.
2) then motion tween the truck buttons in the timeline.

One possible cause for your problems is that the actionscript isn't ending up where it is supposed to.  It is possible that the actionscript for the button appears at the start of your motion tween but not wear it is needed.
- after making the buttons and motion tweening them, try clicking on the frame where the buttons will usually get clicked and then selecting ONLY one of the buttons and see if the proper actionscript is in place.

Just to make sure, ActionScript used would be:

on (release){
    gotoAndPlay(n);
}

or gotoAndStop... or whatever the button is supposed to do.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
OBCTCommented:
To make the buttons unclickable, you will have to add the following actionscript to the button on the first frame of the motion tween.

_root.button.enabled = false

You will have to give the button an instance name. I used button just as an example but you can use any word you like.
The other way to do this and probably the better way would be add a keyframe in a new layer and add the _root.button.enabled = false
Then add another keyframe at the end of the motion tween where you want the buttons to become enabled again and add this;

_root.button.enabled = true

I hope this helps :)

Cheers

-OBCT
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.