How Do I Hide Then Show Then Hide
look at this flash I made when you turn on the power the screen pops up using on mouse click visible
so how do I hide it? http://www.myemer.com/cam/index.htm sorry I forgot to include the link
my server seems also to be having problems thats why my footer wouldnt load
any other tips
thanks [Edited by nickname88 on 04-09-2002 at 12:43 AM]
FlashKit > Flash Help > Flash Newbies
Posted on: 04-08-2002, 10:21 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
.hide & .show
I have a text box which i want to hide as a default and show when i roll over a button. can i do the following:
on rollover {textvariable.show}
on rollout {textvariable.hide}
thanks
spider
Show/hide
yeah, i know its probably easy, but what script do you use to hide or show a movie clip?
[CS3] Sub-nav In Show-hide Nav Bar...
I'm working on a nav bar that shows/hides on mouse on/off respectively, but having problems with a way to get the sub-nav working.
I've kind of managed to get it to work (kind of) in a 'clumsy' way but if anybody has any ideas of alternative (which there will be) to do it so it works more efficiently.
The files in CS3 but AS 2.0
Cheers!
Show And Hide MC
Hi There,
please I'm trying to make sothing like this sound player here:
http://www.b-klasse.com/dcvd
When you roll over the player show total, when u roll out hide again.
I try to use movie clip as a mask, but it didn't get thru. The Buttons stop working...
Please someone have a tip how to make it easier...
Thanks
Hide/show MCs
Got a list of MCs being populated from an XML file. Basically a list of two different types of information. Some are type A, some are type B.
Want to have a couple buttons that filter based on type (so if I push the button for type A (called "typeAbtn" below), only those MCs appear and type B MCs go to _alpha = 0 or something).
Can't seem to come up with a function to do it. I can't figure out how to reference all my MCs from outside the first function correctly.
terrible attempt:
Code:
function showMCs() {
for (var j = 0; j<stuff.length; j++) {
MC = timeline_mc["MC"+j];
MC.type = xml.blahblah.attribute.type;
...
typeAbtn.onPress = function() {
if ( MC.type == "B" ) {
MC[?].alpha = 0;
}
}
AS 2 Show/Hide Nav + Sub Nav
Hi,
I'm working on a nav for my own site and have managed to get the first part working where the main nav shows and hides, but can't get the sub nav to work.
Basically all I want is a way to get a subnav to animate in so it hides the main nav. Then until the user hits a back button to go back to the main nav, the sub nav will show/hide.
If someone can help or point me in the right direction. It would be very much appreciated as this is driving me bonkers!
[AS]Show/Hide
Here's a bit of code i created using Nutrox's (Splat's) function from the ActionScript tips thread.
I needed to be able to switch multiple movieclips invisible and visible dynamically.
Might come in useful to someone.
ActionScript Code:
function setVisibility(parent:MovieClip, visibility:Boolean):Void {
var i:String;
for (i in parent) {
parent[i]._visible = visibility;
}
}
So, setting all the movieclips on the stage invisible would go:
ActionScript Code:
setVisibility(_root, false);
or, setting all mc's in myMovieclip_mc visible:
ActionScript Code:
setVisibility(myMovieclip_mc, true);
Hide And Show Mouse?
I have a movie with some buttons in it. When the mouse i over a button I want the cursor to hide and change. I've solved that. But how do I do to show the cursor when the mouse rolls out?
I've done it like this:
In the button I've put a MC in the "Down" frame and that MC has this code in it:
onClipEvent (load) {
Mouse.hide();
this.startDrag(true);
updateAfterEvent();
}
When I move around the cursor I can't see any cursor now! How do I do to show the cursor? And where should I put the script?
Show / Hide Functionality
Hello...
I just want to start off ny saying I am a recent newbie to actionscript (out of necessity actually) and am trying to create a scenario where I have multiple movie clips (all at the root level) and I want them to start off with the visibility turned off. As I go through the app I went ot be able to control which ones are visible.
I have been using the setProperty action but have not seemed to have any luck.
Any ideas or suggestions would be a tremendous help.
thanks in advance!
Show/hide Layers With As?
hi..
i have made a layer called "about"
this layer should show up on pressing a button
is it possible to hide and / or show layers
with as?
greetinxx,
paraf
Mouse MC Hide/show
I need to produce a movie clip that hides the mouse when rolled on but when you roll off the mc the normal cursor resumes.
I have already created the movie clip with the hide mouse function. But don't know how to do the roll on and off the mc idea?
Any help would be great!
Jemes
Show/hide Images
Hi there, hope someone can help me...
I have a movie clip (just 1 image)positioned on the stage with an alpha value of '0'
I have a button on the stage to make the movie clip alpha value chnage to '100' on roll over and 'o' on roll out.
The code is as follows:
on (rollOver) {
_root.setProperty("slapImage", _alpha, "100");
}
on (rollOut) {
_root.setProperty("slapImage", _alpha, "0");
}
Of course nothing happens when the button is activated - what am I doing wrong
Grateful for any tips...
On (release) Show Or Hide
I want to show myMC with on(release) - and then hide it again with on(release). Is it possible? Or can I do it with on(release load/unloadMovie?
I know how to do it with on(press, release, releaseOutside, rollOver, rollOut, dragOver, dragOut, keyPress) but I think it´s nice to just show or hide with on(release) :-) // Roland
Show And Hide Buttons
Hello,
I was wondering how you can script a code to show only buttons that has a text field associated with it?? ex. i have 10 dynamic text fields that pulls an external txt file which is place directly underneth a button with an alpha of 20. If their is not txt file present pulling from a dynamic field i dont want the buttons to show.
please advise,
johnny
Hide And Show Mouse
hello!
can you help me doing a simple accion for a button, but don't change the cursor to a hand.
i want to do something like this - teste.fla - but i don't want that hand, do you understand? i don't want the cursor change.
tks,
Show Hide Scroll
I am tring to fugure out how the actionscript for this app works:
http://www.sunvalleylighting.com/SV-Mainframe.htm
The only thing I can't get just right is the navigation part of it. Can anyone tell me where or how to get have lets say 20 objects in one possition, and scroll through them with a simple button of another movie clip.
Mouse.hide/ Show
I am trying to get the mouse to appear on onne part of the screen and disappear on the other part and become a magnifying glass. now i have the magnifying glass part dun, but it shows the mouse as this all over the screen even tho it does not magnify. I have tried this but no luck, please help
getProperty(Mouse, _xmouse)
if (_xmouse<="180") {
Mouse.show();
}
if (_xmouse>"180") {
Mouse.hide();
startDrag("lens", true);
}
Andi
Show/Hide Movieclips...
I've searched but couldn't quite get what I want, so I was looking to see if anyone could give me the snippet of code I'm looking for.
It's a basic hide/show button feature. Once my first MC(containing my button), titled graphic9_a, is clicked I want it to show the movie clip graphic9_show.
I have graphic9_show hiding immediately, once the page is loading using
onClipEvent (load){
this._visible = false;
}
However now I'd like to know two things..
1. What code must I enter to the actions on the button in graphic9_a to set graphic9_show to visible = true
2. How to re-hide graphic9_show once another button will be clicked, let's call that one graphic10_a ...
Any ideas?
Show/hide Graphic
hi!
can someone show me the script to show / hide a graphic?
thanx in advance!
Show/hide Troubles
I have a series of buttons that, when clicked will show or hide a movie clip. So, if the "bio_bonnie" mc is visible, all others should be hidden. The problem I'm having is that for each button, it requires 2 clicks of the mouse to get things going, and either show or hide.
Example; on entering the frame, all mc's are hidden bio_bonnie._visible=false;
bio_tim._visible=false;
bio_jeremy._visible=false;
bio_ken._visible=false;
bio_mark._visible=false;
bio_david._visible=false;
bio_bert._visible=false;
then, on each button I have this script
on (press) {
bio_tim._visible = false;
bio_jeremy._visible = false;
bio_ken._visible = false;
bio_mark._visible = false;
bio_david._visible = false;
bio_bert._visible = false;
}
on (release) {
if (biovisibility = !biovisibility){
bio_bonnie._visible = false;
}else{
bio_bonnie._visible = true;
}
}
I want to be able to hide any bio mc that may be visible, and then make visible the selected mc - all in one click. As I said, it's taking 2 clicks on each button, and that's really annoying
Thanks in advance!
Show/Hide Objects
How can I make instances on stage to show and hide when I click on button?
I know that there is a code in Action script for that...but thats all I know...
HELP
Show / Hide Scroll Box
I have a scroll text box and a button below it. I'd like to have the button click to show the scroll text pane and then click again to hide it. I can create a shape that covers the text pane, but since I'm really new to flash, I don't know how to turn the shape on and off. If someone could display some code for me, that'd be great. Thanks!
Show/hide Layer
hi,
somehow continuing with my previous issue (button within button):
with this example I'd like to start with an invisible layer by default,
but don't know how to correct the current script in such a way that it behaves likewise...
Does anybody know?
Thanks in advance, cheers,
flo
Show/hide Buttons
hi. i'm trying to create a portfolio with a gallery of images. there are two buttons, to go to the previous and the next image in the gallery. i've used arrays and it's all working ok so far.
i've been trying to use an if statement so that when the user reaches the last of the images in the gallery, the 'next' button disappears (as there are no more images!), and when they go to the first image in the gallery, the 'previous' button disappears. i have got this to work, except that the buttons do not reappear when the user scrolls through to another image in the gallery. here's the code i've been using:
//Tunisia Gallery
var TunisiaNumArray:Array = ["Tunisia 1.jpg", "Tunisia 2.jpg", "Tunisia 3.jpg", "Tunisia 4.jpg", "Tunisia 5.jpg", "Tunisia 6.jpg", "Tunisia 7.jpg", "Tunisia 8.jpg", "Tunisia 9.jpg"];
var TID:Number = 0;
var TunisiaImage = new Loader();
this.addChild(TunisiaImage);
TunisiaImage.load(new URLRequest(TunisiaNumArray[TID]));
TunisiaImage.x = 0;
TunisiaImage.y = 0;
btn1.addEventListener(MouseEvent.CLICK, TButton1);
function TButton1(event:MouseEvent):void{
TID < TunisiaNumArray.length-1 ? TID++ : TID = 0;
var TunisiaImage = new Loader();
this.addChild(TunisiaImage);
TunisiaImage.load(new URLRequest(TunisiaNumArray[TID]));
TunisiaImage.x = 0;
TunisiaImage.y = 0;
TunisiaTitles_mc.nextFrame();
if(TID == 8)
{
btn1.visible = false;
}
}
btn2.addEventListener(MouseEvent.CLICK, TButton2);
function TButton2(event:MouseEvent):void{
TID < TunisiaNumArray.length+1 ? TID-- : TID = 0;
var TunisiaImage = new Loader();
this.addChild(TunisiaImage);
TunisiaImage.load(new URLRequest(TunisiaNumArray[TID]));
TunisiaImage.x = 0;
TunisiaImage.y = 0;
TunisiaTitles_mc.prevFrame();
if(TID == 0)
{
btn2.visible = false;
}
}
can anyone explain to me what i'm doing wrong here?!
thanks
PS: i tried adding an else to the if statements, along the lines of:
else
{
btn1.visible = true;
}
and the same for btn2
but it didn't work
How To Show Hide MovieClip
I am trying to do in as 3.0 what I routinely did in as 2.0 with no success. All I need to do is roll over a button and show a movieClip and hide the movieClip when I roll out. A little sample code would be greatly appreciated.
Thanks,
Al
[MX] Hide/show Layer
is it possible to hide or show a layer. Because I want to have these medals you get and they get stored in your briefcase. You click on the briefcase and it brings up a popup and shows you what you have and what you don't, but this briefcase constantly gets updated
Show/hide Mc Problem
Hi, im a little uhm unexperienced with as3 coding, and i have some, that doesnt work :/
function dhlInfoStart(event) {
dhl_info.DisplayObject.visible = false;
}
dhl_mc.addEventListener(MouseEvent.ROLL_OVER,dhlIn fo);
function dhlInfo(event) {
dhl_info.DisplayObject.visible = true;
}
dhl_mc.addEventListener(MouseEvent.ROLL_OUT,dhlInf oOut);
function dhlInfoOut(event) {
dhl_info.DisplayObject.visible = false;
}
My goal is that this movieclip "dhl_info" only shows, when i mouseover "dhl_mc"
Can someone please tell me what im doing wrong?
Thank you very much...
Lars
Mouse Hide/Show
Mornin all.
I have a scneario where i want the mose to hide if it is inactive for a set period, say 3 seconds, but reappears if the user moves the mouse (similar scenario can be seen in windows media player full screen mode)
Any help is greatly appreciated.
Thanks
Show / Hide Images
I have a project in which I am supposed to customize a product by showing / hiding a series of images.
I want to be able to have a button / checkbox that hides all other options and shows the one clicked for instance
Shelf Left is clicked, so that hides shelf middle and shelf right...
What actionscript would I need to produce this?
Show/hide Buttons
I'm currently working on a sort of spot the difference game where you'll need to spot the 5 differences.
it' works with buttons that are on top of a difference and as you click them they disapear.
As soon as you've found all the difference you're redirected to another page.
Now all work's fine except for the fact I'd like to be able to show the differences alredy selected, so people will have an idea about the differences they've discovered. The only thing is I haven't got the slightest idea on how to call those images/movie clips
Any idea on how to call up images are welcome... Here's the code I got on my buttons
Code:
on (release) {
_root.score = _root.score+1;
Button1._visible = false;
}
on (release) {
if (_root.score==5) {
getURL("","_blank");
}
}
Show Hide Layers
Through this site, which is great, I've already found out how to make buttons that basically show and hide layers. However when the movie starts up everything is visible at once. I'd like to know what bit of code I need to add to make the 'layers' invisible to start with. Thanks!
Here the bit of code I'm using for the show/hide buttons.
on(release) {
//When the buttons pressed
buttonname.onRelease = function () {
//change the value of _visible to the value it isn't
layerinstance._visible = !layerinstance._visible;
};
}
Random Show Hide
Hi
Is there any way that I can show and hide the MC randomly and the randon time frame can between 30 sec to 45 sec
thanks
Show/hide Layer....
ok, another n00by question...
is there a way to show/hide a layer? or object? or just move it on or off the stage?
I plan to have optional subtitles, and if the variable is on, upon entering a scene, a little action checks for it, and makes the subtitle layer visible...
any help would be greatly appreciated..
Show / Hide Mc LocalConnection
I have a buttons sending commands to another movie to get it to show and hide a movieclip. it works sometimes and not others, completely sparadic, which is making it hard for me to debug.
here is my function...
ActionScript Code:
treeReceiving_lc = new LocalConnection();
treeReceiving_lc.connect("_treeConnection");
treeReceiving_lc.recievedValue = function(show_hide){
if (show_hide == "hideTree"){
_root.tree_holder._visible = false;
}
if (show_hide == "showTree"){
_root.tree_holder._visible = true;
}
}
this is the code that goes on one of the buttons...
ActionScript Code:
on (release) {
tree_lc = new LocalConnection();
tree_lc.send("_treeConnection","recievedValue","showTree");
}
Help With Show And Hide Menu Bar
I want to recreate the side menu bar in this flash site and I'm having no luck. Heres the site> http://abbyross.com/#mi=2&pt=1&pi=10000&s=21&p=3&a=0&at=0
Can someone point me in the direction of a tutorial. Or give me a hand. I've got the hang of the vet scroller. Need som help in making it show up like that.
Thanks all!
Show/Hide Layers From JS Possible?
Hello,
I am infrequent user of Flash, and I can't get my layers to show hide. I'm wondering if it's possible?
I have a set of layers (red, blue, green ) over a base layer ( keyline ).
I resorted to Flash because keyline has a lot of detail - it's a map - and I wanted it zoomable by a right-click.
The coloured layers would respond to HTML check boxes by toggling their visibility. However, when the page loads I get the error message :
TypeError: Error #1010: A term is undefined and has no properties.
at test_fla::MainTimeline/test_fla::frame1()
The terms referred to are ( I think ) the layer names - in AS I have this very simple function called through Javascript and
ExternalInterface.addCallback("toggleLayer", toggleLayer );
function toggleLayer(which:String):void { // Currently which is discarded, it should be a given layer's name string.
}
if ( this.red.visible == false ) { this.red.visible=true;
} else { this.red.visible= false;
}
'which' being the the layer's name passed as a string. which.visible = ... didn't work. And even, hard coding a layer's name as shown above red.visible = .... doesn't work, and I assume is the undefined term of the error message.
So, am I being too simplistic, or is there something elementary I am missing, please?
I would be most greatful for some pointers.
Thanks.
:-)
John Montgomery
Show And Hide ScrollBar
Hi there!
How could I show and hide the ScrollBar attached to a dynamic text field depending on the size of the displayed text?
I tried different solutions based on bottomScroll and maxcroll but nothing works...
Many thanks in advance for your help.
Best regards,
Gerry
Show-Hide Navigation With Sub-nav
Hi,
I'm trying to create a navigation that will show/hide on mouse on/off. Now, I've managed to get the first level to work, but struggling with the sub-nav.
I have an MC (that contains the animation) that uses hitTest for the show/hide which allows the buttons inside the mc to work.
I've tried a few ways to get the Sub-Nav to work but banging my head against a brick wall... can anyone help or point me in the right direction??
You can get the files from here if required: Flash Files (FLA/SWF)
Files are CS3 - AS2.0
Mucho Appreciato!
Show/Hide Scrollbar
Hi all,
1. I've downloaded the Source for MX included in the "Hide/View the Scrollbar Component" page of kirupa.com. It simply doesn't work when I open the file and publish it. I'm using Flash MX 2004, ... has anyone experienced the same problem and solved it?
2. I've been able to set the scroll visibility with an external dynamic text using several procedures. One of them is:SB1.setScrollTarget(_root.Texto1);
if (Texto1.maxscroll > 1) {
SB1._visible = true;
};
Were SB1 is the scrollbar instance, and Texto1 the dynamic text instance.
All works fine in my PC, but it doesn't work when I load it in the server (the scrollbar cannot be visualized).
Does anyone know if there's a bug or a rational explanation for this problem?
Thank you in advance,
Fernando
Hide/show Layer
I have a layer I want to be able to show and hide by clicking a button. Is there a tutorial or a thread someone can direct me to?
Show/hide(and Play~ And And So~) A MC?
Weel. Here is my problem. I made 2 MC's and 1 button. In the frame that u can see is ony the button and 1 MC(weel, lets call it mcStanding) visible.
Actualy i want to make it so that when i press the button the mcStanding MC gets hiden and a small animation is playd that i made in the other MC(i call it mcAnimation)...
So when i press the button > mcStanding disappears> mcAnimation is played and after the animation is played the mcAnimation disappears and the mcStanding MC appears again... uf, i hope that you can understand what i mean/want to make.
I tryed it with setProperty("_root.mcAnimation", _visible, 1); and so but it does not work so weel. I can make it so that when i press the button the mcStanding MC disappears and the mcAnimation appears, but the problem is to play mcAnimation full and than make it setProperty("_root.mcAnimation", _visible, 0); and the mcStanding visible. I tryed many things like....
1) I added play(); on the first frame of mcAnimation and stop(); setProperty("_root.mcAnimation", _visible, 0); @ the last frame of mcAnimation but it didnt worket. When i pressed the button the animation wasn not played..
eh, i hope that som1 can help me...
Movieclip Show/hide
Well, this is quite simple, and i once understood and more important was able to make it work! ()
How do i show and hide a moviclip?
example
on (release) {
What.to.do?
}
Thanks in advance!
-JPAG
Show Hide On (rollOver)
Hi, I am trying to accomplish this effect:
when I rollover the button number 1, the button number 2 disappears from the screen
when I rollOut of the button 1 butoon number 2 appears again..
I tried to write the code myslf but get errors...
this is the action I am trying to assign to the button number 1.
on(rollOver)=function(){
movieclipName._alpha=0;
}
on(rollOut)=function(){
movieclipName._alpha=100;
}
Show / Hide Movies
Hi there,
I've created a movie clip that will act as a corsor, and when a key is pressed it will show and hide, between two movie clips. The two clips have instance variables setup - castle_in and castle_out.
Also, can i make it so it's binded to a letter-key for instance, rather than the mouse as it is right now?
This is my code but it only works after one press:
Code:
_root.castle_out._visible = false;
_root.castle_in._visible = true;
_root.spotter.onPress = function() {
if (_root.castle_out._visible=true) {
_root.castle_in._visible = true;
_root.castle_out._visible = false;
}
if (_root.castle_in._visible=true) {
_root.castle_in._visible = false;
_root.castle_out._visible = true;
}
};
Any help will be helpful thanks,
Chavs
Show Hide UIScrollBar
I'm looking to show/hide a UIScrollBar component when either, text is loaded or text goes below the lower edge of the text box that the UIScrollBar is targeting.
I've looked at this tutorial and extracted the code below, however it doesnt' work for me.
I suspect I need to use a different event?
Code:
scroll1._visible = (description_txt.maxscroll > 1);
description_txt.onChanged = function() {
scroll1._visible = (this.maxscroll > 1);
};
Any help would be most welcome.
Need To Show / Hide A Dialog Box
Hi This is my first post. Kind of new to flash, at least interactivity wise. No actionscript experience.
I'm wanting to make a US map with clickable points. When you click on a point or dot, a rounded corner frame box pops up in front. If I have 50 points to click, will this be 50 movie clips with visibility set to none, until their respective point is clicked?
Any short cuts there, or ways to animate the box in,like a bubbly animation, scripted and not for each individual one? What about a close button at the top of each of these frames. Will I need 50 of everything?
I guess what I need is some direction. How would you do this? It's going to be a box with text and a single image on a sales rep for that territory in each frame pop up. Hopefully want to do this in one single swf file.
thanks!!
Hide And Show Question
Hello,
I'm trying to solve the following problem.
I have a page with 5 buttons on it.
I would like each button to trigger a movie. This is how I would like it to work:
i.e.. You click a button and the "ABOUT" movie plays (a piece of paper slides onto the screen)
Then when you press "CONTACT" the piece of paper slides off the screen from whence it came and the "CONTACT" movie plays.
I would like this to happen for all of the buttons.
I've crated each movie so the in the first 7 frames the movie plays (the piece of paper slides in). Then in frames 7-10 (paper slides out)
What button actions/actions do I use to make this function properly?
Many Thanks,
Martin
Show/Hide Scrollbar
Hi all,
1. I've downloaded the Source for MX included in the "Hide/View the Scrollbar Component" page of kirupa.com. It simply doesn't work when I open the file and publish it. I'm using Flash MX 2004, ... has anyone experienced the same problem and solved it?
2. I've been able to set the scroll visibility with an external dynamic text using several procedures. One of them is:SB1.setScrollTarget(_root.Texto1);
if (Texto1.maxscroll > 1) {
SB1._visible = true;
};
Were SB1 is the scrollbar instance, and Texto1 the dynamic text instance.
All works fine in my PC, but it doesn't work when I load it in the server (the scrollbar cannot be visualized).
Does anyone know if there's a bug or a rational explanation for this problem?
Thank you in advance,
Fernando
|