ActionScript 2.0 :: Swf In A Pop Up Centered Window?
Oct 19, 2004is it possible create a pop up window with, as target, a swf file? How? What code I can use for the button that logs the swf pop up centered window?
View 8 Repliesis it possible create a pop up window with, as target, a swf file? How? What code I can use for the button that logs the swf pop up centered window?
View 8 RepliesI got a code here which I got from Kirupa which launches a new html window from flash: [code] However, the window is not centered. I know that there is another code introduced by Kirupa which launches a centred pop-up window, but I've already used this code for several files, and was wondering if I could change the code above so that it would open in the centre.
View 1 RepliesI have a scene of a website dedicated to some pictures, with 8 thumbnails that are linked to different web locations. I found the kirupa's tutorial Launching a Centered Pop-Up Window very suitable to what I want, but there is a problem. Only one link works. When I made the second link, an output error appear
(Scene=nerenovate, Layer=1, Frame=1: Line 1: Mouse events are permitted only for button instances
on (release) {
and the second link doesnt works at all. I think the problem is at the actions layer, but don't know how to solve it.
I have been using code I recently found on Kirupa called Displaying a Centered Pop-Up Window.I have this feature attached to 6 buttons that pop up windows to different URL's. The window gets stuck on one size and completely ignores my attemps to change to a different size... like it's locked into my first code of 600 x 300. I've tried re-uploading the FLV file, purging internet memory and refreshing but the window size just won't change. Here is the link where I found the [url]...
View 1 RepliesI'm using this code in Flash to popup a window:
on (release) {
var jscommand:String = "window.open('[URL]','win','height=550,width=830,toolbar =no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);");
}
The code is in 10 different buttons, each loading a different content for the same popup window. In Safari, if I click on the parent window and then click on another button, the popup window will come back on top of all other pages automatically, but it does not work with Firefox. In Firefox, the popup window will stay behind the parent window. I'd like for the popup window to be always centered on any screen.
I followed a tutorial here on kirupa on how to make a centered pup-up window. I kinda got it working. But when i test the movie out a blank page with the word "object" in the left corner appears behind the photo-gallery I have in the pop-up. When I upploaded it and tried if it would work "on the net" the button that brings up the pop-up does nothing.
View 5 Repliesis it possible create a pop up window with, as target, a swf file? How? What code I can use for the button that logs the swf pop up centered window?
View 8 RepliesWhat I would like is to keep my original movie size (800x600) but have it centered both horizontally and vertically in the browser window. If the user expands the browser window, I'd like it to dynamically center itself both horizontally and vertically in the new window size.There is one that fits what I need, but it doesn't work properly. [URL]The current result when I use this in the HTML file is that everything is enlarged past the window size (and I end up with scroll bars), and the flash item is not centered.
View 5 RepliesHow to make a centered pupup window. I kinda got it working. But when I test the movie out a blank page with the word "object" in the left corner appears behind the photo-gallery I have in the popup. When I upploaded it and tried if it would work "on the net" the button that brings up the popup does nothing.
View 5 RepliesI found a page that launches a full-screen browser window with a SWF in it. This SWF is non-resizable, and it is centered inside a browser window in such a manner, that both bottom AND TOP get cut off if the screen size is smaller than that of a flash file.Usually an embedded SWF would be tied to top left corner of the browser window in case of a smaller screen. In other words, top edge and left edge of a SWF file would always start at 0, 0 if the screen is too small. URL...Java script on the index page launches the full-screen browser window. But what makes the movie inside that window perfectly centered, even on a smaller (i.e. 800x600) screen, letting its BOTH bottom AND TOP edges be clipped? Is there some flash code for it? I couldn't find anything in the html code.
View 14 RepliesI used the tutorial to create a centered popup window as explained in the tutorial below http:[url].... , 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.
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?
I'm using the centered pop up window script from: [URL]. 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.
View 1 RepliesI have an mxml component "PresentationWindow" that is for brevity's sake, simply:
<fx:Script>
//... functions here will be explained below
</fx:Script>
<s:Window>
[Code].....
I found a great tutorial on launching a centered pop up window that kirupa posted and firefox won't execute it correctly or at all. I'm extremely frustrated because I need pop ups for my site to work and now it only functions in internet explorer or safari (mac). The url for the tutorial is [Url]
The way it works is that you have a frame action with the following function:
[Code]...
I'm trying to set up an expandable clip that resizes with the browser window with a main clip centered over the top. I know it has something to do with a stageListener.
View 1 Repliesi'm using the centered pop up window script from: [URL]. 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.
View 1 RepliesI found out how to load a SWF file on Flash using this code:
var myLoader:Loader = new Loader();addChild(myLoader);var url:URLRequest = new URLRequest("subnoAni.swf"); myLoader.load(url);
The problem is display on top left side.how I can center this on the screem?
I'd like to find out how to know whether an object is centered (its 0,0 coords are on the center point as happens by default to objects which are created on edit time) or left aligned (its 0,0 coords are located on its top left corner, as happens by default to objects which are created dynamically), so that I can apply different actions to it in order to zoom it in/out always from its center point.
View 5 RepliesI have swf files which have some drawing in its center. When I load these in a container, i can read width and height of the drawing.
I now want to draw a rectangle around this drawing.
The dimensions width and height are correct but the loaded drawing is not at 0,0.
How can I get the actual relative location of the loaded shape?
the new clip grom nelly feat justin really is wicked man! but ehm, my question is following: when i publish my site, i can't get it centered! i tried to change the publish settings, but it wouldn't make
View 3 RepliesI can't get my "dock" to center horizontally when i publish the movie for full browser flash(100%/no scale).It works fine when you test the movie. I don't get it. heres the code
Stage.scaleMode = 'noScale';
this.dockActions = function(label) {
switch(label) {
[code]....
I have a button on the stage that centers. I have a zoom slider on the stage too. That code is in red.The button moves to x=400, y=200. Once it moves to that point I would like zoom slider to zoom keeping that coordinate in the center of its zooming range. Do I need to add something to zoom code?Here is a view...Click on 39, bluish polygon on map. Then move zoom slider in and out. The 39 is not centered as it Ideally I would like zoom slider to zoom in and out of current centered position regardless of maps position. So that may be the better question.Could this call for onEnterFrame?
Code:
stopAllMCs = function(){
//map_mc.site39_mc.stop();
[code]......
How do I import a .swf so that the entire thing--all 50 frames of it in the case of the animation I'm importing--is centered on the Flash Stage? (I am using CS5). When I import it now it's automatically positioned in the upper left corner of the stage. And when I try to select all frames and align it to the center in the properties manager it will only center one frame of the 50-frame .swf at a time.
View 5 Repliesi recently did the ol' "make your pop-up centered on screen" tutorial : http:[url].... ,and i got it to work when i made a very very simple site consisting of 1 button. However...when i tried to use the same code in my own personal site, the pop up just won't load. Currently, i have a main timeline that loads an external swf into a clip called "emptyMC". i am applying the button code and the timeline code to my external swf...not my main timline.
View 1 RepliesI have created a full screen button when you click it full screens OK but when you click on ESC or click on regular screen again it gets chopped up and not centered....here is the link [url]..[code]...
View 2 Repliesi use on(release){this.loadMovie("myform.swf");}this script to run a another .swf file in .fla file. but its not coming in center why?
View 1 RepliesI have two labels (A and B) in a Flex VBox, with the horizontal alignment set to "center". I'd like to set A to be vertically centered (in the exact center of the container) and B to be underneath A (or on the bottom; either will do). What's the best way to rig this?
View 3 RepliesDoes anyone know the actionscript to keep the main SWF (which is 800x600) center of the screen in Fullscreen mode, while two other Mc's inside the SWF sit in the bottom left and right corners, like in this site...?
View 0 RepliesWhy when I view my flash files in the flash player or by using Control+Enter or F12, are they never centered so that I can see the whole page at once? Toggling, by first zooming in and then fighting to push and pull it the right way, is not only a pain and frustrating, but it also decreases the quality of the image. I know what it looks like when it's clear, but if I need to send it to someone else who doesn't have the program and only the flash player, they are not going to be able to view the image at it's best. Does the problem have to do with how the image is centered on the stage when I save, the file size, what?
View 2 RepliesUsing the centered pop-up tutorial method seems to only allow one pop up per url.. I need the user to open two, and they cannot replace each other because one is an audio player.
View 3 Replies