need help, need to add a button to remove my request?

I have a small application that you can add numbers and email friends too

I would add a negative sign selection/input button?

any of you guys have any ideas?

Stop();

create a sql login
var conn: SQLConnection = new SqlConnection ();


Add an event for the open event handeler
conn.addEventListener (SQLEvent.OPEN, openHandler);
create the database if it does not exist, if not just to open it
var dbFile:File = File.applicationDirectory.resolvePath ('exemplu.db');
conn.openAsync (dbFile);


function openHandler(event:SQLEvent):void {}
create a new sql statement
var sql:SQLStatement = new SQLStatement();
the value of education to connect to our database
sql.sqlConnection = conn;
analyze the sql command that creates the table if there is no
SQL. Text = "CREATE TABLE If NOT EXISTS contact ("+ ".
' id INTEGER PRIMARY KEY AUTOINCREMENT, ' +.
"digital TEXT +,
"telefon) INTEGER";


Add a new listener to the event to the sql when it is finished creating the table
sql.addEventListener (SQLEvent.RESULT, retrieveData);
call the execute function to execute our statement
SQL. Execute();
}

function retrieveData(event:SQLEvent_=_null):void {}
create a new sql tasks
var sql:SQLStatement = new SQLStatement();
sql.sqlConnection = conn;
This sql command retrieves all the fields of our
table in the database and it sorts by name
SQL. Text = "SELECT id, digital", +
"telefon".
"OF contact ORDER BY name ';
Add a new listener to the event, if there is data
to view it
sql.addEventListener (SQLEvent.RESULT, selectHandler);
SQL. Execute();
}

function selectHandler(event:SQLEvent):void {}
first to erase us from our list
lister.removeAll ();
We create it an outcome variable that holds
all our contacts
var result:SQLResult=event.target.getResult();
We check if the results is not empty
If (result! = null & & result.data! = null) {}
and we have added a new element of our list for
each contact in our database
for (var i: Number = 0; i < result.data.length; i ++) {}
lister.addItem ({label: result.data [i] .nume + '-' + result.data [i] .telefon})
Nr:result.data[i].id});
}
}
}

plus.addEventListener (MouseEvent.CLICK, adder);
xu.addEventListener (MouseEvent.CLICK, closeapp);
back.addEventListener (MouseEvent.MOUSE_DOWN, drag);

because my buttons are not the real buttons
but movieclips I need to put the
the buttonMode property
plus.buttonMode = true;
xu.buttonMode = true;

function adder(e:MouseEvent):void {}
Remove the eventlistener and move to the
next image
plus.removeEventListener (MouseEvent.CLICK, adder);
nextFrame();
}

function closeapp(e:MouseEvent):void {}
Close the application
NativeApplication.nativeApplication.exit ();
}

function drag(e:MouseEvent):void {}
Drag the application
this.stage.nativeWindow.startMove ();
}

it's on the second keyframe-

This line restricts user input
for a few numbers in the input box phone

Add a new listener to the event to our button "+"
plus.addEventListener (MouseEvent.CLICK, adder2);

function adder2(e:MouseEvent):void {}
create a new sql statement variable
var sql:SQLStatement = new SQLStatement();
sql.sqlConnection = conn;


the following sql command creates a new entry
in contacts him our database table
SQL. Text = "INSERT INTO contacts (digital,"+).
"telefon) +.
"VALUES (@nume,"+).

"@telefon);


to insert variables in sql commnads
We use the definition of parameters
SQL. Parameters["@Nume"]=Nume. Text;
SQL. Parameters["@Telefon"]=Tel. Text;


Add a new event listener that calls the
function that retrieves data
sql.addEventListener (SQLEvent.RESULT, retrieveData);
SQL. Execute();
go to section no. 1
prevFrame();


Remove the eventlistener to our button "+"
plus.removeEventListener (MouseEvent.CLICK, adder2);
}

use:

minus_btn.addEventListener (Event.MouseEvent, CLICK, clear)

function clear (e:MouseEvent) {}

var sql:SQLStatement = new SQLStatement();
sql.sqlConnection = conn;

