Centered Popup
Hi all
I followed this tutorial, then downloaded the fla. for the centered popup. I get a syntax error when I run it. Can someone help me out on this? Here is the url for the tutorial and fla. http://www.kirupa.com/developer/mx/centered_popup.asp
Thank you, Toad
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 10-06-2002, 04:11 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Popup,centered
Hi people,
Someone can give me the wright code to make a chromeless window that's centered?
I've been searching these boards and there are so many quest,answers.But I can't seem to get my hand on the wright,working script.
Btw I'm on mac.
Really appreciate this.Thx
Centered POPUP
On my site I have this code (that I got from Pelle Piano) on the 'Enter' button to open up the popup that contains the main site content:
Code:
on(release){
getUrl("javascript:window.open('http://www.eyeborg.co.uk/PhilThompson-Moonface.html','newwindow','width=640,height=480,top=0,left=0'); void(0);")
}
It works great but the popup isn't centered on the screen. Is there anything I can add to this code to change that? I have tried completely different scripts but then I realized a lot of people couldn't see the site anymore... so just a simple amendment to the code above would be much appreiated...
Grete
Centered PopUp
Hi, Im a newbie here, and letme say that its a cool Forum. And before to continue, Im not english speaker, I speak spanish, then sorry my bad english.
So, I got download the tutorial about centered popUp window at this link http://www.kirupa.com/developer/mx/centered_popup.htm
and it is very useful for me, but the problem or trouble is in that this fla file was published for Flash 5, and when I published that for flashv7 in AS2 this file dont work. so I need this file published in v7 AS2, because this file will be inside in other fla with others actions for AS2, in others words I need this file working after it was published in flash7 and AS2. is Possible?, sorry Im introducing in the Flash world.
Thanks a lot, and again sorry my English I just trying.
Greetings!. *or grettings?.
Centered Popup
Hey folks, thanks ahead of time...
I used the tutorial for Kirupa's centered pop-up (http://www.kirupa.com/developer/mx/centered_popup.htm) and that works fine initially. Within the swf file that loads into the popup window, a loadmovie command is executed that has two buttons. I tried to place the same pop-up structure on these buttons and they do not work. The buttons are supposed to load pop-up html files containing a quicktime movie. Why don't they work?
Things I have already checked:
1) All the code seems to be in the right place
2) All the variables are input correctly
3) All the quicktime odds and ends are working.
I appreciate the help. Take care.
Centered PopUp
Hi, Im a newbie here, and letme say that its a cool Forum. And before to continue, Im not english speaker, I speak spanish, then sorry my bad english.
So, I got download the tutorial about centered popUp window at this link http://www.kirupa.com/developer/mx/centered_popup.htm
and it is very useful for me, but the problem or trouble is in that this fla file was published for Flash 5, and when I published that for flashv7 in AS2 this file dont work. so I need this file published in v7 AS2, because this file will be inside in other fla with others actions for AS2, in others words I need this file working after it was published in flash7 and AS2. is Possible?, sorry Im introducing in the Flash world.
Thanks a lot, and again sorry my English I just trying.
Greetings!. *or grettings?.
Popup Window Centered
This is what I want to do.
#1. Make a popup window a set size in pixels
#2. Make it without any scrollbars or menu items
#3. Have it centered in the middle of the screen.
Thanks for all the help
Much much appreciated.
Centered POPUP Works On Mac's But Not PC's?
Hi guys,
Centered pop-up tutorial on Flash Kit
I've tried both this code and the similar code from the Kirupa site but the problem is always the same, it works on Mac's but not on PC's!!! Has anyone else had this problem? Or is there any other way to make my site open centered?
Here is a link to my site
The problem is on the 'enter site' button.
Any advice will be greatly appreciated!
Grete x
[HELP] Centered Popup In MX Professional ?
Hi,
I have to create a button which opens a popup window inthe center of the screen. Ive seen som tutorials but the problem is with mx profesional it doesnt read the script or something? script works in flash 5, but i need it 2 work with flash 7 player.
can any1 help me (its rather urgent)
script i'm using now is:
script on the button:
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "specials.html";
target_winName = "SPECIALS";
width = 443;
height = 500;
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);
}
and script in first frame (1 layer about layer with button) :
_global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) { getURL("javascript:window.open('"+url+"','"+winNam e+"','"+"width="+w+", height="+h+",toolbar="+toolbar+",location="+locati on+",directories="+directories+", status="+status+",menubar="+menubar+",scrollbars=" +scrollbars+",resizable="+resizable+", top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"'); void(0);"); };
Centered Popup Window
Wondering how I could have flash open onLoad a popup window centered on the screen no matter what the resolution or size of the users screen.
Any help is greatly appreciated!
Flash 8 Centered Popup?
Does anyone know how to do a centered popup in Flash 8? I have done a Google search and found a few solutions but they don't work in Flash 8. I also did a seach on this site and didn't find an answer that worked.
Anyone please?
Centered AS/JS Popup Window
I am at witts end. I realize that there are plenty of post around on the internet concerning popup windows. However am a newbie and can't seem to figure out how to center the popup window. I've been piecing together code from a couple of different sources. Anyways here's what I have so far. It lives inside the html file for the 'landing page' and works. It just doesn't center it.
<script>
function launch(page) {
Openwin = this.open
(page, "RP-WebSite.swf", "toolbar=no, menubar=no, scrollbars=no, location=no, resizable=no, width=800, height=570, top, left");
}
</script>
I suspect the 'centering' will take place in the 'top', and 'left' but have no idea how.
Any help would be greatly appreciated and apologize if this has been covered somewhere in the forum previously.
Centered Popup Window
Kirupa's centered popup window script hasnt been working in internet explorer for a number of people including me. Does anybody have any idea why?
Centered Popup Window
is there anything i can add to this
PHP Code:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
to make the window exactly centered when it pops up?
thanks
-----------------------edit------------------------------------
here's what i have now
PHP Code:
<html>
<head>
<title>aaronsleeper.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
centerWidth = (screen.width) ? (screen.width-w)/2 : 0;
centerHeight = (screen.height) ? (screen.height-h)/2 : 0;
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body bgcolor="#7A0A08" onLoad="MM_openBrWindow('flashSite.html','aaronsleeper','width=640,height=480,top='+centerHeight+',left='+centerWidth+'')">
</body>
</html>
but it's not working
Popup Centered Problem
Hello everyone
i followed the centered popup tutorial without anyproblem and made some popup , at the good size and everything worked perfect exept that suddenly they stopped getting at the size i wanted (without even touching the code)
here is the code i used on the buttons ( you can notice that i changed names so i can open 2 popups at the same time , but the problem was already here before i changed it i think (not so sure now lol) so i dont think its that but maybe it is so you tell me :p)
Code:
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "chatbox/index.php";
target_winName = "chat";
width = 250 ;
height = 400 ;
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);
}
and 2nd button
Code:
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "lecteur/mp3player.html";
target_winName = "plop";
width = 300;
height = 320;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
//sends data back to the function
openWinCentre1(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
on (release) {
_root.contents.loadMovie("mp3.swf");
}
and finally here i the code on the action layer (it s marked _global. but i tryed _root. this. and everything)
Code:
_global.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin = 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 + "))+'" + "')}else{myWin.focus();};void(0);");
}
_global.openWinCentre1 = function (url, winName1, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL ("javascript:var myWin1; if(!myWin1 || myWin1.closed){myWin1 = 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 + "))+'" + "')}else{myWin1.focus();};void(0);");
}
you can see the problem here http://www.theplop.new.fr or in the FLA here http://savageeden.free.fr/main2.fla : (the 2 pop ups are on "chatbox" and "plopradio" buttons)
Thanks you very much for helping
A little frenchy flash noob boy :p
Centered Popup Problem
Hi there,
i have used the tutorial off the site for centered popup windows in the past, and they have always worked perfectly.
recently, i upgraded to Flash 8, and still had no problems with centered popups.
now, for some reason it just wont work. I have gone through the coding again and again, and can't see anything amiss. but, i was wondering if someone could look through and see if there is anything i have missed?
please note: i am not able to share the correct URL with you, as it is not yet for public release (sorry, bound by contract..)
The movie contains a button called 'btn_Up'. The AS for the same frame is:
Code:
btn_Up.onRelease = function() {
getURL("javascript:Launch('http://www._____.com/___.html', 354,377)");
};
On the HTML page, above <body> tag i have:
Code:
<script language="JavaScript">
function Launch(page, width, height) {
OpenWin = this.open(page, "aotm", "toolbar=no, menubar=no ,location=no, scrollbars=no, resizable=no, width=" + width + ", height=" + height + ", top=" + (screen.height/2 - height/2) + ", left=" + (screen.width/2 - width/2) + """);
}
</script>
is there something i am missing here? the button is located on a layer above a small embedded .flv movie, would that make a difference?
When i click the flash movie in Firefox 1.5.0.1, nothing happens at all...
Centered Popup With FOCUS() - Plz Help
I have used Kirupas centered popup window from Flash and it works great. I have used it on more than one button in Flash to open different html files. The problem I am having is that once I open it with the first button and then click the second button that it hides behind the main html page. How can I alter this to switch the conten and then refocus? Please help... Im guessing it just a simple line of code but nothing I do has worked.
Centered Popup Upgrade?
Hi all,
This question refers to the following tutorial on this site
http://www.kirupa.com/developer/mx/centered_popup.htm
This is the best centered popup I have ever come across
1 because it works on virtually any browser
2 It requires absolutely no javascript
but
there is one problem it won't work if it is published in Flash Player 7 or higher.
If anyone has a fix, I would love to know
Please help me with this I have searched for
this fix for along time
Thanks and any help is appreciated!
Problem With Centered Popup (cd-rom)
I made a flash/html site to be viewed in cd-rom (offline mode).
I saw the tutorial in kirupa site (http://www.kirupa.com/developer/mx/centered_popup.htm) and i was trying to use this source in my cd-rom. But it doesn't work properly.
I have figured out that it only works online (like the tutorial link above).
Running the cd-rom in some computers (with the Windows XP SP2), internet explorer blocks the popup. When using Windows XP SP1 it works.
Somebody can help me?
thanks.
Centered Popup Flash 8
i read this tutorial: http://www.kirupa.com/developer/mx/centered_popup.htm
but i cant make it work in flash 8...
someone help pls
tnx
Centered Popup Window
Kirupa's centered popup window script hasnt been working in internet explorer for a number of people including me. Does anybody have any idea why?
Centered Popup Windows
Hi all,
Im using this code to open a pop up window but the settings for width and height just dont seem to be working.
ActionScript Code:
getURL ("Music\Song.mp3", "_blank" + "_width=150" + "_height=50");
Dropdown To Open Centered Popup
A combobox, on selection of an item a centered, non resizable, non scrollable, non toolbar window opens up with the selected link...
anyone?
this is what I have to pop open a normal browser window..
Code:
onSelect = function () {
getURL(mylistBox.getSelectedItem().data, "_blank");
}
Problem With Centered Popup Window
Hey everybody,
I'm trying to do a centered popup window in Flash 8. However, what I'm trying to do is have a button launch a text file into a browser window instead of a website.
Here's the code for the button:
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "http://myhints.txt/modular/pop-up.htm";
target_winName = "myhints";
width = 400;
height = 300;
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);
}
And the code on the first frame in the timeline:
Movieclip.prototype.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin = 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 + "))+'" + "')}else{myWin.focus();};void(0);");
}
Any help would be greatly appreciated.
Thanks!
Russ
Centered Window Popup Problem.
Hey, I followed the tutorial here, http://www.kirupa.com/developer/mx/centered_popup.htm , making the popup buttons and whatnot in flash mx 2004, then embedding them in an html file. But, for some reason whenever the page is loaded in IE, and in some other browsers AOL for instance, it will not allow the popup windows to be displayed for some reason, according to a friend it gave some error on line 1, etc.. which i see no errors it, the page works fine with things like opera and firefox, and works in one of my friends IE too, so i'm trying to track down exactly why it is not working. I copied everything from the tutorial exactly, only changed the size at which it loads the popup, and the url... if it's necessary to look at it its for a clan for a game (The specialists, which is a mod for halflife) which I have at pieclan.6x.to which is redirected to www.alexusfreehost.com/pieclan/ ... if anyone could help me it would be very appreciated.
Can't Get The Centered Popup To Work. Whraaaah
hi, can somebody help me out with my centered popup.
i followed all the steps as explained, publish, it just drives me crazy cause no errors or what so ever. it just doesn't work!!!
http://users.pandora.be/willem.photography/indexx.fla
Cheers!!!
Centered PopUp Window Grrrr
Hi:
i'm trying to use the pop up window tutorial
but it's seem that i've something wrong cauze the when flash call the window
it open a blank big page with the actionscript on the URL
what's wrong
grettings
Artemier
Centered Popup - PC (explorer) Issue
http://www.kirupa.com/developer/flas...up_window2.htm
using this in here
www.tioccha-kids.pt
have donne all the work using mac, and testing also.
Everything works fine, after the blue tioccha tags if the popup window doesn't pop automatically just press it and it will popup a centered window.
thing is when testing in a PC with IE...grrrr nothing!!!
please please!!! i wanna go home have ma dinner and i'm getting to crazzzzy cause i cant find what's wrong in here
IMPORTANT: tested in mac and works great!
someone can help me out?!
thx
am
PopUp Centered In Browser Not Screen
Hi,
I finally have a Javascript that makes my PopUp-windows pop up in the center of the screen. I am now wondering if it is possible to center the PopUp in the browser-window; i.e. the browser window is a quarter of the screen size and in the upper left corner of my screen - the PopUp should then appear as well somewhere in the upper left corner, centered to the actual browser-window position.
I hope i expressed myself clearly.
Thanks in advance.
Lars
Problem With Centered Popup Window
Hey everybody,
I downloaded the tutorial on how to do a centered popup window in Flash 8. However, what I'm trying to do is have a button launch a text file into a browser window instead of a website.
Here's the code for the button:
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "http://myhints.txt/modular/pop-up.htm";
target_winName = "myhints";
width = 400;
height = 300;
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);
}
And the code on the first frame in the timeline which is verbatim from the tutorial:
Movieclip.prototype.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin = 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 + "))+'" + "')}else{myWin.focus();};void(0);");
}
Any help would be greatly appreciated.
Thanks!
Russ
Centered Popup / Fullscreen Issue
Hi!
I used the tutorial to create a centered popup window as explained in the tutorial below
http://www.kirupa.com/developer/mx/centered_popup.htm , and it worked just fine in IE and Thunderbird.
What i wanted to do next was to make that popup fill the entire screen, and I did that by changing the width and height values in the AS to screen.width/height, and that worked perfectly in Thunderbird, but it doesn't work in IE; anybody knows where did I go wrong?
PS. The status bar at the bottom of the window stays there no matter the value I assign it in both of the browsers; why is that?
Thx!
Centered Window Popup Problem.
Hey, I followed the tutorial here, http://www.kirupa.com/developer/mx/centered_popup.htm , making the popup buttons and whatnot in flash mx 2004, then embedding them in an html file. But, for some reason whenever the page is loaded in IE, and in some other browsers AOL for instance, it will not allow the popup windows to be displayed for some reason, according to a friend it gave some error on line 1, etc.. which i see no errors it, the page works fine with things like opera and firefox, and works in one of my friends IE too, so i'm trying to track down exactly why it is not working. I copied everything from the tutorial exactly, only changed the size at which it loads the popup, and the url... if it's necessary to look at it its for a clan for a game (The specialists, which is a mod for halflife) which I have at pieclan.6x.to which is redirected to www.alexusfreehost.com/pieclan/ ... if anyone could help me it would be very appreciated.
Centered Popup Window - Old Insta-Tute
I saw it a while back, and I seem to have lost it...
It was some javascript you put into a button in Flash, and opened a centered popup window with no scrollbar that was not resizable etc...
The nice part about it was it required NO coding into your HTML document....
Anyone seem to recall the code?
If so could you post it for me?
Thanks,
-Frog out.
How Make A Centered Popup With A QT Video Inside :)
Hi (sorry my english is not perfect)
I am realy a beginner, and i want to make a centered video popup.
At this time i only know make a button open a new page opening the QT video, but the background of this page is gray.
I will like to only get the video and is controler bar, with my portofolio home page for background.
I found many tuts for making popup, but how integrate the QT video in a html page in witch i can include the javascript for open it like a popup window ?
Thanks a lot for help
http://bihan.free.fr
PS
(in futur i want to make it in flash but at this i am to much beginner to do it )
Misalignment Of JPG Using Tutorial Of Centered Popup Window
Hi guys, this is my first post here. These forums have been a great read the past week
I have done a search and haven't found an answer, so I thought I'd ask here.
I used the tutorial on this site to create a centered popup window, and it works! However, when I try to use a "*.jpg" extension so that the window just displays a picture I have, it misaligns the picture so that there is a white border on the left and top of the picture. This doesn't happen when I enter a destination that is an HTML file.
Does anyone know how I can fix this? I don't have to create an HTML file for every JPG I have, which just has code to embed a picture in it, do I? That would be a lot of files!
Thanks in advance,
Chito
Multiple Centered Popup Window Question (?)
hi everybody. i'm using the centered pop up window script from: http://www.kirupa.com/developer/mx/centered_popup.htm. i have multiple buttons in my flash movie which open screenshot html pages in external browser windows. the script works fine except when a popup window stays open. the rest of the buttons don't open/replace past that one popup. i tried changing the window name in the onRelease script to screen1, screen2, etc for each button, but that didn't work. does anybody have any suggestions or know of an alternate centered pop up code? thanks!!!
Problems With The Centered Popup Actionscript Tutorial.
http://www.kirupa.com/developer/mx/centered_popup.htm
I am using this tutorial to popup high res versions of gallery entries and the popups are being blocked by the IE blocker. However the website i linked to, is not affected by the popup blocker, why is that?
thanks.
Misalignment Of JPG Using Tutorial Of Centered Popup Window
Hi guys, this is my first post here. These forums have been a great read the past week
I have done a search and haven't found an answer, so I thought I'd ask here.
I used the tutorial on this site to create a centered popup window, and it works! However, when I try to use a "*.jpg" extension so that the window just displays a picture I have, it misaligns the picture so that there is a white border on the left and top of the picture. This doesn't happen when I enter a destination that is an HTML file.
Does anyone know how I can fix this? I don't have to create an HTML file for every JPG I have, which just has code to embed a picture in it, do I? That would be a lot of files!
Thanks in advance,
Chito
Multiple Centered Popup Window Question (?)
hi everybody. i'm using the centered pop up window script from: http://www.kirupa.com/developer/mx/centered_popup.htm. i have multiple buttons in my flash movie which open screenshot html pages in external browser windows. the script works fine except when a popup window stays open. the rest of the buttons don't open/replace past that one popup. i tried changing the window name in the onRelease script to screen1, screen2, etc for each button, but that didn't work. does anybody have any suggestions or know of an alternate centered pop up code? thanks!!!
Centered Popup Window Works With Multiple Links?
Hi all,
I've been using this action http://www.kirupa.com/developer/mx/centered_popup.htm I tried to use two buttons with this action in the same flash document, but only one is working.
Is it possible to use this action for multiple buttons, each button linking to a different url?
Thx
[AS2]Kirupa Centered Popup Some Parameters Not Working Unde IE7 And FF 3
i´m trying to use a centered popup windows form here http://www.kirupa.com/developer/mx/centered_popup.htm but some parameter passed to the popu seems not to work. The popup still show the adress bar and the status bar under ie7 and firefox 3 . any ideas?? thanks in advance
im using flash 9 and as2
thanks in advance
Ale
Centered Popup Window Works With Multiple Links?
Hi all,
I've been using this action http://www.kirupa.com/developer/mx/centered_popup.htm I tried to use two buttons with this action in the same flash document, but only one is working.
Is it possible to use this action for multiple buttons, each button linking to a different url?
Thx
Kirupa Tutorial Problem - "Centered Popup"
I'm using Flash MX 2004 to open sized window when user clicks a button.
Kirupa Tutorial "Launching a centered popup window" was used and functions correctly with addition of "_global." to the "openWinCentre" command in the actions frame.
It functions correctly UNLESS the user does not close popup then trys to open another popup via a different button - THEN the problem occours... instead of new popup, the old popup reappears!
Any thoughts? Thanks in advance.
Kirupa tutorial used: www.kirupa.com/developer/mx/centered_popup.htm
Kirupa Tutorial Problem - "Centered Popup"
I'm using Flash MX 2004 to open sized window when user clicks a button.
Kirupa Tutorial "Launching a centered popup window" was used and functions correctly with addition of "_global." to the "openWinCentre" command in the actions frame.
It functions correctly UNLESS the user does not close popup then trys to open another popup via a different button - THEN the problem occours... instead of new popup, the old popup reappears!
Any thoughts? Thanks in advance.
Kirupa tutorial used: www.kirupa.com/developer/mx/centered_popup.htm
"centered Popup" Problem
hey. I used this Kirupa's great centered popup tutorial and it is fantastic.
Anyway, i have one problem using it and i don't know what would fix it.
I noticed that when i load my gallery (for example) swf file where all thumbnails are on the other level, this popup script doesn't work anymore.
U can also take a look my site so u may better understand:
Scemeart.tk
My levels looks something like on the next:
Main.swf (basic swf file loaded on the HTML page at the start)
Portfolio.swf
When clicked portfolio button on Main.swf
on (release) {
unloadMovieNum(1);
loadMovieNum("portfolio.swf", 1);
}
Portfolio_3d.swf
When clicked 3d gallery button on portfolio.swf
on (release) {
unloadMovieNum(1);
loadMovieNum("portfolio_3d.swf", 1);
}
Centered Xml Images / Centered OnResize
I am loading xml images, while also trying to center them onResize.
In this tutorial: http://www.kirupa.com/developer/mx20...otogallery.htm the images are all the same size, are being loaded into a static movieclip, and are aligned to the Top Left corner.
What I am trying to do is load different size images into a movie clip which stays centered on resize (i'm making a fullscreen flash site), while also loading each individual image centered within that clip (instead of the default top left).
Here is the code I am using for postioning the MC onResize:
Code:
mainInit();
function mainInit() {
// Set alignment and scale to allow onResize to work.
//Stage.align = "LT";
//Stage.scaleMode = "noScale";
// Create the title clip.
this.attachMovie("picture", "picture", 10);
// Keeps the title clip in place when the movie is resized.
picture.onResize = function() {
this._y = Stage.height-(picture._height/2);
this._x = Stage.width-(picture._width/2);
};
// Register titleClip to be notified when movie is resized.
Stage.addListener(picture);
// Set initial position of title clip.
this.picture.onResize();
}
I tested the following code (given to me by 'The Canadian' - thanks!) - within the xml onload function using that tutorial and it would not work with the first image, and seemed to only work properly 90% of the time:
Code:
picture._x = (Stage.width / 2) - (picture._width / 2);
picture._y = (Stage.height / 2) - (picture._height / 2);
...So, my question is does anyone know how to load center aligned variable size images, while also calling the movieclip to center onResize. I have tried everything I can think of and cannot get it working properly...
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!
|