Solved

Flash AS2 Close Window

Posted on 2009-03-30
1
571 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
[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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Suggested Solutions

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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 learn how to turn a Live Set into a compressed Live Pack file, and how to install Live Packs. Make: File > Collect All And Save: File > Manage Files: Click Manage Project: Click Create Pack: Select save location: Install: Doub…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

740 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