Opening Browser Windows
Does anyone have a script that will allow me to oepn a new browser window from a flash button? I don't want toolbars or anything, just a basic popup window. Thanks.
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-20-2002, 08:19 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Opening Browser Windows
When using the getURL action to open up a window can I use syntax that opens a browser window without a toolbar, scrollbars etc rather than as a full new window?
Opening Browser Windows
I am having problems getting Flash to open a popup window
Within my HTML document I have this code:
<script language="JavaScript">
<!--
function win_open(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
and on a button within my Flash movie I have this code:
on (release) {
getURL ("javascript:win_open('disclaimer.htm','disclaimer ','scrollbars=no,width=400,height=300')");
}
When I try this through the browser I get a script error alert saying there is an error on line 0.
For one how can there be a line 0 and what is wrong with this code?
Opening Browser Windows
Does anyone have a script that will allow me to oepn a new browser window from a flash button? I don't want toolbars or anything, just a basic popup window. Thanks.
Opening Browser Windows
I have a flash piece I would like to have play in a correctly sized browser window which opens smack in the center of the screen. Currently, I have an image on my site's main page that works as a link to open a new browser window for my flash piece. Using the behaviors window (onclick="MM_openBrWindow) in Dreamweaver the window opens by default in the upper left-hand corner of the screen. Anyone know how I can control where the browser window I open up appears? Thanks in advance if you can help.
Opening Browser Windows
anyone know how to open a new broswer window .. in the middle of a page.. and then possibly another one on top of that ... in the middle of that ?
Opening New Browser Windows In Flash 5
Hello. I know there are some tutorials here that explain how to open new browser windows within a Flash swf. Unfortunately I tried them and got confused. I don't know that much about JavaScript, but I'm comfortable with ActionScript in Flash 5. Here's what I'd like to do:
I have a swf file (main.swf) residing on a web page (main.html).
There are 4 buttons in main.swf. I'd like each button to open a new browser window(page1.html, page2.html, etc.). That's the easy part. I know how to do that!
However, I'd like each browser window to be a specific size. And, if it's possible, I'd like each window to be plain (no scroll bars, not resizeable, etc.). It would also be wonderful if I could control the placement of the new browser windows in relation to the main window, but this isn't necessary.
Thanks for any help. This is an effect that I would use a lot!
-Glenn-
Opening Browser Windows From Html&swf
Has anyone got example code to open a new browser window the same size as the movie with no toolbars etc. from the html file which loads the first movie. Then to load another movie when clicking a button within the first movie.
Thanks in anticipation of your help - this is driving me nuts and I can't be the first person to do this!
(Flash MX 2004 Pro)
Steve
Opening Video In Fixed Browser Windows
I'm just trying find out how to open a new browerser window at a fixed size from flash for an mov file. How would I go about doing that. If you want to see what I'm talking about, go to www.gmunk.com and look at his broadcast work.
Opening Browser Windows With Flash Buttons
Please could anyone help? I am trying to insert a Flash button into a HTML page which will open a when browser window with no toolbars, no status bar, no menu bar, non resizable etc..
Basically the browser window needs to have the web site in side and that’s all. At the moment I have used one of Dream weaver’s stock buttons and am able to open a browser window with toolbars and scrollbars but need the window without scrollbars etc. I have tried adding a behaviour to the button and specifying 'toolbar=no,location=no,status=no,menubar=no,scrol lbars=no,resizable=no' but the window still appears with all the things I don’t want it to have.
Can anyone help me out??
Opening Browser Windows With Flash Buttons
Please could anyone help? I am trying to insert a Flash button into a HTML page which will open a when browser window with no toolbars, no status bar, no menu bar, non resizable etc..
Basically the browser window needs to have the web site in side and that’s all. At the moment I have used one of Dream weaver’s stock buttons and am able to open a browser window with toolbars and scrollbars but need the window without scrollbars etc. I have tried adding a behaviour to the button and specifying 'toolbar=no,location=no,status=no,menubar=no,scrol lbars=no,resizable=no' but the window still appears with all the things I don’t want it to have.
Can anyone help me out??
Flash Popup Wizard: Opening New Browser Windows From Flash?
Hello,
I once found a plug in for flash that allowed me to specify the size/position of the popup. The interface was orange. I have a different computer now, and can't find that plugin.......Any chance anyone know the name of the plugin so I can search for it?......Thank you....
Opening New Swf's On Top Of Others In New Windows
Can anyone tell me how to do this? I have one movie with two buttons in it setup as a projector (.exe) and now i want it to open new swf's when those two buttons are clicked respectivly.
the tree should look like this:
----------------------------------------------------------------
CD ROM
(w/autostart)
|
main interfece.exe
/
swf 1 swf 2
game
----------------------------------------------------------------
(end)
so far i've figured that i'd prolly need :
-----------------------------------
on (release) {
loadMovie("other.swf", "_level1");
play ();
}
-----------------------------------
for the button's
but they still don't work?
what's up?
thanks in advance for help
Simp
Opening Windows
I want to open a new window from a flash button that is a specific size and control what elements like scroll bars and tools show on that window. I know how in html. I am not a programmer so I require your simple easy to understand solutions to be in English or in a cut & paste format. Only genuine soulutions please.
Flash On...
Marbles Mahoney
http://www.marblesmahoney.com/m
Opening Windows In MX....Help
I have a button on my current FlashMX movie that links to an external SWF. When I click the button, the SWF opens in a seperate window, and the 1st window remains behind it.
MY QUESTION: Can window 1(Flash Movie) be set to close upon opening window 2(external SWF)?
Some help would be greatly appreciated. Thanks guys!
Opening New Windows
I have a button in a flash movie. It opens a new flash movie from my web site. I use the get url function and I have placed "_new" in the target box. When I open it in Internet Explorer it doesn't work, it opens the new movie in the same window. But, it seems to work in Netscape Navigator.
Any ideas......?
Thanks Anthony
Opening New Windows W/ CSS
Hi, I would love any and all help.
Currently, I am loading a style sheet and a .txt file (which has the code below in it ) into my flash file. Its working fine but I would like to specify the window size it opens. Is this possible, and if so how?
info=<textformat leading="2"><p>
<span class="hilight">Classics</span><br>
<a href="1957Chevy/index.html" target="_blank">1957 Chevy</a></p></textformat>
Thank You In advance.
Opening New Windows
I'm trying to allow the user to send variables, the values of different text fields, to a perl application which opens in a new window. I'm using the send() method, which works fine. The only problem is that I want to define the dimensions of the new window. It seems like this should be simple enough, but I am very unfamiliar with actionscript and have been unable to find the answer I'm looking for in the Flash documentation or online, so if anyone could help me out, I would greatly appreciate it. Here's the code that I'm using:
submit.onPress = function() {
var contact:LoadVars = new LoadVars();
contact.realname = userName.text;
contact.returnAddress = userEmail.text;
contact.subject = userSubject.text;
contact.message = userMessage.text;
contact.recipient = "email@address.com";
contact.send("cgi-bin/formMail.pl", "_blank", "POST");
}
If you would like to see it in action, go to http://www.studiosix12.com/test.htm, and go to the "contact" section.
Thank you for taking the time to read this.
.nathan
Opening New Windows
Hi Folkes,
was wondering how to open a new window without the browser tool bar appearing. For example see the link below:
http://www.shelleyfox.com/
thanks in Adv
Opening New Windows
Hi folkes,
How can I open a new window without the browser tool bar?
Example: http://www.shelleyfox.com/
If you click enter site you will see what I mean.
Many thanks
Opening New Windows
i know this is a rather easy thing
but i just started working with flash and making websites
i made a flash animation as an intro to a website, at the end theres a button to take you to the home page. i wanna know how by clicking that button, i can make a new window, a certain size, come up with the website. rather than making the website appear on the previous, intro page.
can this be done with actionscript? or is it javascript?
either way, can anyone give me a code i can just plug in?
thanks
Opening New Windows W/ CSS
Hi, I would love any and all help.
Currently, I am loading a style sheet and a .txt file (which has the code below in it ) into my flash file. Its working fine but I would like to specify the window size it opens. Is this possible, and if so how?
info=<textformat leading="2"><p>
<span class="hilight">Classics</span><br>
<a href="1957Chevy/index.html" target="_blank">1957 Chevy</a></p></textformat>
Thank You In advance,
macky
Opening Windows And Ie 6
Hi Folks,,
A real problem for me. Just don't get it.
Can anyone explain why the following script works fine in ie 5 + safari (mac), but does nothing on ie 6 (pc)
The URL is www.spov.co.uk BTW
anyroad... the script...
//on a button:
on (release) {
_root.openWindow("center", "media/slideShow.html", "", 800, 600, 0, 0, "no", "no", "no", "no", "no", "no", "no");
}
//root, frame script:
function openWindow(type,url,winName,winW,winH,winTop,winLeft,tools,scroll,resize,menu,status,directory,location){
switch (type){
// ===========================
// REGULAR WINDOW
// ===========================
case "regular" :
getURL("javascript:window.open('" add url add "','" add winName add "','width=" add winW add ",height=" add winH add ",top=" add winTop add ",screeny=" add winTop add ",left=" add winLeft add ",screenx=" add winLeft add ",toolbar=" add tools add ",scrollbars=" add scroll add ",resizable=" add resize add ",menubar=" add menu add ",status=" add status add ",directories=" add directory add ",location=" add location add "'); void(0);");
break;
// ===========================
// CENTER HTML WINDOW
// ===========================
case "center" :
getURL("javascript:window.open('" add url add "','" add winName add "','width=" add winW add ",height=" add winH add ",top='+((screen.height/2)-(" add winH/2 add "))+',left='+((screen.width/2)-(" add winW/2 add "))+',toolbar=" add tools add ",scrollbars=" add scroll add ",resizable=" add resize add ",menubar=" add menu add ",status=" add status add ",directories=" add directory add ",location=" add location add "'); void(0);");
break;
// ===========================
// FULL SCREEN WINDOW
// ===========================
case "fullheight" :
getURL("javascript:window.open('" add url add "','" add winName add "','width=" add winW add ",height='+(screen.height-100)+',top=" add winTop add ",screeny=" add winTop add ",left=" add winLeft add ",screenx=" add winLeft add ",toolbar=" add tools add ",scrollbars=" add scroll add ",resizable=" add resize add ",menubar=" add menu add ",status=" add status add ",directories=" add directory add ",location=" add location add "'); void(0);");
break;
}
};
Thanks in advance.
Chompy
Opening Windows
I need each of the buttons in the circle movie clip to open a different window like the one showed on the main stage. This means you must create three unique windows, one for each button. I've tried to do it, but it absolutely refuses to cooperate every time. Oh, how I envy you who are masters at what you do... Ah, and it would be great if the window was a different color...say instead of pink-dark brown, instead of a white bg, translucent. If it's not too much trouble, tell me what you did so I can learn. I wish I were a Flash great...
Buttons Opening New Windows, Sometimes
This may get a bit confusing to follow but I'll try and make it clear. I've got two Flash Movies that are involved with this issue, FLASH ONE and FLASH TWO.
STEP ONE
Lets start with FLASH ONE. At the end of it, there are several buttons that each open a 2nd window while the original window remains open in the background. The window that opens display another Flash movie that I don't think has an effect on this issue. Everything works fine so far.
STEP TWO
Now lets move on to FLASH TWO. Visible during the entire movie is a button that links to FLASH ONE. When the button is clicked, it opens a 2nd window showing FLASH ONE while FLASH TWO is visible in the background. Everything works fine so far.
STEP THREE
When I come to the end of FLASH ONE --- after having accessed it through FLASH TWO, I still have the buttons mentioned in the first paragraph above. Each of the buttons work BUT ONLY SO FAR..... they open a window, BUT it is not a new window, it is the same window that FLASH ONE was in.
My question is this: How can I make the buttons in STEP THREE open a new window as they do in STEP ONE?
Thanks
Puzzle When Opening New Windows Under IE
Hello people,
I've currently got a problem when opening a new window from within a flash movie.
I've set up a simple getURL javascript:
on (release) {
getURL ("javascript:newWindow('image1.htm','newWin','widt h=888,height=605,toolbar=0,menubar=0,location=0,sc rollbars=0,resizable=1')");
}
...everything is fine, the site performs 100% when I preview it in Dreamweaver in both Internet Explorer 6 and Netscape 6, and online when I check it using Netscape. But when I try it using IE I get a page not found error. The links and script are from what I can tell fine (it wouldn't work in Netscape if the links are wrong I assume) and I can't think what else it would be.
The site is at http://www.smartforms.com.au >> portfolio >> category 1 >> click a thumbnail on the right and underneath the image is a button saying 'full screen'. Here is where the problem lies.
Where am I going wrong?
Opening New Windows With _blank
Has anyone heard of a reason why a new window would NOT open when using the actionscript
getURL("http://www.flashkit.com", "_blank", "GET");
I've just made a small login section in which a button opens a .cfm script in a new window. Works fine on my machine, but a friend just called saying when she clicks, it loads the .cfm in the SAME window....
Any ideas?
Opening DW Windows In Flash
I know how to open a DW in Flash (Get URL command), I know how to make it a new window by adding the "_blank" thingy...now I need to know how to open it at a CUSTOM size. You can do it in Dreamweaver by using the behaviours menu, is it possible in Flash too?
Thanks in advance!
Opening Windows Without Javascript?
Hi, I am working on a movie that will be put onto a CD. I am going to have to open other things on the CD from buttons within this movie. I'm wondering is there a way to do this aside from Javascript?
Opening New Windows In Flash
Hello,
I am using Flash MX (not 2004).
I need to open a new window from flash that is 300px long, and 300px wide. I have tried using
getURL("javascript:window.open(...)","_self")
, but that gives me a page that says "object", and then it opens the window. See it in action at www.yeahitis.com/test.swf How can I make it so it does not open the "object" window?
Thanks,
Brendan Benson
Opening New Windows In .swf File
I am unsure how to get around this problem. I want to be able to open a window when clicking on a button in the .swf file. Which I have done, however.. I want to be able to hide the toolbars, menus, scroll bar etc.
Please can someone help
The coding I have so far is:
on (release) {
getURL("./contact.htm");
gotoAndStop(1);
}
I have tried using java script, but this causes a problem when opening a .swf file, but works fine when opening in an HTML browser.
I would appreciate any help
Thank you.
Controlling New Opening Windows
Hello again!
Once again I have a problem.
On the site im building in flash, I have a series of thumbnails that I would liked to be viewed in a new window when they're clicked on.
The problem is that I have no idea how to do this.
Ideally I would like to have the new windows open at specific sizes in order to accommodate the exact size of the picture's to be viewed.
Also, can anyone provide details on opening just a plain looking window(eg - with no menu, and just the 'X' in the corner to close the window).
Any sort of help on this would be appreciated greatly.
Cheers
Opening Windows Within Flash MX
I need each of the buttons in the circle movie clip to open a different window like the one showed on the main stage. This means you must create three unique windows, one for each button. I've tried to do it, but it absolutely refuses to cooperate every time. Also, it would be great if the window was a different color...say instead of pink;dark brown, instead of a white bg; translucent. If it's not too much trouble, tell me what you did so I can learn. Thanks!
Opening Multiple Windows
Hi. I have read the tutorial on opening a single window within Flash with Javascript, but I was wondering how I would open multiple windows within Flash?
I have a list of links in my Flash movie, and I have re-directions to new windows, but they're full-sized and I need them smaller.
If anyone could help, it'd be appreciated.
-Corey
Opening New Windows In Flash 5
hello all!
2 questions, 1, how do I load a new swf movie in a new sized window instead of in the same window, and how do I make my movie centered dispite what resolution other computers are useing?
please help, im going nuts
Closing And Opening Windows Help
Hi, On my main page I have an enter button on the homepage, when clicked on it gives a popup to the real webpage. I want it so that when you click enter that it closes the homepage, and opens the popup page. The reason I am asking for this is becuase the popup page opens at a certain size (800x400)and I like that look.
Here is what I currently have as my coding but it doesnt work, its just says you are about to close this window and then when you click yes it just closes but no popup.
on (release) {
getURL("javascript:main();");
getURL("javascript:window.close();");
}
Opening Links In New Windows?
Hi all!
I'm just wanting to know how to open links in a new browser window in flash.
You see, I have a dynamic textbox, and the text is generated on button click. The text is on a txt file and is HTML based. the thing is that I put the normal code for opening in a new window but it still doesn't work cause it opens in the same window... Does it take a special action or something? Here's the code I use for the links:
<a href="http://www.flashkit.com" target="_blank">http://www.flashkit.com</a>
Thanks for your help!!!
Variables Opening Windows
hey!
got jpeg files loading & resizing from an xml on a flash movie, also want'em to open full size on a new window in case someone wants to save'em.
right, I´m calling javascript from the html:
getURL ("javascript:launchwin('pic.jpg' , 'newwindow' , 'scrollbars=no, height=500, width=500')");
the 'pic.jpg' comes from a variable 'image' created in the parse function
how do I get the variable into the javascript (as it goes between ""!) so i can open the pics in floatable windows... is there any other way??
thanx!
Opening New Windows From Flash
Hi,
I want to launch a photo browser (that ive done in flash) that Im thinking of having in a HTML window that would pop up when the user clicks the link in my main flash file.
The thing is I know that lots of people have pop up blocking now and that blocks javascript code.
Is there another way of bringing up a window from flash or can anyonne think of a way for me to do this.
Many thanks,
Tim.
Opening Seperate Windows
I added a script to a few different buttons that opens a new customized window when clicked. The problem i have is if someone clicks back to the site without closing the window, then clicks another button, new content will not replace the old content in the window.
What can I do so that new content will be added to the popped up window if one clicks on another button and doesn't close the window?
You can see my predicament if you go to http://giosound.com/index2.html then click on "SAMPLES" then select any of the videos.
The script for opening a window I added to each button was...
Code:
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "http://www.giosound.com/video/html/unitedairlines.html";
target_winName = "United";
width = 463;
height = 285;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
Hyperlinks In XML Opening In New Windows
Can't for the life of me sort this one out...
I'm loading text data from an external XML file. Within a given bit of text is a hyperlink. This is loaded dynamically into a dynamic text field within Flash (html enabled). When I click the link, it opens as normal. Unfortunately, I can't get the link to open in a NEW WINDOW. It keeps loading as a new tab in any existing IE window.
How do I force it to open in a new window? Reason I need to do this is the window has to be resized via JS...
Opening Windows In Flash
I know this is a well-documented issue, but the fixes I've seen haven't allowed this newbie to solve the problem. So far my openNewWindow function opens a new window with "javascript:openNewWindow()..." in the address field. Why is it reading the command like a url not a function? What should I try!
Sorry for the basic question...
Thanks!
Opening Borderless Windows
Ok. I was just trying to figure a way to open a swf without a window. THe movie includes a closing button. I did it before but lost it. And I was tyring to find out if there is a version of the "Open Borderless Windows" for Netscape?
Thanks!
Opening Links In New Windows
Hi all! I'm developing a portfolio site that uses html text fields with links in them. Now, I would have SWORN that at one time these links automatically opened in new windows, which is the desired behavior (that's a discussion for another thread, but there are very good reasons to not open in the same window).
However, now I find that the links open in the same window, and when I try to make them open in a new window, it's always blocked by popup blockers. What gives? Surely there must be a way to get this basic functionality without a crazy javascript hack.
What do you guys do to open new windows?
Thanks so much in advance!
:: v_d ::
Closing And Opening Windows
I`ve build a site for a friend of mine just to get myself started on some flash but I`ve run into a little problem.
On this site there are various thumbs that open a new window and show the original pic, nutting special there, except that I want each file to open in it`s own window.
In this case new pics open in the same window and not a new one.
It is rather annoying as I also created a player that opens in a new window which stops playing if you look at start looking at a picture after that :$
So what I need is either a window-closer or some script that opens every picture in it`s own window or just a special window for the player.....
Hope you can help me out here
the code for the pictures to open the new window I use is:
b3.onRelease = function() {
getURL("javascript:Launch('http://www.url.com/pic.jpg', 630, 470)");
};
Windows Not Opening In Firefox, Please Help
Ok, I'm having a big problem and I have tried everything and nothing is working.
I have Firefox 2.0.0.13 and I am having a problem opening links in a new window in Firefox. Works fine in IE, but nothing in Firefox.
This is very important for the site I'm working on so can anyone please help. Thank you very much.
Opening Chromeless Windows
Hi everyone. I have done the tutorial on here regarding opening a chromeless window and it works fine. My question is probably quite stupid but how do i get other buttons on the same page to open in a chromeless window as well. So several different URL's linked to buttons. Thanks heaps.
Opening Borderless Windows (?)
Hi! First, i'm sorry for my bad english.
I just try the Opening Borderless Windows by kirupa at : http://www.kirupa.com/developer/flash5/borderless.htm and it work great but i have one problem
The image for all of the over states for the close button/image(.gif) is not working...do i have to create a small .gif and include it in my html page or it suppose to be done with the script?
Cause at the top right of the screen, it suppose to have a small 'x' to close the window and i have a juste a small square.
thanks for those who will responde me!
Have a nice day
Rick
Opening Windows In Flash
I know this is a well-documented issue, but the fixes I've seen haven't allowed this newbie to solve the problem. So far my openNewWindow function opens a new window with "javascript:openNewWindow()..." in the address field. Why is it reading the command like a url not a function? What should I try!
Sorry for the basic question...
Thanks!
Opening Html Windows
i have a link in flash which opens a new html window.
what do i write in the script to make the new window none resizable and also to open it at a certain size ?
i dont want standard buttons or the address bar or anything to be on the new window that opens.
do i have to write something in the html page instead ?
[Edited by Paul2510 on 04-14-01 at 17:23]
|