Solved

close layer button

Posted on 2003-10-25
4
189 Views
Last Modified: 2010-04-06
Hi

I have a drag and drop layer in the webpage which a flash object in.  I have a close button on the flash which I'd like to (funnily enough) close the 'window'.  I have actionscripts for closing windows already but they close the entire page down rather than just the layer.

Does anyone know the actionscripting for this function?  Thanks

0
Comment
Question by:aspguru28
[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
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
shamstar earned 125 total points
ID: 9623744
Maybe you could simply stop the animations in that layer and then hide the layer rather than closing it?
0
 

Author Comment

by:aspguru28
ID: 9780622
how would I hide the layer in actionscripting?
0
 
LVL 1

Expert Comment

by:hemanthsharma
ID: 9817028
MAY BE YOU CAN TRY HIDING THE LAYER

JUST CHANGE YOUR JAVASCRIPT SO THAT IT CHANGES THE VISIBILITY OF THE LAYER.


WRITE THIS IN THE SCRIPT TAG

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; }
}

CALL THIS AS SOON AS U PRESS THE BTN

MM_showHideLayers('Layer1','','hide');

MOSTLY TAT WOULD WORK.
0
 

Author Comment

by:aspguru28
ID: 10055647
Thank you for your advise shamstar
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
Learn how to set up basic frames and paths in Prezi and understand the open space that Prezi allows you to create presentations in.
In addition to being a great web-based presentation tool, Prezi also makes it easy to save your presentation as a PDF to share with others as well. Learn how in this tutorial. Select the share icon from the top menu in your Prezi editor: Select "D…

734 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