How to drag a particular area only in the Air for IOS

Dear friends,

IAM, creating an app for iOS using Air and AS3. I have a band below my screen I put buttons to click and go to private lessons. IAM creating striking swipe for these buttons. I have this code below:

Multitouch.inputMode = MultitouchInputMode.GESTURE;

stage.addEventListener (TransformGestureEvent.GESTURE_SWIPE, fl_SwipeHandler);

function fl_SwipeHandler(event:TransformGestureEvent):void

{

Switch (Event.OffsetX)

{

slipped right

case 1:

{

sw_area. Buttons.x += 20;

break;

}

slid left

box - 1:

{

sw_area. Buttons.x-= 20;

break;

}

}

}

The code above makes the buttons inside the box to slide to move while sliding on the stage... I want the user to swipe Strip area available instantly drag and drop buttons. If the user swipes on the stage should not move. How can I do? pls help me friends.

I changed as

sw_area.addEventListener (TransformGestureEvent.GESTURE_SWIPE, fl_SwipeHandler);

It does not work. pls help me solve this problem.

Thanks in advance,

Syed Abdul Rahim

Hi friends,

I've solved, can be usful to others... I used stageY to the control.

Multitouch.inputMode = MultitouchInputMode.GESTURE;

stage.addEventListener (TransformGestureEvent.GESTURE_SWIPE, fl_SwipeHandler);

function fl_SwipeHandler(event:TransformGestureEvent):void

{

Switch (Event.OffsetX)

{

slipped right

case 1:

{

If {(event.stageY > 650)

sw_area. Buttons.x += 20;

}

break;

}

slid left

box - 1:

{

If {(event.stageY > 650)

sw_area. Buttons.x-= 20;

}

break;

}

}

}

Tags: Adobe AIR

Similar Questions

  • How do external swf garbage collector in the Air for iOS?

    My app uses a lot of external SWF (although they are actually included in the application with a file, but they are not shipped) and does not contain any bitmapdata, only of vector graphics. The problem I have is that they seem to never be garbage collected and System. privateMemory continues to increase while the application loads more SWFs.

    As sovereign wealth funds contain vector graphics, I cancel all just all the variables that are now the reference to the SWF file and call it system.GC()... But it doesn't seem to work. What should I do for the garbage collector to clean sovereign wealth funds?

    I use Air for iOS 3.5.0.1060 and ActionScript3.0.


    Ago - I found that they are not always collected garbage when you expect to be. It is not that they are "missed" just AIR decides to wait before waste collection. I found that continuous application to run they will eventually be garbage collected at the same time very unpredictable, as long as you don't have really any remaining reference for them.

  • Some sizes of icons are missing in the AIR for the android settings

    In the new CC animate, icons in 'AIR for iOs parameters' list have been updated (180, 60, 75, 87, 167 have been added), but the icons in the list in 'AIR for Android settings' is always the same...

    We need icons for 144px and 192px:

    < image144x144 >... < / image144x144 >

    < image192x192 >... < / image192x192 >

    For now, I have to add them manually whenever I opened the AIR for Android defining which reset the app descriptor file, it's really annoying.

    Is it possible to change this list somewhere in a config file, update animate IDE?

    Always on management of icons in flash/animated in the IDE.

    When go us for iOs AIR and AIR for Android, icons lists are reset every time and we have to choose each one icons again, is such a waste of time.

    Why the specifications of the icons are not stored for each platform?

    And a little more automatic to set these icons would be very great, a few ideas:

    • Double click directly in the list to open the Browse dialog box directly
    • Add the ability to directly select a directory map and automatic files icon in the list

    Hello

    We are currently working on adding the sizes of icons in the AIR for the Android settings dialog box. Will update you did once.

    I added your other suggestions related to the management of icon to our backlog of product for review.

    Thank you!

    Mohan

  • How to enable the sampler in telemetry at AIR for iOS settings options?

    Hello

    I try just to the new CC of Flash, and one very good feature is to monitor an iOS app using adobe scout.

    But when I export an app, in the AIR for iOS settings, I still see the option "Enable sampler" is disabled. How can I activate the option?

    Thank you.

    Hello

    To enable the option of the sampler, you need to put it in the publication settings dialog box. Open the settings dialog box post and select the option 'Enable detailed telemetry' under the section advanced for the Flash (.swf) option. Now, you will find the telemetry option to activate sampler activated in the AIR for iOS dialogue.

    Thank you and best regards,

    Roger Simon

    Adobe Flash Professional Team

  • How do I run a script only if the field is not empty

    How do I run a script only if the field is not empty

    Well well, thanks to you, I had a full date on separate days, the months and the years in different areas. But now, I have a problem, as PDF has several fields calculated with script if you enter the date calculated by all other areas, which have separated and undefinied gives me does not want to put this to not always use this field. I tried to put one conditional if else but I sale. Esto, this is what I'm wearing

    var datesol = event.value;//declaramos the variable

    If (datesol = "") {}

    this.getField('yearsol').value = "";

    this.getField('monthsol').value = "";

    this.getField('daysol').value = ""}

    else {}

    var array_datesol = datesol.split("/"); / / separamos esa con date the split funcio

    this.getField('yearsol').value = array_datesol [2];

    this.getField('monthsol').value = array_datesol [1];

    this.getField('daysol').value = array_datesol [0];

    With what they do not separate them now.

    Help please

    As mentioned, you cannot use

    If (datesol = "")

    because that sets the value of datesol to «» (you will need to double for the comparison operator =)

    If you want to run code only if it is NOT empty, while it takes:

    If (datesol <> "")

  • "Sorry, your computer has encountered an error and needs to restart. We are only collecting the error information, and then we'll restart for you. "windows 8

    Hi so I recently bought a new computer and out of no where he worked in some really annoying errors. This has happened three times, I can't understand a reason yet, AFAIK, it occurs randomly. A few times I start up my computer and it starts just the windows icon, the loading circle is not displayed. If I let it run it will remain still frozen. After a few reboots, he says still 'preparation auto repair' is still frozen. This has happened 3 times.

    The first time I have not jumped into the recovery CD, no problem, used a system restore, it was all good.

    The second time, she actually had a cause, our power went out and my pc was used, then maybe he could have ruined a circuit. So I put the CD, it wouldn't recognize it and if he did, he would freeze just and nothing to do. I tried F8, F12 and F1: he didn't even recognize these keys or react at least based on them.
    After a few restarts I miraculously managed to do recognize the CD and this time I made a cooling system.
    This lead me to think it might be some of my files/programs, but I'm still working on acquiring them all back after the update so I think it is unlikely that. 3rd time: yet once, it happened when I turned it on after a normal closed. It would not recognize the cd or the keys. After maybe 15 attempts, but rather oddly, everything was OK? I also noticed that my Tablet Wacom Intuos 5 is connected it will not start, but if I unplug it, it starts very well. (Driver error?)

    All this is fine and dandy, I can deal with it, but not until recently that error in the title stood. I noticed, that it normally occurs when the computer is in "sleep" or the monitor turns off because it is inactive. If I move the mouse to bring on the monitor, it is just a bright blue solid then the following message: "sorry, your computer has encountered an error and needs to restart. We are only collecting the error information, and then we'll restart for you"appears and it stops. Whenever this happens, it starts up just fine, it is just annoying it encounters this error whenever I use it. I tried to do system recoveries, but it did not help. I can just do a reset or refreshment, but again once I do not want this effort and to lose files if the error is still going to happen. I'm not sure if this is a hardware error, heating, maybe? But I'm not all that experience in these things. As I said, this computer is fairly new, maybe 2 months, then maybe I could just put its warranty policy to use. But if you can think of anyway to help, it would be great thanks!

    My specs are:
    Avatar
    CPU: AMD FX Processor with Six cores (tm)-6100 3.30 GHz
    GPU: Geforce GT 640

    16.0 GB
    operating system 64-bit, x 64 processor
    Windows 8.1

    Hi Kaelie,

    This issue seems to be with the material. As you mentioned that your computer is under warranty. It would be better if you contact the manufacturer of your computer for help on this issue.

    Just reply to us if you are having problems with Windows in the future. We will be happy to help you.

  • Why do I get a blue screen that says your PC is encountered a problem and needs to restart. We are only collecting the error information and then it will reboot for you.

    Why do I get a blue screen that says your PC is encountered a problem and needs to restart. We are only collecting the error information and then it will reboot for you.

    https://www.dropbox.com/s/2dtm74f6ki7goa4/minidump.zip

    DAG

    These were related to your driver atheros wifi athw8x.sys I would like to re - install the latest driver available.

    If you continue to plant I remove Symantec and use the built in Defender

  • How can I remove, hide not only, "on the subject" my guide?

    How can I remove, hide not only, "on the subject" my guide?

    Try clicking on View > pods > project implementation.

  • Cannot install Vista service pack 2 is 800f0a09 error code with the message that there are problems with the driver for dell latitude

    Original title: why I get error code 800f0a09 to upgrade to windows vista service pack 2

    I have a laptop del that is running on Windows Vista Edition Home Premium. I tried to download itunes but it requires service pack 2. Whenever I try to update to service pack 2, I get the message following error code 800F0A09. He also mentioned problems with the driver for dell latitude. What can I do to fix this please.

    Thank you

    Hello

    Please join Microsoft Community where you can find the necessary information on Microsoft products!

    You can not install Vista Service pack 2 and get the error with code 800f0a09 and the message that there are problems with the driver for dell latitude.

    The problem may occur if some of the components of the update are corrupt.

    What is the full error message that you receive?

    I suggest you follow the steps mentioned below to check if the problem is with the update components:

    Method 1: Reset the update components

    See the site:

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Warning: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-the-registry

    Method 2: Run the system update readiness tool

     

    See the site:

    System update scan tool corrects errors of Windows Update in Windows 8, Windows 7, Windows Vista, Windows Server 2008 R2 and Windows Server 2008

    http://support.Microsoft.com/kb/947821

    Method 3: Turn off the antivirus software

     

    See the site:

    Disable the anti-virus software

    http://Windows.Microsoft.com/en-in/Windows-Vista/disable-antivirus-software

    Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    I hope this helps. If the problem persists, let know us and we would be happy to help you.

  • The data are stored in the DB for the Jdeveloper test, but not in the dev environment

    The data are stored in the DB for the Jdeveloper test, but not in the dev environment

    Hi all,

    IM new with OFA and Im working with Jdeveloper, I create a form to store information using a VO and EO and add information to the current line using the attribute set of function, I noticed that when I lunch the update in the jdevelopher data is OK in the comic book, but when I install the development in the DEV environment the data stored using java code does not the table, only data that are related by the object as text fields and others.

    This is the code that I use for SAP data, it works in jd, but not in the dev environment

    {} public void saveData (String responsabilidadID)
    int respId = Integer.parseInt (responsabilidadID);
    OAViewObject vo = (OAViewObject) getQuiebresComercialesVO1 ();

    vo.getCurrentRow () .setAttribute ("ResponsabilidadId", respId);

    getTransaction () .commit ();
    }

    Any there who encounter this type of problem, something I can check?

    Thank you all.

    Just check if you bounced the server after you deploy the code. Objects Java would not reflect the changes, unless the instance is bounced.

  • How can I recharge my sim data in the air of the ipad 2 and activate?

    How can I recharge my sim data in the air of the ipad 2 and activate?

    Hi asherfromqatar,

    The resources below explains how to activate cellular data on your iPad 2 Air service.

    Activate the service of cellular data on your iPad iPad, iPad 2 Air and Pro 3 mini or later

    Check or change your cellular data plan

    To check the status of your cellular data or make changes to your plan, go to settings > cellular data.

    To add another data plan to your iPad, tap Settings > cellular data > Data Plan > add a new Plan.

    When you activate a cell data with some carriers plan, your SIM Apple could be dedicated to the corporate network. Your iPad is unlocked so that you can buy an another SIM Apple or a standard carrier nano-SIM allows you to change networks. Learn more about dedicated SIMs.

    Get help

    Get help with your Apple SIM if you have one of these problems:

    • You receive an alert on your Apple SIM
    • You cannot activate a service or can't find certain support
    • You cannot connect to the cellular data network

    Take care

  • How can I move my existing sites to the catalyst for business for subscribers of creative cloud?

    Hello!

    I have three sites that I always welcomed with heart Internet (www.heartinternet.uk). I understand that I can host 5 free sites with catalyst for business with my creative cloud membership. How can I go on this passage?

    Thank you very much

    has answered your thread How can I move my existing sites to the catalyst for business for subscribers of creative cloud?

  • How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader?

    How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader? I got an error that the version number needs to be updated. I created a new record in iTunes Connect with version 1.1 and I took ownership of my current app 1.1 in air for iOS section in Flash.

    Check your descriptor file to make sure that it shows the updated version, too.

  • Never my first question. I had 5 Lightroom on both computers. I bought a new computer and removed Lightroom off one of the ancients. Now I would like to install on the new computer, but I can only find the downloads for the version of the creation of clou

    Never my first question. I had 5 Lightroom on both computers. I bought a new computer and removed Lightroom off one of the ancients. Now I would like to install on the new computer, but I can only find the downloads for the version of the creation of clouds. Can someone please help me and guide me in the right direction. Thanking in advance.

    Uunfortunately, download of the perpetual version of the Lr is very well hidden, but try here:

    Updates

  • Is it possible to limit Adobe Revel to synchronize only on Wi - Fi for iOS devices?

    Hello

    Is it possible to limit Adobe Revel to synchronize only on Wi - Fi for iOS devices?

    I don't want to exceed my monthly data quota. I can't find an option for this in the settings.

    Thank you

    There is not currently a framework for this. I suggest to disable the automatic import feature if the quota of data is a problem and that you have defined to 'on '. You can reactivate when you use wifi if you care to use it. I will introduce this management feature products for review. Thanks for your comments.

    Guinot

Maybe you are looking for