Skip to main content
Inspiring
April 22, 2006
Answered

Pop up

  • April 22, 2006
  • 10 replies
  • 505 views
I have a movieclip in my libeary that i want to pop up how can i do this.
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer injpix
“but this will open in the same movieclip, it doesn't pop up unless i missed something.”

I gave you info on attachMovie() because the lack of info you provided. I assumed you didn’t know the technical name of the effect you wanted.

For a VERY simple start do the following;
-Put the code from the bottom of this post in frame 1.
-drag a Window component into your library.
-create a MovieClip on stage with an instance name of “showWindow_btn”
-compile!

10 replies

Inspiring
April 23, 2006
oh dear i workes. I missed that bit. thanks.
Inspiring
April 23, 2006
thank you, but still flash doesn't want to create the pop up.
it goes to the function but doesn't do the create Pop up.

I tried it in its on file in case it was my code but still doesn't work wat the hell is going on?
(mind my language).
Inspiring
April 23, 2006
“it goes to the function…”

So your able have a trace statement in the function that displays in the Output panel? If this is true then I would have to say you are failing on part 2 of my little tutorial;

-drag a Window component into your library.

Let’s try it this way;
Step 1: in Flash hit CRTL+F7 to open the Components panel.
Step 2: In this panel under “User Interface” drag a “Window” component onto the stage.
Step 3: Click on this Window component that is on the stage and delete it. This will store an instance in the library of your FLA.

Does this help?
Inspiring
April 23, 2006
i copy ur code but it still doesn't work. (Flash hates me today)
wat i was asking for a way to create a pop up with a movie inside the pop up fom the libary
Inspiring
April 23, 2006
If you want to embed a MovieClip from your library into that Pop-up just change the contentPath’s string value. For an example, if your MC symbol has a linkage name “Box” change the following line of code;

contentPath:"Box"
Inspiring
April 23, 2006
import mx.managers.*

pr_mc.onRelease = function() {
trace('pressed');
var tw = new TitleWindow();
tw.title = "My Title";
pop = mx.managers.PopUpManager.createPopUp(this, tw, false);
trace(pop);
}

but it still not creating any pop ups. wats wrong with it and i don't see how i can put one of my movieclips into the pop up window.
injpixCorrect answer
Inspiring
April 23, 2006
“but this will open in the same movieclip, it doesn't pop up unless i missed something.”

I gave you info on attachMovie() because the lack of info you provided. I assumed you didn’t know the technical name of the effect you wanted.

For a VERY simple start do the following;
-Put the code from the bottom of this post in frame 1.
-drag a Window component into your library.
-create a MovieClip on stage with an instance name of “showWindow_btn”
-compile!
Inspiring
April 23, 2006
but this will open in the same movieclip, it doesn't pop up unless i missed something.

pr_mc.onRelease = function() {
trace('pressed');
_root.attachMovie("print_mc", "window", 5);
window._x = 0;
window._y = 0;
}
Participating Frequently
April 23, 2006
Use mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true);