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




Open New Window With Actionscript



I made my portfolio site in flash using a shell and loading pages as movies, then I put the shell into dreamweaver. When you click on a thumbnail it made it a button so onrealease in gets URL of the high res image which is saved as an html file on my site. The problem is when you try to go back to the portfolio section from the high res image, you click back in the browser, and you have to start back from the home page which has to load again. Is there a way to open the high res image in a seperate window, I know there is by putting parent, or something like that, but can that be put in the actionscript somehow? How can i get the high res image to come up in a seperate window? If anyone can help me I would really be greatful, thanks so much.

Jon



FlashKit > Flash Help > Flash Newbies
Posted on: 12-08-2006, 12:58 AM


View Complete Forum Thread with Replies

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

Actionscript To Open New Window
Hi

Im new to actionscripting and need some direction where to go(politely please...)

I have made a projector file for a business presentation. The contact details can only be accessed if they are online.

Usually i use javscript to open a centered window movie from my flash form.


Questions:
Can i open a predetermined size flash form (swf) in a centered new window from the projector (ie not embedded within a html page)?

Can actionscripting do this or is that only javascripting can (ie code within the head tags of an html page?

Any assistance would reduce my headache, thanks in advanced

Voddie

ActionScript To Open A New Window
I would like to have a button which a window will pop-up to display a Website I would like the user to see. How to write ActionScript for this button?

Thanks a lot.

ActionScript Open In New Window
Good morning y'all

I am trying to load a picture in a new window when a button is clicked. My code is as follows:

on (release) {

_root.loadMovie("screenshots\clientprofile.jpg", "_blank");

}

It will load the graphic, but not in a new window. Any suggestions?

Actionscript Open Window
on(press){
getURL("http://k.1asphost.com/signup.asp",0,"post");
}

when this button is pressed signup.asp opens in a new window,

what i would like to happen is the data gets posted, and rather then openin the asp page...just goto the next frame of the flash movie..??

Open A New Browser Window ActionScript 3.0
I am making my website's nav bar in flash. I want some of the buttons to open new browser windows to display aspx/html files. Is this possible using actionscript 3.0?

Thanks!
Life in the UK Test
British Citizenship Test

Open New URL's In New Browser Window Using Actionscript 3.0
My question is: "How can I open a new browser window"
The "_parent" - "_self" and "_blank" doesn't work.

The following example shows how you can open new browser windows from Flash Player using the navigateToURL() method in ActionScript 3.0

controls_mc.link1_btn.addEventListener(MouseEvent.CLICK, link1);
function link1(Event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.adobe.com"));

It opens a new browser site outside my homepage and that's not what I want.
I want it to open inside my homepage!

I hope there is someone who can help me with this problem! ???

Thanks for your help !

Javascript Window.open In Actionscript Part 2
I posted yesterday on using the standard javascript open window function inside a flash document/swf. I attached the following to a button in my flash file:

on (release) {
getURL("javascript:window.open('mypage.htm','MyPag e','toolbar=no,location=no,status=no,menubar=no,sc rollbars=no,resizable=no,width=300,height=250')");
}

This works great in Internet Explorer, but in Netscape 4.x no window pops up. Even stranger behavior occurs in Netscape 6 as the window pops up fine, but then the html window my flash file is sitting in refreshes to a blank white page with the words, "[object Window]" and the location shows my javascript code.

I know, I know, Netscape sucks, but obviously I would like this to work. Anyone know what's wrong, or have a better way of handling this so that it will do the job in both browsers?

Thanks,
Ryan C.

Actionscript To Close An Open Flash Window?
I have a flash program that, when run on its own, runs in full screen. I need to have an option to exit the program. What Actionscript would I add to the program (whether it be to a button, or in the script itself) for the SWF file to close itself?

Open Browser Window - GetURL Actionscript
Hi all, i am working in flash 5...

i would like to be able to open a seperate browser window from flash
so i got easy popup windows 2.1 from macromedia exchange.

but 4 some reason the authers product is not workin the way its supposed 2 so i thought i would just fill in the actionscript myself to create a centered pop up window...

*************

"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);"

*************

this is the java added in the getURL function and i hav less than no clue on how to fill this out properly, could some1 please fill it out so i can use as example

NB the popup is in a mc, will this affect it in any way???


Thanks ever1 and hav a great holiday ( unless u work like me

protocol

How To Do Javascript:window.open Via Actionscript For Anchor?
I'm wondering how to open a pop-up window via javascript when linked to the anchor tag in actionscript. Whatever I do, it doesn't work....


Code:


url_comment = "<a href='#' ";
url_comment += "onclick="javascript:window.open('Image/abc_bldg_zoom.jpg','Pop-Up Window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,wid th=800,height=600');return false;">";
url_comment += "<img src='Image/abc_bldg.jpg' width='100' height='63' hspace='4' vspace='4'></a>";



Thanks...

Actionscript To Open A Window And Control Its Width,height And Whether It Hastoolbars
Hi - just wondering if anyone knows how to create a get url
in a new window through actionscript which can describe the window's width,height and whether or not it has toolbars?

Any help verrrrrrrrrrrrrrrrrry appreciated!






Martyn

Flash CS3 Seams Sluggish With Text And If Actionscript Window Open
I have a movie clip on the stage that has a large text box inside with 18-20pt font, 3-4 paragraphs of text. When I try to scrub the timeline, the playhead on the timeline does not keep up with my mouse... it lags way behind. It's like the Flash CS3 software starts to freeze or hang. And the text in the final swf movie doesn't animate on the timeline.

What I did finally discover is that if I hide (turn off visiblity) the layer on the timeline that has the text movie clip, voila! I can now smoothly scrub the timeline. What gives??? I think others have had similar issues with the CS3 actionscript panel.

My pc specs are as follows... (I think it should be beefy enough to handle this simple text animation).
Vista Ultimate SP1 64-bit, Intel Quad Core, 8G Ram, 512MB eVGA 9800GTX graphics card

Actionscript Button Open Html Link _self Window
hi, i know this is a stupid question but i've looked all over the internet and can't find the code for a button to open a new link within the same window. i know how to do pop-up windows and such but can't figure out how to open a window in self for flash. thanks in advance.

Open Pdf Files Causing IE Window To Open And Crash
On a macintosh OSX, when trying to open a pdf using:

getURL(./somePDF.pdf")

this command opens a pdf document correctly but also opens Internet Explorer. Sometimes this causes a problem because it crashes IE and forces it to quit.

Is there a way to open PDF documents using flash that doesn't open an IE browser window on mac OSX?

How Do I Make Them Open In The Browser Window Already Open?
I've managed to add links to my buttons, but they all open a new browser window... how do I make them open in the browser window already open?

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

How Can I Open Folders/run Apps/open Shortcuts From Flash MX Using Actionscript?
I'm trying to make an Active Desktop using Flash MX and I need a way for the user to click on a button, labeled 'my computer' for example, and for the 'my computer' window to pop up. The same thing needs to happen for 'my pictures', 'my music', 'my videos', 'control panel', and 'media player'.

How can I do this using Actionscript?? Please advise.

AS: Close Current Window And Open Link In Father Window ?
Please, guys, can anyone lead my hand in this?

I have produced a flash movie. the wholw are is an invisible button which
should close the animation and in father window open a link.

The flash movie pops up automatically when page is loaded. I used this:

on (press) {
getURL("javascript:self.close();window.opener.loca tion.href = 'http://www.unibanka.sk/servlet/com.elline.pb.Page?page=alfa_ts'");
}


... but am not sure if this would work exactly how I want it.

Thanx

Pass Data Into New Window With Open.window Function
hi,

is it possible to call the js function open.window from an swf and at the same time pass data to the new window by send=post? i can't seem to get it to work.

thanks,

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

Open Full Screen Window, Same Window?
I have a 700x300 flash banner. What I want to do is once it's clicked, open the page that it is linked to in the same window but full screen? I can do it with java script, how do I add it in MX?

Mike

Open A New Browser Window And Go To Frame(n) In The New Window
Hi I need some help.

I'm trying to load a new html file that contains a movie but I like to specify to what frame to proceed in that movie I try to write this in actionscript I think it is easier to understand.

// I have 2 html files contact.html and home.html

// And I have one swf file named home.swf with 2 scenes named "home" and "contact"

// The home.html and the contact.html both contain the same home.swf movie

// currently I'm in home.html I like to getURL("../main/contact.html")
that loads the contact.html and the contact.html contains the home.swf but I like to proceed to the gotoAndStop("Scene",1) or gotoAndStop("contact",1)

I hope that was clear enough if you may know the answer please email me I have suffered a lot on this but I just couldn't come up with the answer.

Regards
zoltank@timelineillustrations.com

Issue Using Window.open For A New Window...
this one is interesting...

i have a page called main.html which contains main.swf and the javascript function to open a new browser window... no problem there.

however, when I go to my frameset (index.html) which contains main.html.... and try go open a new window from the main.swf flash piece... i get a javascript error. what is going on with the frameset that is causing the open new window to fail?

try it out.

go to my site:
http://www.menuengine.com (index.html)
>> click on Arctic Thunder in the menu, then click on Character Work.

now go to http://www.menuengine.com/main.html and try the same thing... it works here.

the only difference is that you first tried it from a frameset housing main.html

any clue?

here's the code that's in main.html

<script LANGUAGE="JavaScript">
function popupwindow(){
window.open("The file that you want to pop up here","","height=350,width=500,menubar=0,resizable =0,scrollbars=0,status=0,titlebar=0,toolbar=0,left =0,top=0")
}
</script>


thx,
doubt

How To Make New Window Open In Same Window
anyone have any advice on this? I need to know how to make a new window openin the same window using Flash MX (Flash MX 2004 too, i have both)right now on my website, when you click to go to a new page, it opens in separate windows so by the end of your journey through my website there are like 5 or 6 different windows open. i don't want that. so, any suggestions would be super helpful. thanks a bunch!

~peace

Open Window?
anyone know a bit of javascript that could help me here:

I've got a html page on which I need to have a button to open another page with my .swf on it, trouble is the movie is 800x600 and I've been asked to make it work on 640x480 aswell. How do I detect screen size? I'd really like to have a pop-up window with no browser buttons.menus, just a plain window.

I'm not a coder so be gentle, I appreciate that this is not really a flash problem, but...

???

Open New Window
im doing a game but i wanna to open it in another window like the one in the flashkit which u can choose to open in different size...
does anyone know how to do it can pls help me?
thank you

Open New Window
I have the following problem:
I want to open a new window, with no scrollbars, and toolbar, and with a fixed size..
I know it is possible with java-script, but how does it work in flash. I can't publish with the FS-Command because the script is used in a loaded movie into a main movie so I don't have an .html file!
Anyone can help ?

Open Window Like This?
Hello,

Can some please tell me how to open a window to the exact size of your desk top like this site:

http://www.egomedia.com/

Thanks

Open Window
How do I make flash open a window at a certain size ?

Open In New Window
I have various flash demos id like to put on a CD for clients. Id like them to run a flash executable file on the CD that will call various swf movies. Id like it to open each demo from the flash.exe file on a new separate window though, how can i do this?

mars

Open New Window
Could someone please help me to open a new browser window (containing another flash movie) by clicking a button in flash. I have tried using the fsCommand but it doesn`t work...

Open New Window
Hi
I would like a button to open a html page in a new window with a width of 500 and heighth of 650, without the toolbar at the top. Is this possible?
Thanks

Open Window
how do i open a new window in flash without my main window going to a blank screen that says [object]?

Thanks

Open New Window
Greetings,

I have created a button in Flash. I've assigned the "Get URL" action to it OnClick to open a new window which grabs an HTML page that has a QuickTime movie embedded. What I would like to happen is when the user clicks the button, the window that opens would be a specific size that is slightly larger than the QT movie. How do I do that?

Since I have got your attention, I have one more question—Dreamweaver related. Again, I have a button. I inserted a "rollover" button (from the tool pallette) into a layer. I've added the Behavior to open another window at a specific size. The problem is, the behavior options only allow this to happen OnMouseOver. I want it to happen OnClick. Do I need to acquire additonal Behaviors? Got any clues? I'd like to do this action without having to open the HTML and futz with the code but if I have to well...ok.

Thanks

Open Up A Window Again...plz Help Me
Hi, I have recently added a window with scrollable text in it, on my site that Im working on. I got it from a tutorial here on Flash Kit. What the tutorial explained was how to create a window with scrollable text, also with close and minimize buttons. What the tutorial did not explain was how to open the window again if someone wanted to!!That's what I really need to know now. Please can someone help?

PS: I have made the button to open the window, but dont know what actions to give it.

PSS: I'm not talking about a browser window, Im talking about re-opening a flash window.

Much Appreciation,
Vox

Open New Window
which are the script to open a new browser window from flash without toolbar in the center of the screen ...i dont know if i make myself clear

i want to open a browser window without toolbar in the center of the screen call it from flash..

Open Window
I created an introduction in flash and the rest of the page in html.
From the intro, there is this button. Clicking on it, it should open another window WITH FIXED WIDTH AND HEIGTH.
The problem is that I don't know where and how to set the size I want for the second window.

Open New Window
I want to create a link that opens a new window. I need to be able to controle the size of the new window and I don't want any menu items on top... just a plain window with the content and a close window button. I've seen a tutorial on the subject but I forget where I saw it. Can anybody direct me to a tutorial or some actionscript that would get the job done.
Thanx.

Open New Window
high everyone,

just a quick easy question im sure, i have a site and it has pop up HTML windows, these windows are sized and have no scroll bar and all the other stuff but........

when i try to open more than one it doesnt open a new window it just changes the HTML in the old pop up window thats already open, this looks really crappy as all the windows are at the right size

is there a way of gettting it to open more than one pop up window at a time.

im using the following java to size and open the new window

<SCRIPT LANGUAGE="JavaScript"> var javascript_version = 1.0; </SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.1"> javascript_version = 1.1; </SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
var newwin;
function launchwin(winurl,winname,winfeatures)
{
</SCRIPT>


this is placeed in the parent movies HTML with and

on (release) {
getURL ("javascript:launchwin('index.html' , 'newwindow' , 'height=800,width=1023')");
}

Open Window
hello flashkit,

I am trying to open a new window( w/ a swf inside) from inside of my main Flash movie.I a also want the window to have a width=200 and height=500. I have a button that is designed to open the new window. What is the actionscrpiting for this?

thanks

Open In New Window
how do i make a movie open a new window like the one here.
http://www.1lfs.i8.com
thanks a bunch

-2

Help Pls.... Window.open
hi all, i'm trying to open a html window for my website, but no matter how many times i try it just open a empty page and i dont know wat to do now....
here's wat i have wrote:

in html
</STYLE>
<SCRIPT LANGUAGE="JavaScript">
<!--

function openpop(newURL)
{
window.open(newURL, "_blank");
}

// -->
</SCRIPT>

and in flash,
get url
javascriptpenpop("my page.htm")

can anyone pls help???
thks

for any doubts, here's the website
http://www10.brinkster.com/waterdog

Open A New Window...
The tutorial on opening new windows from a flash movie was helpful, but I got lost at the explaination of how to set the window's perameters (window size, toolbar, scroll bar, etc.). What is the exact javascript code you need to put on the html page where the flash movie is embedded? Will this work for all browsers? Is there a batter alternative?

Also, I need my flash movie buttons to open new windows that are different from eachother. Is this possible?

Open New Window
I need help with opening a new window. I want my buttons in flash to open a new browser window with a specified height and width that can't be resized. I've done it using html buttons using javascript. But I don't know how to do it with the buttons inside a flash movie. You can see what I'm talking about at http://www.round-tree.com. Go to the photos section and that's where I have the buttons to open a new window containing the pictures. I want another window like the one the main site is in. Can someone please help?

Thanks.

Open Window
Does anyone happen to know how to be sure a parent window opens.. I have a movie that pop ups another movie... and that movie needs to get url... but it opens it in the browser where the movie(self) resides.
I am working in mx expoting to flash 5..
thank you,
Nina

Open A New Window
hi ,

Tell me how can i open a new window in my movie with no adresse barr and no Statusbar,

Please answer me

Open In A Different Window(help)
hello experts,

I want my .swf or .htm to be open in a different window if i click the link. please help me....!

Open Window
Hi there
I'm working on a project which has a requirement to send data to a perticular website..i used getURL to lunch that perticular URL. Default browser is being opening in a new window and its working fine..but here the user can see the URL as it is comming in the address bar of the newly opened window. I want to hide the URL so that user cannot see the URL i'm posting the data..can any one help me how to do this...

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