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




Popup Window Problem



This is how my flashmovie is build up.
I have a main flash movie, and within this movie I load several other movies with the LOADMOVIE command into a target.
The loaded swf's contain a link, and this link, when clicked on, should open a window. I can't use Geturl action because I need to implement javascript like this:
javascript:window.open('http://home2.pi.be/yvesg/deark/newsletter.html', 'Signup', 'Width=480 ,height=480,')
How can I create sutch a popup window with fixed dimentions and no scrollbars. Directly in the swf file ? I can't use any html code because it's a loaded swf file into a main movie.

Tnx

Y.



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-04-2001, 01:41 PM


View Complete Forum Thread with Replies

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

Centre Popup Window / Title Popup Window
Hi

Can anyone help? I would like my popup window to sit centre of the browswer and have a title on the top can I define it within the following actionscript?

on(release){
geturl("javascript:window.open('myfile.html','winO ne','height=400 width=450');void(0)");
}

Thanks ravenotice

PopUp Window Help - Toggle Control Between Popup And Stage?
How do you toggle control between a popup window and the main timeline?

I have a button that opens up a pop up window. The popup window is going to contain some text instructions. I would like to have the text instructions visible and allow the user to control a movie clip on the stage. Unfortunately, right now once the popup window appears, the user can no longer control the movie clip on the stage until they close the popup. I'm using MX 2004.

Here is the code I have on my button - this creates the popup window (I got this from some other postings):

on (press) {
import mx.containers.Window;
var win = mx.managers.PopUpManager.createPopUp(_root, Window, true);
win.setSize(375, 262);
win.closeButton = true;
win.contentPath = 'text';
win.click = function() {
this.removeEventListener("click", this);
this.deletePopUp();
};
win.addEventListener("click", win);
}

This is my first posting, please let me know if I haven't provided enough information or if I'm going about this completely wrong. My project will not be posted on a website, it needs to be executed off of a CD so that's why I didn't use a getURL().

Popup Window From Flash, Making Everything Load In Just 1 Popup
I have a simple thumbnail gallery in flash.
When a user clicks a thumbnail, I want a popup to appear. I got this far... now for my problem.

Without closing the window that has popped up, if you click another thumbnail, ANOTHER window pops up so I decided to keep the name of the windows the same to prevent this.

Now... when you click on the thumbnails, everything loads in just the one window without popping up a new window everytime you click a thumbnail but... the popup window stays minimized or "behind the main window".....


any help would be appreciated, thank you!

PopUp Window Gets Blocked By Popup Blockers
Flash CS3
Actionscript 2.0

I have text on the flash website that is being called from an external .txt file. The problem i'm having is that any links called from that .txt file is blocked by popup blockers upon clicking on them.

I have another popup window in the flash itself from on of the navigation buttons, and that one does not get blocked... but the ones in the .txt files do.

However with the design and the content of the flash, I really need that link to be in the .txt file.

Not really sure how i should go about resolving this.

Any and all help will be greatly appreciated, thank you

Pop Up Window That Opens To Show A Picture On Website. Not A Popup Window To Open URL
Here is a link to an example of which i am referring. If you rollover anyone of the pictures a pop up image appears. Does anyone know how to accomplish this?
http://www.templatemonster.com/categ...thor=&x=31&y=6

Popup Window(or Separate Window To View Larger Image)
popup window(or separate window to view larger image)
like 'fever' in dreamweaver .

i can click on a small image and have it pop up in it's own window.
Can this be done in flash?
thanks

Popup Window From Flash, But Have Only 1 Popup
I have a simple thumbnail gallery in flash.
When a user clicks a thumbnail, I want a popup to appear. I got this far... now for my problem.

Without closing the window that has popped up, if you click another thumbnail, ANOTHER window pops up so I decided to keep the name of the windows the same to prevent this.

Now... when you click on the thumbnails, everything loads in just the one window without popping up a new window everytime you click a thumbnail but... the popup window stays minimized or "behind the main window".....


any help would be appreciated, thank you!

Trying To Geturl In A Popup Window, Not A Full Browser Window
I am using the geturl command to open a popup window. NOT: this is on a frame action, not a button action. I don't want a full browser window, just a popup.

cheers,

will

GetURL - Targetting The Parent Window Of Popup Window?
Hello!

Yet another thread on getURL but I did a search and couldn't find anything related to my question, so here goes...

I have a website which launches a 900x400 popup window which contains an interactive flash movie. From within this movie, I am loading in HTML from a text file which populates a scrolling textfield.

I was pleased to learn that href links within the text file work as links within the flash textfield. What I want to do is have these links open in the parent window that spawned the popup.

If I use target=_blank on these links, the pages open up in a new browser window.

If I use target=_parent on these links, the pages open up in the same popup window and obviously replace the flash movie content (goes to the link instead of launching it in the parent window).

