Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How Can I Create A Centered, And Sized Html Pop-up Window In Flash?



i'm pulling my hair out trying to make html pop-up windows in flash that are centered, custom sized, as well as not have the status bar, location bar, etc...

i've included a copy of the javascript i've been trying to use on my html page, as well as the link type that makes it work on an html page. if someone could show me how to make this script work in flash, or show me another way, i would be very grateful.

thanks!

****copy of javascript****
<script language="javascript" type="text/javascript">
<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math .floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(scr een.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=no,menubar=no,too lbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
****end of javascript****

****copy of link in regularly used in html****
<a href="null.html" onclick="NewWindow(this.href,'null','400','300','n o','center');return false" onfocus="this.blur()"></a>
****end of link code****



FlashKit > Flash Help > Flash ActionScript
Posted on: 01-04-2002, 04:00 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Launch Flash In New, Sized, Centered Browser Window. Help
How does one launch a Flash movie from a web page into a new popup window that is sized and centered on the screen?

I wish to have a site with an HTML version and a Flash version available, so I want to be able to 'launch' the Flash site in a new sized window. Thanks!

Create A Centered POP UP Window From Flash
Hi!
I am working with a website in Flash MX 2004. I want to have a centered POP UP window when someone clicks on a menu button. I have tried out some actionscript that I found here. It works well, when it's in the first frame of my timeline. The site I work with the menu is a bit inside the timeline. Now when someone clicks on the button a window pops up. But it's not in the correct size that I wrote in the script. It's much bigger. Why is that? How can I have a menu button working with a pop up window that shows an external html file?

Please help me out! Thanks!

Best regards
Joakim Norlin
Malmo, Sweden

Html Sized Pop-up Window From Flash Button
In my portfolio website, I would like thumbnails that when clicked go to an html pop up window for a larger view of the thumbnail. I'd like that html window sized without an address bar,bookmark bar, or navigation bar. All I want is my enlarged images contained within a sized box, centered on the screen.

HELP! What action do I put on the button? Do I put javascript in a geturl?

see www.thatartisticfriend.com to see what I mean. Click on Fao Schwarz thumbnail for example.

Thanks
Pam

Opening A Preset Sized HTML Window From Flash MX
[Not sure if this is the right section to post but hey]

Here's the prob, I want to open an HTML window from Flash MX that contains a picture and is of the same size as the picture with no scrollbars and address bar etc etc. I can do this from Dreamweaver but i havent a clue how to do it from Flash. Any ideas?

(It may help to bare in mind im no expert so can any explanations be kept quite simple!)

Thanks, look foward to a repy.

Opening A Fixxed Sized Html Window Through Flash...
yall, im desperate for this fix. I'm trying to open a new fixxed sized html window from a flash document embeded in an html window. real simple probably. If someone can throw me that A.S. I would be much appreciated! Good lookin' yall.
-A

HTML Sized Window
Once I click on a link on a flash site I am working on, I need it to open a html window that is sized at 300pxx200px. Can someone please help me and give me the code needed.
Thanks!

Html Sized Window
Hi
I need help with one thing.
I need probarly a javascript that makes when you klick on a html link a new html window appears with a swf file init. The html window should be non reziseable and be as big as the swf file so no scrolls needed.
This is probarly very simple and i hope you guys can help me.

MVH
Proohf

Simple Pop Up Html Window - Sized HELP
Hi guys,
I've been looking through the posts but just can't solve this simple question - it's 2 years since I've been in Flash and my memory is dying!

I'm linking from a button in index.swf - opening mainpage.html in a new window.
I have the link all working, my question is that I want the page to open in a new window - I have done this using _blank; however I want the windows to appear as a fixed size, #over# the original window. A classic popup window if you will - NOT a new page in the browser.

So when you click the button in the browser, the new page appears as a popup window, smaller and hovering over the original.

Simple question - no doubt a simple answer - PLEASE HELP!

Loading JPEG Images In HTML With The Correct Sized Window
I've searched through this forum without success, so I'd thought I'd ask. I have 8 images scrolling through a masked area so only 3 or 4 can be seen. If you click on an image it opens a _blank window with the image in it (Internet explorer).

My question is how do I control the size of this window. I can do it normally in Dreamweaver, but seem unable to do it in Flash MX.

Create Pop-up Window From Html Text Box Withing Flash
I have a Flash file that has an dynamic html text box on it. I would like to have one of the links open a new browser window without scoll bars, no header and no resize. I've seen some where you can do it from a button but not form a .txt file imported in a text box. Is there anyone who can help. BTW, this is my first time so THE NEWBE most likely screwed this up or isn't looking in the right places so please send me in the right direction.

Opening A Custom Sized Window In Flash 5
I need some help with this simple task. I've done it before but I lost the scripting I used to make it work. I have an html page with a flash button. I need to have a new window that is 350 x 256 popup when the button is clicked and I forgot the code. Thank you.

Opening A Custom Sized Window In Flash 5
I have a button which I've created in Flash 5 and put it on an html page. I need to have a new custom sized window to appear when a person clicks on the button. When I used the below script and put it uploaded it, my browser said the parameter is incorrect. It's been a while since I've done any scripting and I'm not sure what I'm doing wrong



on(press){
getURL("javascript:window.open("page.htm","name ","width=350,height=256";");
}

Frame Sized Browser Window From Flash
here is my small problem,
Ok I`d like to open frame sized browser window from flash
but I`m wrong somewhere
getURL ("JavaScript:window.open('main1.html','Demo','scro llbars=yes,status=yes,width=692,height=450')","_bl ank");


thanks for your help!!

Open Sized Browser Window From Flash 5
I know you can open a browser window from within Flash 5 using getURL, but I want to know if it is possible to open a browser window of a specific size?

Is it possible with fsCommand?

Opening A Sized Browser Window From Flash
how do i make a button open a specific sized browser window? I tried


ActionScript Code:
on (release) {
    getURL("rules.html", "_blank, width=325,height=150");
}

This didn't work

Also, how do I get a scroll bar attached to the command?

Detect Flash Plugin, Launch Sized Window
Hi.. Can anyone help me with how to detect if the user has a flash plugin in his browser and if the proper plugin is there, to open a new window, the size of the actual flash movie with no scroll bars, menu items, etc of the browser.

Opening A Set-sized Browser Window From Flash Projector
Does anyone know how to open a correctly sized browser window from Flash projector? I would like to incude a link to an on-line web registration page from a CD.

Many thanks...

Need Specific Sized Browser Window To Open From Flash Mx..
Hello )

