Solved

close layer button

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Create SVG Logo for Website using Illustrator 18 612
I want to find a font for a Boxing logo 6 1,078
Extracting Icon but saves ico as blank 9 105
can someone convert this into a jpeg 5 99
Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Learn how to create interesting presentations by including videos to keep your audience engaged using Prezi. Select "Insert" from the top menu in your Prezi editor: Select "YouTube Video": Paste the video URL into the prompt: "Select "Insert":…
Add visuals to your Prezi to keep your audience engaged. Learn how to embed images, edit them, and more in this video micro tutorial. Select "Insert" from the top menu in your Prezi editor: Select "Image": A toolbar will pop in from the right …

863 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

22 Experts available now in Live!

Get 1:1 Help Now