Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

simple buttons

Posted on 2003-11-12
8
Medium Priority
?
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 39

Expert Comment

by:blue-genie
ID: 9738000
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
ID: 9738374
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
ID: 9739622
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:macipod
ID: 9740760
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 132 total points
ID: 9743383
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 128 total points
ID: 9744373
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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…
Suggested Courses

688 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