Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Browser Detect To Hide A DIV Layer?



I am adding a transparent Flash window to an HTML page, so it appears that things are flying over the HTML page. (I'm NOT having a problem with this.)

Problem is that the transparent Flash only works in the following browsers:

Internet Explorer 3 or higher (Windows)
Internet Explorer 5.1 and 5.2 (Macintosh)
Netscape 7.0
Mozilla 1.0 or higher
AOL
CompuServe

So... I need a JavaScript that detects browsers and hides the DIV layer if the wrong browser is detected. I've found browser detection scripts, but can't figure how to modify them to hide a layer.

PROBLEM: I'm totally lame when it comes to scripting. Can some kind soul help me here? I'd be happy to send lots of great karma your way!



FlashKit > Flash Help > Flash MX
Posted on: 01-12-2003, 05:21 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Hide Layer
how i do hide layer with actionscript

How To Hide A Layer
Hi everybody. I made a presentation, and I have 4 layers, one of them I called it "buttons" and I placed a "Captions" checkbox in it. What I want to do is when the checkmark is on then layer 1 will show, but if it is off then layer 2 will be hidden. I don't know how to do this. Can somebody help me on this?

Thanks in advance.

Gio

Hide Layer
how can i code that if the viewer presses a button some layers will be visible while others will be invisible?

Hide A Layer
im using a layer to sink my drawings that i dont want to be displayed when the movie plays, how do i hide this layer in the export?

Hide Layer
A simple actionscript question: I an using flash MX 2004. Can I hide a layer on pressing a button?? How can show it after?

Hide A Layer
When I hide a layer and output a movie, I still see that layer displaying on the screen. How to avoid this problem?

Hide Everything On A Layer?
Is there a AS code to hide everything on a layer?
I tried masking but when I go to a section where its not masked the MC's reset to normal.

Thanks,
Limitlis

Hide Everything On A Layer?
Is there a AS code to hide everything on a layer?
I tried masking but when I go to a section where its not masked the MC's reset to normal.

Thanks,
Limitlis

Mouse Show Vs. Hide Detect?
If you use the Mouse.hide(); and the Mouse.show(); is there a way to tell which state it is currently in?

a if (mouse.visible) type thing (I tried that (and _visible) already thinking it would be like a movie clip).

On Mouseover, Hide Layer?
I have a toggle switch (3 positions). It has a RED position, a GREEN position, and it's default position is WHITE.

Follow so far?

Depending on mouse placement, the RED or the GREEN position is activated. Red's hit area is to the left, Green's is to the right within the same image...

My question is: How do I make it so on the mouseover of say, the RED area, the GREEN area dissapears

Since I have two buttons on separate layers, the top layer buttons UP state is always blocking the lower layers' state-even if it is the one being toggled. Is there an actionscript that says something like: "on mouseover, hide Layer#2" or somehting like that?

Thanks.

Joe

Buttons Behind A Layer... How To Hide This?
I have a layer that's appear when I press a button.
This layer appears in front of the movie... but my button stills working... (so don't is shown).
How can I kill the button???!!!! but it need to work later again...

Sorry by bad english. (I'm an argentino)

Thanx

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

Hide An Entire Layer Through AS3?
Quick question - searching for the answer hasn't turned anything up yet.

Is it possible to hide an entire layer (as you would by clicking on the show/hide layers icons to the left of the timeline), but through actionscript? If so, how is this done?

If not, how would you best go about switching from say your main menu in your program to, say, an options menu? Obviously I realise you could go through every object individually hiding it from the stage - but I assume there might be an easier way ......

Thanks.

[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

Hide Layer During Publisning?
Hi:

I have objects on a layer that I'm really just using for guides (not like motion guide layers), so I get my spacing right for objects on other layers.

I do not want the guide layers to show once the .fla is published into a .swf. How do I hide these layers?

Thanks,
Loren

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..

Action That Hide Certain Layer?
suppose i have 2 frames (a & b) with 2 layers, is there any action or method that can hide layer 1 in frame a but hide layer 2 in frame b?

thanks

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?

On Release Hide Layer
is there a way to hide/show layers on the lcick onf a button?

Action That Hide Certain Layer?
suppose i have 2 frames (a & b) with 2 layers, is there any action or method that can hide layer 1 in frame a but hide layer 2 in frame b?

thanks

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?

Control To Hide/ Show A Layer As A .swf
Hi There,
Is there a way to have a button to hide and show a layer as a published .swf??
I have a project that needs to have some text/ captions, which will be toggled on & off. All of these "captions" are graphics on one layer. There is voice-over as well.
Can a layer be masked?
I'm a rookie in flash, any help would be appreciated!!

-- thanks

Hide / Unhide Layer With Button AS
ok
i have 3 layers.

1.Button : ••••••••••••••• (plenty of keyframes)
2.MC::circle : ••••••••••••••• (plenty of keyframes)
3.MC::highlight: ••••••••••••••• (plenty of keyframes)

all the buttons should have the same AS.

on(releas) {
show->layer->highlight
}

if the button isnt pressed the layer highlight should be hide.


is there any cmd to hide/unhide a layer ?

Hide An HTML Layer With ActionScript
I need to have a SWF living on a layer delete/hide the layer it lives on when it reaches the end. This will always be the top layer in the HTML and I have to do it without using fscommand. My scripting is a little rusty right now, (I haven't done any since Flash 5).

Thanks.

Hide Dynamic Text On Different Layer
Hi,

Layer 1/ Frame 1 there is a button

Layer2/ Frame 5/ a1 (Dynamic text
Layer2/ Frame 6/ a2 (Dynamic text)

When I press the button on layer1/frame1 it should goto frame 5 but before it reaches there it should hide both the dynamic text.

script on button

on(release){

setproperty("a1",_visible,"0");
setproperty("a2",_visible,"0");
gotoandstop(5);

}

"IT'S NOT WORKING"!!!!

Thanks in advance.

Use Layer To Hide Access To Other Layers...
This is probably NOT the way other people would handle this task, but i have a layer that i call 'Curtain' (because it hides crap that moves just off the stage), and i was trying to find a way to block access to anything that is UNDER this layer. Sounds confusing, eh? Here's a different approach:

1) If you will, go to http://UniSys-Corp.com/flash
2) Click on any option from the menu on the left (some are not there yet)
3) when the menu animates out of site, you can still access the buttons that are hidden underneath the 'Curtain', so, how do i make that curtain so that you cannot click beneath it?

Thanx.

Show Or Hide Components On A Layer
Hi I'm creating a menu screen using a flash projector. I would like the user to click on a certain button and I would like a text box with instructions to become visible on the screen. I would like to get an idea as to the actionscript code that I can use to show or hide components on a layer, so that I can produce this effect.
Thanks in advance.

Is It Possible To Hide The Layer From Viewing During The Swf Movie?
Hi! I can hide the layer from view on stage but I can't hide the layer from view during the flash movie (swf). So, how do I do that??

Thanks,
FletchSOD

Best Alternative To Jscript Show/hide Layer?
digging my hands back into flash and was wondering what the best alternative to the javascript show/hide command. for example, you have onMouseOver() and you tell it which layer to show or hide.

im assuming there is some alternative to this in actionscript using the _invisible property but how so? is that approach better than just using a movieclip that moves to different points where the objects are shown or not.

im trying to recreate 2 simple 2-tier navigation.

so:

mouseover "home" and "home_subnav" shows up
mouseover "pics" and "pics_subnav" shows up and "home_subnav" hides.
etc...

suggestions would be more than appreciated.

TIA, -Oly

Button Action = Show/ Hide Layer
Hey everyone,

It has been a time that I used Flash and I am only 22.. I am studying in Barcelona now and made a map of the city with the cultural stuff on it. I also want to incorporate the Metro, good restaurants and **** like that.

How do I show a layer (i.e. the metro layer) when someone on the site hits the Metro button...

The .fla and so are on http://www.bclk.nl/jeepee/Flashkit/

Thanks for the help...

Video Control + Show/hide Layer
hi,
still trying to get the control buttons of the video (on press, the red button) working in this example, but still fail…maybe some advice, hint, tip?
Thanks in advance, best,
flo

How Can A Flash Button Hide A Dreamweaver Layer?
I'm doing this page http://amedeldesign.com/interiores if you click where it says: "VER GALERIA DE PORTADAS" a flash animation will open with a slideshow, on right top it says "CERRAR GALERIA DE PORTADAS" which is to close the layer containing the animation. BUT, right now the close button is a layer on top of the animation.

I'd like to be able to close the layer containing the animation from the button in flash.

How can I do that?

How Can A Flash Button Hide A Dreamweaver Layer?
Member since: May 09, 2007
Total points: 85 (Level 1)
Points earned this week:
--% Best answer

Ariel M
S How to send commands from flash to dreamweaver...?
I'm using ajax to load a flash movie when a button is pressed. the movie loads ok and all, but I need to have a button within the flash movie to be able to close both the animation and the layer.

http://amedeldesign.com/interiores2/...

I took the idea from those animations that sometimes appear in yahoo, where you click on a corner for example, and a flash animation that cover part of the page appears on top of the other content.

I don't know if what I'm doing is as practical code-wise either.

So also, if anyones has suggestions to do it in a better way, please let me. The least I ask is how to send a command fromt he flash movie that affects the html document.

Thanks!!! Here's what I have so far, Please note thtat the layer witht he aniomation closes with another html on top of the flash movie, that's not how I want it...

http://amedeldesign.com/interiores2/...

How Can A Flash Button Hide A Dreamweaver Layer?
I'm doing this page http://amedeldesign.com/interiores if you click where it says: "VER GALERIA DE PORTADAS" a flash animation will open with a slideshow, on right top it says "CERRAR GALERIA DE PORTADAS" which is to close the layer containing the animation. BUT, right now the close button is a layer on top of the animation.

I'd like to be able to close the layer containing the animation from the button in flash.

How can I do that?

PLEASE give me links to tutorials or examples, cause if you just tell me use this or that flash or actionscript function, it'll be a little difficult to figure out how to do it. THANKS!!!

Hide Layer Contents In Play Mode
I have a layer which has three sections indicating three different links (A, B, C) on a Flash page. The idea is that when someone clicks on these links, the contents of other links need to disappear. It doesn't. The dynamic text boxes disappear with no problems, but movie clips don't.

My setup:

Layer 1 has all the ActionScripts.
Layer 2 has all the contents.

Any help would be appreciated.

Thanks!

Detect If A Layer Is Used?
how do i detect if a particular layer is currently occupied by a swf?

Furthermore, can this detection of whether a layer is occupied include an if / then statment to take different actions depending on whether or not a layer is occupied.

thanks,
b

Can Flash Hide/show A DIV-Layer On A Html-page?
Can Flash hide/show a DIV-Layer on a html-page?

How Can I Make A Flash Buton Show/Hide A DIV Layer?
I know this must be a newb question, but I can not get it to work. I am using Dreamweaver 8 and inserting a flash button, and then asking it to show a hidden layer on click, but it will not do it. it will work off of plain text but not the flash button... please help!!!

Here is the code from my page:


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:226px;
top:28px;
width:320px;
height:182px;
z-index:1;
visibility: hidden;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</head>

<body>
<div id="Layer1">This is text Inside of Layer1</div>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','width','100','height','22','title','Button1','onclick','MM_showHideLayers('Layer1','','show')','src','button1','quality','high','pluginspage','http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash','movie','button1' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22" title="Button1" onclick="MM_showHideLayers('Layer1','','show')">
<param name="movie" value="button1.swf" />
<param name="quality" value="high" />
<embed src="button1.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" ></embed>
</object></noscript>
</body>
</html>
Any help would be greatly appreciated!

[F8] - Calling Show/Hide Layer Javascript From Flash Not Working In IE6/7
I have a Flash movie that calls the Macromedia Dreamweaver swap layer javascript when a user clicks on a mc. This js activates the appropriate div layer that was previously hidden. It's working just fine in Firefox and Safari, but it is not working in IE6 or 7.

The file is being saved in Flash 7 format, and the plugins I have in all my browsers are Flash 9. I suspect this has something to do with Flash's security settings, but I'm not sure. Any ideas?

Calling Show/Hide Layer Javascript From Flash Not Working In IE6/7
I have a Flash movie that calls the Macromedia Dreamweaver swap layer javascript when a user clicks on a mc. This js activates the appropriate div layer that was previously hidden. It's working just fine in Firefox and Safari, but it is not working in IE6 or 7.

The file is being saved in Flash 7 format, and the plugins I have in all my browsers are Flash 9. I suspect this has something to do with Flash's security settings, but I'm not sure. Any ideas?

Flash Button Hide/show A DIV-Layer On A Html Page?
Hi All!
Trying to get a drop down hide/show div on a html page triggered by a button in flash.
so by default that div is hidden on html and when u click on flash button,it will show a hide button inside div tag
(Intro: Very very Little experience in dynamic flash)

I found this code, but i'm not sure it's what I need, and it's not working...

Flash file>button on stage>script:
Code: ( actionscript )


on (release) {
import flash.external.ExternalInterface;
ExternalInterface.call("hideDiv", "operator");
}



And the code in the html file:
Code: ( javascript )


<html>
<head>
<title>page title</title>
<script type="text/javascript">
function hideDiv(id)
{
document.getElementById(id).style.display = 'none';
}
</script>
</head>
<body>

<div id="operator">
<input type = button value = button>

</div>
</body>
</html>


Does anyone have a better (working) way of getting a flash button to talk to the html page to *togggle* a hidden div?

Any ideas would be muchly appreciated!
Thankyou so much in advance!

Hide I.E. Browser
I want to open my webpage with true fullscreen. No visible browser feature. Like a projector with fscommand set full screen true.
Its been a while since ive done this and cant remeber.
I think it was java script embeded in swf.
help

How To Hide Web Browser's Tool Bar?
How to hide web browser's tool bar? for example : http://absolut.com/

How To Hide Control Bar In Web Browser?
i would like to hide the menu bar in web browser. As my web page is written in flash and no need to have "bac, forward, reload and stop " buttons. Do i do it in Flash? or Html?

Thanks in advance

Address URL In Browser.... Hide?
Hello,

Another quick question if I may. I'm using Dreamweaver to create a simple HTML site as an intro to my flash animation. Is there anyway
to link in Dreamweaver so that the address does not appear in the address URL bar on Explorer? Currently it is showing ...intro.html then ...flash.html etc as the user clicks around. I don't mind it showing the main url, just not the pages the user links too.

Any suggestion most welcome!

many thanks in advance.

Hide Browser Toolbar?
Is there a way to hide the browser toolbar? i'm gussing its some sorta javascript code?

thx!

[AS2] Is It Possible To End Movie Or At Least Hide It In Browser When It's Done?
Because of SEO considerations I am trying to use flash as little as possible in my site.

I need it though for uploading files. I like to have an accurate progress bar and I find flash is great for this.

Anyway once my file is uploaded, successfully, I would like the flash to go away (either exit or hide itself) and reveal an "Add To Basket" button underneath which is written in HTML.

Failing that, is there a way to get flash to change a CSS style of an object so I could have my Add To basket button hidden and then made visible when the flash tell it?

Thanks

Hide All The Toolbars Of New Browser Window Except Title Bar
Does anyone know how to hide all the toolbars of a new browser window when press a button to open a HTML page in flash?

Hope someone could help me. Thanks.

Hide All The Toolbars Of A New Browser Window Except Title Bar
Does anyone know how to hide all the toolbars of a browser window when press a button to open a HTML page in flash?

Hope someone could help me. Thanks.

Copyright © 2005-08 www.BigResource.com, All rights reserved