Flex :: Dragging The AIR Application Window Around The Screen?

Jul 31, 2011

I have an AIR application. It should be moved around the screen with the mouse. In order to achieve this I use the event: this.stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, true,-2);

It should be activated with the lowest priority compared to inserted elements for example those that should be scrolled, clicked, etc. I tried the solution shown below with the event priority set to -1 because there might happen 2 different events and my moving application event should be the last one to be serviced or shouldn't be serviced at all.

[Code]...

View 1 Replies


Similar Posts:


Actionscript 3 :: Resizing Container On Resize Of Application Window In Adobe Flex/AIR Application?

Mar 4, 2011

I am working on an Adobe AIR Application. The size on Application window is 800X600 and is contains border container and border container contains many controls. What I want is to if user re-sizes the application then that container should also be re-sized according to scale. i.e If user maximizes or minimizes the window then that border container should also be maximized or minimized respectively.

View 3 Replies

Flex :: Skinning AIR Application Window

Mar 31, 2010

I'm using mx:WindowedApplication, I'm wondering how I can skin the title bar and close/minimize button for the window. I can see application like Pandora One is using it and setting transparency. Any pointer to a doc?

View 1 Replies

Flex :: Create New Window In Air Application

Jul 27, 2011

how to create new window(same application duplicate) in Air Project.

View 1 Replies

Flex :: Fit Air Application To Full Screen?

Sep 2, 2009

I have an Air Application in Flex designed for 1280x800 which I would like to stretch to work full screen on a 1920x1200 monitor.

I've read this article: [URL] and tried it, but it only zooms the upper left corner (as mentioned in the article).

I work with a WindowedApplication (shown below) which holds a View (called MasterView) that contains all different lay-out elements.

My application (in brief) looks like this:

<mx:WindowedApplication
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"

[Code].....

View 4 Replies

Flex :: Set Window Size For Standalone Application?

Aug 1, 2009

I want to set the default window size for a flex application that runs with a standalone player.I set width and height to 100% to be able to get the ResizeEvent and being able to adjust the layout if the user changes the window size. But I'd like to also define a default size.

View 3 Replies

Flex :: Create Multi-window Web Application?

Oct 20, 2010

I am using flex4, I am seeking the answer to create multi window web application. My application is some sort of complex, currently I only know using PopupManager to create a new window.Should I create each MXML for each window that I want to instantiate? And then load the mxml and put it into the stage? Is there any tutorial describing that? I want the program modular and easy to manager, extend.

The current way I am using is use Group to group up all the controls inside a window, and if user want to open that window, I will display the group and bring it to the front. Is it the right way to do windowing? But I can't support drag.

I want to know if there is any native support for draggable window, or dialog?

Also till now all the controls are put inside a single mxml file, is it possible to put one window(or one group) to be a separate mxml file?

View 4 Replies

Flex :: Open Air Application By Window Hotkeys?

Mar 29, 2011

I am developing flex air application.I have to implement hot-key functionality in air application.

For example whenever user press any two keys like ctr and S keys the open flex air application.and whenever user press any two keys like ctr and q keys then close flex air application.

View 2 Replies

Full Screen View Of Flex Application

Oct 20, 2009

I want full screen view(through code,without pressing F11) of my flex application.

View 1 Replies

Actionscript 3 :: Record The Screen Application In Flex (Fms)?

Apr 27, 2011

I have an application with webcam, chat and more, and i need to record the screen aplication in server, for the client not have to upload the result. What I want is to know how to record the images shown in the Flex application (only inside the swf).

View 1 Replies

Flex :: Application Packaged In AIR Doesn't Show It's Window

Feb 1, 2010

I have a Flex application that builds and runs from Eclipse without any problems. I've created an Ant build based on the sample provided by Adobe and builds the application and packages it up into an AIR application. No errors occur during the build process and an AIR file is created.The problem is that when I install the AIR application and run it, there is no UI at all. The process is running because I can see it in Task Manager but I can't see the app window. I've commented out all of my initial code so just the first window should appear but still nothing.

View 1 Replies

Scale Flex Application When Screen Resolution Is Too Small?

Mar 18, 2011

I'm developing a Flex application that is designed for screen resolutions of 1280x1024 and more. In the rare case that a projector is used (which usually has a maximum of 1024x768 pixels) I'd like to scale down the application (currently I get lots of scrollbars and clipping).

I've already experimented with the application's properties scaleX and scaleY as well as stage.scaleMode. However, I couldn't quite figure out a way to

render the application without scaling when the application's width and height are larger than certain values use scaling when the width or height are smaller than certain values

View 5 Replies

Flex :: Sending POST Variables To A Browser Window From AIR Application

Jul 15, 2011

I'm building an AIR application. Basically, what I'm looking to do is using navigateToUrl() to open a browser window, assign it a "name" and then, send variables to that newly opened window using the POST method.

EDIT : I need the window to be visible, this is why I absolutely need to use the navigateToUrl() function

I already know that I CAN'T DO something like this, that the AIR application will send the variables using the GET method...

