ActionScript 2.0 :: Resizing Browser Window Effect
Feb 16, 2005the Samsung site was posted over in the kool sites section: [URL]
View 2 Repliesthe Samsung site was posted over in the kool sites section: [URL]
View 2 RepliesI have an SWF file embedded in a larger html page.There's a fair bit of communication between javascript and actionscript so I'm using both ExternalInterface.call and ExternalInterface.addCallback in the actionscript code.Communication is all fine, except for one (common) situation on IE.If the user clicks within the SWF file and then resizes the browser window, calls from javascript to actionscript fail to work.Actionscript can still call up to javascript, but no return.If the user clicks inside the SWF, then somewhere else on the page, then resizes the window, nothing breaks.[code]All of those attributes are the callback function names.This happens with both IE7 and IE8, but FF is fine.
View 1 RepliesI'm working on a kind of coverflow layout and I'm using an XML file to house my links and information about those links. in my ActionScript, I'm using getURL to point to the link the user clicks and open the link in a new window using the following script:
getURL(infostruc[current - 1].artLink, "_blank");
I need to have the new window open up to a specific size (1014x714), but I'm not sure how to write the AS for this kind of action since I'm calling the link from an external file.
I need to do some updates to components after a user has resized the browser window. Is there a good solution to determine when a user has completed resizing? I wasn't able to find any flex events that would cover this case.
View 1 RepliesSamsung site was posted over in the kool sites section[url]...
View 2 RepliesGo 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 a window, the window I programmatically change the size of the window depending on the current view it is displaying. The user cannot resize the window them self, but they can maximize the window.
The problem is if the view is changed while it is maximized, the maximized window size changes, I do not want this, I want it to only change the size of the non-maximized window.
My first thought is to just check if the window is maximized, and if so do not resize it...but the issue there is then when it is restored at a different view then when it was maximized it will not restore to the new size it should be.
i have a flash site that links to PDF's with the navigateToURL function which works etc But now i would like Link to rather open up a download window instead of just a new browser window?
View 3 RepliesI have a standalone Flash projector running off CD. Currently, I use
getURL("http:url....);
to open the page on default browser. Only problem is the browser window is opening at the size it was last used. I like to see it opens full screen.
The title essentially is the question, how do I open the .swf without the browser's control bar junk? and maximize the window?
View 2 Repliesi've made a flash movie in res 600 * 300, now i want to keep this res don't want the user to be able to expand the browser window or change the res or anything how do i do this?
View 9 RepliesI would like to know how I can add maximize and restore functionalities to a Flex TitleWindow. I used something like this <s:Button label="maximize panel" click="Panel1.height = 300;Panel1.width = 300"/> where Panel1 is the id for TitleWindow but there was not effect for it.
how to add buttons on the titlewindow title( so that I can include buttons for maximize and minimize).
Trying to detect a browser close event and send some data to the database when the user closes the browser window...but can't seem to get it to work.[code]
View 6 RepliesI have looked around for this and haven't found a way that clearly explains how to do this. More often than not the button will close the browser window in one but not another browser.
Is the a simple way of closing a browser window in all types of browser ( Or mainly Firefox, IE and safari on both Mac and PC ) with actionscript?
often than not the button will close the browser window in one but not another browser.Is the a simple way of closing a browser window in all types of browser( Or mainly Firefox, IE and safari on both Mac and PC ) with actionscript?
View 5 Repliesi saw in some sites that a window pop-up in smaller size which contains preloader and resize to larger size(main content) when it loaded,how to do that?
View 1 Repliesi saw in some sites that a window pop-up in smaller size which contains preloader and resize to larger size(main content) when it loaded,how to do that?
View 1 RepliesI have a stage of 600x400 and in the publish settings I chose this same width and height (with pixels dimension, and scale: No Scale).And when I load the swf in a browser:
[URL]
It resizes the swf stage size.(I know this because I have a value which is positioned according to the stage width/height, and also because if I choose an opaque windowless I can see that it is bigger than I want it to be)Am I loading the .swf wrong?
I want to make a pageturn effect on a dynamic textfield
Here is my test program :
import com.greensock.*;
var mytext : TextField = new TextField() ; mytext.wordWrap = true ; mytext.multiline = true; mytext.selectable = false;
[Code]....
How do I manage to force dynamic textfield create with actionscript to act like a text created with textool
Ive got a bg image in my flash movie and I want it to resize it 100% to the window when the movie resizes in the browser, but i dont want anything else in the movie changing in size, just the bg..
View 1 RepliesWhen I resize the desktop flash player, I can see artifacts of my flash movie that were outside of my canvas. How can I setup my flash movie with actionscript so that only black is show outside the canvas if the user resizes it?
View 6 Repliesis there a way to tell flash in a button event to open a a html site (php-cgi) with a small size, lets say like 300px x 200pxThe html.site/php-cgi) id like to get openned and resized at 300x200 looks like this:
__________
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
[code].....
I saw this site in another post and I've noticed this becomming the trend in photo galleries. [URL]When you drill down and open up a photo, the photo resizes with the browser while the rest of the movie elements expand without resizing. I'd love to know how this is done.
On a side note, it used to be impossible to resize a photo cleanly in Flash. Is something being done here or is it just improvements in Flash players?
I want to know how it's made the effect of smooth transition when the window is resized. I could make MCs get position through AS, scripting:
Actionscript Code:
mc._x;mc._y;mc._width;mc._height;
But I want to know how can I make it moving smoothly when the window is resized.
Example: [URL]
I've been playing around with a code that keeps a specific object on the center of the movie when the window is re-sized. It works well but here is the issue: I don't want the object to be centered at the very center of the window but on a specific x,y coordinate. How can I modify this code to assign an x,y coordinate so that the object will be "centered" in reference to that coordinate?
Next, is the code. "centerlogo" is the object to be centered and "backgroundImage" is as the name implies the background. I know that what i ask has to do with the part under the "//center content" comment
function init()
{
stage.align=StageAlign.TOP_LEFT;
stage.scaleMode=StageScaleMode.NO_SCALE;
[Code]....
my application launches with the stage size of 1000 x 500, 2:1 aspect ratio. the native window has system chrome, which will always be a little taller by a few pixels.how is it possible to only permit a native window to resize proportionately in order to always maintain the 2:1 aspect ratio of the stage?[code]
View 1 RepliesI have a window witch is resizing on creationcomplete phase according user preference. This part woks well. But inside this window a s:Group (maincontainer2) exists and even if width and height is in percent, the s:Group size is bigger that the new window measure.
<?xml version="1.0" encoding="utf-8"?>
<windowSkin:wCustomWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[Code].....
There is an fscommand function to turn the flash movie into full screen. But is there a way to control where exactly the flash window opens on the desktop (and whether it is maximized - note. NOT full screened).
My client is complaining that whenever he opens the flash movie (exe) it is shifted to the right such that the X window close button is not visible. Obviously he can just drag the window to the left, but you know, you gotta always make your client happy. Is this possible without using an external application like zinc?
i have this problem where I want something (in this case a bitmap) to be positioned in the top right border of my window. But at the same time, I want to allow resizing the window and I want my bitmap to stay in the corner (i.e. move around with the border). So in my document class, I wrote an EventListener to do the job:
Code:
private function resizeHandler(e:Event) {
bg_img.x = stage.stageWidth - bg_img.width;
bg_img.y = 0;
}
But that doesn't work too well: When I make the window wider, the image moves to far to the right (I think twice as fast as it should), so when I make the window wide enough, the image will eventually be outside of the window. On the other hand, when I make the window higher, the image moves down (I think half as fast as the bottom-border). Through some traces, I found out, that when I resize and don't try to move the image, my MovieClip containing the image stays exactly the same size (even though the stage expands) and that when I try to move the image, the MovieClip gets roughly as wide as the stage.
I have this snippet of code that allows the content of my stage to move along with the resizing of my browser window.It seems to work fine for the x coordinate, but when I resize the browser window vertically the movieclip doesn't move with the browser window, and eventually disappears.Why is this working horizontally and not vertically?[code]
View 1 Replies