Active button = "false" & moving Objects.

Hi all

I want a button, that is,

Enabled = "false".

to change only to

enabled = "true".

If I move an object in a special location on the screen.

For simplicity in the example I have sayed special location must be the location of the button.

When I move my object (a button without a label) to the 'Test1' button and then the button should be enabled = "true".

However, in my broken programming code, whenever I move the unlabeld button, the "Test1" button becomes available = 'true '.

I have no idea why?

It would be great if someone could help me

Thank you

Markus

Here's the Code.

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = minHeight = "955" "600" creationComplete = "application1_creationCompleteHandler (event)" >
< fx:Declarations >
<!-Platzieren Sie Elemente (z. B. Dienste, Wertobjekte) nichtvisuelle-> yesterday
< / fx:Declarations >

< fx:Script >
<! [CDATA]

Import mx.events.FlexEvent;

protected function application1_creationCompleteHandler(event:FlexEvent):void
{
Area1.addEventListener (KeyboardEvent.KEY_DOWN, moveTextArea);

var: timer = new Timer (50);
Timer.Delay = 100;
timer.repeatCount = 0;
timer.addEventListener (TimerEvent.TIMER, timeListener);

Timer.Start ();

}

public void timeListener(e:TimerEvent):void
{

}

public void dummy()
{
If ((area1.x == test1.x) & & (area1.y == test1.y))


{
test1. Enabled = "true";
}
on the other
{
test1. Enabled = "false";
}
}

public void moveTextArea(e:KeyboardEvent):void
{
if(e.keycode == Keyboard.Right)
{
Area1.x += 20;
}

if(e.keycode == Keyboard.Left)
{
Area1.x-= 20;
}

if(e.keycode == Keyboard.up)
{
Area1.y-= 20;
}

if(e.keycode == Keyboard.Down)
{
Area1.y += 20;
}

Dummy();

}

[]] >
< / fx:Script >

< s:Button = "20" x = "20" label = "Test1" id = "test1" enabled = "false" / >

< s:Button = "60" x y = '60' id = 'Grenier1' / >

< / s:Application >

public void dummy()
{
If ((area1.x == test1.x) & (area1.y == test1.y))
{
test1.enabled = true;
}
on the other
{
test1. Enabled = false;
}
}

Tags: Flex