var vars:URLVariables = new URLVariables();
vars.myVar = "Hello my friend";
var req:URLRequest = new URLRequest("http://example.com/my-page.php");
req.method = "POST":

[Code].....

View 1 Replies

Flex Web Application - Prevent Framerate Drop When Window Is Invisible?

Nov 20, 2011

So there's been a new "feature" in the flash player since version 10.1, which reduces the player's framerate to 2 fps when the application window is out of view. This is good news for performance, but it can break some functionality, such as the Timer class.

I have an application which uses a Timer to display a countdown. Given the nature of the application, it is required for the Timer to complete its countdown even if the user is not there to see it. Imagine that you need to give the user only 10 seconds to perform a task. If the user minimizes the window halfway through the counter, they can take as much time as they want and still have 5 seconds left when they return to the window. This apparently can not be avoided with the newer flash players.

In Air applications there is the backgroundFrameRate property which can be set to prevent this behavior, but this is part of the WindowedApplication class, so it seems that it is not available in a web application. Does anyone know a way to keep a constant frame rate even when the window is not visible?

View 3 Replies

Professional :: Adobe Flex Application Scale To Fit The Users Screen?

Jul 3, 2010

I have been looking on google and couldn't find a answer. I have a application I created in adobe flex and I need it to scale to the users screen and fill the entire browser window no matter what.

View 1 Replies

Android :: Missing On-screen Keyboard For Flash/Flex Web Application?

Jan 5, 2011

I have an enterprise Flex web application, served up over https, that runs fine on Flash player 10.0 and beyond on a desktop computer/browser.

However, when I run it from my HTC Incredible with Android 2.2 the app loads fine, but there is no on-screen keyboard and so I cannot log in. I can see the blinking cursor inside the username and password text fields. I can switch between them. I can even hit the login button and see an authentication error!

View 6 Replies

Flex :: Open A Browser Window To View An Image Created By An Application?

Aug 26, 2009

I have a flex 3 application that creates an Image from a canvas which the user draws on. I use the ImageSnapshot class to create the image

var imageSnap:ImageSnapshot=ImageSnapshot.captureImage(myCanvas);
var imageByteArray:ByteArray=imageSnap.data as ByteArray;

I want the user to be able to print or save the image. I can use the following code to print the image but flex does not provide good control over printing across multiple pages

var printJob:FlexPrintJob=new FlexPrintJob();
printJob.start();
printJob.addObject(myCanvas, FlexPrintJobScaleType.SHOW_ALL);

I would like to display the image in a browser window so that the user could print it using the built in browser functionality or right click on the image and save it. Can this be done without requesting server side code to do it?

View 3 Replies

Flash :: Resize AIR App Window While Dragging?

Apr 2, 2010

So I've noticed Windows 7 has a disturbing tendency to prevent you from dragging the title bar of windows off the top of the screen. If you try - in this case, using an air app with a draggable area at the bottom of the window, allowing you to push the top of the window up past the screen - it just kicks the window back down far enough that the title bar is at the top of what it considers the 'visible area.'

One solution would be to resize the app window as it moves, so that the title bar is always where windows wants it. How would you resize the window while you're dragging it, though? Would you do it like this?

dragHitArea.addEventListener(MouseEvent.MOUSE_DOWN, function(e:MouseEvent):void{
stage.nativeWindow.height += 50;
stage.nativeWindow.startMove();
stage.nativeWindow.height -= 50;
});

see what's going on there? When I click, I'm doing startMove(), which is hooking into the OS' function for dragging a window around. I'm also increasing and decreasing the height of the window by 50 pixels - which should give me no net increase, right?

Wrong - the first '.height +=' gets executed, but the '.height -=' after the .startMove() never runs.

View 3 Replies

Actionscript :: Make A Video Full Screen In Flex Desktop Application?

Aug 18, 2011

I am playing a flv video using the videoplayer class of flex. (all the properties of it are being set at runtime)I want to make the video fullscreen without clicking on the fullscreen button i.e. through programming.

View 1 Replies

ActionScript 3.0 :: Dragging The Entire Screen?

Feb 22, 2009

I'm trying to get objects to drag and drop. Instead of dragging just the circle, it drags the entire screen. I can get it to work if I use "this.circle.startDrag()" but I want to be able to use the startMove and stopMove functions on different children, text boxes and other objects generically. Here's the code:

circle.addEventListener(MouseEvent.MOUSE_DOWN, startMove);
circle.addEventListener(MouseEvent.MOUSE_UP, stopMove);
function startMove(event:MouseEvent):void {

[code].....

View 2 Replies

Actionscript :: Dragging From Desktop To Air Application?

Jan 3, 2012

I have been looking all over the internet and I can't find any good (or recent) example from a air application where an image (for example) is dragged from the desktop in the application.

The problem is that flashbuilder gives errors on:

import flash.desktop.DragActions;
import flash.desktop.TransferableData;
import flash.desktop.TransferableFormats;
import flash.desktop.DragManager;

(and this are only the errors at the import section)I know this last one can be replaced by mx.managers.DragManager, but this is another class since than I get errors on "DragManager.acceptDragDrop" for example...

View 1 Replies

ActionScript 3.0 :: Selecting Text When AIR Window Dragging Is Enabled?

Jul 28, 2011

I made an AIR app and enabled it so the user can move it around the desktop where they want. One problem is on a page of textfields, if the user tries to select text (click, drag cursor to select the text) the app drags instead.

Any easy solutions other than having to set up listeners for every textfield and "interrupting" dragging?? (AIR 2.7)

View 1 Replies

Flex :: Indicating That A Window Is "active" Inside A Regular Flex (not AIR) Application?

Aug 25, 2011

I have an Flex 4 application (not AIR) which has some floating windows that act essentially as modeless dialogs.Right now, if two of these are open at once they function as siblings which are both active and whose controls are enabled for user interaction.I now need to maintain some notion of which one is "active" in the application. I don't want to /disable/ the non-active ones so as to blur them or prevent input on their controls.

I basically want to replicate basic OS window management: when you click or type into a control in one window it comes to the front and its title bar looks "active" and the others then look "inactive". Just like with a bunch of explorers in Windows.

View 2 Replies

Flex :: Take "print Screen" From Your FLEX Application And Save It To Hard Drive?

Apr 12, 2010

So I have such code for my application

[code]...

I want to save Its something like "Print Screen" to users hard drive on button click.How to du such thing?

View 1 Replies

Flex :: Adobe Air: Drag Application Crash - Error #3200: Cannot Perform Operation On Closed Window

Nov 23, 2009

Now I set dragEnabled="true", dropEnabled="true" and dragMoveEnabled="true" to archive the ability to reorder my Items via Drag and Drop. But as soon as I start to Drag an Item the whole Application crashes with:

[Code]....

View 1 Replies

ActionScript 3.0 :: Drag And Drop - If The User Drags The Image Off The Screen, That It Stops Dragging?

Sep 6, 2009

I have run into a drag and drop issue .I have an item that I would like to drag and drop. Seems simple enough, but I also want to make it that if the user drags the image off the screen, that it stops dragging and returns the image to the center of the screen. What happens now is that it continues dragging and sticks to the cursor if you release outside of the viewable area. The original piece has a lot of other things going on, so I ve created a simple piece with the AS in the timeline that shows only this particular issue.

Code:
var mrT:MC_mrT = new MC_mrT;
addChild(mrT);
mrT.x = stage.stageWidth*.5;[code].............

View 4 Replies

Flex :: Preview A PDF Inside AIR Application Inside Transparent And Custom Window?

Sep 20, 2011

I have a transparent windows (skinnable). Inside, I'd like to preview some pdf file. BUT, in the only a black screen appear

View 3 Replies

Flex :: Make Flex Fit The Users' Screen.. No Matter What Screen Size?

Jul 9, 2010

Making an Flex App. Just wondering if anyone has created something that fits automatically to the users' screen size and how I go about doing this? One of the principle things is that I need an background image, which is obviously going to have to scale / resize to match the users screen.

View 1 Replies

Bottom Of Pop-Up Window Off Screen?

Apr 10, 2010

When I open the Actions window, the bottom is off screen so I can't re-size it. how to get the whole window on the screen?

View 2 Replies

Flash Window Disappears Off-screen?

May 3, 2009

When I open Flash CS3 to create something,if the Flash window is not maximized, it disappears off the right side of the screen(s).If I maximize the window using the task bar, it's fine,but it covers up the other resources I need to use. I'm using Vista Business and Flash CS3 with two screens, the extended one on the right.

Right-click the Flash button on the taskbar and select Move.What happened: When I use the arrow keys, nothing appears to happen.When I move the mouse, the arrow pointer comes in from the extreme right side of the screen.When I hold the mouse button down and drag, a four-headed arrow appears at the extreme right, but the Flash window does not appear .Reboot. What happened: Flash is still off the screen unless maximized.

What happened: I found a registry hack that I tried (next item) but it didn't work.Use Regedit to modify settings (after exiting Flash): HKEY_CURRENT_USER > Software > Adobe > Flash 9 > Settings > WindowThe current value is 12639 960 13919 1872.I assume these are X and Y for upper right position and pixel length and width, but I don't know in what order.I tried a couple of values, including 0 0 0 0 and 100 100 100 100.I tried rebooting, verifying that the Window values were the same as those I had set, and ran Flash. What happened: Flash is still off the screen unless maximized. Registry values return to being huge numbers.Repair or uninstall+reinstall Flash Using Control Panel > Programs > Uninstall a program. What happened:Although several Adobe products are listed, Flash CS3 is not listed, nor are any of the other CS3 suite.Using Start > All Programs > Adobe > Uninstall. The Adobe group doesn't have an Unistall or Install program, not can I find one in C:Program FilesAdobe*What I'm using:

Dell Precision M90 with 4 Gb RAMNvidia Quadro FX 1500M, ForceWare version 156.69 with 256 Mb VRAM + 1406 Mb shared RAM available at the momentVista Business with auto-updatesAt home I use an auxiliary 1280x1024 monitor; at work I use an auximiary 1680x1050 monitor; the problem occurred when I moved from home to work.

View 17 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved