Solved

hide/show layer useing action script?

Posted on 2004-08-08
1
1,708 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Google Chrome - Where is "Enable Resource Tracking" 2 12,648
How to convert pdf file to html file 8 419
Adobe Flash Free Transform Tool 2 155
System Center Configuration Manager 2012R2 7 101
This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
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.

738 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