Simple button not functioning?

I've been staring at this code for an hour. Maybe I need a break? This is a very simple button that just won't accept my touch events.
I have a movie clip. It's instance name is "boardA." The name of the symbol is "letterA" and it is linked to a class file called "Letters" (which is properly linked, I checked).
This is the code in the class file:
public function Letters() {
            this.addEventListener(TouchEvent.TOUCH_BEGIN, createLetter);
            trace (this.letter);
        public function createLetter(e:TouchEvent): void {
            trace ("You clicked it!");
            trace ("eName = " + e.target.letter);
Yet nothing happens when I click the button. The constructor for the file never executes.
I even moved the touch event to the main frame "boardA.addEventListener(TouchEvent.TOUCH_BEGIN, createLetter)" and it still didn't work. Nothing when I touch the button.
What am I missing here?
Thanks
Amber

No. Letters.as is in com/freerangeeggheads/spellmaster. It's linked as such - here is the text.
The base class is: com.freerangeeggheads.spellwhiz.Letters
The class is: letterA
When I click the green check box it tell me it can find the class, and when I click the edit class button it takes me to the proper script file.
I also have the file imported into my main frame.
This is the Letters.as file:
package  com.freerangeeggheads.spellwhiz {
    import flash.display.*;
    import flash.events.*;
    import com.freerangeeggheads.spellwhiz.*;
    public class Letters extends MovieClip {
        public var letter:String = "";
        public function Letters(): void {
            this.addEventListener(TouchEvent.TOUCH_BEGIN, createLetter);
            trace (this.letter);
        public function createLetter(e:TouchEvent): void {
            trace ("You clicked it!");
            trace ("eName = " + e.target.letter);
Thanks!

Similar Messages

  • Simple Button not functioning correctly?

    The button functions correctly, but for some reason when I launch the flash page, the button shows up with the alpha at 50%. I narrowed it down to the    var elasticTween3:Tween = new Tween(my_box,"alpha",Strong.easeOut, 0.5, 1, 1, true);  line of code, but I need that line to fade the alpha from 50% to 100% when mouse out occurs. Am I missing something??
    Below is my code:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    import flash.events.MouseEvent;
    var myTween:Tween = new Tween(my_box, "alpha", Strong.easeOut, 1, 0.5, 1, true);
    myTween.stop();
    var elasticTween1:Tween = new Tween(my_box, "x", Elastic.easeOut, 35, 45, 1.5, true);
    var elasticTween2:Tween = new Tween(my_box, "x", Elastic.easeOut, 45, 35, 1.5, true);
    elasticTween1.stop();
    elasticTween2.stop();
    my_btn.addEventListener(MouseEvent.MOUSE_OVER,hover);
    function hover(e:MouseEvent){
    myTween.start();
    elasticTween1.start();
    elasticTween2.start();
    var elasticTween3:Tween = new Tween(my_box,"alpha",Strong.easeOut, 0.5, 1, 1, true);
    elasticTween3.stop();
    my_btn.addEventListener(MouseEvent.MOUSE_OUT,out);
    function out(e:MouseEvent){
    elasticTween3.start();
    elasticTween1.start();
    elasticTween2.start();

    make sure that code executes exactly once.  ie, that frame shouldn't be re-entered.  use the trace() function to confirm, if you think you've prevented re-entry.
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    import flash.events.MouseEvent;
    var myTween:Tween = new Tween(my_box, "alpha", Strong.easeOut, 1, 0.5, 1, true);
    myTween.stop();
    var elasticTween1:Tween = new Tween(my_box, "x", Elastic.easeOut, 35, 45, 1.5, true);
    var elasticTween2:Tween = new Tween(my_box, "x", Elastic.easeOut, 45, 35, 1.5, true);
    elasticTween1.stop();
    elasticTween2.stop();
    my_btn.addEventListener(MouseEvent.MOUSE_OVER,hover);
    function hover(e:MouseEvent){
    myTween.start();
    elasticTween1.start();
    elasticTween2.start();
    var elasticTween3:Tween = new Tween(my_box,"alpha",Strong.easeOut, 0.5, 1, 1, true);
    elasticTween3.stop();
    my_btn.addEventListener(MouseEvent.MOUSE_OUT,out);
    function out(e:MouseEvent){
    elasticTween3.start();
    elasticTween1.start();
    elasticTween2.start();

  • Exit button not functioning in MSS Team - Recruiting - Create new Candidate

    Hello Experts,
    Exit button not functioning in MSS Team - Recruiting - Create new Candidate Assessment iview
    Location of exit button :Create new Candidate Assessment iview we have next button when we click on we can see exit button in next iview
    any idea why it not functioning / help on this / or is it a bug from SAP
    Thanks,
    Regards
    Vijay

    Hi Krishore,
    Thanks for reply,
    The version of BP_ERP5ESS is 1.0 SP8 and The version of SAP_ESS is  600 SP8.
    do need to add extra patch for this.
    please help me on this issue. 
    Thanks,
    Regards
    Vijai

  • Shape modes Expand button not functioning

    Just installed CS4.
    When I merge object using the shape modes line in the Pathfinder palette the objects are not dynamically merged but rather merged as when I use the 'Merge' command from the 'pathfinders' line.
    This means the button 'expand' is not functioning either since the objects are already expanded automatically.
    Does anyone have the same problem and is this a bug or am I missing something?

    > The issue is that I would prefer the 'old' situation back
    And I was not arguing with your preference. (I don't share it, but you're enttitled to it.) You said Add To Shape and Merge do the same thing:
    > ...the merge function results in exactly the same as the simple merge using the pathfinder command. Two identical commands in this palette seem to be silly.
    They don't, and so the presence of both of them is not silly.
    You seem to think that the Shape Mode buttons are supposed to be just "live" versions of the Pathfinder buttons. They aren't. The Shape Modes are four basic set operations (union, subtract, intersection, difference), and can be applied as live or not. The Pathfinders are
    additional operations (each with its own set of sometimes bizarre behavioral caveats), and cannot be applied as live effects.
    But their being able to be applied as live effects, and whether live or expanded is default is immaterial as to whether one is superfluous or not.
    Merge Pathfinder is NOT the same thing as Add To Shape Area expanded. The two only happen to result in the same thing under the special circumstance of same-filled unstroked paths. Merge (its inability to handle strokes notwithstanding) is an important path operation for things very different from the purpose of Add To Shape Area.
    JET

  • Approve Button not functioning in Approval Page NotifDetailsPG.xml

    In NotifDetailsPG, we have the page for approving Batch Approval Requests...
    There are four buttons, Approve, Reject, Reassign and Request Information.
    When we click on the Approve, or reject button, nothing happens, but on the Reassign and Request Information, we are directed to the proper page. Now I need to approve the Journal but i think the Approve and Reject button is not functioning. and we noticed in IE's status bar, that the page was "done with Errors"
    clicking on the done with errors area, we have the error message:
    Line:8
    Char:74
    ErrorL Expected ";"
    Code:0
    URL:http://hostname:port/OA_HTML/OA.jsp?page=oracle/apps/fnd/wf/worklist/webui/NotifDetailsPG?......
    What might be the reasons for this errors?
    null

    you have to search in Metalink using Advanced Search.. key-in "approve button" and select LinuxX86 as the platform..
    If i remembered there is also a result regarding 11.5.10...
    Mine is 11.5.9 related and it just instructed me to upgrade the Workflow mini-pack.. OWF.H.. I think 11.5.10.2 already includes OWF.H so your case might be a different one..

  • Google Maps buttons not functioning

    Google Maps does not function anymore in Safari. None of the buttons work, including the search button (I can type in an address, but nothing happens when I press the mag. glass icon, or return), or any of the smaller icons in the corner including zoom in/out, help, tools etc.
    Works just fine using Firefox, and I did update Flash to the latest version.
    Any help appreciated--thanks in advance.

    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.

  • Mavericks update, MacBook Pro, short cut buttons not functioning to

    After recently installing the OSX mavericks 10.9.3 the shortcut buttons at the top of my keyboard are either not working or are not functioning with the correct button. I checked through the system preferences and found nothing to help me. What can I do to get the short cut buttons to work?

    Did you try syst prefes/keyboard restore defailts?
    Try SMC reset;
    http://support.apple.com/kb/HT3964
    Follow a bttery you should not remove yourself
    PRAM reset:
    Shut down your Mac.
    Locate the following keys on the keyboard: Option, Command (⌘), P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on your Mac.
    Immediately press and hold the Option-Command-P-R keys. You must press this key combination before the gray screen appears. Continue holding the keys down until your Mac restarts, and you hear the startup sound for the second time.
    Release the keys.
    Try a sfe boot:
    Power off, power on holding the SHIFT key, continue to hold till you see the progress BAR, then release and allow to finish booting (this will take longer than a regular boot) after it boots shut down and boot normal.

  • IPOD Mini front panel buttons not functioning

    First of all, thanks for reading my message.
    I have this wierd problem. My front panel buttons namely Menu, forward, rewind, play/pause and wheel donot work.
    The thing that is wierd is that my ipod is still functional using the remote. Even when I am playing MP3s using remote, those regular buttons dont function. They look like they are dead, no response what so ever.
    Since the remote has limited buttons I want my front panel buttons to work. Any inputs on this regard is appretiated.
    P4   Windows XP  

    More details:
    I can charge my IPOD.
    sync it to itunes.
    Hold works.
    ear phone jack works.
    In all my IPOD is in a state similar to what you have when you switch to "HOLD". Irespective of whether I swith the hold button or not.
    P4   Windows XP  

  • N95 8GB buttons not functioning

    I've had my Nokia N95 8GB for 2 yeras now, when all of a sudden some of the top media buttons have stopped working, preventing me from accessing messages and contacts which is a complete pain. I have tried taking the phone apart to clean the board and performed a hard reset, but to no avail. Has anyone ever had this problem and have any solutions? Also, would I have lost all my contacts from reseting?  
    Any help would be appreciated as it's becoming increasingly frustrating not being able to read my  new messages!

    The likely cause of problem is the connecting foil cable between phone's main body and the sliding/screen section. It can easily be replaced with new unit which costs about $20. Make sure you purchase a quality unit. I purchased 2 (very cheap) units from China and 1 unit in USA and all did not function properly. Ended up buying it from reputable source, double the cost and it did work. This is your best option, just replace the part.
    Other option is to use a Bluetooth keyboard. I used a mini bluetooth keyboard with my N95 and it controls all keys and shortcut funtions, etc. Not sure if you'll be able to configure keyboard at this stage (without use of some buttons).

  • My N73 ME Music Button Not Function

    Dear All,
    Please help me.
    My Nokia N73 ME, I buy last 2 month having problem.
    {problem}
    Music Button stop functioning after ON so long time.
    Power OFF and ON again the Music Button can function again.
    After several hours ON, the problem occured again.
    Last week I already update New Firmware version V4.0727.2.2.1 04-07-2007 still can not solve this problem.
    Anyone facing same problem and what the countermeasure?
    Thank you.
    Best regards,
    Abramosa

    I have got the same problem...No choice I have add shortcut to top menu to play my music
    N73 ME - V 4.0839.42.2.1 (27-09-2008)

  • Lock Button Not Function

    hi there, I'm Wilfred, currently my ipad is having a problem which the lock button is not function. Thus it's caused me unable to screen lock my ipad in a proper manners. May I know is there any solution to overcome this issue? Thanks.

    The side switch is the key.  Depending on your settings, it may affect the mute or it may affect the rotation lock.  Whichever function it supports, the other function is performed by a "soft switch."  This support article from Apple provides detail.
    http://support.apple.com/kb/HT4085
    In case you're wondering, here is the history.  Originally, the mechanical switch affected only the rotation lock and the mute was a software switch elsewhere.  In IOS-3, it was changed to be the mute switch and the rotation lock became a software switch.  This was done to ensure consistency among IOS devices.  Unfortunately, a large quantity of users complained loudly, alleging that they turned the rotation lock on and off several times every hour and the convenience of the mechanical switch is essential.  In IOS-4, Apple bowed to the whiners and made the switch function selectable and now we're stuck with a mess.
    There have been some problems accessing pages on the Apple web site.  If the hyperlink gives you a "We're sorry" message, try again.

  • ALV buttons not functioning

    Hi,
    I created a user-defined screen in an alv report.
    MODULE status_9001 OUTPUT.
       "SET PF-STATUS 'ZMAIN'
        ENDMODULE.
    When I run the report,  the alv defined buttons are not getting activated. I activated them in the interface but still they are unfunctional. Kindly suggest what to do.
    Thanks in advance.
    Regards,
    Puja

    Hi Puja again,
    I hope you declare at user command perform.
    and in that
    you should use case end case.
    let me give code example for this.
    e.g.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
       i_callback_program                = sy-repid
       i_callback_pf_status_set          = 'GI'
       i_callback_user_command           = 'USER_COMMAND'
    FORM user_command USING lv_ucomm TYPE sy-ucomm ls_selfield TYPE slis_selfield.
      CASE lv_ucomm.
        WHEN '&IC1'.
          IF ls_selfield-fieldname = 'MATNR'.
            READ TABLE gt_gi INTO gs_gi INDEX ls_selfield-tabindex.
            IF sy-subrc = 0.
            ENDIF.
          ENDIF.
        WHEN 'COPY'.
        WHEN 'POST'.
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    " USER_COMMAND
    I hope this will help you.
    Regards,
    Vijay

  • IPad push button not functioning, why?

    Along with issues that began with running my desktop and iPad through iTunes Match, I am now receiving an error message about inadequate local storage.  So, I deleted all my foldered emails, one-fourth of my songs, all my TV shows, all my movies, all my videos, and a handful of apps. Still get the message.
    At the same time, I have another (new) problem:
    The round push button at the base of the iPad:
    Will not power on the iPad
    Will not let me shift from application to application (can only be accomplished by holding down the power button and doing a reset -- although iPad stays stuck in whichever is the first application chosen)
    Everything worked appropriately and all songs played before iTunes Match.  Since subscribing to iTunes Match, I am "benefitting" by having:
    unplayable songs
    receiving messages about insufficient local storage
    the non-functioning main button
    Can anyone help me out of this quagmire?
    C/C

    Reset your iPad to hopefully get the Home button working. If that doesn't help make an appointment at an Apple Store to have the iPad checked out.
    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

  • Power button not functioning well

     van any one give solution tothis problem.  my laptop show blank screen although led lights are on in batery. with external power also fisrt pres same thning happen but upon hard reset and putting on again it starts normally. waht is the problem and solution to this problem. nay on please help me

    Amazing how people areover reacting... think guys for god sake! Why do you think the button doesnt click? yeah right!!! because there is rubber under it! Why? to make the device waterproof.
    Offcourse it doesnt make the sound or give the same feedback a button gives on a not waterproof smartphone. 
    One advise if you really hate it. and i do too because it feals like the button will stop working any minute. you enable the double tap function on the screen to wake the device. If you install Lock screen by Go launcher EX you can put a button on the homescreen to shutdown the screen. This way you wil never have to press the power button except when you need to reboot or power down the device.

  • Issues with LiveCycle ES4 - "Distribute Form" greyed out and "email button" not functioning

    Bought this software on 8/1/13.
    Designed my first form, "saved to repository" and proceeded to test. The email function for whatever reason does not work. Went back and examined the properties to the button, I have it set up correctly. In fact the XMS format works perfect, but I want the form to come via PDF when emailed. This feature is not coming through on email.
    I am not sure if the above two issues are related however I did read that in the stand-alone software, the "distribute form" is not offerred which I wonder if this the reason it is greyed out.
    Can anyone help me work through the "email button" issue?

    If the PDF submits to a server-side script URL it can bypass client-side email software.
    Try the online PDF submission examples and see if it works for you in Mozilla FireFox:
    http://www.pdfemail.net/examples/
    You should also make sure the browser is using the Adobe Reader plugin as the default PDF reader.
    http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

Maybe you are looking for

  • Computer restarts on its own, help!

    Hey all, perhaps this isn't the right place in the forums, but I just don't know where else to go. My computer just in the past 24hours has been restarting on its own saying 'Your computer was restarted because of problems' or something along those l

  • Spl gl account

    Hi Consultant, What is the purpose of spl gl indicator and spl gl account? I see the setup in fbkp and I notice that the use of it is only for customer and vendor. 1 The main usage is instead of posting to the subledger reconciliation account, it is

  • Abap report attributes : Authorization group

    Hello, I would like to know if there is an enhancement to force the developer to assign an authorization group to the new created abap report, when filling the attributes Thank you by advance Philippe

  • Order of starting db,listener in 11i

    Hi, This is silly question. what is the order of starting/stopping db and db listener in 11i. 1). We take cold backup every fri and in the backup log file i see that the addlnctl.sh stop <SID> is hanging and after that the whole system (O/S) is hangi

  • Balance Carry Forward Business Rule in Waiting Status

    Hi , I have created a Business Rule for Balance C/f. When I run this Rule from Data Manager using Run Package, this goes in waiting status. How I can resolve this issue. Thanks in advance, Sanjay