ActionScript 3.0 :: Fixed Size And Location Of A Popup Window
Apr 29, 2009How do you create a fixed size and location of a popup window in actionscript 3.0. I know how in 2.0 but 3.0 is much different.
View 1 RepliesHow do you create a fixed size and location of a popup window in actionscript 3.0. I know how in 2.0 but 3.0 is much different.
View 1 RepliesHow can I create a fixed size popup window from Flash? When click on the image, it pops up a small window without those browser tool bars.
View 1 RepliesIn my game people shoot at 4 different moving images and get points. Simple right? Well one of the images is a question mark that people can shoot and when they do, I need flash to pause the game timer, pop up a new window, display the multiple choice question in the window and wait for the user to answer. I would also like to be able to customize the size and location of the pop up window!
Then if the question is answered correctly close window award 10 points and continue the game. If the question is answered incorrectly, say wrong and then display the end game results screen. Right now I have it to where it opens a pop up in a web browser and askes the question there. The question is randomly chosen from a file called random.html. But I do not want the game to operate that way. I want the game to open the pop up within flash.
I can't seem to find any info on how to do this. Here is an example of what I am trying to do: [URL]
View 1 RepliesI have a Flex 4 app, which is in a full-window mode now.
Is it possible to place window of my Flex app just in the special div with fixed size (for example 400x400px)?
Im trying to make a button to open a link, in a new window, at a fixed size and without toolbars etc.
Ive searched these forums and looked for variuos guides, but to no avail. I cant get them to work =(. I found a guide(which I cant find again o0) on Kirupa but it didnt work either.
heres what I came up with:
code1:
Code:
on (release) {
getURL("http://img519.imageshack.us/img519/5747/screenie8ya.jpg", "_blank");
[Code]....
how to get these to work? or a guide on one that works? or simply a script that will work?
Is there any kind of a standard for the location (padding) and size of the usual "ok" and "cancel" buttons on a Flex pop-up dialog box? In another stackoverflow question it was suggested that the approach be host operating system dependent (e.g. Windows vs Mac vs Linux).
View 1 RepliesI am having trouble finding a post which can tell me how to limit the size of a popup window. I have a swf with buttons in it which I need to open the popups in windows sized width=706,height=500.[code]...
View 3 Repliesbuild a links page on my flash site to my friend's sites. This seems like it would be easy, but I can't seem to figure it out...Basically the problem is with the popup window size. I don't want their website browser window to cover my site, so I need some sort of script within my flash site to control how big the window size of their site pops up.I found this line of code in my searches, but it doesn't do anything when the button is clicked:
on (release) {
getURL("javascript:openwin('http://www.technofisch.com', 600, 400)");
}
So I'm stuck. I'm also having the same problem with a PDF file. I have my resume as a PDF the pops up when the link is clicked, but I don't know how to control how big this window is, as it is a direct link to the file and no html.
I was wondering if it's possible that a popup browser window auto resizes to the size of a .swf or a image?
View 2 RepliesI have this ActionScript: function openNewCart(evt:Event):void { navigateToURL(new URLRequest("http://www.3dcart.com"),"_blank");} OpenCartPage.addEventListener("click",openNewCart);
Is there a way that I can have it open a 5 pixel window that automatically closes after it loads? Also, is there a way to specify within the actionscript where on the screen I want the new window to open?
I'm newer to flash. What I'd like to do is have it add a product to the shopping cart and close back down.If I can't do it straight from flash, I'm sure I can have the flash page open up an html page which redirects to the add to cart page and automatically closes, but obviously a much bigger pain in the butt, and it will only work anyway if I can specify in the actionscript for it to open a 5 x 5 pixel window.
I can only do so much with flash. I am having issues with linking to a video. Here is my question: please refer to [URL] and click on the video link. I have 3 videos that I want people to view when they click on the links:
- SI TU T'EN VAS (2001)
- GWADA (2004)
- JODIA (2008)
I need the links to be able to open a popup window in flash with 320X240 in size.
1- I imported each video in flash (separatly) using the 30rates/frames, progressive dowload from webserver. (the usual).
2- I allready uploaded the videos (.swf and .flv) on the server (godaddy.com)
3- In my main file, I created a button for each one of the links above using the invisible button with their own instances. they are each on a different layer.
I want to create a panel (or any other component) inside a component that has a 5 pixel border on all sides, but scales fully when the window is resized. I know I can set width to "100%" to make it resize, but that gives me no borders. If I put it to "95%",I have borders, but they scale annoyingly. Also, that only works for borders on the right or lower bounds, and not to the left or upper sides.Is there a convenient way to do this without having to write tons of resize-code (in which case I will not bother and just accept bad rescale behaviour, as it is for a private pet project).
EDIT: I know that I can just overwrite the display handling and set the positions manually every frame. I wondered if there is a cheap way to do it in the mxml-structure, along these lines:
<mx:Panel>
width="100%" height="100%"
</mx:Panel>
Coming from C++ and Java, I am intrigued by the option of setting something to "95%" and let the library work out the details, instead of having to write many lines of code, just so my text-area always keeps a 5 pixel distance from the border, but scales with window width.If there is no easier way to do it than figuring out pixel sizes by hand and setting the coordinates.
I wasn't sure where to put this post. I hope this is the right place.
This is what I want to do:
On screen resolutions up to 800x600, I want my Flash movie to resize to 100% width and height of the browser window. On screen resolutions higher than 800x600, I want the Flash movie to be a fixed size (say 800px x 600px exactly).
I wasn't sure where to put this post. I hope this is the right place.
This is what I want to do: On screen resolutions up to 800x600, I want my Flash movie to resize to 100% width and height of the browser window. On screen resolutions higher than 800x600, I want the Flash movie to be a fixed size (say 800px x 600px exactly).
Is this possible, and if so, how?
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 need to close the popup(adobe flex), non modal window if I click on the parent page of the popup. I have to do the out of focus check and then do some validation before close the popup. So what I was thinking that is there any inbuilt focus check event or do we need to create custom event for that?
View 1 RepliesI'm trying to place a popup window (TitleWindow) in the middle of the main application window. how do i set the coordinates of my popup window to be of the main application window? i tried the localToGlobal function but with no luck, I just can't get the main window x and y.
View 3 RepliesHow to access main window's variable from popup window.
I create a popup window in the main window, and pass variable "content" to this popup window as following [code]...
Go to [URL]. Click on "The Photos". It will pop up in a fullscreen window. Try resizing the window and you'll notice that the background is vector and it looks like the scale mode is set to "showAll". BUT, the photos look like they have a separate scale mode set to "noScale". They don't resize.
View 2 RepliesI have converted some PowerPoints into swf files. I want to insert/link the files into the main FLA file. But when I do it the way i normally do it, it puts the PowerPoints swf at full size 1024 x 768. Is there a way of fixing the visual size (800x 600) of the swf within the FLA.
View 3 RepliesHow can i do image size fixed on this carousel help with as 2.0 ? [URL]
View 5 Repliesfollowing situation: a button with AS :
[Code]...
this popup opens in the SAME window and not ina new window. What can I do to let it open in a new window and given the same properties to this new window as above: toolbar=No,location=No,scrollbars=No,status=No etc.... a geturl opens it in a new window but does not give toolbar=No,location=No,scrollbars=No,status=No etc.... properties to the window
I was wondering if there are anyways to get the fixed size swf file when I build my AS3 only project in Flex environment. I can't use scaleMode="noScale" since my swf is very small. I don't want it expand it to full browser winder either. Are there anyways to do it?
View 2 RepliesI have the following setup:
<mx:Canvas>
<mx:ViewStack width="800" height="600">
<mx:Canvas width="100%" height="100%">
[code].....
This is my first time skinning a scrollbar and I ran into a issue. The button I click and hold to scroll up and down changes in size depending on how much content there is. Is there a way to keep the button from changing in size?
More Details:
For example if my scrollbar button was a smiley face and I didn't want it to stretch. I am changing my scrollbars globally by creating an instance of my custom scrollbar and applying it via the style manager in my code.
[Code]....
I've tried all the tutorials on kirupa, checked out adobe live docs, forums all the works and i've tried 20 different methods to open a browser window with a fixed width and height. i'm using Flash 8 and am wondering if there is a new method for opening a browser window with ixed params. it seems every tutorial i find is for flash 5 or earlier and none of them work. and i've tried opening them both in firefox and ie. the standard getURL _blank works fine of course...i just need to adjust the window size to scale to an image.
View 5 RepliesI have a SWF stage that needs to be resizable, as it loads content dynamically which may have different dimensions. Yet, I need an object (namely a 'Close' button) to keep its absolute size no matter how big or small the stage gets. I also need it to keep its relative position, let's say always at the top right corner of the resized Stage.
View 3 RepliesI need to do this conversion so that I can determin the drag drop colour a puck lands on.
possibly involving:
ImageSnapshot
BitmapData
This would be in Flex 4
Is there anyway to do this? By default it automatically re-sizes according the the content in the target dynamic text field. I'd like to have it's size fixed, but I don't see any obvious way to do that in the documentation.
View 2 Replies