Solved

close layer button

Posted on 2003-10-25
4
191 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

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…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

617 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