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

x
?
Solved

need help with a button and a movie clip

Posted on 2003-11-04
6
Medium Priority
?
196 Views
Last Modified: 2010-04-03
Hi all, I need some help. I have a button that has a movie that fades in on the buttons rollover state. Within that movie there is another button. how do i click on the button within the movie? As soon as i move my mouse off the hit state of the first button, my movie dissapears. There are around 8 buttons that will do this and the movies all load up in the same spot.

[   x   ]    [       ]    [       ]    [       ]     <--- buttons
_________________________



  on roll over movie loads here
    with another button in it


_________________________
[       ]    [       ]    [       ]    [       ]     <--- buttons

please help me. can you'all get back to me asap. Thanx!!!!!!!!!!!!!!!!!!!!!!!!!
0
Comment
Question by:engineroom
[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
  • 4
  • 2
6 Comments
 
LVL 23

Accepted Solution

by:
Zeffer earned 2000 total points
ID: 9682139
Firstly put the movie outside of the button..not in the over frame of the button.

put an instance of the movie on the stage..give it an instance name..say.. movie1

put a blank frame and a stop in frame one of movie1..you'll see a small circle to
show it's position on the stage and for selecting it.

on button 1

on(rollOver){
     _root.Movie1.gotoAndPLay(2);
}

do the same with the next movie..call it movie2

on button 2

on(rollOver){
    _root.movie2.gotoAndPlay(2);
}

ok ..that's starting the movies on rollover
but so there is only one playing at a time..
make sure the others are 'parked' on the blank 1st frame..so..

button 1

on(rollOver){
     _root.Movie1.gotoAndPLay(2);   //plays movie1
     _root.movie2.gotoAndStop(1);   //makes sure movie2 is stopped on frame 1
}

button 2

on(rollOver){
     _root.Movie2.gotoAndPLay(2);  //plays movie2
     _root.movie1.gotoAndStop(1);  //makes sure movie1 is stopped on frame 1
}

and so on for how ever many buttons.

you can target frame labels instead of numbers if you like

Z



0
 
LVL 3

Author Comment

by:engineroom
ID: 9682353
i see, let me give that a shot, that might work

:-D
0
 
LVL 3

Author Comment

by:engineroom
ID: 9686776
how do i do that in flash with the actions?

ex:  would it be under movie control, what would i click
0
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.

 
LVL 3

Author Comment

by:engineroom
ID: 9687138
okay Z, i found it, this is what i did, here's the actions i put on each button and the reason i did it this way (if you want to know)

*** on the properties button ***

on (rollOver) {
    mX.gotoAndPlay("fade");
    _root.properties.gotoandplay(2);
    mX = _root.properties;
}

*** on the clubMemberships button ***

on (rollOver) {
    mX.gotoAndPlay("fade");
    _root.clubMemberships.gotoandplay(2);
    mX = _root.clubMemberships;
}

******** ETC ****************

the reason i did this was cause if i did something like this _root.properties.gotoandstop(1) on rollover, it would just abruply stop and fade in the other movie. I wanted it to fade out so i applied the movie to a variable and told flash to fade what the current variable was. what do you think??? Thanx for all your help, it worked out great!!!

:)


0
 
LVL 3

Author Comment

by:engineroom
ID: 9687145
by the way, give me some feedback on what i did, tell me what you think. :)
0
 
LVL 23

Expert Comment

by:Zeffer
ID: 9717977
sorry so slow getting back.

That's an excellent and tidy solution to the fade thing..well done.

Z
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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 how to record live broadcast.
Suggested Courses

715 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