Pop Up Window Won't Work
Hi i just made a flash site as a personal/portfolio site. I have used the tutorails here to make a pop up window for each item in the gallery and portfolio section but the window won't pop up....it works fine with mozilla but with IE the windows will not pop up to display my works http://shinfua.pixelphobia.net/PTSite/main.html what could be wrong??
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 11-18-2004, 04:32 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help, Need To Have Pop Up Window Work
I am trying to script a button so that when you click on it a larger version of the picture pops up in its own browser window. i also want to be able to put a close button on the pop up page. i would really appreciate it if anyone can help.
Pop Up Window Won't Work
Hi i just made a flash site as a personal/portfolio site. I have used the tutorails here to make a pop up window for each item in the gallery and portfolio section but the window won't pop up....it works fine with mozilla but with IE the windows will not pop up to display my works
http://shinfua.pixelphobia.net/PTSite/main.html
what could be wrong??
Popup Window Does Not Work In IE.
Can someone pleaseee help me..
on (release) {
javascript("window.open('http://cnn.com','windowname','width=500,height=500,resiza ble=no,scrollbars=no,menu=no,toolbar=no,status=no, location=no,top='+((screen.availHeight/2)-(500/2 ))+',left='+((screen.availWidth/2)-(500/2 ))+'');parent.opener=top;opener.close();");
}
The code above works in Netscape but not in IE. When I click on my button, every IE window closes. In netscape it seems to be working fine.
Here is the site
wwww.*******turkishcuisine.com
the links are in the MENU section.
Pop Up Window Doesn't Work
Hey, I used the pop-up tutorial here on kirupa, and heres what I got:
in the as layer i have :
Code:
_global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL("javascript:window.open('"+url+"','"+winName+"','"+"width="+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"');void(0);");
};
and on the button I got this:
Code:
on (rollOver) {
tellTarget ("/enter") {
gotoAndPlay("over");
}
}
on (release) {
// customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "index2.htm";
target_winName = "vsf";
width = 482;
height = 421;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
// sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
But when I view it online th pop up doesn't work, it does when I view it in my folders, and in opera the pop-up works, but it still have scrollbar and it is lot of white space in top so it get weird.
Anyone able to help get it work?
http://www.vsf-fc.tk
Thanks in advance,
fatnslow
Pop Up Window Doesn't Work
Hey, I used the pop-up tutorial here on kirupa, and heres what I got:
in the as layer i have :
Code:
_global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL("javascript:window.open('"+url+"','"+winName+"','"+"width="+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"');void(0);");
};
and on the button I got this:
Code:
on (rollOver) {
tellTarget ("/enter") {
gotoAndPlay("over");
}
}
on (release) {
// customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "index2.htm";
target_winName = "vsf";
width = 482;
height = 421;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
// sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
But when I view it online th pop up doesn't work, it does when I view it in my folders, and in opera the pop-up works, but it still have scrollbar and it is lot of white space in top so it get weird.
Anyone able to help get it work?
http://www.vsf-fc.tk
Thanks in advance,
fatnslow
My Pop Window Doesn't Work
Ive put this on a button but when the window reveals itself theres no sizing and the html page contact doesn't come up. The page is in the folder.
Anyone help please
on (release) {
getURL("javascript: window.open('contact.html', 'contact', 'width=200,height=200,menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,resizable=no,top=0,left=0");
}
Window.open - Why Doesn't It Work ?
Hi
I'm using this command in the getURL action:
javascript:window.open('filename.html','name','wid th=200,height=200');
The window is opened, but the 1st window changes and turns to white screen with this in it => [Object] .
Why ?!
Close Window Action WILL NOT Work?
Ok guys, Ive looked at all the boards, but nothing seems to ask what Im asking. Ive tried it 3 different ways and it just wont work. Ok, I am making a website from Flash 5 then uploading the html file that flash has created, plus the swf, in the html file I want to close the whole window (no pop ups or anything) just a simple close window. It works when i open it on my desktop, but when i upload it, it wont close. http://www.oxygen--design.tk
anyone help me? its kind of urgent. - A
This didnt work when i uploaded.
on (release){
getURL("javascript:window.close()");
}
JS Open Window Doesn't Work In IE
Hi all,
Does anybody know, why this code doesn't work to me in Internet Explorer and in other browsers does?
var turl=(eval(("_parent.x_" add _name) add ".attributes.dest")
getURL ("javascript:NewWindow=window.open('" + turl + "',' newWin','width=533,height=800,left=,top=,toolbar=N o,location=No,scrollbars=No,status=No,resizable=No ,fullscreen=No'); NewWindow.focus(); void(0);");
Quiz In Window Component Does Not Work
When placed inside a Window component the quiz template does not work.
As soon as you begin the quiz it hangs. Any idea why?
Would appreciate help
Thanks
Can't Get Popup Window To Work, Could Use Code Help.
This is the first time I've tried to open a popup window in flash, and I can't get it to work. The site I'm building has the navigation buttons contained in an animated movie clip. All of the navigation buttons work fine. But there's a link that the company wants me to add that opens a window to another site who hosts a video commercial for the company (it has to be a link to the other site, it can't be added directly to the customers site).
The link the other company sent me is for javascript (I'll include it in the attached code), and the code works great if I just insert the javascript in the html. But I wanted to try and get the link in the Flash menu. I've tried several versions of the code, from applying it directly to the button to naming an instance of it and attaching the actionscript in the movie clip. When I'm done, I get two different problems. On my XP machine, I get a warning error about the flash trying to open something to another server. On my Vista machine, nothing happens at all.
Anyway, I'm including the original javascript and several versions of the actionscript I've tried (with the actual site information replaced with "fakeurl.com", wasn't sure how these forums felt about including site info). Any help at all would be greatly appreciated. I've searched and searched for about a week, and I'm tempted to just do away with the Flash button and use a cheesy javascript button for this one link.
Thanks!
MoAtt
Attach Code
<!-- Begin Original Javascript Code-->
<a href="javascript:;" onClick="window.open('http://www.fakeurl.com','video','scrollbars=yes,resizable=yes,width=716,height=540,left=0,top=0,ScreenX=0,ScreenY=0');";><img src="http://elocallink.tv/vp2/images2/linklogo.jpg" width="122" height="100" border="0"></a>
<!-- End Original Javascript Code-->
<!-- Begin Different Versions of Actionscript Code (with button instance named "Video_btn")-->
Video_btn.onRelease=function() {
getURL("javascript:openNewWindow('http://www.fakeurl.com','video','height=716,width=540,toolbar=no,scrollbars=yes') ");
}
<!-- Begin Different Versions of Actionscript Code-->
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.fakeurl.com','video','width=716,height=540,left=0,top=0,toolbar=No,location=No,scrollbars=Yes,status=No,resizable=Yes,fullscreen=No'); NewWindow.focus(); void(0);");
}
<!-- Begin Different Versions of Actionscript Code-->
var jscommand:String = "window.open('http://www.fakeurl.com','win','height=716,width=540,toolbar=no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);");
My Output Window Wont Work....
I typed in what I learnt from the book.
angle=45;
radians=angle*Math.PI/180;
trace(Math.sin(radians));
Its supposed to displa the radians as .707 in the output box but hasnt
what Am i doing wrong?
cheers for the help.
Help How To Make A Popup Window Work
I have a popuped Html window, and it contains a flash file. I want to know how can I make it work if the PC doesnot install the flash player yet. So what kind of code should I add on my file to make it download the player?:phil:
Have To Press Flash Window Twice For It To Work
Hey does anyone know how to solve this problem... Whenever I publish something in flash... I have to first click the flash screen... then I can start using the flash application... its very weird. Anyone know how to fix this?
Close Window Javascript Dont Work
Hi,
I may appear to be a little dim... but this is killing me...
right... I have created a button to close a browser window from within flash.... button properties as follows..
on (release) {
getURL ("javascript:window.close()");
}
why when i try this out on my hd does it work but when i put it on the web it comes up "page cannot be found"?
is this because i need to put womething in the <HEAD> of the Html document??
Please help...
Stuart
Flashkit Pop-up Window Tutorial Doesn't Work
I found this pop-up tutorial here and it doesn't work:
In the html file between the <head> tags
<SCRIPT LANGUAGE="javascript">
function newWindow(url,name,features){
var newWin = window.open(url,name,features);
}
</script>
In the flash button
Get URL ("javascript:newWindow('your_html_file.html','newW in','height=***,width=***, toolbar=0,menubar=0,location=0,scrollbars=1,resiza ble=1')", vars=POST)
Note: 1 = yes or the window will have this option. 0 = no or the window will not have his
option
Note: *** will equal the size of the window that will pop-up.
I've followed every step exactly and tried every possible variation, it just opens a blank page with the address ("javascript:newWindow etc..
Any help much obliged
Javascript Open New Window Doesn't Work From Cd-rom
Here's the situation:
I'm making a flash container for my portfolio, resume, etc. I'm using javascript to open new browser windows that load other flash, director projects that i've done. (Primarily b/c my portfolio is 800x600 and so are some of the projects i'm loading & also i don't want veiwer to lose the portfolio window by loading a movie on top of in in a highter level.) This works great on the web, but not from a cd-rom. A browser window opens that is blank, pure white, no content with my javascript from the URL feild as the title and the address. Any reason why? What am i doing wrong? Is there any other way to play another swf or dcr movie externally from the main movie, ie in another window? All the info i can find is about how to load a movie into the current movie, either in a level or a target.
thanx in advance.
Javascript:window.close() Won't Work - What Am I Doing Wrong?
Still pretty new at AS3, so no surprise I'm having trouble...
My SWF opens in a new floating window, and I want a button to close that window so users can go back to the regular site.
Added a button, instance named closeWindow_mc
Here's my actionscript:
Code:
closeWindow_mc.addEventListener(MouseEvent.CLICK, closeWindow);
function closeWindow(evt:MouseEvent):void {
var url:String = 'javascript:window.close()';
var cWindow:URLRequest = new URLRequest(url);
try {
navigateToURL(cWindow);
} catch (e:Error) {
trace('Error occurred!');
}
}
I also tried
Code:
closeWindow_mc.addEventListener(MouseEvent.CLICK, closeWindow);
function closeWindow(evt:MouseEvent):void {
var url:String = 'javascript:window.opener=self; window.close()';
var cWindow:URLRequest = new URLRequest(url);
try {
navigateToURL(cWindow);
} catch (e:Error) {
trace('Error occurred!');
}
}
but that didn't work either.
The original code had the URLRequest var named "request", but that colored blue in the AS editor, so I figured that was a reserved word and should be avoided. And it didn't work.
I'm sure this is obvious, but I'm stumbling...
Complete Newbie -- How To Expand Work Window
When you are looking at the main workspace for flash, I seen a large grey panel with a little white square in the middle, which is what I can work on, how do I make that actual workspace appear bigger?
Also I can't seem to find any good online tutorials. I only bought the Flash MX CD and serial code and don't have the manual. Flashkit's tutorials are mainly for flash 4 and 5 and I can't follow them with MX 2004 pro. Help!
Macromedia Flash Window Compoenent DOESNT WORK
Wow, very frustrated now... the macromedia windowpane compoenent simply doesnt work...
i made a converted a textInput component (dyanmic name "myText" to moveclip and name it testMC, then added linkage.
Added it as a contentPath to a window.
put this code in main timeline:
_root.myWin.content.myText.text = "test";
everytime the textbox is blank, wtf?
~All names case sensitive and everything is correct!~
HELP!!!
Window Component Works In Some Files And Doesnt Work In Others
I successfully made a window component using examples from these forums. I made it in a new document, and the window opens when I press a button with an instance name "myButton". But when I try to implement this script into my existing flash document, it doesn't work. I made a new button and gave it an instance name of "myButton" and imported the window component into the library, but when i click this button, nothing happens. No errors, no action, nothing. Please help me. Thank you
Actions Such As Stopping Against A Wall Don't Work If The Window Is Scrolling. Help?
so yeah, when the character normally hits a wall when he's near the middle of the canvas he stops and doesn't go forward, but when he reaches a certain _x coordinate and the window starts scrolling to the right, say, his _y just keeps going up and he shoots up the wall...
what's goin on here?
here's the code for the stopping i think:
PHP Code:
stopped = function() {
for (i=0; i<1; i += 0.5) {
if (Key.isDown(Key.LEFT) || YukiMC._xscale == -28.8) {
if (world.platform.hitTest(YukiMC._x-(YukiMC._width/2), YukiMC._y-120, true)) {
YukiMC._x += YukiMC.speed;
}
}
if (Key.isDown(Key.RIGHT) || YukiMC._xscale == 28.8) {
if (world.platform.hitTest(YukiMC._x+(YukiMC._width/2), YukiMC._y-120, true)) {
YukiMC._x -= YukiMC.speed;
}
}
}
// if (_root.world.platform.hitTest(YukiMC._width, YukiMC._height/2, true) || _root.world.platform.hitTest(YukiMC._width-120, 62.45, true)) {
}
stopped();
Keys Don't Work W/ WMODE (window Mode) In Mozilla
In my publish settings ive adjusted my Window Mode to transparent to prevent 10-30% slow down that usually occurs in a browser. however, in mozilla, the movie still runs slower and a whole bunch of scripts dont run.
ive heard this is a common problem and that i can be fixed but i cant find out how anywhere on the net. can someone please help me? it works in internet explorer.
Combo Boxes Doesn't Work Inside Window Component
Hello again,
I have two .swf files. A parent swf uses a window component that's contentpath is equal to the second swf file.
The second swf file contains a combobox component. When I run the second swf file the combo box works fine; when I call the same swf from within the first swf (under the window component) the box will not "drop down"... it just sits there like a stoned rock.
Any suggestions?
Combo Boxes Doesn't Work Inside Window Component
Hello again,
I have two .swf files. A parent swf uses a window component that's contentpath is equal to the second swf file.
The second swf file contains a combobox component. When I run the second swf file the combo box works fine; when I call the same swf from within the first swf (under the window component) the box will not "drop down"... it just sits there like a stoned rock.
Any suggestions?
Main_mc Scroll Window, Doesnt Work Inside Movie?
Hey yall,
I'm trying to get a scroll bar tutorial to work inside of a movie (meaning I have a movie instance named "home mov"). However, when I try to run the program, it doesn't load the text file or show anything at all. Here is the main action script that is supposed to load it:
Code:
function showText(message) {
main4.w_field4.htmlText = message;
if (main4.w_field4.maxscroll > main4.w_field4.scroll) {
main4.gotoAndPlay("scroll_loop4");
}
}
function checkVars(success) {
if (success) {
the_text = this.my_text;
gotoAndStop(141);
} else {
trace("file didn't load");
}
}
should i name it home mov.main4.w_field4.htmlText ??? ive tried a few variations and nothing works
Links That Do Not Work, Size Of The Site In The Browser Window And Scrolling Text
Hi,
I am a newbie and really need help! I have posted a site all in flash and have some serious issues with it!
1. my links on the last scene do not work and I have followed the book precisely.They go to newspapers.
2. the contact button on the nav bar on all the scenes (email link) does not work properly: it opens up to a cannot display page and then the microsoft outlookout window opens up with the email address.
3. The site opens up to be very small and not the size I intended.
4. I have 2 scrolling text boxes on 2 diff scenes. one is fine but the other opens up with a level thing (_.10level)and then the text I want loads in, how can I fix that?
The site if you need to view it to help me is: www.advancingdemocracyinafrica.org and was done to help the cause so therefore no money was paid to me but I still want it to work properly.
Thanks so much and PLEASE SOMEBODY HELP ME!
thank you
My Javascript "open Popup Window" Doesn't Work In Flash 8 Anymore? HELP?
I have the Flash MX 2004 program but recently I downloaded the Flash 8 Professional Trial to see what it has to offer.
I saved a file I was working on to Flash 8. Now my javascript to open popup windows on my website don't work anymore when the button is clicked.
Only when I save it back to my earlier version of Flash MX 2004, do my open pop up windows javascript work again on my buttons. Has anyone had this problem beside me or is there some type of new security issue I'm overlooking?
"Transparent Window" Does Not Work Correctly.
I have used transparent window in my new site to allow the html background to show through transparent sections in flash. This works fine on my pc using internet explorer. Fowever, on macs, opera, and I think Netscape, this does not work. The browsers display the flash flash and html background color and only at the edge of the browser window does it show my background. Has anyone else experienced this?
Close.window Script In Flash Button Quits My Browser Window Or Crashes System
Can somebody please help me?
I have a javascript attached to a button in a .swf file to close the browser window it is in.
The code which was given to me yesterday by senocular is
on(press){
getURL("javascript:window.close()")
}
__
however if you try it IE will unexpectedly quit or bomb my computer.
I tried it in Netscape and it didn't crash.
You can refer to my site http://www.valdesdesign.com
after intro go to print button and then to editorial button.
Editorial opens new window with editorial.swf inside. Click on top right button to close window and see what happens.
Is there something I'm doing wrong? Please help me.
Thanks
Drop Menu : Rollovers/GetURL In A Movie Don't Work...and The SWF Doesn't Work In FF
My links/rollovers don't work in Mozilla and the dropdown menu part don't work (the rollovers and the getURLs) in any browser.
What's wrong with this??? I think it's something simple.
I've already tried:
Code:
this._lockroot = true;
I also tried writing the AS as:
Code:
one.title.text = "The Text";
one.onRollOver = over;
one.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(11);
}
one.onRelease = function(){
getURL("http://www.thelink.com");
}
...didn't work...
I hope someone can help!
Download the: Source File
(Lately I've gotten no help off this site and it's been very depressing because this site people used to be very helpful...I hope someone can change my mind)
Link In Pop-up Window (flash File) Target=parent Window
I have a flash demo that is opened from our web site and spawns a new window. At the end of the demo is a link that directs the user to "get more information." I would like this link to open the "more info" page in the PARENT window rather than the spawned window. Currently I have my Flash link coded with:
on (release) {
getURL ("http://www.hiddenmind.com/materials.html", _parent);
}
This is not working. Do I need to add some code to the parent window and/or the HTML page where the Flash file is embedded?
Thanks for your help! I can't seem to find the solution
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
Passing Variables From Spawned Window To Parent Window
Is it possible to pass a variable from a child to a parent window.
I have one page (Index.html) with a swf (index.swf). A button on the index.swf launches demo.html containing a demo.swf. When the user gets to a certain point in demo.swf, I need to tell index.swf that it has arrived. Is this possible.
Any suggestions are appreciated.
Cordially,
Jason
Pausing After Preload If Browser Window Is Not Active Window
Hi folks,
I'm trying to figure out how to do this, but so far I have had no success. The intention is for anything like a Flash trailer, intro movie or such like which is large to preload and once this is done check to see if the user is still viewing that browser window.
So if during the preloading the user opens/selects a different window and the preloading finishes then the Flash will go to a paused screen, awaiting the user to indicate they want to proceed (eg a play button). If however the user still has, or has returned to, the browser window it will skip the pause screen and play the animation.
For an example the 9th chapter of Ninjai.com seems to do this (I haven't checked the other chapters).
Any help would be appreciated.
Ragnar
webmaster@ragnarkarlsson.com
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!
Flash Reload Parent Window + Close Window
Hi i got a quesiton.
I have an asp page that will open a new asp page in a new window that contains a swf file with a button.
When the user clicks the button i want to close that window and reload the parent window. Any ideas on how to achieve this in flash ?
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
Loading External SWF's Into A New Flash Window Instead Of A Browser Window?
I have this flash presentation where I have buttons when clicked on, a (_blank) browser window pops-up and begins playing external SWF's.
The problem is that, with windows XP, every time I click the button(s) to have the browser window pop-up, to play my externals, the damn 'virus protection notification' thing pops-up first, asking me if this content is allowed. Is there a way to turn this off? My client does not want to have to "allow" the browser to play the external SWF's everytime. I've tried everything but no luck.
Better yet, is there a way to have the external SWF's pop-up in a totally new flash window, on top of the main (presentation) window? I don't want the external SWF's playing in the same window, but rather show in a new window entirely. Can anyone help me? This project is past-due and it needs to go out today. I'll attach the current scripting I'm using so far, if it helps. Thanks so much!
bottingsAd_mc.onRelease = function() {
getURL("exampleAds/bottingsports2_001.swf", "_blank");
};
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
This._lockroot Doesn't Work (combobox Components Won't Work)
I have a preloader (preloader.swf) which loads a form (offerte.swf).
I've put the this._lockroot on the "application" timeline on the first frame of the "Flash form application" (offerte.swf).
But the combobox components still won't work.
I had it working before, but suddenly it seemed to stop! Now I can't get it get to work again.
Preview: www.blaak.nl/flash/
This._lockroot Doesn't Work (combobox Components Won't Work)
I have a preloader (preloader.swf) which loads a form (offerte.swf).
I've put the this._lockroot on the "application" timeline on the first frame of the "Flash form application" (offerte.swf).
But the combobox components still won't work.
I had it working before, but suddenly it seemed to stop! Now I can't get it get to work again.
Preview: www.blaak.nl/flash/
|