var s:String = "REMOVE from contacts WHERE digital =: numeparam AND telefon =: telefonparam";

SQL.text = s;
SQL. Parameters ["': numeparam '"] = either;
SQL. Parameters ["': telefonparam '"] = what;

If you want to add listeners

SQL. Execute();

}

Tags: Adobe Animate

Similar Questions

  • Button to remove all empty lines

    I am trying to create an interactive form that has a button that adds lines for the user to enter questions and another to add follow-ups to the authorities. There are 3 different sets of these. However, we do not want to add a button to remove all lines, in order to allow the accidental deletion of data already entered.  I would like to create a button that deletes all empty lines, including all subforms.  Either that, or to save the document, would be deleted all empty lines - depending on what would be easier. Help, please!  It seems that this will be a complicated task and I'm not well versed in LiveCycle to figure this on my own.

    Thank you!

    In the object > range of liaison. I've included a screenshot on the forum.

    Niall

  • Need help! Interlocked switches or buttons

    Hello

    I have an application of prison access & control running at lookout 6.1. My client asked me to add 2 buttons on the screen or switches to 2 groups of exit doors in case they have an emergency situation. They want me to add a button on the client to wait to release the first group, called Group-A. This would release the first group of doors giving the prisoners to leave the cell and enter a secure area of the postern. Then, they want a second button to free the second group of Gates called Group B. This would allow the prisoners to leave the building. They don't want to group B of the second button to be able to be used or button when Group A is already on. I need to lock the switches or push buttons (I use one or the other) I don't see any way to achieve lookout? I might even just disable the switch until the switch group-one was on but disable it only works when the switch is in mode DDE. I really need to find a solution to all of this help, anyone can give me would be greatly appreciated!

    Thank you

    Rob

    Hello

    Albert and Mike thanks for your post! I played a bit with the datamember visible but I don't like the fact that the switch is not always visible to the user. I tried your example Mike, and I think it will be the best work around my problem. Thanks again guys and if I go with an ActiveX conrtrol switch I can disable I will post the information here.

    Rob

  • I have copy of old tbird and seamonkey e-mail files with the files and emails for each. I need to add to new tbird install. can not find a way to do it. Help

    I have copy of old tbird and seamonkey e-mail files with the files and emails for each. I need to add to new tbird install. can not find a way to do it. HELP PLEASE. previous e-mail files are under mail then mail.earthlink* .net and each of the five mail .net is an email address I have. I can't find a way to identify each file by email to the specific email address (IE mail.my E-mail name.net) so I can copy the files and emails from the past to the email addresses now under tbird. previous installed e-mail identities may not be the current configuration of e-mail files in tbird. I think that I must be sure that mail.name.net matches the previous mail.name.net to be able to copy and paste the old to the new. is there a way to find the file name correct the old email and correspond to the new? all my emails very important information are mostly in the old mail electronic id and must be available in the identification of email again (but same) how can I do this?

    http://KB.mozillazine.org/Importing_folders

    Use this module.

    https://addons.Mozilla.org/en-us/Thunderbird/addon/ImportExportTools/

  • Hey guys, ive tryied buy photoshop like a hundret times, ive typed in my information payment and everything I need, went on the button pay on the accept button but nothing happened, I need help pls passing sry for my language

    Hey guys, ive tryied buy photoshop like a hundret times, ive typed in my information payment and everything I need, went on the button pay on the accept button but nothing happened, I need help pls passing sry for my language

    Contact adobe during the time pst support by clicking here and, when available, click on "still need help," http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • Accidentally, I bought the Mac in December and contacted support which helped me to get the right version installed, but now the PC version is not in my account downloads and I need to add it to a new computer. I don't know how to get help with this.

    Accidentally, I bought the Mac in December and contacted support which helped me to get the right version installed, but now the PC version is not in my account downloads and I need to add it to a new computer. I don't know how to get help with this. I don't remember how I got the PC version, I think I have access to my computer remotely and she sent, but I can't find any record of it.

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • How and in which files that I can combine my computer policy in the html for my captivate project file? I know that I need to make changes on the css, HTML, and I need to add fonts to a folder, but do not know where please help

    How and in which files that I can combine my computer policy in the html for my captivate project file? I know that I need to make changes on the css, HTML, and I need to add fonts to a folder, but do not know where please help

    https://forums.Adobe.com/servlet/JiveServlet/showImage/2-7496573-757050/pastedImage_0.PNG

    This is an image of the files I see

    If the police will not be on the end user's computer, it won't make a difference.

    You should try to include a web font, but you cannot use those during the creation of course, so when you publish or correct fonts you have alignment issues.

  • CP6 - need to add an audio button on quiz slides to "read aloud the question."

    CP6 - need to add an audio button on quiz slides to "read aloud the question." Most of our target audience is younger (grade 1-5) and provide more accurate results, if each question is 'read' for them. Of course there are big players in the Pack, but the option should be available to listen to the question and not have to read it. Therefore, there is a button to trigger the audio on every issue. Ideas?

    You don't need a button. Just add a legend of the question bearing slides a sound add you the portion of the legend. You can hide the legend by making it transparent.

  • 8 blocked installation of windows to "you need to add your languages in windows 8.

    Hi all

    So I tried to install windows on a computer 8 portable gateway that has windows 7 ultimate. I have a product key for windows 8, but not an installation disc. I used windows on the site Downloader and need the product key but continues to stop at the blue screen "something happened" and it opens Google chrome and going to another blue screen and it says "you need to add your languages in windows 8" on the right is a button 'confirm', but it does not work. " I went into the Panel of control-> system and security-> windows update-> and I've updated all language packs who was there, who took like 3 days. I also clicked on the restore hidden updates and there was nothing there. I can't get past this problem and any help will be appreciated.

    Thank you

    Tim

    So I never found on the forums on how to solve this problem, so I contacted Microsoft support online. I told them that I kept getting the message "you need to add languages to Windows 8" and that they have all been added but would not click "confirm". They have tried, and then eventually told me that I have to do a clean install. I have made an installation disc, restarted the laptop and went in the bios and started with the disc. It was a good cause, I had to wipe the old partitions that used space. Installed and it worked. I ended up spending to 8.1 and after downloading I decided to try to get 10 Windows. I couldn't get the icon to show so I googled this problem and found a way to update without the icon. That and now I have Windows 10. The link below is the page I used, and I hope that this helps someone out there. Good luck.

    http://www.InfoWorld.com/article/2954362/Microsoft-Windows/you-don-t-need-the-Windows-10-free-copy-icon-anymore.html

  • "You need to add your languages in Windows 8.

    When I tried to upgrade to Windows 8 Pro, he said "you need to add your languages in Windows 8. I have Windows 7 Ultimate. I use a CD disc and that's what I tried, I went on the Start button, typed language, press "install or uninstall display languages" and press on uninstall display languages, there are 3 languages, an English and a Chinese (Simple and tradition), I uninstalled them both and they both have been uninstalled and I checked it again just in case I uninstalled them both back to the program "install or. Uninstall display languages"and there was only English that it is impossible to uninstall, I also tried and downloaded the program Windows Fix It, it did not show anything on the tongue. I press Refresh on the installer of Windows 8, which brings me to this: file:///C:/$WINDOWS.~BT/Sources/Panther/ActionableReport.html, I pressed the confirmed cases and nothing happened, I pulled out and press refresh and it still says

    "You need to add your languages in Windows 8.", nothing has worked to help please.

    Hello

    Please provide detailed information about your question. I appreciate your efforts to resolve the issue. However, there are a few steps more that we can try to diagnose the root cause.

    This problem could be linked to the modification of system files and Windows components.

    Since you've already tried to uninstall the language packs for Windows 7, I would suggest trying the following steps and check if it helps.

    Method 1: Run the clean boot

    Perform the clean boot that helps determine if third-party applications or startup items are causing the problem.

    How to perform a clean boot in Windows

    http://support.Microsoft.com/kb/929135/en-us

    Note: See "how to reset the computer to start normally after a boot minimum troubleshooting" to prepare the computer to start as usual after a repair.

    If the problem persists, follow method 2

    Method 2: Clean boot material

    Unplug all external devices connected to your system (except the keyboard and mouse) and check if it helps.

    You can also perform a clean boot material to deactivate devices and check if the problem occurs.

    a. click Start and in the start search type in "Device Manager".

    b. in Device Manager, disable the items of the graphics card, floppy disk, network card, Modem and sound, video & game controllers.

    c. right-click on each of the devices and select disable.

    d. restart the computer in normal mode and perform the upgrade.

    Note: After the upgrade to Windows 8, you must activate the devices and update the drivers for Windows 8.

    You can also try to uninstall the language packs for Windows 7 and check if you can switch to Windows 8.

    You can see the article upgrade to Windows 8.

    Windows 7 language packs are available for computers that are running Windows 7 ultimate or Windows 7 Enterprise

    http://support.Microsoft.com/kb/972813/en-us

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

    Thank you

  • I need assistance, a duplicate button

    I have a button that I often set forms, so I have a PDF with nothing else than this button inside. Whenever I need to use the button open the pdf file, go to my tools of forms, edit the form, copy the button and then paste it into the required pdf file button. I am looking for a way to simplify the process by using an action. My idea is that I can insert my pdf button on the first page of any other pdf, move the button from page 1 to page 2 (or duplicate on page 2), and then delete the page 1, leaving just my form with the button.

    The problem that I am running is that I can't find any way to move or duplicate my button on page 2. I figured I could do it with a script, but I was not able to do. I don't think that creating a new button with a script will work because my button has about 350 lines of script already attached to it, as well as specialized images when rolled and pressed (if if there is a way to maintain these attributes, I'm happy to try).

    Any help would be greatly appreciated.

    You can also programmatically add the page of the document, make a model and reproduce the template on the page you want the button to be and then delete the page model.

  • How can I creat buttons in action script? Need a lot of buttons...

    Hi guys, I'm trying to represent the pixels on my map with buttons. For this, I'm building a class card and I am trying to create a grid of 30 x 30 buttons. But there seems to be a problem when I try to display the buttons, I have seen in some cases, people were using the f1.controls.Button class, but I can't, all I have is the mx.controls.Button, so I think that's different here.

    Try to see if you can help me with this one.

    And another quick question, why he shouts with an error when I do this:

    private var slot: button [30 [30];

    Here is my class, and I was trying to do:

    package world

    {

    import mx.controls.Button;

    public class card

    {

    private accommodation var: Button;

    public void Map()

    {

    var i: int;

    var j: int;

    for (i = 0; i < 30; i ++)

    for (j = 0; j < 30; j ++)

    {

    slot [i] [j] = new Button();

    slot [i] [j] .width = 30;

    slot [i] [j] .hieght = 30;

    slot [i] [j] .left = 40 + I * 30;

    slot [i] [j] .top = 2 + j * 30;

    AddChild (slot [i] [j]);

    }

    }

    }

    }

    The ns1:MapButtonCanvas is the alias for the package that contains the map button object and is defined in the application tag.

    Look at the xmlns:ns1 in the tag below.  He points to the package that owns the object MapButtonCanvas. (ns is namespace).

    <>

    ' xmlns:MX ='http://www.adobe.com/2006/mxml ' layout = "vertical".

    Width = "100%" height = "100%" backgroundColor = "#eaf1f6."

    backgroundGradientAlphas = "1.0,1.0.

    xmlns:ns1 = "" com.somaint.View. * ">"

    Take a look at the real object of MapButtonCanvas and you can see that the name of the package is identical to the ns1 from above.

    package com.somaint.view {}

    Import mx.containers.Canvas;

    Import mx.controls.Button;

    SerializableAttribute public class MapButtonCanvas extends Canvas {}

    public void MapButtonCanvas() {}

    So the code below is said to look into ns1 (i.e. com.somaint.view) for the MapButtonCanvas object.

    Your package names will be different and you will need to change the name in the Application tag and in the MapButtonCanvas object.

    Insofar as your buttons for the performance of the functions, you need to add an event dispatcher clicked every button.

    Here is another version of the MapButton.  It is contained in a single application without popping the pimple of the card to its own component.

    Compare the two and see how they are in fact the same.  I added a name attribute and a listener of click event handler for the button that displays the name at the bottom of the page.  The creationcompletehandler executed after the application is created and built the buttons

    <>

    xmlns:MX ="http://www.adobe.com/2006/mxml"layout = "vertical"

    Width = "100%" height = "100%" backgroundColor = "#eaf1f6."

    backgroundGradientAlphas = "1.0,1.0.

    creationComplete = "creationCompleteHandler ()" > "

    Import mx.controls.Button;

    public function creationCompleteHandler (): void {}

    var i: int;

    var j: int;

    for (i = 0; i<30;i++)>

    for (j = 0; j<30;j++)>

    var btn:Button = new Button();

    BTN. Width = 30;

    BTN. Height = 30;

    btn.setStyle ("left", 40 + i * 30);

    btn.setStyle ("top", 2 + j * 30);

    btnCanvas.addChild (btn);

    }

    }

    }

    private void clickButton(e:Event):void {}

    btnClickLbl.text = e.currentTarget.name;

    }

    ]]>

  • Is there a bar more research? It is not in the customization or options, so how do I turn it on. Or do I need an add-on?

    Is there a bar more research? It is not in the customization or options, so how do I turn it on. Or do I need an add-on?

    Yes, the search bar is normally to the far right of the main navigation bar. Sometimes if you find yourself with too many buttons, some controls on the toolbar 'overflow' on a drop-down list. The button for the menu drop-down has an > > icon. If you feel that you can use customize to move the search bar in a more useful location because it does not work well on the list of overflow.

    If it isn't here either, consider using the "Restore default settings" button down in the center of tab customize to return toolbars "defect". This article is for details on customize: Customize Firefox commands, buttons, and toolbars.

  • I need an add-on for close tabs automatically when the link is redirected in mozilla firefox

    Hello...

    respected sir
    i need an add on or any software to close tabs automatically...
    when the link is redirected in Mozilla Firefox
    

    pls help me out here...
    If it's them I'm going to pay for it
    I need immediately...
    Thank you

    How is this different to open this link in the same tab?

  • I need to add my child email address to my account of security for the family, but I can't find the link

    I need to add my child email address to my account of security for the family, but I can't find the link

    Hello

    The latest version of the parental control now uses the standard user accounts (logon Windows) as a child in the safety of the family. The management functionality of contacts for email accounts is no longer available. For more information, please refer to this topic:

    Where is the function of the safety Contact family management?

    You can also check this link for help on how to add a child account to parental control.

    To learn more about the safety of the family, please visit http://windows.microsoft.com/en-US/windows-live/essentials-help-center

    Thank you!

