Actionscript 3 :: Adobe Air Save Window Size And Position
Mar 7, 2012
I'm trying to write a XML file to save the position and size of the app window in it. I'm running into this error: TypeError: Error #1010: A term is undefined and has no properties. MainTimeline/setupWindow()[code]
I need to know the available screen space in my current AIR app, but when I use stage.nativeWindow.width and stage.nativeWindow.height, I get the size of the window including the title bar. I'd like to know the "inner size", so excluding the title bar. How do I do this?
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 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]...
Im looking to make the flash file dynamic so that when someone changes the window size the flash file expands with it and some of the items contained move also.
i'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?
i have a list of pics, inside the swf file, what i want is when i press the button of any pic, to open new window "JavaScript" i think, but i want the window size the same size of the pic when viewed.
I want to put a movieclip with tools at the bottom of the window in the center with tools icons, it should have fixed posiiton so that user can scroll the main window having it always on prompt. I think I need the browser window size properties to do somenthing as this. Is there a way to get them?
When ever I try to save a cs4 file as CS5 the adobe flash cs5 will stop responding for no reasons
also, some times and only for some files when I save the cs4 file as uncompressed cs5 and then save that uncompressed cs5 to normal cs5 the conversion works and some times not.
ofcourse any of the cs5 files cannot be saved as cs3 or cs2 for no reasons..
p/s: microsoft office can be saved to any previous versions..
Is there any way that I can enable users save the position of a draggable box (for eg with cookies) and then press a button to reset the MC back to where it started off?
I want to make a save the position of a movieclip. I have a dragable movie clip, and I want to drag it and when I play the movie again, the movie clip is where I drag it for last.
In my Flex application I load an image into the Image control. After loading the image I can apply filters like color transform or grayscale etc and then I want to save the image with the filter applied. I am having trouble saving the image with the filters applied. With the following code the Image gets saved without the filters.However, if I use [code]...
I was wondering if it would be possible to write a file, not to the local system, but to a connected server or other network path. Would i have to use an external php interface for this or can i entrust this to the AIR framework?
I am making a desktop Flash application (AS3). It provides to users an opportunity to save and open their projects.I've used FileReference to open project file
var fileRef:FileReference = new FileReference(); var ourTypes:Array=new Array(new FileFilter("Map Editor type (*.xml)", "*.xml")); fileRef.browse(ourTypes);
and use file content by using fileRef.data.
var mainXml:XML; mainXml=new XML(fileRef.data);
User must have an opportunity to add some data in this file (not only read). How can I save new data in the same file?
I found the below snippet to save an image to a specific folder with Adobe AIR. How to modify it that the "Save As" OS-window comes up first? (So users can choose where to save the image on the hard-drive)
I need to figure out a way to allow users to save their galaxy in an outer space game that I'm building. At the most basic level, I need to write the randomly generated galaxy (which is an instance of a custom class) to disk and then read it from the disk later. I've not used Air's filestream abilities before and I'm having a bit of trouble. [code]...
Is it possible to open a save as windows from flash to download a jpeg? At the moment I can download a zip file using the following code, but when I change the extension to .jpg it opens up a new browser window showing the image. [code]...
I've got a video I'd like people to be able to navigate away from in my project, but resume where it left off if they come back to it. I would think I could do this by just saving its current position when they exit that frame as a variable and then using .seek() to go back to that spot if/when they return.
The only problem is that I can't find any script to capture the current position. I tried .time, but it gives me an error.
Here is an example of what I am looking to do. I want to figure out how to locate and save the original (LARGE) image shown here in the zoom box.[URL]..
I have a bit of code that I want to change to make it save to the application directory. (the directory the application is installed at). While currently the bit of code I have works it just brings up a browse window for me to pick where to save the file. I want it to default to the application directory though.