! used in rocking

Hi all

Does anyone know about the use of the exclamation mark '! ' used in AS3, it is used as a toggle like this;

Called when the mouse pointer is over a text field.
private void mouseOverListener(e:MouseEvent):void {}
If the parent of the object TextField Sprite does not
the form, then move it there. DisplayObjectContainer.contains)
Returns true if the specified object is a descendant
of the container.
If (! e.target.parent.contains (bgRect)) {}
e.target.parent.addChildAt (bgRect, 0);
}
}
But I can't get my head around, how he Achieves that, as in how that create or act as a toggle? Make me?
A more simple example may suffice, someone at - it a?

Sorry if this seems a small problem, but it's Sunday; on Sunday, I'm studying AS3. Maybe I just worked through Moocks book too ;) Hahahahahah

Kind regards

Boxing boom

The! operator reverses a Boolean: sense switch between true and false.

An example would be:

var theSkyIsBlue:Boolean = true;
trace (theSkyIsBlue); true
theSkyIsBlue =! theSkyIsBlue; / / replaces theSkyIsBlue (which is at this stage) theSkyIsBlue = false
trace (theSkyIsBlue); fake
theSkyIsBlue =! theSkyIsBlue; replaces theSkyIsBlue (which is false at this point) theSkyIsBlue = true
trace (theSkyIsBlue); traces of true new - so the Boolean value alternates between true and false

In your example, the parent of e.target contains() method returns a Boolean value. It just says either Yes, it's true that the parent contains bgRect, or no, it's false, it does not bgRect.
In this context the! operator (! e.target.parent.contains (bgRect)) can be regarded as equivalent to:

If (e.target.parent.contains (bgRect) is false)...

TS

Tags: Adobe Animate

Similar Questions

  • 3rd party app mirroring phone standby, even if mirroring disabled

    I just got an iPhone 7 and when I associated my watch it I realized that I had never updated the watch to monitor OS 3. So I did it. Now, a third-party application email (my mail), which isn't even an app, that I put on my watch, push notifications to my watch, despite the fact that I put the mirror app is not my iPhone. This iphone app is the one I use for what I call my spam account. These aren't urgent personal emails. That's 40% off at the Gap stuff. I don't want to turn off notifications on my phone, but I really want to stop my wrist of buzzing with these dumb e-mails nonstop. Any ideas of what I can do to stop a third-party application from mirroring my phone, when I use the rocker to say don't mirror phone doesn't seem to be enough?

    Hello

    The following steps should help:

    • Toggle Notifications of setting and then turn off again, allowing a few moments between the two.
  • Trying to listen to music offline in Spotify.

    I want to listen to music offline (using my connection/mobile data as I have unlimited) and spotify says to simply make music available in offline mode using their rocker, I did. It will not yet download the tracks while I'm using data.

    Spotify says: Note: by default, the download via your mobile data connection is disabled. Click download on cell phone in your settings

    I can't find the download using the cell switch.

    I am using iOS 9.3.1

    Oddly, it's under settings > quality streaming in the Spotify app.

  • Function keys do not work on my Satelite C50-A-1DV

    Hello

    I just installed a bios update (1.30) and right after that I noticed that I was unable to adjust the brightness of my screen via special keys (F2 and F3). Also, I am unable to use the rocking of the (F4) synaptic pointing device, monitor selection (F5), mute (F11) and airplane (F12) mode

    Brightness is adjustable via the power supply only options. Updated display drivers and still not solved. I use satellites of the series C, C50-A-1DV, PSCG6E, running 64-bit Windows 8.1... Bought the week last in Ireland.

    Any ideas?

    to be honest I don't know what can be wrong there but the only thing you can try is to reinstall the original recovery image now and test it again with the factory settings.

    Otherwise I do not understand this action with the BIOS update. New laptop which works perfectly so why change anything.

    In any case, test and if there is the same problem your dealer contact and ask for help.
    You can create a preinstalled use recovery media creator Toshiba recovery media and use it for recovery image installation.

  • Problem with 'Less' function in LabVIEW 2015

    Hi guys,.

    I create a VI that will allow me to record data at intervals of time du.1.2.3,.4,.5,.6,.7,.8,.9, 1, 2, 3, seconds etc 4 or 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20 or 30 seconds etc. According to my my main VI entry.

    In VI I joined, I maintain a case down and a case of rocker. I went through the case maintain down with execution of climax, and it seems to be ok. My problems begin when you use the rocker case. If I start time Stress control to 0, it increments a.1.2.3,.4,.5,.6,.7,.8.9 and 1 as expected. However, when he goes from ajouter.1 in the structure of cases where it is supposed to start adding 1, he eventually add un.1 and a 1 for the first time, then continue to add 1 as expected. I go back into the code and when I turn on highlight execution with a 1 coming from the shift register is to enter the function ' below to "in the structure of the bottom case and it generates a real when it must produce a fake. My case top of page structure also produces a zero when it should start out 1.

    Can someone please run this code and see if the problem exists for them to preserve my sanity? Or am I just being a fool and lack of something obvious because of a crossover cable or something?

    Thanks for your help

    Basically, you have several choices:

    • Make sure the floats an 'accurate' (= whole) value (for example, by multiplying by 10, and by changing the result to I32, the last step is necessary because only the integer representation allows accurate digital comparisons
    • do the strings of floats with defined accuracy
    • write (and use) a "almost equal" function (subtract the value you are testing of the float, take the absolute value and see if)<0.0001, or="" whatever="" precision="" you="">

    Of these, the last is likely to be (by far) the fastest and "" will remind you that decimal values generally are 'approximations' (you can represent 0.25, 0.5, 0.125, etc. exactly, but not 0.1, for example).

    Bob Schor

  • Can I make smaller the sound camera shutter? Fix to express and ps PS

    Dear team,

    How can I make the small shutter sounds?  iPhone 6 s cannot be change to the Japan.

    Because it is not allowed to take a photo without siunds in the public space in order to avoid photographing secrets.

    However, it doesn't have to be silent, but its tiny.

    In perhaps his case of the iPhone, I guess?

    Thank you

    Hi Shigemi-san!

    Thank you very much for posting. Yes, you can make the shutter sound a little quieter. Your ringtone is enabled, use the rocker side (volume buttons) to decrease the ringer volume. When you take a picture in the difficulty to express, the sound should be quieter.

    Let me know if that helps!

    -Kathleen

  • Reusable animations? Please help me: c

    I need to figgure a way to have a registered firearm 'pull' animation, I can activate a certain range, which is reusable, and I need to be able to move around the canon as a whole without him messing up the animation. any ideas? PS im a noob ~ 1 month of flash

    Thanks for it to clear up a bit. Let me see if I can give you a decent explanation based on the info you gave to me.

    Well, you can:

    1. Animate everything separately (what you want to avoid).
    2. Copy images already driven on two new frames on other layers using the rocker 'edit multiple images' and recycle them and change them at your convenience.
    3. Create a clip of animation and flip/change the clip frameworks when necessary (be careful with this if your doing animation to video because sometimes video clips do not show the animation in the video exported according to the version of Flash you're using). If you are using the latest version of Flash (Flash CC Pro 2015), you can file< export="">< video.="" if="" your="" on="" an="" older="" version="" of="" flash,="" you="" will="" have="" to="" animate="" everything="" on="" the="" flash="">

    Hope this helps a little.

    Best regards

    Carlos

  • Switch between the two alternative provisions (both in portrait mode)

    I have created two alternative facilities for the purpose of these two being in portrait orientation, as they are to view the same article in two different languages. Is there a way to switch between the two using the navto: / / action or by using bookmarks and by using the go to destination. I tried both but I was wondering if there was something there.

    I have a publication ideally appearing in both languages, though being a main language and the seconary being there only for reference. I'm not wanting to produce two folios and use the filter region with Apple, as have the secondary language, as a reference is a selling point for the publication. Also using"States" would be more complicated.

    He must choose between non-ideal solutions, as a magical sticky toggle 'use this language' is not available.

    If you do mind ' t using the rocker on each page, then navto would be OK. and each page of the reference language should have a back button go. All reference pages that can be marketed after the main pages, and each of them can be hidden from OCD.

    If you opt for parity between languages, then you could start the app with no menu-swipable selection page, where you can decide what language to use. At the end of these two sections, another non-swipable page would give you the choice to read another language. The trick of no-swipable page gives users a feeling of an application of the only language of his choice.

    And I would use diapers, not another layout for the production. Seems to be a cleaner solution for me.

  • Export problems for the creation of insert script

    Version 3.0.04 Build HAND - 04.34

    Hello

    I'm trying to use SQL Developer to create an insert script for only a certain number of columns in a table, but it does not work for me. That's what I do;

    Step 1. View current table with the DATA tab
    Step 2. Right-click in one of the columns and choose 'export' in the menu dropdown.
    Step 3. Export Wizard - step 1 of 3 dialog allows me to choose the Format to INSERT and save it as a single file.
    Step 4. Export Wizard - step 2 of 3 in the column named "Columns" I change the symbol asterix at the columns I want in my export file, using the rocking on broad dialogue.
    Step 5. Wizard - step 3 of 3 hit finish Export

    Open my export file, and has a script to insert with all of the included columns, not what I wanted or determined through the wizard process.

    Is this a bug or I do something wrong?

    See you soon
    Ben

    Published by: benton on Sep 3, 2012 15:54

    >
    I downloaded and installed Version 3.2.09 build HAND - 09.30 the SQL Developer.

    The same problem occurs.
    >
    Try to "unload" in the navigation tree. Right click on the table and get him out of there, instead of from the data tab.

    Display the results.

  • AIR for iOS--access to the micro headphones

    iPad (3)

    iOS 6.1.3

    AIR 2.4

    I am trying to listen to the audio from a microphone attached via the headphone jack but AIR does not seem to recognize it?

    When I trace to debug = > Microphone.names all I get is 'iOSMicrophone '.

    I tried to force a second microphone but just came with errors (legitimately if)

    When I loop back the microphone audio DEFAULT is just the embedded mic.

    I use a RockIt to attach a laptop headphone output to the min in.

    http://www.Amazon.com/GP/product/B006T65CXE/ref=oh_details_o01_s00_i00?ie=UTF8 & PSC = 1

    I know - output headphone and line are not the same thing.  But this doesn't seem to be the problem (again).  I don't have access to the headset.

    Any ideas?

    Thank you!

    Could you please try updating your version of AIR on the latest AIR SDK 3.7 available at http://www.adobe.com/devnet/air/air-sdk-download.html.

    Kind regards

    Hichem

  • Automated cropping and resizing with user interaction

    Hi all

    After hours of tests with batch processing and searching the Internet, maybe someone of you can help me:

    I have about 3000 files jpg. into a single folder (all different sizes and proportions) and I need all of them cropped to a specific proportion (height: width = 4:3) and then resized to a specific size (for instance 800 x 600px). Batch processing can do a lot, but a critical stage is not possible: once an image has been loaded into PS, I need user intervention to determine the acreage (size and position) before the rest of the process (cropping, resizing and saving) can run again automatically.

    For example a photo of 2000 x 1000 px: "culture window" allows me to choose an arbitrary area regarding size and position (i.e.at 20px to the left and 10 px high, size 1000 x 750 px = fixed proportions - and different for each image), then the cropped area is resized to 800 x 600px, then it is saved. (Similar to the tool selection with fixed proportions)

    The essential Act is the interaction with the 'proportional cropping. If resizing is not possible in a first time, I could also do with a second batch run myself.

    If anyone can help me, I would be very happy...

    Thank you very much

    Elmar very

    You should be able to do what you need without a script. I tried to send at the end of week, but it just times out and never works when I try post a picture only a tiny png.

    Record an action by using the tool of cropping in fixed proportions, then later, resizing. When it comes to use your action in a batch process, you just need to use the rocking of the dialog we harvest only Stadium. This will be your Inbox evolutionary culture and await you to position and size once for double click on it will continue with the rest of your action. The scale of the dialog box is located next to the tick in the action palette

  • Why Firefox denies my request for websocket server upgrade? (It works using Chrome)

    I have a simple web page that I use to test my server websocket manipulation.

    < meta charset = "utf-8" / >
    < title > WebSocket Test < /title >
    < script language = "javascript" type = "text/javascript" >

     var wsUri = "ws://192.168.1.18/";
     var output;
    
     function init()
     {
       output = document.getElementById("output");
       testWebSocket();
     }
    
     function testWebSocket()
     {
       websocket = new WebSocket(wsUri);
       websocket.onopen = function(evt) { onOpen(evt) };
       websocket.onclose = function(evt) { onClose(evt) };
       websocket.onmessage = function(evt) { onMessage(evt) };
       websocket.onerror = function(evt) { onError(evt) };
     }
    
     function onOpen(evt)
     {
       writeToScreen("CONNECTED");
       doSend("WebSocket rocks");
     }
    
     function onClose(evt)
     {
       writeToScreen("DISCONNECTED");
     }
    
     function onMessage(evt)
     {
       writeToScreen('RESPONSE: ' + evt.data+'');
       websocket.close();
     }
    
     function onError(evt)
     {
       writeToScreen('ERROR: ' + evt.data);
     }
    
     function doSend(message)
     {
       writeToScreen("SENT: " + message);
       websocket.send(message);
     }
    
     function writeToScreen(message)
     {
       var pre = document.createElement("p");
       pre.style.wordWrap = "break-word";
       pre.innerHTML = message;
       output.appendChild(pre);
     }
     window.addEventListener("load", init, false);
    

    < /script >

    WebSocket test

    I use a TI CC3200 to run the Web server code.

    It turns out TI implementation expects to find the upgrade header followed by the key in the query. This is the reason why he was working for the chrome.

    FireFox has the key before the upgrade header. TI code was not the key and just using a string NULL for her. So the answer accept had something to reasonable search, but didn't.

    It would have been nice if firefox didn't would be out something on the data of accept being wrong.

    In any case, TI is aware of the issue.

  • Playlist bought used to sync properly

    I have an iPhone 6s and since my purchased playlist, start to use the music library to iCloud recently has not been synchronized correctly. I have the playlist bought in a certain order on my computer but the playlist bought on my phone is completely different after a few songs. I have connected my phone to my computer several times to try to resolve this problem, but I don't know what to do anymore. All my other playlists match on both devices, so I'm not sure what the problem is with the purchased playlist. Also, the playlist on my phone is called purchased music not only bought, don't know if that makes a difference. My computer and phone are on the latest versions of iTunes software and the iPhone.

    No solution, but I think the problem you are having is because Apple music leans on the playlist bought as a "smart playlist" and those who are known to have synchronization issues in BCTI. What you can try is a regular playlist called purchased on your computer and then copy and paste the songs from the playlist bought a new and see if it works. (I have several smart playlists based on Genres like Rock, Blues, Jazz and they never look the same on my iPhone 6 or 4 Mini they do on iTunes on my Mac).

  • Problem using iCloud, does not refresh

    I use the latest versions of iOS 9.3.2 on my iPad and iPhone. I always use transfer, icloud and photos of flow. But last week, I noticed that iCloud does not update the pictures on both devices. I have 2 GB of free space 3. Activate all options on iCloud. I've made up, I disabled iCloud on devices. Nothing!  It does not work. Internet access is perfect. When I opened the Photos, there is a process "download (or download) 100 Mg / or downloading pictures 125 ' and does not continue. What should I do? Please, help me!

    Thank you!

    On both devices, tap Settings > iCloud > Photos then the iCloud rocking library Photo OFF then on IT.

    Give iCloud minutes re sync your data.

  • Portege M800-106 - bad quality by using the external monitor

    I use an external monitor LG Flatron L1811S on my Portege M800 and find that the image is not rock solid when I use the display on my desktop or screen of the M800.
    It is particularly visible on the big patches of color block where I can see shimmering light. I noticed that it's especially bad if I recently reconnected the laptop to the network after using on battery power until the battery is fully charged.

    This makes me think that the PSU interferes with the VGA output?
    Any ideas?

    Thank you

    To be honest I m more important lack of information in your ad.
    Are you using the native resolution - 1280 x 1024 / 75 Hz on screen?

Maybe you are looking for

  • How to cancel the option for Mozilla or Firefox to remember not my password?

    Recently I set up a user name and password for the Gmail account and the small pop-up asked me ' "if I want Firefox to remember me in Mozila.org?". and I accidentally accept it. now everyone can have access to my email because my password is popping

  • DEFY: Cannot make calls...

    Hello I just bought Defy and I think that it is large, has many interesting features, but it does not call... About 10 minutes after it's turned on, I can't make all the calls (from widgets, dialer, contacts...). As soon as I press the dial button, a

  • Host process for Windows Services has stopped working; Error Module mck_cbpdbfclh.dll

    New applications were loaded on my computer and it worked well for about 1 week. Restored, a couple of files Windows of my trash, defraged, cleaned cache, updated anti-virus deep system (no exceptions); Everything seemed to work well for a day or two

  • Microphone does not work on my computer laptop gateway but works on my pc

    My computer laptop gateway continue giving message "no record ellee not office installed" but I can hear through my headphones, I can just talk through the microphone or recording the sound. Everything works on my pc

  • Add a fill between two col-lg-4...

    HelloTwo classes of article butted against each other (vertical columns)... article class = "col-lg-4 collar-med-4 col-sm-6-about box.I wish that some padding (a gap between) these two columns. Read about adding another container for mixing.So I wrap