Solved

Flash AS2 Close Window

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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

628 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