Solved

problem with button operation

Posted on 2004-08-07
4
162 Views
Last Modified: 2010-08-05
source code: http://www.in-development-server.co.uk/h2top.zip

I have created a file which will function as in http://www.development-server.co.uk/h2films/

The problem is I need the white line that apears around the text links to remain on the screen after mouseout.

It should only disappear when another link is clicked, the same way the hide and show  functions in the html elements. Not sure how to acheive this in flash
0
Comment
Question by:fusionless
  • 2
4 Comments
 

Author Comment

by:fusionless
ID: 11742937
I think the solution is to create a hide and show function I am not sure how to acheive this in flash
0
 
LVL 9

Accepted Solution

by:
dutchfoxer earned 500 total points
ID: 11750950
You can go about it in several ways. Easiest, as the line graphic is the same each time, is to create a movieclip with the "line" in it on the 2nd keyframe. The first keyframe in this movie is blanc. Add another layer to this movieclip called actions. On the first and 2nd keyframe add the actionscript : stop();

This movieclip you put on top of the button. And you give it a name, for example "line-a".

On the button the following actionscript:
on(mouseover) {
 line-a.gotoandstop(2);
}
on(mouseout) {
 line-a.gotoandstop(1);
}
on(release) {
 line-a.gotoandstop(2);
}

And this you repeat for the other buttons, but give different names to the line-movieclip.... line-a, line-b, etc
 Something like that.
0
 
LVL 2

Expert Comment

by:snoldak924
ID: 11763849
Make each line a movie clip in the root, then just use:
on(rollover){
whiteline1._visible=true;
whiteline2._visible=false;
whiteline3._visible=false;
}

Then, modify it for each button.
0
 
LVL 2

Expert Comment

by:snoldak924
ID: 11763864
Oops, didn't see the green "answer accepted" box.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
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.

679 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