Solved

hide/show layer useing action script?

Posted on 2004-08-08
1
1,712 Views
Last Modified: 2011-10-03
I am adding actionscript to a button so that it has hide and show functionality. I have found a solution on EE that says

http://www.experts-exchange.com/Web/WebDevSoftware/Flash/Q_20809360.html

I just need to clarify some things.

When you create the instance of the movie you want to appear do you place it on the main timeline or on the button timeline. Also I want the clip to appear on mouseover and to stay there until someone clicks another link, then the effect which was for button 1 should stop and the same effect should happen for button 2. please HELP
0
Comment
Question by:fusionless
[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
1 Comment
 
LVL 9

Accepted Solution

by:
dutchfoxer earned 500 total points
ID: 11749458
Okay, you will have 2 buttons, one "show layer" and one "hide layer". (or something similar)

You will also have a movieclip that you give a name once put on the main timeline ("wheel1" as in example).

The 2 buttons and movieclip you put on the main-timeline.

"show layer" button will have the action script:

on(rollOver){
    _root.wheel._visible = true;
}

"hide layer" button will have the action script:
on(rollOver){
    _root.wheel._visible = false;
}

And what about "wheel1" when the flash-movie is first started? Shown or hidden? If you want it hidden when movie starts then create a new layer and call it actions. On the first blank-keyframe you put the following action script:
_root.wheel._visible = false;
stop();

on(rollOver)   can also be   on(release) for mouseclicking.


Good luck! Hope it is a bit more clear!?

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 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. …
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,…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

636 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