Solved

simple buttons

Posted on 2003-11-12
8
210 Views
Last Modified: 2010-04-03
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
0
Comment
Question by:macipod
8 Comments
 
LVL 39

Expert Comment

by:blue-genie
Comment Utility
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
 
LVL 9

Expert Comment

by:OBCT
Comment Utility
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
 
LVL 4

Expert Comment

by:r2far
Comment Utility
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:macipod
Comment Utility
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
 
LVL 4

Accepted Solution

by:
r2far earned 33 total points
Comment Utility
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
 
LVL 9

Assisted Solution

by:OBCT
OBCT earned 32 total points
Comment Utility
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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now