I need a way to specify the size of a new browser window to open a url from my flash movie. Any ideas? Any help is much appreciated!

Cx

Flash Button To Open Specifically Sized Window
Thanks in advance to anyone who can help and apologies if this is really easy problem or been solved before.

I'm using Flash MX Version 6:

I need to get a flash button to open a specifically sized window, centred on screen, with no scroll bars etc.

I know under the actions section there is a tick box marked expression, can anyone help with finding examples of these, if indeed this is where i dictate the window options.

Thanks

Problem With Flash Opening Link Into Blank Sized Window
Hey everyone

I'm trying to rebuild my website using .swf's and placing them into dreamweaver.

I have a button in flash that i would like to open a page into a new browser window that is a fixed size. I followed the instructions on kirupa, and have gotten it to work on one page. This page everything starts on frame 1.

On another page i have a button that does not appear until the second frame(another button must be pushed for the button to appear on the stage)

once the button appears I click it, and nothing happens!

could this be because it is on a frame other than the first? Also, I place all of the extra actions that are not placed on a specific button on frame one. could this be an issue?

any help is greatly appreciated i'm beginning to pull out my beautiful hair.

cheers
jonnyj

Link To A Sized Html Page From Flash
I have seen where a flash website will have a button to open up a sized or small html page, in a new browser, for a form or picture. Is there a special hyperlink script to do that?

[Flash 8] Centered Pop-Up Window
I had great success with the tutorial on this site about Centered Pop-Up Windows

Now my question is how do I get this to work when my button is in a swf that is being loaded into an html page. Basically the button swf is on the server but there is no html document for it on the server. Where do I put the javascript that goes above the body tag? Do I put it in the html document that the button swf is being externally loaded into??

Hope this question made sense. Any help would be greatly appreciated.

Thanx
Taylor Tay

Centered Pop-up Window Link In Flash
How do you make a window pop-up from a link in flash and center itself automatically in a browser? Please help...
-cody:L

Flash Animation Not Centered In IE Window
Hi guys. I created a little test animation and uploaded it just to learn how to make a preloader and how to upload Flash animation. On my computer it appears dead center on the screen, on other ones it is in the bottom right corner. How do I make the IE window to be the size of the animation and if you expand it, the animation to be right in the middle of the IE window. Here's what I did:


http://www.ntd.com/test.html

Thanks much for your time

How Do I Create Transparent Html Window With AS3
Hi,

Bin searching everywhere on how to do do this with no results!??

I have published my html with ' transparent windowless ' but it doesnt work...I pressume I need some code to make it work?

I have created a MP3 player and I want the html to be transparent, can anyone help please?

EDIT: I just watched lees ' Developing in AIR in Flash ' tutorial in AS3, will that translate if i'm publishing to a swf?

