[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Code for a Window Component to open, title, populate and close

Posted on 2005-05-17
4
Medium Priority
?
144 Views
Last Modified: 2010-05-18
Could you help me with the code for the Window Component in Flash MX2004? I've read the Macromedia Component Manual (pgs 879-889), and gotten a new window component to open and place the close button on the window. I've also gotten a window to close, but I haven't been able to successfully combine both sets of code. Could you help me with the code to open, title, populate, and close a Window Component? thanks.
0
Comment
Question by:ccllww
  • 2
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
negatyve earned 2000 total points
ID: 14020989
var initObject = new Object();
initObject.title = "window title";
initObject.closeButton = true;
initObject.contentPath = "symbolLinkage";
var popup = mx.managers.PopUpManager.createPopUp(this, mx.containers.Window, false, initObject);
var listener = new Object();
listener.click = function(evt)
{
      evt.target.deletePopUp();
};
popup.addEventListener("click", listener);
0
 

Author Comment

by:ccllww
ID: 14030137
Thank you for your response. I'm new at this. Could you help me understand exactly where I paste the code? Is there anything else I need to do to make it work?
0
 
LVL 27

Expert Comment

by:negatyve
ID: 14030683
- open a new movie
- drag a Window instance to the stage from the component panel, then delete it (but know you have it in the library)
- create a moviecli in the library, then give it the linkage "symbolLinkage" (right click on the symbol in the library, linkage, Export for actioscript)
- paste that code in the first frame of your movie, and test it
0
 

Author Comment

by:ccllww
ID: 14045875
thank you. I'll give it a try later this evening.
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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.
Suggested Courses

867 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