Hello is there any better view for this code?

thanks
about_btn.addEventListener(MouseEvent.MOUSE_DOWN, aboutclick);
function aboutclick(event:MouseEvent) {
gotoAndPlay("page2");
gallery_btn.addEventListener(MouseEvent.MOUSE_DOWN, gallery_click);
function gallery_click(event:MouseEvent) {
gotoAndPlay("page3");
video_btn.addEventListener(MouseEvent.MOUSE_DOWN, video_click);
function video_click(event:MouseEvent) {
gotoAndPlay("page4");
or_mc.addEventListener(MouseEvent.MOUSE_DOWN,drag);
or_mc.addEventListener(MouseEvent.MOUSE_UP,drop);
function drag(event:MouseEvent):void{
    or_mc.startDrag();
function drop(event:MouseEvent):void{
    or_mc.stopDrag();
all.pah.addEventListener(MouseEvent.MOUSE_DOWN,drag1);
all.pah.addEventListener(MouseEvent.MOUSE_UP,drop1);
function drag1(event:MouseEvent):void{
    all.pah.startDrag();
function drop1(event:MouseEvent):void{
    all.pah.stopDrag();

What do you mean?  Except for what appears to be an excess curly brace at the end, and an inconsistent use of ":void" in the function declarations and indentations too, it looks okay functionally.

Similar Messages

  • Is there any system variable for this date format 01/21/2004 18:00:32

    Hello,
    Is there any system variable for this date format 01/21/2004 18:00:32
    This is my Internal date format and my External date format is sy-datum.
    How can I validate....any suggestions will be apprecaited!
    Regards,
    Kittu

    Hello,
    Thank you very much for your response!
    My internal date format is 01/21/2004 18:00:32
    and external date format on selection-screen is sy-datum.
    My external format is stored in S_crtsp
    and internal format is stored in L_crtsp. (01/21/2004 18:00:32)
    I want to remove the time from the internal format and validate it aginst the external format.
    Any suggestions or brief explonation is appreciated...I apprecaite the help soo far...
    Regards,
    Kittu

  • Is there any alternative logic for this issue

    Hello all ,
    I have a  program which is executed as a background job for every 15 minutes . Now my requirement is If this batch job is successfully finished, i have to capture that time and date at which the batch job is successfully finished and update the corresponding time and date in a ZTABLE .
    In order to achieve this , i have created a separate program which will also be running in background.in this program , using the table TBTCO, i m getting the last date and  last time at which the batch job is successfully finished and modifying the ZTABLE accordingly
    Is there any alternate solution for this ?
    thanks&regards,
    G.Pavan

    Hi gpavansap,
    When you define background job in SM36, your first step should be the program which you have scheduled now.
    Create a second step in the same job with another program which would just update system date and time to the ZTABLE. No need to read TBTCO and all.
    The second step would immediately execute as soon as the first step ended successfully.
    If you don't want to create a separate program. you can have a check-box "Update ZTable Only" in the selection screen of the first program itself. If this check-box is selected, the program should only update ZTABLE and do nothing else. Create a variant of your selection screen with this check-box selected and schedule this variant as "Second Step" of your back-ground job.
    Regards
    Suresh

  • Is there any retro effect for this changes we made in 2001 Infotype for

    HI Experts...
    Please advice me on the follwing absence issue.
    In my clients company.... .... one of Personnel areas employees Earned leave records are not updating in 2001 Infotype from the begining.
    Now they wish to have to update in 2001 Infotype.
    What  are the  Retro effects after updating the EL s in 2001 IT for previous dates.
    Is there any retro effect for this changes we made in 2001 Infotype for the past dates.
    We dont need retro effected from those changes.
    Please advice...
    Sai.

    HI Vincent....
    Thanks for the reply.
    Last month professional tax rates were shown up correctly only.
    For the employees slab rates are similar  that is  200 per month.
    Last month professional  tax rates  were correct only.
    For the current month also the prof tax amount is showing up correctly only.
    Please advice to get the professional tax amount in the payslip.
    Regards,
    V Sai.

  • I have upgraded my iPhone 4S to ios 6... I am surprised to see that the wi-go option is grayed out.. I did reset all the setting but no luck... Is there any fix coming for this or will apple exchange the device??? I want wi-fi option back

    I have upgraded my iPhone 4S to ios 6... I am surprised to see that the wi-go option is grayed out.. I did reset all the setting but no luck... Is there any fix coming for this or will apple exchange the device??? I want wi-fi option back

    Seems like a wide spread problem. See this post: https://discussions.apple.com/thread/4310121?tstart=0

  • I am using iPhone 4 : i OS 7. When the phone is in sleep mode i cannot disconnect unwanted incoming call, Is there any upgrade coming for this for iPhone 4 users

    Dears,
    I am using iPhone 4 : i OS 7. When the phone is in sleep mode i cannot disconnect unwanted incoming call, Is there any upgrade coming for this for iPhone 4 users. How this can be sorted

    Hello Bibhore,
    Calls can be declined by hitting the sleep/wake button twice quickly.
    Decline a call and send it directly to voicemail. Do one of the following:
    Press the Sleep/Wake button twice quickly.
    iPad User Guide - When someone calls
    http://help.apple.com/ipad/7/
    Cheers,
    Allen

  • After updating to ios 5, my calendar sometimes freezes when entering a new event. I have tried syncing but it doesn't fix the problem. Are there any bug fixes for this? Any ideas would be great thanks, I don't really want to have to reset everything!

    After updating to ios 5, my calendar sometimes freezes when entering a new event. I have tried syncing but it doesn't fix the problem. Are there any bug fixes for this? Any ideas would be great thanks, I don't really want to have to reset everything!

    Try to reset the iPod by  pressing the home and sleep button for about 10sec, until the Apple logo comes back again. You will not lose data doing a reset, but it can clear some glitches after installing new software or apps.

  • Is there any better way for updating table other than this?

    Hi all, I need to update a row in the table that require me to search for it first (the table will have more than hundred thousands of row). Now, I am using a LOV that will return the primary key of the row and put that primary key to DEFAULT_WHERE property in the block and execute query command to fetch the row that need updating. This works fine except that it require 2-query-trip per update (the lov and the execute_query). Is there any better way to doing this? This update is the main objective for my application and I need to use the most effective way to do it since we need to update many records per hour.

    Thanks Rama, I will try your method. Others, how to query row instead of primary key? I thought that querying primary key is faster due to the index?
    BTW, what people do if you need to update a table using Form? I have been using the LOV then execute query since I first developing form. But I am building a bigger database recently that I start worrying about multiple query trip to dbms.
    FYI my table will have up to million rows on it. Each row will be very active (updated) within 1-2 weeks after it creation. After that it will exist for records purposes only (select only). The active rows are probably less than 1% of all the rows.

  • I want to block a number from calling and message me but how do i do this is there any app avalible for this

    I want to block a number from calling and message me but how do i do this is there any app avalible for this

    Sadly, as Call Bliss uses the built in Do Not Disturb feature, it requires that your screen be locked in order to function.
    I'm hoping (and have submitted feedback) that Apple will beef up DND to work even when the screen isn't locked.

  • I want to communicate with J1850 system. Is there any hardware available for this?

    I would like to communicate with a J1850 system. I am wondering whether there is any hardware available for this similar to CAN. Is there a possibility to find exampls for this kind of communication.

    On Fri, 16 Jul 2004 14:02:48 -0500, Mudda wrote:
    > I would like to communicate with a J1850 system. I am wondering whether
    > there is any hardware available for this similar to CAN. Is there a
    > possibility to find exampls for this kind of communication.
    I'm still new in this area but I will try to help. AFAIK, J1850 comes in
    two flavors: VPW and PWM. You can purchase an adapter that converts RS232
    signals to those required by J1850 for about $100.
    I suggest using an adapter from Scantool.net. I say this because I
    have one and it's very easy to use. It's flexible enough to use with a
    terminal (hyperterminal, minicom, etc.) or to interface with LabVIEW, as I
    have done for you already. Go to OpenG.org for the download:
    http://openg.org/tiki/tiki-index.
    php?page=On+Board+Diagnostic+-+OBDII
    Let me know if it works for you. The interface is a little weak but the
    VIs should clue you in on how to handle communications. I plan to add
    another update in a few days so check the site regularly. I would
    appreciate your feedback.
    -kevin

  • Is there any size limit for this DB?

    Hi,
    We have installed SQL Express 2012 DB and configured as a results store for the VSTS 2012 load tests.
    Do we have the size restriction of 4 GB to this DB as well? or we dont have any size restriction for this DB?
    Thanks in advance.
    Regards,
    Y.S.Sridhar

    Hi 
    Express maximum db size limit is 10gb
    http://msdn.microsoft.com/en-us/library/cc645993(v=SQL.110).aspx
    vt
    Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker

  • The lights under my keys keep going on and off far too often ... Is there any particular reason for this or should I take it in for a service or what?

    The lights under the keys keep going on and off too much for my liking is there a particular reason for this or is there a problem with it ?

    System Preferences > Keyboard > Keyboard
    Turn off when computer is not  used for:
    Increase the time interval.

  • Is there any java runtime for this pocket PC?

    Hello all,
    Is there any java runtime/compiler for compaq pocket pc with ARM SA1110 processor??
    Can i use the personaljava Version 1.1, Beta 1 ??
    Is it possible to run XML api on pocket pc with the above config?
    Thanks.

    You can also use the kXML parser from the Enhydra organization (http://kxml.enhydra.org/). This is a package of XML parsing and DOM generation utilities specifically designed to run on small devices. Note, however, that to make it efficient for small devices, they are not W3C compliant.

  • Is there any better option than this slow query?

    Hi all,
    i want to find out lets say Ticekt no range from Variable1 - Variable 2, are all ready existed or missing from my ticket master table which is having a million records and the no grows timely.
    For example i want to find out in range 30000 - 50000
    if any missings it should give missing number are
    34567
    45678 etc . etc.
    i wrote a for.. loop and im checking one bye one from ticket master table using select count(*) from ticket_master where ticket_no = var, which is time consuming and server becoming slow when i issue this query. my ticket master ticket_no is indexed.
    any better idea advise please..

    I am not sure I understand your problem correctly.
    Here are some test datas:
    create table ticket_masters ( ticket_no number) ;
    exec for i in 1..1000 loop insert into ticket_masters values (round(i/0.97)); end loop
    select 200-1+rownum missing from ticket_masters where rownum<=300-200
      minus
    select ticket_no from ticket_masters where ticket_no between 200 and 300
       MISSING
           217
           250
           283i am select rownum from ticket_masters, but I could select from anything actually, a pl/sql table, dual group by cube(1,1,1,1,1,1,1,1,1,1), all_objects, ...
    Could you please do a desc ticket_masters to show me your datatype and also select a few ticket_no
    Regards
    Laurent

  • Any better solution for this ?

    public static void main (String args [])
         for (int row = 1; row <= 5; row++)
              for (int col1 = 4; col1 >= row; col1--)
                   System.out.print(" ");
              for (int col2 = row*2; col2 > 1; col2--)
                   System.out.print("*");
              System.out.println();
         for (int row = 1; row <= 4; row++)
              for (int col1 = 1; col1 <= row; col1++)
                   System.out.print(" ");
              for (int col2 = 4; col2 >= row; col2--)
                   System.out.print("*");
              for (int col3 = row; col3 < 4; col3++)
                   System.out.print("*");
              System.out.println();
    }I'm trying to make this:
    I think that my solution is too long. any shorter solution?
    TQ

    It IS hardwired to produce that figure and only that figure.
    What if they asked you to redo it with fewer or more rows of stars?
    You did a "bad" thing: you hardwired your loop sizes. Something like "i <= 4" is called a "magic number", because someone reading your code would have no idea where the 4 came from.
    You also have 4 appear in several places. That violates the Don't Repeat Yourself rule. If you have to change it, and forget one of the spots, your code is wrong.
    You can help both situations by defining a well-named constant and using that for the loop upper limit:
    public class DiamondsAreAGirlsBestFriend
       public static final int DIAMOND_SIZE = 4;
       public static void main(String [] args)
          for (int row = 0; row <= DIAMOND_SIZE; ++row)
          // and so on
    }Also, better to put this into a method that would take in a diamond size value and return a String. Then it's general.
    None of this is very important for this trivial problem, but they might be worth remembering when you start writing more complex programs.
    %

Maybe you are looking for

  • Intalling BO front end tools on top of SAP BW (trial version).

    Hi All, I currently work on SAP BI and SAP Enterprise Portal projects.  I am looking at installing BO Front end tools on top of SAP BW (just a trial version though).   Does anybody have the links where I can download this software?  Also I have playe

  • How can I add a member register sign in feature?

    Im hoping to be able to have a member register/ sign in feature for my website How can I do this with Muse?! Do they make it easier for doing this?!

  • Are there any restrictions on TIMESTAMP BY

    Hi I want to ask if there are any restrictions on the values given to TIMESTAMP BY? For example how old could that value be? Are very old messages discarded? Or what happens if a message arrives which has the same timestamp as a previous one that is

  • Lenovo Tab S8 50 Screen Dimming Problem

    Hello,  I have noticed that the screen is adjusting brightness depending what is on screen, bright or dark image. This is much more noticable in the lower brightness setting. I think that this is somekind of power saving feature of the Intel CPU/GPU.

  • Exchange Online Archive and Single Item recovery

    We are currently looking to implement online archiving in Exchange 2010. From my perspective,  we are doing it to relocate the older messages to some cheaper storage,  while making primary mailbox sizes are little more manageable. Management however,