Solved

close layer button

Posted on 2003-10-25
4
183 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
  • 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

I've been using this technique since Adobe CS2, and it should work with any version of Illustrator that includes the appearance panel. In this tutorial we'll create a button using the appearance panel in Adobe Illustrator, and then save it as a r…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

708 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

13 Experts available now in Live!

Get 1:1 Help Now