Truly Centered Non-resizable Swf In A Browser Window (flash 5)
I found a page that launches a full-screen browser window with a SWF in it. This SWF is non-resizable, and it is centered inside a browser window in such a manner, that both bottom AND TOP get cut off if the screen size is smaller than that of a flash file.

Usually an embedded SWF would be tied to top left corner of the browser window in case of a smaller screen. In other words, top edge and left edge of a SWF file would always start at 0, 0 if the screen is too small.

Not in this case though. Check it out at designchapel.com : http://www.designchapel.com/

Java script on the index page launches the full-screen browser window. But what makes the movie inside that window perfectly centered, even on a smaller (i.e. 800x600) screen, letting its BOTH bottom AND TOP edges be clipped? Is there some flash code for it? I couldn't find anything in the html code.

Thanks
dk

Centered Flash Movie In Html
I would like to have this effect used on this page http://www.vestalwatch.com/main.php how the swf and the background stay centered.
Any sugestions????? Please

Sized Pop-up Window
anyone know how i can make a button in flash that opens a specified sized window that cant be resized?
please help.
thanks

Sized New Window
does anyone know how to create a link in flash so that a new browser window will open at a specified size?

Sized Window
what is the as for opening a sized window off a link. for example, clicking an image thumbnail, and it opens larger in a window that fits the picture. with no adress bar, or stuff like that. thanks!!

Sized Window
what is the as for opening a sized window off a link. for example, clicking an image thumbnail, and it opens larger in a window that fits the picture. with no adress bar, or stuff like that. thanks!!

Flash Cann't Be Centered In The HTML Page?
This really confused me, although I used the CSS to center my swf

Code:
style="margin:0px auto"
But it still align to left.

This is what I'm talking about:http://jin.liuqi.neuf.fr/mode/Index

Please help.

.swf In New Custom Sized Window
Can I open another .swf in a new browser window thats a specific size?

Im building an online portfolio, and would like for people to be able to click on a thumnail of 1 of my flyers and see the full size version, but it'll look nicer in a browser that fits exactly

Hi every1 btw

Restricted Sized Window
How do u create a window with only flash in it, so u dont have to put it in a html window.. ,so that it is always the same size and it doenst matter wat size ur browser window is

Custom Sized Pop Up Window.
I know, I know..
I'm sure this has been asked before but I don't know how to do it.

I have a button in flash that I want to fire another html page holing my flash movie. BUT, I want it to have NO SCROLLBARS and I want it to be 717 px. x 528 px.

SHOW ME SOME LOVE, HELP ME OUT.

THE GRAPHICS GURU..

Thanks

Open Up A Sized Window
Hey!

Just wondering if there is a way of using the on(release){} actionscript to open up a new browser window with no menu bars and at a customised size.
(450-600)
I guess its like a pop-up. Do you use javascript?

Cheers!!

Why Centered Pop-up Window Works In Flash 5 But DOESN'T In Flash 7 ?
Why centered pop-up window works in Flash 5 but DOESN'T in Flash 7 ?
Tutorial for this is here:
www.kirupa.com/developer/mx/centered_popup.htm

Keeping A Flash Movie Centered In A HTML Page?
First of all, Hello everyone!

I know this probably sounds silly, but how does one do to have a flash movie that spans the browser window size (both height and width) so that i have the whole browser window usable as a flash movie in order to allow the visitors to open up several popUps and move them around.

I have tried to do this by making the movie as big as the screen resolution i'm working at, but when the window is resized it all gets off centered.

I've seen sites where the window can be resized and the flash movie seems to adapt its size (not by resizing) by "managing the transparent" area and keeing the "important stuff" centered?

Well i hope u understand what i mean...

Thnx in advance.

P.S. - I got tricked into doing a website in flash without knowing how to do more that have a circle move around... :'(

Sized Popup Browser Window
ok heres what i want to do. I have a gui i made
home.attbi.com/~anthonyallard/main.htm and i want the buttons on the gui to open up windows that are sized as a specified size by me like 800x600 that arent adjustable without all the bars and resize handles, i know how to do this with javascript on a regular picture or whatever else, but not with actionscript in flash. for example i made an 800x600 flash movie that i dont want you to be able to resize or adjust the browser window to the portfolio.htm that pops up when u click the portfolio button. what would the actionscript be for the portfolio button.

thanks for any help

Playing Quicktime .mov In Sized Window?
I built an entry screen for a CD preso with a button to open a quicktime movie. Works fine (BUT) I need to have it come up in a window the size of the Movie. It opens in the systems browser at the size the customer has last left his browser setting. So . . . Is there another way I can do this? The movie is 11.4 Megs and reading off of the CD.
I really need the help.
Thanks Crew