Similar Questions

  • Start button has moved to the top right of the screen, how to do this back in the right place

    my Start button has moved to the top right of the screen, how can he put it back right grandy

    Hello

    Drag the side down. Make a right click on it and UNLOCK 1. Sometimes it can be difficult to
    Take then try in several places.

    Move and resize the Windows Vista taskbar
    http://maximumpcguides.com/Windows-Vista/move-and-resize-the-Windows-Vista-taskbar/
    Unlock and move the taskbar
    http://Windows.Microsoft.com/en-us/Windows-Vista/unlock-and-move-the-taskbar

    How to lock or unlock the taskbar in Vista
    http://www.Vistax64.com/tutorials/150820-taskbar-lock-unlock.html

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • BlackBerry Z30 voice activation button

    Is there a way to disable the voice (middle button) on the side of the camera activation button.

    This button is pressed accidentally easily.

    Bobexit0

    Try to turn the mute OFF where you see "open with the mute button" under "settings/voice control.

  • moved object and type next to the bottom of preview page do not

    moved object and the type next to the wallpaper preview page cannot see how to change this sitting?

    With no text selected, press w.

  • Deletion of video moving object (use duplicate or Roto brush?)

    Hello

    I had a really hard time trying to remove clips moving objects. I am attempt to disassemble head out of the straighter statue, but could not find an effective way to do... When I use the clone stamp, she keeps track, but I can't seem to blend in realistically, given that the color of the sky goes like pans right claw. I also tried to use a cut-out image of heaven and who followed, but who could not blend as well...

    Screen Shot 2014-02-15 at 12.08.39 PM.png
    If anyone has any suggestions for this problem, I would be very happy. I have this same problem with a few other clips as well.
    Thank you
    G

    So I downloaded your video and took a look. To replace the head in the second figure on the left, I simply moved frame 250, duplicate the layer film, used the Clone Stamp to replace the head by Sky giving lots of filling, value paint paint on all chassis and paint to the entire timeline is extended. I also applied layer > time > Freeze Frame in the clip. Then I wrote before the first slip so that I could use a mask to be cut precisely around the neck. I then added a null value to follow movements in the comp and gave a quick run movement to the images pick up a few points on the second figure of the left who lived below the neck. I ran a path of motion, applied the path of motion for the null value, then related the pre-comp to the null so that it would follow the movement of the camera.

    Took about 10 minutes. Here's a CS6 project file that uses your footage. You need to replace the images in your computer and then it should work.

    You can use the PSD that you created instead of all the paint and motorhomes. IOW, if you replace the demo by the PSD you made to the appropriate image then calls on your mask and related DSP to null, everything should work perfectly.

  • Determine if there is a moved object.

    I would like to know on how to determine if there is a moved object. Is there a way to do this?

    I don't know if you start an another slides on the other object it will stop the moved object.

    Perhaps there is a public service that will interview on this subject?

    Randall

    From what I see in the help documentation, the startDrag method does not return a value when it is running, and the class Sprite is not an event that are associated with him from being dragged, so it is unlikely that a drag status is preserved automatically anywhere.  The second example I provided, which you say you use, should be enough for what you want.

  • Moving objects in the form of XFA, buttons for marking up a question of sample swot analysis.

    u

    I used the code from the objects moving in XFA form, buttons for marking up a swot analysis, to be more precise. I created my own example of form and it works fine, but only if my Master Page Orientation is set to landscape. What Miss me? Is it possible that it only works for Landscape Orientation?

    Thank you!

    Hello

    If you have a look at the script, you will see that from the beginning I'm determination of the dimensions of the button/marker and then halve it.

    var markerDim = xfa.layout.w (marker1) / 2;

    marker1 is the name of the object that contains the script above. Therefore, the script in each button is slightly different.

    I then use this dimension to the center of the button when the cursor is located. Just look at when I use the markerDim variable in the script.

    Hope this helps,

    Niall

  • Active button not recorded data.

    java.lang.IllegalStateException: ADF_FACES - 60003:Component with the ID: pt1:r1:0:PanelCollection:b3 not registered Active data.


    I get such a mistake after the ADF, update to the latest version. Before it was not held (I see it working in production, it's only broken in my dev system).

    It seems to be caused by the following fragment:

    < af:button text = "Alter table" id = "b3" action = "editTabledef" disabled = "#{!}" bindings. Delete.Enabled} "/ > "

    The problematic tag here is 'disabled '. When I remove the EL of the attribute, then the problem is gone. But ultimately I need to disable the button

    When no line is selected. Anyone else see a familiar problem? Anyone know how to solve? I tried to change the ChangeEventPolicy, etc., but it doesn't seem to work.

    Hi all... I solved it myself.

    The solution is quite simple and I'll write it here, it may help someone in the future.

    The commandNavigationItem has a property partialSubmit = false (default). This has caused problems

    with 12.1.3 ADF and the solution are fairly simple - affecting the partialSubmit set to true. As I have

    described previously, the problem only appeared when I clicked on the same commandNavigationItem.

    The entire site has been reloaded, and it seems that the integrity should have been lost. I want to understand

    the problem a little bit more, but unfortunately I do not have as much time. Maybe the solution will help someone

    in the future. Thanks to all for trying to help.

  • By selecting the buttons "through" other objects

    This makes me crazy... especially because I'm sure it'll turn out to be something incredibly simple...

    I created a few 'pop ups' using a smartshape, legend text, an image and a button and them grouped.  The groups are hidden when the entrance to the slide, they are displayed by selecting the corresponding button on the page, and are hidden by the button in the group.

    The problem is that when I have these groups 'show' on the page that I have them set up so that they cover the buttons on the page... so the learner needs re - hide the group before showing another.  But it seems that when I try to select the button within the group to hide this group, instead it is by selecting the button in the same place, but 'below' of the group.  I checked all my orders, three times, and all the button functions are correctly configured.  In addition, groups are placed above the buttons of the page on the timeline.

    I've only tested using the option "Preview"... I have not published to see if the same thing happens in the final product.

    Any ideas on what I'm missing?

    Thank you.

    Jay

    Never have two interactive objects in the same place at the same time is

    my bike. At least, you must disable the buttons under those that are

    active.

    On February 25, 2016 12:55, "[email protected]" [email protected]>

  • Not active button "Synchronize" in iTunes

    Firmware: 9.2

    someone tell me what the problem is, I can't throw any music, nothing!

    The same problem, when you connect mini iPad 2 with iOS 9.2

    The button is not active!

    Looks like there is no compatible backup on this computer.

    Did you ever backups using this particular machine?

  • Why none of the moving objects are detected?

    I use Adobe Premiere elements 4.1 to edit (drone) Phantom images smooth 1920 x 1080.  There is no foreground subject, but there are several background characteristics that are quite evident profiles.  When I try to apply the motion tracking, it keeps telling me: ' none of the detected objects in motion, please only use Select-object to mark the object to follow. "  This message is presented to me after I click Select object, adjust the limits and then click on object of the track.  I tried several different features of many different sizes and I still get this message.  The video is similar to this, from about 2 minutes: Upper North Fork River Kings (raw) - YouTube.

    What I am doing wrong and how do I get first to follow a feature in the background?

    I downloaded your image and created a video motion with her moving on the screen. I couldn't follow the boldest exclusively, but when I chose a larger area surrounding the most "BOLD" I have not had any problems at all. See the Image

    Apparently, you need to register more contrast in your selection to follow successfully. Center the boldest in the largest area of caterpillars as best you can.

    Best regards, Terry

  • How to do a moving object light?

    I watched this video where the picher threw the ball and after that she her left hand the ball of baseball began turned on while it was moving. What tool can I use to get this kind of effect? I searched high and low and I don't know how to take an object and ha...

    [message and title edited by moderator - there is no text in the post; it was all in the subject line (and, thus, cut because a subject line can be a certain length) - Please edit this post and include your full question and make you think I have condensed the appropriate title]

    Baby first steps.  You need to learn the basics before you start off in the fun things... or your experience with EI will not him remotely fun.  Thousands of people who can testify.

    Getting started with After Effects (CS4, CS5, CS5.5, CS6, & CC). After the effects of interest area

    Create your first project | Tutorials Adobe after effects CC

  • vRO 7 Active Directory plugin return objects of computer when type is set to 'user '.

    First of all, I would like to say that so far its looking like the AD plugin provided with vRO 7 actually work with our directory.  The last time I tested, it was still too slow and unstable.  I don't know if it's something on our end or the result of the changes made vRO team but its promising.

    I'm curious to know if I'm testing something wrong however.  Looks like using functions return types of objects other than "User" when I specify this type of ActiveDirectory.search*.  I certainly see computer objects.  If I specify "ComputerAD" as the type search filtering seems to work because I see only the computers.

    Also, is there a way to specify the field to search?  We created a workflow that is enveloping the dsquery command and query against specific fields.  Is there a way to format the query string for target field?

    > I'm curious if I'm testing something wrong but.  Looks like using functions return types of objects other than "User" when I specify this type of ActiveDirectory.search*.  I certainly see computer objects.  If I specify "ComputerAD" as the type search filtering seems to work because I see only the computers.

    If you check the schema Active directory, you will see that, for example, the computer object is subclass of the user. What makes the user object type.

    If you look at the property of a user object's objectClass, you will find the following object classes "person; organizationalPersion, high; user ".

    If you look at the objectClass for a computer object property, you will find the following object classes "high; person; organizationalPersion; computer user.

    When AD plugin runs the query for user objetcs, it limited the result based on the object class by asking all objects that have at least after classes "person; organizationalPersion, high; user", but does not specify that class of the object hierarchy does not contain others. That's why he also returns in the form of the user computer.

    We maintain this behavior for bakward compatibility with the old version of the plugin, but I agree that it wise to limit your search only to the objects 'User '. You can open a request from client for the appropriate follow-up.

    > Also, is there a way to specify the field to search?  We created a workflow that is enveloping the dsquery command and query against specific fields.  Is there a way to format the query string for target field?

    As much as I know there is no such possibiliy in current plguin. There are several requests about the generic search method allowing the use of the LDAP syntax directly to mark against ad server. We are considering adding these features to the plugin, but it is a metter of priorities.  Somethig like AdHost.search (ldpa_query_string)

    Not sure if this will solve your use cases. Could you give a little more detais arround it. Example of workflow will also help.

  • accordion opens automatically active when an html object is inserted

    I really want to use the widget accordion to hide/show a user input form I made by Caspio. Caspio creates a deployment script that you can embed in a Web page using the html object. Works very well in a regular neighborhood of a web page, but when I put an html with the data page code Caspio object in an accordion it opens / activates automatically when the page is loaded. I tried to "closing" the accordion before downloading the page in Design view, and he always does.

    When I use an html object in a tab container it works fine-just the accordion.

    Does anyone know how to deal with this? I really want to show/hide the user input form and not find a better way. I prefer not to do a popup if possible. Any suggestion would be appreciated.

    Yes, just relaxing on your own button overlay and make transparent trigger.

  • How to make the text appear behind a moving object?

    Hi all

    Is it possible to do first 13 items?

    This is an example of what I want to say... they use a different software to do well. 10.1.1 FCPX reveal text behind the movement object. - YouTube

    Thanks a lot for any advice.

    Joe

    Joe

    Please give the following a supposed to look in your first elements 13/13.1, on Windows 7, 8 or 8.1 64bits.

    First Elements 13/13.1, workspace Expert

    Video 1 track your video...

    Video of the track 2. .your text title, whose Position property is editing from right to left... See effects applied/applied by tab effects Palette/movement

    Expanded panel and its Position property.

    Video track 3... a copy of the video track 1. Apply a hide eight points to the video clip and its edit points so that the head which will appear in front of the text lies in the area framed by points.

    For eight-point Garbage Matte, see fx effects/overlay/eight point Garbage Matte.

    In this example, the head (red circle) does not move while the text is. But the principle should be upward for movement of circle red and moving text... keyframing over video and cache transparency.

    Just something to try.

    RTA

