Solved

Flash AS2 Close Window

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

751 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