Sized Pop Up Window/ Email Code
Ok.. I guess this is a dumb questions. But I am new to Flash soo...

What's the code for a sized pop up window? Like if i want my window to open 800 by 600... what's the code for that?

And what's the code for emails in flash? thanks

Need To Know How To Open Links In Sized Window
Ive been using flash for a while but i just got MX and its kind of confusing lol.. anyway, i need to know how to open a link in a new window and i want it to open at a certain size, like 500x500

Opening A Browser Sized Window?
I have a flash movie where moving the mouse over a navbar pans across a mountain scene, using a sort of parralax effect to give the impression of depth. When you then click the button, it zooms in at that location.

What I want to then do, is have an ever so slightly transparent window open, to fit to just under the full size of the player window. I want to be able to put HTML into this window, but flash stuff would be cool.

Im thinking its going to be using the window document object on a new layer and level, but I'm not really sure where to start?

Any help at all would be much appreciated

Display Image In Sized Window
You've all seen this (http://www.wskartists.com/index_flash.html).

This is obviously done with scripting as opposed to manual animation, but how. I don't even know where to start.

Ideally, I want a series of thumbnails, when clicked, to open into a sized movieclip/window, with tight display animation (the kind achieved by scripting and not manual animation).

Hope this makes sense. If I find more examples, I'll post.

-fabman

Specific Sized External Window
I have an external swf I wish to load from the click of a button on my website. I need the new window to be a specific size 1000 x 800 pxl.

This is important to the code on the swf file.

Could someone help me with the code to go on the button and how I shoudl arrange my files.

Many thanks

Point Blank: Full Screen Browser Window, With A Flash File Centered Both Horizontall
Here is the deal.

I would like to create a flash popup that creates a browser window that goes fullscreen. Not the fullscreen that takes over the whole screen, and you need to esc to get out. But fullscreen so in a window that has no toolbars, search bar, etc.

That's the first challenge. Within that window, I have a flash file that is 1100 x 700. I would like to have that swf centered both vertically and horizontally. I would also like to have the background of that file extend to all sides....so that I can change the color of the background. To accomplish this I used this link and modified the file that came with it...

http://www.kirupa.com/developer/mx2004/fullscreen.htm

The problems that i have run into are the following... I thought I had it working with this...

http://www.leereedy.com/test/splash.html

It was working on Internet explorer....automatically launching a full screen pop up. But it doesn't even work on safari or firefox. I was using a code that I got from some pop up java code generator.

Is there a way to do what I'm trying to do? I've been wrestling with this for so long. I want it to just go away. If you could impart your wisdom on me, and or post an fla, or html file....that would be amazing.

Thanks.

Sized Browser Window From Dynamic Code
I've been searching through some of the Javascript window questions on the forum for a while but I can't get anything to work for my specific application. I want my button to open up a seperate window sized 800x800 with no scrolling, resizing or menu bar at the top--just a plain window-- but I have the button dynamically coded and I'm not sure how I would apply a link like this:
getURL("PORTFOLIO/"+_parent.cursec+"/"+_parent.curcli+"/"+_parent.cursel+"big.jpg", "_blank");
to what I've already seen. Can anyone help me out? Keep in mind I'm almost completely javascript illiterate, thanks...

Getting A Link To Open In Custom-sized Window
Does anybody know how to get a link to open up, but in a custom-sized browser window? For instance, if I want a poll to open up in a tiny little window.

Thanks,

Tara

How To Open Dynamic, Encoded URL In Sized Window
Hi all,

This is my first post. I started a new job that has me doing a lot of Flash. I am using CS3. I must admit that I am not much of a programmer, but I have some exposure to Actionscript, Javascript, and little VB.

Using this forum and Google searches I have figured out how to pass an URL into my flash movie and open it up in a new window.

I have also figured out how to encode the URL and decode it in Flash and open that in a new window. I have also figured out how to open a new specific sized window using javascript within the getURL().

I just can't figure out how to put it all together:
- Pass encoded dynamic URL into flash
- Decode URL
- Add the decoded URL into the javascript open window

Here is the code I have messed with thusfar:

Decodes and locates URL passed to flash using Flashvars called "url":


Code:
on(release){
getURL(unescape(_root['url']), "_blank");
}


Creates sized Javascript popup, (code generated by, The Flash-DB):


Code:
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.google.com','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}


How can I change "http://www.google.com" in the Javascript popup to the unescaped "_root['url']"? I have tried a few different things but they arent working. I am either getting Actionscript errors when I test or Javascript errors when in the HTML page.

Thanks, in advance, for the help.

millis

Copyright © 2005-08 www.BigResource.com, All rights reserved