Solved

Flash AS2 Close Window

Posted on 2009-03-30
1
563 Views
Last Modified: 2013-11-11
I am pulling a movie clip form the the library using empty movie clip. Within this movie clip I have button to close the window ( really to remove the movie clip from the stage ). I believe I am having a hierarchy problem.

This actionscript is on the maintime line. The close btn instance is within the movie clip that is being pulled onto the stage.

0
Comment
Question by:smoothmonster
1 Comment
 
LVL 12

Accepted Solution

by:
scooby_56 earned 250 total points
ID: 24021614
put this in frame 1 of your popup.
substitute 'btn' with the name of your button
btn.onRelease = function(){
	trace(this)
	trace(_parent)
	trace(this._parent)
	
	this._parent.swapDepths(1);
	this._parent.removeMovieClip()
	
	
}

Open in new window

0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web Streaming with Interactivity 8 52
Why can't I play DVDs in my Dell laptop? 6 81
MOV file 'corrupted' 3 93
How to profit from my training video? 3 68
In this article, I'll explain how to setup a Plex Media Server (https://plex.tv/) on a Redhat (Centos) 7 based NAS with screenshots to help those looking for assistance.  What is Plex? If you aren't familiar with Plex, it’s a DLNA media serv…
The advancements in today's technology are unparalleled. Much of the technology that we have could not have been imagined twenty years ago. One of the latest additions to the list of technological advances is virtual reality. Virtual reality has an …
Viewers will get an overview of how to make and use Drum Racks in Ableton Live. Load new Drum Rack into empty MIDI track: Fill rack with audio samples: Re-arrange sample slots as necessary: Adjust parameters of each slot to tailor each sound a…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

776 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