Solved

problem with button operation

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SCCM 2012 - Deploy Flash 16 6,900
Microsoft WSUS 4 90
free photo watermark software 5 77
Movies become choppy/laggy after playing for 5 episodes or more 8 110
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

896 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

13 Experts available now in Live!

Get 1:1 Help Now