# Open New PopUp with MX swf fully centre

**URL:** <https://forum.kirupa.com/t/open-new-popup-with-mx-swf-fully-centre/183771>\
**Category:** web dev\
**Created:** [March 29, 2006, 10:41pm UTC](https://forum.kirupa.com/t/open-new-popup-with-mx-swf-fully-centre/183771 "2006-03-29T22:41:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![feeverte](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@feeverte](https://forum.kirupa.com/u/feeverte)\
**Post date:** [March 29, 2006, 10:41pm UTC](https://forum.kirupa.com/t/open-new-popup-with-mx-swf-fully-centre/183771/1 "2006-03-29T22:41:16Z")

</div>

Hi  
I have an index html page with language choice, logo and usual get flash and copyright stuff. On Enter I want to open a pop up with the Flash content.

I can actually do most of it but on various browsers I get different results so I guess the java script recicled from old works is not up to scratch. For example on IE on Mac =SX the width is ok but the lenght goes all the way down. Help!!!

The swf is 1024x768. Ideally I would love it to be scalable (but without the browser handlers)  
I have read somewhere that people use a small string in the first frame of flash, something like Stage Mode? But i didnt get it.

I really apreciate some help. This is my first job ever in flash and I have learnt heaps also thanks to your tutorials and posts.  
Thanx

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [March 29, 2006, 10:55pm UTC](https://forum.kirupa.com/t/open-new-popup-with-mx-swf-fully-centre/183771/2 "2006-03-29T22:55:06Z")

</div>

[http://www.kirupa.com/developer/mx/centered\_popup.htm](http://www.kirupa.com/developer/mx/centered_popup.htm)

---

<div class="post-metadata">

**Author:** ![feeverte](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@feeverte](https://forum.kirupa.com/u/feeverte)\
**Post date:** [March 30, 2006, 12:03pm UTC](https://forum.kirupa.com/t/open-new-popup-with-mx-swf-fully-centre/183771/3 "2006-03-30T12:03:58Z")

</div>

Sorry I cannot use that for 2 reasons

1. The botton enter is not in flash, just in html document
2. that script only centers the page if no any other window was opened before hand

Any other suggestions???

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [March 30, 2006, 3:29pm UTC](https://forum.kirupa.com/t/open-new-popup-with-mx-swf-fully-centre/183771/4 "2006-03-30T15:29:42Z")

</div>

> [@feeverte](#):
>
> I just discovered you are a l…a…d…y sssshsttttt

:lol: 😉

That script does open html. 🙂 Actually I think it will open up whatever you specify in the address part.

As for the detection script there are tons of examples / tutorials out there. Have you searched [kirupa.com](http://kirupa.com) to start?  
[http://www.kirupa.com/developer/mx/detection.htm](http://www.kirupa.com/developer/mx/detection.htm)

:hr:

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [March 30, 2006, 3:31pm UTC](https://forum.kirupa.com/t/open-new-popup-with-mx-swf-fully-centre/183771/5 "2006-03-30T15:31:13Z")

</div>

Oops, I misread your last post. Sorry - it’s 7:30 a.m. here and I just got into work. :sleep:

Have you searched?

---

<div class="post-metadata">

**Author:** ![feeverte](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@feeverte](https://forum.kirupa.com/u/feeverte)\
**Post date:** [March 30, 2006, 3:35pm UTC](https://forum.kirupa.com/t/open-new-popup-with-mx-swf-fully-centre/183771/6 "2006-03-30T15:35:03Z")

</div>

Not to worry  
Yes I have searched for hours and made tons of test, but nothing quite right yet. I start feeling a bit stupid today

For the detection I am about to go and check the tutorial.

Latest  
Great, as always kirupa helped. Got the detection in place.

Still…is it really so difficult to centre a pop up nowdays? ☹

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [March 30, 2006, 3:57pm UTC](https://forum.kirupa.com/t/open-new-popup-with-mx-swf-fully-centre/183771/7 "2006-03-30T15:57:34Z")

</div>

Seems to me you’ll need javascript to do it straight from html. I’m sure you can google it?

[http://javascript.internet.com/navigation/centered-popup.html](http://javascript.internet.com/navigation/centered-popup.html)  
[http://javascript.internet.com/generators/popup-window.html](http://javascript.internet.com/generators/popup-window.html)  
[http://www.smileycat.com/miaow/archives/000122.html](http://www.smileycat.com/miaow/archives/000122.html)

etc . . .

That middle one looks pretty cool actually. 🙂

---

<div class="post-metadata">

**Author:** ![feeverte](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@feeverte](https://forum.kirupa.com/u/feeverte)\
**Post date:** [March 30, 2006, 4:04pm UTC](https://forum.kirupa.com/t/open-new-popup-with-mx-swf-fully-centre/183771/8 "2006-03-30T16:04:26Z")

</div>

Sure thing I googled like it was going out of fashion…most def going to check your find tho…  
Will be back…have a good day at work…