Is it possible to use the _parent target to launch these links into the main website that spawned the popup or is _blank the only one?

If anyone has any tips or experience on this matter it would solve a huge headache for me.

Thank you!

How Do I Set Specific Window Sizes On Popup Window Button
This is what I have so far and it works ... but I want to set specific sizes of the window and have scrolling ....

on (release) {
getURL("

Popup Window Doesn't Stop Window.open
Hi,

check out www.adidas.com/1

You will notice that although you might have popups blocked the site still pops up. I have checked the source and they seem to use window.open.

Any ideas how thye have done this?

thanks

ash

Popup Window Doesn't Stop Window.open
Hi,

check out www.adidas.com/1

You will notice that although you might have popups blocked the site still pops up. I have checked the source and they seem to use window.open.

Any ideas how thye have done this?

thanks

ash

Popup Window Closing To Main Window?
I can close the popup window of my flash intro, but I want to go to another html page in the main window of my site.
Can anyone help me? Thanks.

[F8] Target Parent Window From Popup Window
I launch a popup window from a flash movie in the main window. When I close the popup window, I need to target the main movie to go to the next frame, depending on weather the the movie in the popup has played to the end. I tried making use of Javascript with a url quaryString when opening the popup:
window.open("popup.swf?variable1=stringvar")
I also tried Flashvars in the param and embed tags, but do not know how to send the flashvar to the popup. Then update the Flashvar when the movie in the popup is done. Then when I close the popup, communicate with the movie in the main window to go to the next frame.

This need to be done without php, cause I need to deploy this in a LMS environment.

Problem With Alert Window On PopUp Window
Hi guys,

I am making a Interview application in which i am showing a Pop window with close button enabled (using mx.managers.PopUpManager class) in which User can edit the content.

Now I want to track If User has changed the content and tried to close the Pop Up without saving changes. In this situation, So I tried to show an Alert window for confirmation to discard changes. Here I am getting Problem with Flash getting struck and giving message "A script in this Movie is causing to Flash Player to run slowly...blah blah". This is my problem.

I tried removing other Event Listeners also but no luck.

Thanks for your help.
pandu

Targeting Another Window From .swf In A Popup Window....
Ok...

I have an .swf in a small popup window.

At the end of this movie, I have a button.

I want this button to open the new link in the window that originally launched my popup window.

I'm aware of the javascript function "window.opener", but I'm not sure of the AS syntax I should use.

Can anyone help me out with this?

Thanks so much.
Tone.

Popup Window Instead Of Explorer Window?
I see alot of websites that when you open them the first thing that comes up is a smaller window that is not resizable. Then after either watching the intro or bypassing it, the main page opens in the explorer window. How is that done? If I have a two swf files and I want one to be the intro page and the other to be the main page how do I make the first swf file viewed in a "popup window"?

How To Constrain A New Popup Window Window
Hi all,

This is just a quick question which I am hoping has a few lines of code as the simple solution.

I have a mvie clip in flash that resides in a html page. When you click a button in the swf the actionscript tells it to open a new window to display the link.

What I want to know is how do I do it so that when it opens it contrains the new browser window to a certain size,

Any help would be much appreciated.

Thankx pixelmagik

Popup Window Loading Extra "object" Window For No Reason...
hey all. Following this thread on the subject of popup windows...
http://www.flashkit.com/board/showth...hreadid=397960


Using the code from the Flash-db.com popup window page, I'm getting a second window opening up on top of the window that is supposed to load. The second window contains nothing except the word "object".

sample of code

on (release) {
getURL("javascript:NewWindow=window.open('http://hybrid.concordia.ca/~4919580/dfar351/guineapig/photo/26.html','newWin','width=640,height=520,left=0,top =0,toolbar=No,location=No,scrollbars=No,status=No, resizable=No,fullscreen=No'); void(0);");
}


I'm wondering if it has to do with possibly my personal browser specific settings, or if anyone else gets the extra window as well? No one in the thread mentioned anything about it, but it's driving me nuts... help is greatly appreciated.

ry

Popup Window
hi everyone,
i want to open a new browser window with no scrollbar or topnav at a set size and a set location. anybody know the code to do this from a release button action?

Popup Window
Hey,

alright i have a flash enter page. i have a button that says enter, when i click on that button i want a popup window with my page on it. i want that window to have no toolbar. what actionscript do i put on the enter button to make this happen?

L8

Popup Window
How do i get my flash movie to popup into a seperate window with no browser stuff from my html link. example http://www.smithsports.com
thanks for your help

PopUp Window
I have a index html page where there is a button that when pressed it opens a popwindow with my flash movie. Now it looks fine in Netscape but in IE 5 the window is about 10 pixels off around the border . Does anyone have a script that will fix this I just want the flash movie to fit excatly to the popup window .

POPUP Window -- WHY?
Why do alot of Flash sites pop up in a 'Tollbarless' window? Ive done several all-flash sites and have never done this before. Is there a specific good reason?

Please infor me.

Thanks---and this is nothing more than a basic Javascript popup window with No toolbar, etc. etc. and Loaded with the SWF file only correct?

Thanks again. tvance

Popup Window
I need to center a popup window relative to the viewer's screen. Right now I'm using this code:
<HTML>
<HEAD>
<TITLE>index</TITLE>
<SCRIPT LANGUAGE="Javascript">
function OpenPopup()
{window.open('aitest.html','window','toolbar=0,loc ation=0,directories=0,status=0,menubar=0,scrollbar s=0,resizable=0,width=600,height=400,top=0,left=0' );
}
</SCRIPT>
</HEAD>
<BODY ONLOAD="javascript:OpenPopup()"bgcolor="#FFFFFF">
</BODY>

</HTML>

Any help is appreciated.

Popup Window In IE6
Hello to everyone,

Anyone knows how to open a popup window in IE6, I've tried all the codes I had but none of them works.

I want to open it without toolbar,address bar....

Thanks in advance...
Andres

More Then One Popup Window?
Ok i finally worked out how to get a popup window to work from flash but i can only get one to work!!?
Button in flash contained this:
getURL ("JavaScriptop();");

The html file has this code in it:
<SCRIPT LANGUAGE="JavaScript">
function pop()
{
window.open("popup.html","","height=250,width=525, left=0,top=0");
}
</script>

How do i make another button to open another file??

Popup Window
I'm trying to open multiple popup windows from within a flash movie.
I obtained the following script:

<SCRIPT LANGUAGE="JavaScript">
function pop() {
window.open("popup.html","","height=200,width=200, left=0,top=0");
}
</script>

That means that a specific button in the flash movie will execute the 'function pop()' command and open #popup.html'.
But what if I have another button which is supposed to open another, different popup window? If it executes another 'function pop()' command it would open again 'popup.html'? How do I have to alter the command to open a different url?

Thanks a lot.

Popup Window
the problem which prevents me from sleeping:
index.html incorporates a button that opens movie.html which has movie.swf embedded (window size: 500x450)

Once movie.swf is open, the swf-file has 3 buttons:
Button A, Button B, and Button C.

If Button A is clicked, popup window A (which includes another swf-file A) is opened (size of the popup window: 200x200)

If Button B is clicked, popup window B (which includes another swf-file B) is opened (size of the popup window: 210x500)

If Button C is clicked, popup window C (which includes another swf-file C) is opened (size of the popup window: 300x450)

I’m desperate to find the correct javascript codes for those actions.....!!! How can I open differently-sized popup windows with specific contecnt from within the main swf-file??

U can’t imagine how much I thank u for your advice.
Thank You.

Popup Window
I'm having difficulties with borderless popups. I have added this JavaScript to my index.html in which all the swfs open/load:

<SCRIPT LANGUAGE=JavaScript>
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}

and I've added this action to a button:

on (release) {
getURL("javascriptpenNewWindow('my.html','thewin ','height=400,width=400,toolbar=no,scrollbar=no')" , "_blank");
}

But it doesn't work. A new window opens, but with the "javascriptpenNewWindow etc" in the url/address field and nothing else happens.

What am I doing wrong?

Popup Window
Doe's anybody knows the right javascript to open a popup window in the middle of the screen.
Please help me
Thanks in advance.
Lallo

Popup Window
Im using flash mx and I want to open a new window without any toolbars, scrollbars or anything except the title bar.

It needs to be 547px*398px and what I really want to know how to be able to do, is, make it popup in the center. Of the screen no matter what resoulution the users screen is at.

Popup Window From A Popup Window
I can call a popup window from my Flash MX movie without a problem, but when I display my Flash MX movie from within a popup window, it won't bring up a new popup window.
I have placed the java code in all of the html files.
Any help is appreciated.

PopUp Window
I am displaying a swf file in a popup window.When i try to close the window by clicking on close button my swf gets unload but not the movie.
I have written the code.
on release()
getURL("javascript:window.close()"

Second thing i want to change the name of the ppup window.I have written the code as
On release()
getURL(javascript:window.open("intro.swf","DEMO"," width=600,height=500")
But it is not taking the name of the window as demo.

All this is done in FLASH 5.

Please help me out as this the last stage of my project.

Popup Window
hi i want my window to pop up in the middle of the page but it allways pops up in the top left ???? can anyone help
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.my site.html','newWin','width=400,height=300,left=0,t op=0,toolbar=No,location=No,scrollbars=No,status=N o,resizable=No,fullscreen=No'); screen_width = window.screen.availWidth; left_point = parseInt(screen_width)-400; setTimeout('NewWindow.moveTo(left_point,0)',100); void(0);")

i think its the left=0,,,,e.c.t. but i am not sure

Help With Popup Window
Hi...I have my thumbnail as a button and I want to open "pic1" in a popup window. Can anyone help with the actionscript to open "pic1"? Right now, I have my larger pictures (jpegs)(pic1 - pic18) in the same folder as all my other flash files. I have about 18 thumbnails that I want to open in there seperate windows if the viewer chooses....how do I do it??? Do I have to put them each in an html file then open them that way, or can I open them just as they are in jpeg format?

Popup Window
hi

is it possible to specify a popup window opening centre of the browser within flash? or do I have to add a javascrip function to the html of the popup?

thanks

ravenotice

Popup Window Help
Ok I have a website that is flash and I want to add JavaScript style popup windows without a browser or any of that stuff. I make my buttons and put them in and this is all on one page so I need to find a way to make all my buttons open to there specific windows. I also when back and used a code from the boad to see if it worked and it did but what I need is a code that makes it possible for me to resize the windows once I've published flash and all that and I also need to add scrollbars to each window. I want the windows to be able to be different sizes set to there specific page once you click the link. I hope this makes sense and I hope some one can writing me out a code that I can add to my html and a code to put in the getURL action in flash for each button...Please help...Thanks

PopUp Window For SWF
What Action Script function do I use to type in the Javascript to make a new PopUp swf browser from within a Flash movie browser.

Popup Window
Hi there,

I want to open a new popup window with a button created in flash. Is there somebody who can tell me a command to use within the GetURL action?

Thanks

Popup Window
Hey guys, i could use a little help please
i'm working on my portfolio, i have thumbnails and i would like to be able to enlarge them (in a new popup window) by clicking on a button, how can i do that.
Thank u 4 the help

Popup Window
Hello,

I am trying to open a new window from my Flash movie and cannot get it to work correctly. I would like the new window to open with an html document, a certain size and in a certain location. The new window opens, but none of the arguments are used. Can somebody please tell me where I am going wrong.

This the code in the html document that holds the Flash movie:

<SCRIPT LANGUAGE="JavaScript">
function popup() {
window.open('newpage.html','','toolbar=no,location =no,directories=no,status=no,menubar=no,scrollbars =no,resizable=no,width=200,height=400,left=0,top=0 ');
}
</script>

The is the buton action in Flash:

on (release) {
getURL("javascriptopup(); ", "_blank");
}

Thanks!
Audrey

Popup Window
Hi

i have a popupwindow on my site with a flash country map inside the popup. on this map users are able to select multiple regions, whereafter they close the window.

what i need now is to send these regions back to the site where the user came from in an array or something. i use php & javascript on my site...

can someone please help me??
regards goos

Popup Window
hi im Jin
how do u link from swf file to html window or in dreamweaver.

Popup Window
Now here is my problem
i have a "enter" button on my web site and when i click it i want the site to be displayed in a new window but without the toolbar. i also have pics that i want to display in a new window (no toolbar again) by clicking on a button. Basicaly i am trying to do as it is on www.cricom.com

thank you very much guys

Popup Window
Hi...Can anyone help me with launching a popup window from flash? Creating a CD-ROM in flash and when the user clicks on a specific button I would like an internet explorer window to pop open that is a specific size and without scroll bar, menu etc. Can this be achieved? any help would be really welcome. Cheers

PopUp Window
I need help with opening several popUps from flash into New windows.

I used this:

javascript:NewWindow=window.open('ubicacion/ubica_fs.htm','newwindow','width=300,height=300,to p=0,left=0'); void(0);

but it opens inside the same window.

This script

on (release) {
getURL ("http://www.url.com", "_blank");
}

works fine, but I can't make the new window a specific size

Can anyone help me make my popUps a specific size (and in NEW windows) ?
Thanks!!

Popup Window
Hi I'm trying to make a popup window

I got the following code from http://www.flash-db.com/PopUp/index.php


on (release) {
getURL ("javascript:NewWindow=window.open('help.html','ne wWin','width=400,height=300,left=0,top=0,
toolbar=No,location=No,scrollbars=No,status=No,res izable=No,fullscreen=No'); NewWindow.focus();
void(0);");
}

and added it to a button on the stage, but it wont do the job.

any ideas?

PopUp Window
Hi!
Well my flash site isn't so big and it doesn't look so good with a normal window browser so i wanna make a html page whith a button, which will the main site in a pop up window. I read and used this http://www.flashkit.com/tutorials/Ac...-708/index.php
but it still doesn't work. So can some1 explain 2 me how can i this easly ?

Sm Popup Window
I'm still sadly using Flash 4 and can't figure out how to open a small pop-up window like you can in DreamWeaver. I want the window to be a certain size (size of movie). Thanks for your help.
Sara
www.saraohara.com

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