Maybe you are looking for

  • Satellite L850: Play a game - holding the SPACEBAR freezes cursor

    Got my first Toshiba with my first Windows 8 experience so IDK. But I play games where the space bar it s necessary to play the game, hold the SPACEBAR and by double-clicking on a card, it allows you to select what you want. With this Satellite L850-

  • Lock screen and mouse L850 satellite every 2 seconds

    I think I have a hardware problem with the Satellite PSKDLA - 0C800R L850. It is a laptop I bougth to my wife but he has ended up with my stepson of Uni studies. While he had it the hard drive is not one of his friends replaced. twelve months later,

  • HDX 16 t 1200: upgrade Windows 10: Base system device

    Hello First of all, let me say that the upgrade of Windows 10 (I did a clean install) seems to work fine on my HDX 16. I have a few device drivers, I and Microsoft cannot understand. When I make upward device under other devices Manager, I have: >? A

  • Cannot open Accelerus, nothing happens

    I am trying to open a program and when I click on the ican computer load but nothing happens. The program does not actually work. The program is accelerus and I continued it tome a lot before. In fact I used it earlier today, but my computer ran flat

  • HP deskjet 1280: deskjet 1280

    I have over 7 years using HP Deskjet 1280. This year is the first time that I had a problem and sent to the printer for maintenance. The technician was surprised by the high number of 224 502 pages printed.I think that HP must give a decorate to this