Pop-up window problems with scrollbars

I’m trying to create several pop-up windows that will initiate
when buttons within flash are pressed.
I’ve tried using this tutorial…
http://www.kirupa.com/developer/flash8/centered_popup_window.htm

However, when I try setting scrollbars=no so that the pop-up windows I’m making
wont have any scrollbars, I find they appear anyway, and obscures part of the
total html file which is trying to open.

I’ve also tried this tutorial…
http://www.actionscripts.org/tutorials/beginner/PopUp_window_within_flash/index.shtml

…and find the same thing happens. Even though I switch scrollbars to “no” or “0”, they still appear.

Can anyone help to tell me what I’m doing wrong? Or perhaps point me in the direction to
do what I’m trying to do, without having the problems I’m having?

To see what I mean, here’s a link where I’m actually trying to test it…

http://www.geocities.com/oni_jonathan/index.htm

in Explorer there are scollbars
in Opera no scrollbars
in FireFox there are scrollbars

Web browsers sucks again :wink:

Aw crap. What puzzles me even more though, is that the other tute I tried…
http://www.bluegelmedia.com/tutorials/actionscript/pop_up_windows.htm
which had the same problem, the example they show seems to be working perfectly fine on explorer.

Thanks for checking my test out on those browsers for me.

I’m still searching the net and trying different methods,
but I’ll continue checking this thread, and when I finally have an answer,
I’ll post here what it was. :b:

try using

window.open(theURL,winName,features);

or real world example

window.open('test.htm','TestWindow','width=100,height=100');

using onClick handle or some other and making this javascript function
just like Dreamweaver

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

and put it on picture it looks like this

<img src="gfx/recnik.gif" width="68" height="87" border="0" onClick="MM_openBrWindow('test.htm','TestWindow','width=100,height=100')">


I found out what was causing the scrollbars to appear!

Basically I had a theory that it was because I was using geocities as a host for my tests.
The site adds advertisements to pages, even popups. I just couldn’t see them
before because I was trying to make the popup fit my html exactly, which
always pushed the advertisement out of view. I only realised it was there
when I accidentally made a test which was 700 pixels long instead of 170.
Anyway, atm I don’t have my own hosting space to test this theory, so I
sent my files to a friend who was kind enough to upload the test to his space.
When he did, I saw that it worked as it should of! So that’s a big relief and headache
out of the way!

I thank you very much for your help along the way gvozden! It’s much appreciated.:pleased:

I was wondering, I have 2 more questions regarding what I’m working on,
am I able to ask it here, or should I make a new post? I’m not sure of the
protocol of things here.

Anyway, the two things are…

What’s the javascript command to make the status bar not visible in popups?
This isn’t actually too important, but would be nice.

Secondly, which it more important, if I open a popup using the method detailed
in this tute…
http://www.kirupa.com/developer/flash8/centered_popup_window2.htm

When I try doing multiple popup buttons, for different popup, they work well,
as long as whatever popup the user opened previously is closed.
If not, I find that if another popup is opened, it opens in window
of the initial popup, not changing the size dimensions, even though I have
allocated the dimensions in the button.
I would like to be able to either, have any already opened popup close automatically
if another popup is opened, or have the new popup open in the existing
popup window, but have the window dimensions change.

Ah I found out the problem with multiple popup was that I had the same name for each
popup window, and that if I used separate names, multiple windows worked just fine.:ko:

good work !!! keep :wink: LOL