Solved

hide/show layer useing action script?

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Microsoft WSUS 4 82
free flash maker 5 197
Flash player 17 install script .bat or .vbs 9 508
Install adobe flash plugin for Firefox win 7 9 67
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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.

760 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

20 Experts available now in Live!

Get 1:1 Help Now