Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 31,214 points

Veemon

Favorite Answers7%
Answers311
  • Flash/AIR -> Can't get TouchEvent To Work, what's wrong with my code?

    Hello,

    I am trying to get a touch event to trigger. Using my Motorola Droid 2 phone, I can get a MouseEvent to trigger, but I can't get a TouchEvent to trigger that would change text on screen.

    I am using an AIR For Android Template in Flash Pro CS5.

    Here is my code:

    package {

    import flash.display.MovieClip;

    import flash.events.TouchEvent;

    public class Document extends MovieClip {

    public function Document() {

    stage.addEventListener(TouchEvent.TOUCH_TAP, testing);

    }

    public function testing(event:TouchEvent){

    debugTestbox.text = "Hello"

    }

    }

    }

    This results in nothing hapening.

    However, when I make it a MouseEvent instead, it works.

    Am I using TouchEvent wrong? If so, what is the correct way?

    Thank you in advance.

    1 AnswerProgramming & Design9 years ago
  • How can I use WHERE and a composite primary key?

    Hello,

    First of all, sorry if I am getting my terms wrong.

    I am trying to delete from a table using a composite primary key.

    My problem is I am not quite sure how to.

    I got the composite primary key setup:

    ALTER TABLE birthdayList ADD CONSTRAINT pk PRIMARY KEY (firstName, lastName);

    How can I use in conjunction with WHERE?

    For example, if I wanted to delete from the table using the primary key?

    I thought it would have been something along the lines of:

    DELETE FROM birthdayList WHERE PRIMARY KEY pk = ('John','Smith');

    I am at a loss, if I can get help, I'd greatly appreciate it.

    Thanks in advance.

    2 AnswersProgramming & Design9 years ago
  • Using SQL, How do I properly change a column from NULL to NOT NULL?

    Hello,

    I am learning MySQL and I am having a problem understanding how to change a column from NULL to NOT NULL.

    Here is my setup.

    The database name is Birthdays and there is a table named birthdayList

    In the table birthdayList, one of the columns is called firstName of datatype VARCHAR(20).

    Using DESC, I verified that the column exists in the table.

    When I tried to alter the column to not null, it did not work.

    This is what I used:

    ALTER TABLE birthdayList MODIFY COLUMN firstName VARCHAR(20) NOT NULL;

    I get some error saying data truncated. What am I doing wrong?

    Thank you in advance.

    2 AnswersProgramming & Design9 years ago
  • What is wrong with my JRadioButton? (simple question hopefully)?

    Hi, I have this:

    JRadioButton trueButton = new JRadioButton("True");

    trueButton.setSelected(false);

    However, I get this:

    MyFrame.java:28: <identifier> expected

    trueButton.setSelected(false);

    ^

    MyFrame.java:28: illegal start of type

    trueButton.setSelected(false);

    ^

    So what's wrong with it?

    I do have all the import statements:

    import javax.swing.*;

    import javax.swing.JButton;

    import java.awt.*;

    import java.awt.event.*;

    import javax.swing.JOptionPane;

    1 AnswerProgramming & Design1 decade ago
  • No data source name found and no default driver specified? (odbcad32, Java related)?

    Hi,

    I have bit of a dillemma. I'm trying to connect to a Microsoft Access Database ('97 format) table using java. I have setup a data source in the obdcad32 named 'testingThis' under User DSN, which I set up by hitting add, selecting 'Microsoft Access Driver (*.mdb)', entering 'testingThis' in the Data Source Name field, selecting the database (where the access database in 97 format was saved), and clicked 'OK'.

    Supposedly the JDBC-ODBC driver does load, but it doesn't see the Datasource.

    Here is a sample of my code:

    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

    String sourceURL = new String("jdbc:odbc:testingThis");

    Connection databaseConnection = DriverManager.getConnection(sourceURL);

    Even though the data source variable 'testingThis' links to the database, I keeping on getting this:

    'java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'

    Is there something wrong with my computer maybe?

    If I could have help, I would greatly appreciate it.

    Thank you in advance.

    1 AnswerProgramming & Design1 decade ago
  • Is there an object like a sattelite around the moon right now?

    Around 5:45, I saw an object seemingly stationary near the moon, but it didn't look like a star. If anyone else saw it, what was it?

    My bad if it is a star.

    Thank you in advance.

    4 AnswersAstronomy & Space1 decade ago
  • Flash CS4- Action script preventing motion tween?

    Hello.

    I am having a problem with action script and it seems to be preventing a motion tween. I'll describe the situation:

    What I'm doing:

    Have a logo fade in, while moving from the left all the way to the right.

    So, First of all I have a movie clip symbol. Within that symbol are two layers. One layer contains a motion tweened symbol with the property name "alc" spanning across 30 frames, while the other layer has action script. The action script simply contains at frames 1 and 11 to 20 changes in the alpha of the motion tweened symbol (in this case, alc.alpha = 0.0 in frame 1, but at at 11 to 20, alc.alpha = .1, .2, .3 etc.).

    However, when I put the action script in, it stops the motion tween, but the transparency effect occurs. When I take the action script out, it moves again.

    There is no .stop() anywhere.

    Oddly enough, when I converted the motion tween to frame by frame animation, I was facing the same problem. I can't figure out what's wrong. If I could have help, I'd greatly appreciate it.

    Thank you in advance.

    2 AnswersProgramming & Design1 decade ago
  • How do I stop Photoshop CS4 from creating a new layer each time I use the line tool?

    Each time I use the line tool, a new layer is created. How can I stop this? No settings were changed.

    Thanks in advance.

    4 AnswersSoftware1 decade ago
  • Flash CS4- How do I overcome a button glitch? Read details.?

    Hi,

    Using a Button Symbol, I have placed three different images: 1 in Up, 1 in Over, and 1 for Down and Hit.

    So I'm over a button, holding the mouse down. I move my mouse off and away from the button, but I hold my mouse button down. The button remains in the Over state.

    Now what's even weirder is going over another button, with my mouse button continuing to be held down, and that button doesn't go into down state, nor over state, while the button I came from remains in over state.

    When I release the mouse button, the buttons do what they should do.

    I do have actionscript event listeners and they work perfectly and with this button glitch, it looks weird if a person is holding their mouse down, moving their mouse over other options.

    My event listeners work so that an event occurs when the person lets go of their mouse over a button.

    Even without any actionscript, this bug still happened.

    So how can I beat this glitch?

    Also, advertising bots are SEVERELY not welcome this time.

    Thanks in advance if my question can be answered. Sorry for asking this again, but I need to find out this bug.

    1 AnswerProgramming & Design1 decade ago
  • How do you import ".png" files into Adobe Flash CS4 without white pixels?

    Hello,

    I'm trying to import a .png file into AdoeFlash (Import to Stage), but there is a problem with extra white pixels that I do not want to have. They should be transparent.

    When I saved the file to .png in Adobe Photoshop by Saving For Web and Devices (which has a transparency option checked), it should have removed the Transparent pixels when I placed the image on the stage of Adobe Flash CS4 file I was working on.

    I did try to "Save As" first, but that did not work.

    So how do I remove the transparent pixels?

    Thank you in advance.

    5 AnswersProgramming & Design1 decade ago