Flex :: Move Chromeless Windowedapplication On Drag?
Sep 1, 2011
I have implemented a chromeless windowedapplication in flex 4. But doing so i noticed that all the maximize, minimize and even the ability to drag the window around is gone. I need the ability to drag the window around. I have done a lot of googling and have been unable to come up with anything.
View 1 Replies
Similar Posts:
Sep 12, 2011
I have a tree (in Flex 3.5), and I want to use the drag & drop functionality, but I want to let the user only move nodes, not copy them. I tried listening for the dragOver event and change the drag event's action property if it indicates a copy operation, and also listening for the keyDown event and changing the feedback using the DragManager if the pressed key was ctrl, but to no avail.
View 2 Replies
Aug 14, 2009
OK I have an AdvancedDataGrid. The data I feed it is XML that looks like this:
<stat associate="Sam Smith" date="07/08/09" customer="James Frank"/>
<stat associate="John Doe" date="09-07-08" customer ="Amanda Jones"/>
<stat associate="John Doe" date="09-07-09" customer ="Henry Scott"/>
But I am grouping by associate so it ends up looking like a tree like this:
[Code]...
View 1 Replies
Jul 9, 2010
for some reason this flex 4 code gives me an error but I can't figure out why. In my WindowedApplication I have:[code]That seems like a bogus error since I can assign pref.bounds to rect without an error. I don't know why this isn't working. It works under flex 3 compatibility mode but that also breaks a lot of my spark components so I can't use it.
View 1 Replies
May 20, 2010
I'm developing an AIR application, where i need to access WindowedApplication's function from the package class. This is the Main application (Partial code)
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="initApplication()">
<mx:Script>[code].............
View 2 Replies
Jan 14, 2011
In order to set a background image for my Desktop Flex application, I created a custom skin class, setting the skinClass property to my custom MXML skin. The host component is SkinnableContainer. I use a bitmap image for the custom MXML skin. Everything works fine, except that it's drawing over all my components. How do I get the skin to draw in the background? Should I move the Bitmap markup to somewhere else in my skin file?
View 1 Replies
Mar 25, 2011
How do I remove TitleBar from Spark WindowedApplication?
View 1 Replies
Sep 3, 2011
I am trying to create an AIR app that you can maximize and when you maximize all the components contained in the windowedApplication are scaled with the containing windowedApplication.
At the moment when you maximize the window all the components just stay the same size.
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:ATE="http://ns.adobe.com/ate/2009"
xmlns:ai="http://ns.adobe.com/ai/2009"
[Code].....
View 1 Replies
Nov 12, 2011
I'm using Flex 4.5, and I have imported a custom class I wrote into the main MXML file.
Inside the class file, I want to be able to create a TitleWindow using the PopUpManager like this:
package classes {
import components.*; // My custom components
import mx.managers.PopUpManager;
[Code]....
This is because this isn't pointing at WindowedApplication. How do I make the first parameter in .createPopUp() point to the WindowedApplication?
View 2 Replies
Apr 2, 2010
In my application,showFlexChrome is set as true in WindowedApplication,and the *-app.xml is setted as follows
<systemChrome>none</systemChrome>
<transparent>true</transparent>
<visible>true</visible>
I know how to make the top border rounded corners with follow codes:
borderStyle="solid" cornerRadius="8"
But I cannot find a method to make the bottom border of my app window rounded-corner.
View 1 Replies
May 14, 2011
It's interesting. If you set stage.scaleMode = StageScaleMode.EXACT_FIT; all components are resized when you resize the window, BUT there is a grey stripe at the bottom of the window that is not.By the way, is it possible to take that grey line/stripe off from the window?Try to resize this window and you'll see what happens:
<?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:local="*"
[code]....
There is also a timer just for checking if the Stage's size is the same as the application window's one.
View 2 Replies
Jul 5, 2011
I have quite some experience with Flex and I am just starting to write my first AIR application and would like to use as much Spark as possible here. So I started withe a simple Hello World application:
[Code].....
Unfortunately this simple example shows no child components and even none of the initialize handlers is triggered. However as soon as I change the root tag to mx:WindowedApplication everything behaves as expected: The label and the button are shown and the console shows the output of the two trace statements.
View 1 Replies
Oct 15, 2009
We'd like to have an app autorun when our clients put in our info CD. Is it possible to do this using Adobe AIR... We were thinking of using the Flash Projector cause it compiles to an .exe which is easily launched, but there's no way to get rid of the ugly window chrome is there?
View 3 Replies
Jul 6, 2010
I'm trying to use the Youtube Chromeless Player (the new AS3 version) in a Flex 4-based project. I'm using the examples provided by Google, but I'm not having any luck. The player loads, but it can't be interacted with. I'm receiving repeated security errors just from mousing over the player:
[Code]....
I've been at this for a few hours now, and haven't had any success. I also can't seem to find any working examples online. Is this new player just not compatible with Flex 4?
View 2 Replies
Mar 30, 2011
I'm working on a prototype that would require me being able to read and track the mouse movement over a playing youtube video. The basic code to replicate my problem boils down to this simple test case:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
[Code]....
Expected behavior is:
Youtube player loads The label on the top right tracks the X coordinate of the mouse The number should update even when moving the mouse over the Youtube player
So far the program behaves as expected when running from the IDE (tested on both FlashDevelop and FlashBuilder) and even when running the file manually from the output folder. But, alas, when I try to run it from anywhere else than the debug folder (be it another location on my computer or up on a webserver), the Youtube player seems to eat the events.
I don't get sandbox security warnings when debugging (thanks to allowDomain("*")) but I'm running out of ideas on why the program fails once you take the file out of the debug folder.
View 1 Replies
Dec 15, 2010
How do I access the "WindowedApplication" class in Actionscript?
View 1 Replies
Aug 16, 2010
I tried to translate this old code into actionscript 3, but unfortunately the new code doesn't work anymore.The mouse events of the old code are general, not linked to a movieclip (which I did in the new code with the addEventListeners). How can you do this with as3? Something like Stage.addEventListener? (but then I got an error feedback from flash, so it must be done differently).I also don't know how to translate the onMouseUp part. Maybe with a removeListener?
old code:
Actionscript Code:
import com.flashcreations.utils.MathExtra;onMouseDown = function() { // define this
[code].....
View 2 Replies
Apr 28, 2011
I am going to have what is essentially a grid of 12 boxes. 4 across 3 high. There will be an object in each box. What I want to do is to allow the user to drag an object from one box into another. This will cause the other objects in the boxes to move up one position to fill in the gap that is left by the object being dragged. I have no idea what this is called or so I don't know how to Google it. Does anybody know if there are any tutorials on how I can get this done?
View 0 Replies
Sep 15, 2009
For a project I am am working on I need a pan effect like the one in URL...Now I was just wondering how to do this. There are various ways I can think off to make the background move according to mouse movement, but nothing I have done comes close to the smoothness in URL...More specifically, I can trigger an event when mouse in moved left/right/up/down in the pressed down stage - this event can tween the background in any direction required. But how do I stop the tween movement when the mouse is released. Since I have asked the background to tween from one its central value to say its rightmost/leftmost value, how do I make it stop in the middle of the tween when the mouse is released.
View 3 Replies
Jul 2, 2007
how to drag a move clip but only change the x value, so dragging left and right. Obviously the startDrag() allows you to drag all over. I had tried
map_mc.onPress = function(){
this.startDrag()
this.onEnterFrame = function(){
[code]....
which "kinda" works but is far far from perfect. This is more or less makes the movieclip slide from side to side, but like i said, its not perfect.
View 1 Replies
Mar 23, 2011
I've got some javascript that calls an AIR function. This AIR functions creates a new HTML element and adds it to the "Stage" like so[code]...
View 1 Replies
Nov 20, 2002
how to get my move drag and drop a copy of the reindeer. (see attachment) I've been mulling over for so long i'm starting to confuse myself. It's go to be something simple that i'm over looking.
View 5 Replies
Oct 22, 2010
just start to learn AS3 and I use simple MC with CODE SNIPPET for Drag and Drop action, so is anyone know how can I make effect after I drag MC that MC make smooth movement after drop...with tweener or and how? Here is my snippet code:
movieClip_1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
function fl_ClickToDrag(event:MouseEvent):void{ movieClip_1.startDrag();}
stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);[code].....
View 14 Replies
Jul 4, 2011
I'm currently creating a word game where I would like to place tiles, but if possible I need it to be possible to drag select groups of tiles (preferably with a visible selection box as you drag) and move them around all together.. is there a simple way to implement this and still have the tiles snap to a grid ?
View 1 Replies
Apr 28, 2011
I am going to have what is essentially a grid of 12 boxes. 4 across 3 high. There will be an object in each box. What I want to do is to allow the user to drag an object from one box into another. This will cause the other objects in the boxes to move up one position to fill in the gap that is left by the object being dragged. I have no idea what this is called or so I don't know how to Google it.
View 1 Replies
Oct 15, 2009
I would like to attach (using A3) a movie clip to a draggable movie clip. I has set up a movie clip using startDrag() all works fine. But I would like to be able to dynamically place a movie clip inside it so that it too drags. Ive got it to partly work you can drag the original movie clip around and the attached movie clip (using aadChild) moves too. But if I grab the attached movie clip instead of the original clip it moves independently.
Is there a way of getting a movie clip inside the draggable movie clip and have it fixed in place and not move if you happen to attempt to drag it.
View 6 Replies
Jan 31, 2010
I am learning AS3 and trying to get an object to be able to move / rotate / scale and drag and drop. I found 2 seperate tutorials one does button clicks to move and rotate code.[code]When I add the second lot of code to the first app (ie add a layer and insert the script ) change myPoint to rocket . I get the following errors:'{' expected
View 1 Replies
Dec 26, 2009
I have a set of dots displayed on the canvas (key bits of code pulled out):
// Drop points based on x y coords
for (var i = 0; i < 50; i++) {
itemPoint[i] = new mcDot();[code]....
how to redraw the lines as I move a dot. Also there could be many lines connected to any single dot. Do I need to somehow register which lines are connected to which dot? How do I redrew the lines based on this?
View 1 Replies
Apr 1, 2011
Im just wondering is there a way I can load flv's externally into flash and then move them around like a drag and drop function?
View 4 Replies
Feb 17, 2011
What's the correct way to track mouse position, from Adobe Flash, when someone has: Started a drag within the Flash application (a MOUSE_DOWN event), Dragged the mouse outside the app or even the browser window (a MOUSE_MOVE event), and Released the mouse button (a MOUSE_UP event)? For example (imagine Stack Overflow is a Flash application):
Within the app, I'm able to track the mouse X and Y positions with a MOUSE_MOVE event listener, but I lose it when it goes outside of the browser... So, how do I track the position of the mouse no matter where it goes? For a good example, try Google Finance. Try dragging the chart around; it'll still drag around if you move your mouse out of the browser window, and the mouse will be outside of the browser when you release it.
Also, check out KOKO KAKA; If you click on the scrollbar (make the browser window really small) and move outside of the browser window, the scroll bar moves just like a real one would. I believe both only work because the MOUSE_DOWN event "captures" the mouse, allowing the Flash application to track the position of the mouse even when it is outside of the browser.
View 2 Replies