ActionScript 2.0 :: Adjust Popup Window To Image Size?
Oct 1, 2004I 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 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 am trying to build a flash that auto-adjust its size to the browser window size, while leaving the content of the flash itself top-centered in the screen.I have found this solution [URL].. on How to keep centered stuff in this exact case so i am pretty confident i will be able to adjust that script to do what i want.
Now my problem is that if i put my content inside the movie-clip (centerrectangle) with all the animation require, link and other stuff, the movieclip (center rectangle ) never have the exact same center, thus making the script go wild trying to always adjust the location to the variable size of the movie clip.
[Code]...
I am trying to build a flash that auto-adjust its size to the browser window size, while leaving the content of the flash itself top-centered in the screen.
I have found this solution [url].. on How to keep centered stuff in this exact case so i am pretty confident i will be able to adjust that script to do what i want.
Now my problem is that if i put my content inside the movie-clip (centerrectangle) with all the animation require, link and other stuff, the movieclip (center rectangle ) never have the exact same center, thus making the script go wild trying to always adjust the location to the variable size of the movie clip...
I need it to stay exactly at the same position whatever the size of the movie-clip. [code]...
I have a website and it is set to 100% of the browser window. Everything in the browser is left aligned. I have a script that when u has an event listener on the RESIZE so that everything will be centered when u adjust the window. What my problem is that right when the page loads the swf is left aligned. I want the stuff to be already centered but the only way to do that is to adjust the browser window. Heres my site: My Example Watch that when it loads its all to the left. Resize the browser and everything will snap to the middle.
View 4 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.
How 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 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'm trying to create an image gallery with a similar functionality as the Impulse screenshots. I can't post links apparently, so just check a game page and click one screenshot to see what I mean. Basically, when you click an image thumbnail, a popup window appears and resizes to accommodate the picture. Clicking outside the pop-up closes it. There's are also buttons to go to the previous/next image in the thumbnail sequence.My guess is that this pop-up window would have to be an individual swfThe question is how do you open it and make it close when it loses focus. I'm not sure if this is possible with AS3 alone or not, as I failed to find a tutorial on the subject.
cc
I have dynamic text in my movie that when clicked opens different image jpgs in _blank window. I would like to be able to have the blank window open at a set size so that when the link is clicked it doesn't open the image in a full window.Code:<a href='http://" + currAttribs.link + "' target='_blank'>Keep in mind that I'm not calling actual html pages but rather jpg files to open in _blank pages.
View 4 Replieshow do you make an image pop up in a window javascript style, from flash?
i have a variable in flash, equal to something like "images/image.jpg", and I want to make a button so when you click it it opens up a popup window thats a certain size, without menubars/scrollbars etc, to display that image, like a javascript on your standard HTML.
I read that flash has a javascript API, so there must be a way to do it huh? Is it getURL stuff, maybe with a POST of my variable?
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 RepliesDoes anyone know how they are scaling these images to the size of the browser window but keeping all of the graphics the same scale?
Check out the portfolio section of this site to see what I mean.
[URL]
i am trying to scale a background image to the size of the browser window. heres my code. for some reason it does not fill the entire stage, any ideas?
Stage.scaleMode = "noScale";
Stage.align = "TL";
background_mc._width =Stage.width
background_mc._height =Stage.height
[code]....
I am trying to scale a background image to the size of the browser window. For some reason it does not fill the entire stage?
Stage.scaleMode = "noScale";
Stage.align = "TL";
background_mc._width =Stage.width
background_mc._height =Stage.height
background_mc.onResize = function() {
background_mc._width = Stage.width
background_mc._height = Stage.height
} Stage.addListener(background_mc);
I'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 am trying to develop a Image Gallery in which I have images of different dimension I don't able to understand how to adjust the size of images using actionscript.
View 3 RepliesHow do I find the desktop resolution of the user viewing my movie so I can adjust the size of the stage accordingly?
View 7 RepliesI know how to adjust the whole text box size using auto size, but I haven't found an easy answer for merely adjusting the size of the font.
The Textbox size won't change, but sometimes a word will be long and other times short. Now I have a small font that looks silly when the word is small and doesn't fit when the word is big.
how can I adjust the font size using createTextField? I've tried using setTextFormat but it's still not working. code below:
fullPreloader.onLoadStart = function(target) {
target.createTextField("my_txt",fullImage_mc.getNe xtHighestDepth(),-200,0,200,20);
};
fullPreloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
[Code]...
I want to build a fluid layout for a flashbased web shop that adjusts the amount of columns in a table depending on how big the browser window is.
For example: When a surfer enters my site he has the browser window maximized. He can see three boxes with product thumbnails on one row. But if he drags the browser window and making it narrower the product thumbnails on the right edge jumps down one row. The flash movie doesn�t shrink it just adjusts it self.
following 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 used flash 8 to make a dropdown menu for my webpage.
This menu is an horizontal bar which expands everytime you rollover one of its buttons.
My problem is, when i import it to my webpage (in dreamweaver) i get a huge square with the menu and the background (white colored) which represents my hole document.
Is there anyway to fit the menu size so that instead of a huge square I get only a small bar, but the vertical panels still show up when rolled over?
how can i adjust the stage size to user resolution?
View 3 RepliesI have finally found a scroll bar that I really like the look of, made by Oringe (thanks knvb1123, thread: http:[url].... It can be downloaded here: http:[url].....
This blur scroller is set to adapt to the size of the main window, as far as I understand. I would like to know if there is a way to put the scrolling area to a fixed size rather than using the height of the main window to scroll? I basically want to use this scrollbar in a fixed size area of say 300 width and 400 height.