Maybe you are looking for

  • Satellite L850-161 - Tempro Blu - ray driver update notification

    I have just received an alert of tempro on a driver update that my L850-161 will play blu - ray discs. Now, I was quite surprised that I only have a dvd player of standard model provided with L850 when I bought it. I have downloaded the driver and tr

  • What is the scheduled task ' in * ' (there are a lot of tasks (At25 - At192))

    I use Ccleaner on my desktop and it showed a lot of tasks scheduled with the name 'At' and a number behind them (25-192). They seem to be run by the same file "WQ3203G0.exe", so I was wondering what all these tasks/is this file?

  • "clone mac address".

    WRT64G I have a server (2003) and a PC (XP) connected to my router and a laptop (vista) wireless to the router. I connect to my server and PC thru 'mstsc' where I could use two of them through my laptop. Everything was fine until I wanted to go furth

  • Window of alt - tab will not stay above other windows in Windows 7

    When I do an alt - tab in Windows 7, if I change constantly window (by pressing alt and quickly by clicking tab), it will be in Peek mode.  Normally, I'm expecting the alt - tab window to stay on top, when comes the Peek, but instead of this, my litt

  • Laptop computer does start, no screen, no hard drive, no fan

    I've been looking around, but I can't find a solution to this problem anywhere.  I have a HP pavilion DV 2000 series.  When I push the power button all the lights above the keyboard lights (control Volume, play, rewind, fast forward, ect) and the pow