Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Flash AS2 Close Window

Posted on 2009-03-30
1
Medium Priority
?
586 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 1000 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

Technology Partners: 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

In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.
Suggested Courses

715 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