Solved

problem with button operation

Posted on 2004-08-07
4
157 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
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…
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.

743 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

16 Experts available now in Live!

Get 1:1 Help Now