How to check if a function exists in Flex?

Hi,
I am wondering if there is any method to check if a function exists in Actionscript/Flex.
The same way as we do isdefined in javascript.
Thank you
Mayank

On instances - use Object hasOwnProperty method - all objects in AS3 inherit from Object:
var mc:MovieClip = new MovieClip();
var s:Sprite = new Sprite();
trace(mc.hasOwnProperty("play")); // true
trace(s.hasOwnProperty("play")); // false

Similar Messages

  • How to check for a function module with its description and functionality

    Hi all,
    How to check for a function module,with its description and its functionality,in detail how can I know the purpose of a particular function module,how to search for a function module which suits my requirement .

    Hi,
    You can search a FM of your requirement by putting in the Key words and searching for a FM. Like * KEYWORD * and then pressing F4.
    Say for example you need to search something regarding converstion.
    Search for * CONVERT * and press F4.
    If there is something specfic like converting date to something you can give
    DATE * CONVERT *
    OR
    CONVERT * DATE *  and press F4.
    Once you narrow down your search you will have a Function module documentation inside the Function module. Please note that all the FMs willl not have documentation.
    Regards,
    Pramod

  • Please help me how to check a material does existed group code in system (w

    Hi all,
    Please help me...
    I have inputted quantity for  tx MC 94  but when I input them into  tx MC94, I met  a message " Structure  not yet maintained for  this conbination characterstics". Step by step to show a error message as below:
    Step 1: Launch MC 94
    step 2: Enter Planning
    Step 3: Enter  Prod.Code. Material (ex: enter material code :0101010260008, this code is existed  Prod.Code )
    Step 4: Click on "Inactive Version " button
    ==> A error message is showed.
    Please help me how to check a material does existed group code in system (which table to  check  it)?
    How to record the message" Structure  not yet maintained for  this conbination characterstics" to catch up it in my program?
    Thank in advance.

    Karenloria,
    1. Check in MC8C, which Infostructure is used for Planning type "Planning" or the one you are entering in the intial screen of MC94.
    2. Using transaction MC63 for the infostructure identified in step 1, check the planning hierarchy maintained. If this product is not maintined maintain using MC62.
    You can also check using SE16 transction the current infostructe records(Plan) for the table name = infostructure identified in step 1.
    Regards,
    Prasobh

  • JavaScript: How to check if a file exists.

    Hello Everybody,
    Can you tell me how to check if a file exists using JavaScript and Internet Explorer.
    Browsing on this website I could read about the command "f.exists()" and it was necessary to include "java.io.*".
    Should I use this same command and should I include the same files? Or are there other files and other commands?
    Thanks in advance.

    sorry ya. there is no command to check whether a file exists using javascript. The following code says the object name and value. But it can't say whether the file exists in the harddisk or .. Javascript cannot access database and system resources. If the file exists or not can be checked through the application (ASP, CFML, ..) you are using.

  • How to check whether a file exist in the program folder or not?

    Hi guys,
    how to check whether a file exist in the program folder or not? Let is say i recieve a file name from user then i want to know if the file is there not and act on that base.
    abdul

    Look at the class java.io.File and the .exists() method:
    http://java.sun.com/j2se/1.4/docs/api/java/io/File.html

  • How to check whether portal user exists or not using UM API.

    Hi Experts,
    Let us say i need to create an user account "PortalUser",i know how to create an user,setting first name,lastname,password for that.
    but here before creating the portal user, i need to check whether that user exists or not.If user already exists ,then i  need to skip the below for creating the user.
    IUserFactory userFact = UMFactory.getUserFactory();
    IGroupFactory groupFact = UMFactory.getGroupFactory();
    IRoleFactory roleFact = UMFactory.getRoleFactory();
    IUser tuser = userFact.getUserByLogonID("PortalUser");
    IUserMaint newUser = userFact.newUser("PortalUser");
    newUser.setFirstName("PortalUser");
    newUser.setLastName("Test");
    newUser.setEmail("PortalUser.Testatgmaildotcom");
    //Locale PortalLanguage = new Locale(Lang.toLowerCase(), "");
    Locale PortalLang=new Locale("en");
    newUser.setLocale(PortalLang);
    newUser.save();
    newUser.commit();
    IUserAccount userAcc = UMFactory.getUserAccountFactory().newUserAccount("PortalUser", newUser.getUniqueID());
    userAcc.setPassword("test1test$");
    userAcc.save();
    userAcc.commit();     
    Thanks in advance.
    Thanks
    Sony.

    Hi,
    Try this code,
    IUserFactory factory = UMFactory.getUserFactory();
    IUser user = factory.getUserByLogonID(userId);
    lastName = user.getLastName();
    firstName = user.getFirstName();
    refer this pdf,its very helpful
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars-nw-rig/using%20the%20user%20management%20api%20with%20ep%20applications%20-%20webinar%20powerpoint.pdf
    Regards,
    Sunaina Reddy T

  • How to check if an object exists and how to discard it?

    Greetings,
    I have a main GUI panel in a JFrame that creates a smaller JFrame with a progress bar and text area whenever a process is initiated. I've set the default close operation to DISPOSE_ON_CLOSE as when I set it to EXIT_ON_CLOSE the main GUI panel closes as well (!). But whenever I'm closing the smaller JFrame and initiate a new thread, then the same operation is perform in parallel 2, 3 ,4 times, etc. It seems that the object of the class ProgressGUI which carries all the components of the small panel is not disposed properly. So my question is how can I check if an object exists and if yes how can I discard it? Or in other words how can I discard the JFrame of the small panel without closing the main GUI panel as well?
    thanks,
    Thomas

    I've set the default close operation to DISPOSE_ON_CLOSE thats right.
    So my question is how can I check if an object exists Whenever you create an object, save its refrence somewhere, then just check
    if(reference==null){
             //object does not exist
    }else {
            //object exists
    and if yes how can I discard it? Ensure that no references of the object to be discarded are remaining with any of the objects and then believe in 'Garbage Collector' to do the job! e.g. if there is only one reference to the frame (in your case) somewhere, you can just make an assignment like:
    reference=null;by doing this, you have made the object a candidate for garbage collection. Rest is done by 'Garbage Collector', not you.
    For cases like yours, it is better to make the small frame just once and whenever required just make the frame visible.
    e.g.
    JFrame smallFrame;
    void showSmallFrame(){
        if(smallFrame==null)smallFrame=new SmallFrame(); //or something like that
        smallFrame.setVisible(true);
    }Thanks!

  • How to check if database/table exists in MYSQL

    I am writing a program which accesses databases in MYSQL, is there any way to check if the databases exists on the MYSQL server and if not create one && to check if a table exists and create one of if it does not

    OK, found out that as special permissions needed to create databases I assume it cannot be done via my app but how about Tables

  • How to check it certain url exist?

    hi there....
    can someone help me??
    is it possible to check if certain url exist?
    public class checkFile1{
         public static void main (String [] args) {
         String file = "http://www.yahoo.com";
         if (file = exist){
              open file;
         else{
              System.out.println("nv exist");
    Message was edited by:
    n_dilah

    i try doing this but how come it give me false instead off returning me true?
    System.out.println(exists("http://www.yahoo.com/"));
    System.out.println(exists("http://www.rgagnon.com/"));
    static boolean exists(String URLName){
    try {
    HttpURLConnection.setFollowRedirects(false);
    // note : you may also need
    // HttpURLConnection.setInstanceFollowRedirects(false)
    HttpURLConnection con =
    (HttpURLConnection) new URL(URLName).openConnection();
    con.setRequestMethod("HEAD");
    return (con.getResponseCode() == HttpURLConnection.HTTP_OK);
    catch (Exception e) {
    e.printStackTrace();
    return false;
    }

  • How to check if a function module has been called dynamically in programs

    Hi,
    I wanted to know if there is a way to check if a function module has been called dynamically in any programs. In SE37, if you click on where used list for a FM, it shows FM not found in programs (Possibly dynamic calls).
    I am checking if the function module /SDF/RBE_EXECUTE_SQL_WRAPPER has been used in any of SAP programs. Your help is greatly appreciated.
    Best regards,
    Siva

    one way will using program RPR_ABAP_SOURCE_SCAN search for complete source codes with a find string RBE_EXECUTE_SQL_WRAPPER .
    PS But it the function module name comes from a table ( Table entry value) then it is difficult to find

  • How to check whether transport path exist between two systems in sld??

    Hi,
         I have two systems namely 'A' and 'B' and created business systems for both of them.Then i created transport path between the two systems.How i check whether what i have done is right in SLD.

    <b>WRT to CMS</b>
    am not sure with this but u can try:
    1. Start CMS: http://<host>:<J2EE Engine http port>/webdynpro/dispatcher/sap.com/tcSLCMS~WebUI/Cms.
    2. Goto lansdscape configurator and check there
    Message was edited by:
            Prabhu  S

  • How to check if my function is MT-safe?

    I wrote some functions in a multi-thread program.
    I can check if a function is MT-safe by man it.
    But I'm not sure, if a function calls only MT-safe functions means this function is MT-safe too?
    Any help is appreciated.
    Jenny

    Hi Jenny,<br><br>
    This is a difficult subject and I don't think there would be<br>
    a tool to give you a definitive answer. However, have a look at<br>
    the lock_lint tool. It is part of the Sun compiler distribution<br>
    in /opt/SUNWspro/bin and is used to verify the use of locks in<br>
    multi-threaded programs.<br><br>
    Hope this would be useful.<br>
    <br>
    Caryl<br>
    Sun DTS<br>

  • Check What PHP function returned with Flex Mobile Project

    Hello, I'm connected to PHP service and Im calling function login that is returning "yes" or "no".
    My question is, how to check what was returned with Flex, this is what I have:
    protected function button_clickHandler(event:MouseEvent):void
                    loginResult.token = employeeService.login(Name.text, pass.text);
    What to do next?
    Thank you

    Thanks Keith, I'll have a look at that. In addition to opening a PDF, I want to be able to encode an anchor id in to the open command to jump a specific anchor; I'd concluded that on iOS, until Adobe add decent url-scheme support, that was a no go - so I've been staring down the barrel of converting the .pdf to HTML and tidying up the inevitable issues manually. Here's hoping Print2Flash will help avoid that!

  • How to check if the path exists and if not, create it

    I'm trying to check if the path given by the user already exists. In case it doesn't, I'd like to create a folder with name given in the same directory.
    Let's say path_1: "C:\folder1" and path_2: "C:\folder2", and suppose that folder1 exists but folder2 doesn't. Then if the path given by the user is the path_1, then ok, nothing happens, but if it is the path_2, then the programm should realize that it doesn't exist in C:\ and should ask you whether you want to create it or not.
    I know how to do that for files, but not for folders!
    Thanks in advance

    hi guys,
    i`m new at this so im gonne prob. ask a noob`s question...
    i have the same issue as in the title.
    but when i run :
                                              int a,b,c,d,folderexist=-1;
                                             switch (event)
                                                       case EVENT_COMMIT:
                                                                                 GetCtrlVal (panelHandle, PANEL_NAME, name);
                                                                                 folderexist = GetFileAttrs (name, &a, &b, &c, &d);
                                                                                 if (folderexist==-1)
                                                                                           MakeDir (name);
                                                                                           sprintf...........
                                                                                 else.......
    if the folder do exists it works perfectly.
    if it doesnt - it breaks the run and gives me the message :
                          NON-FATAL RUN-TIME ERROR: "NewScap.c", line 317, col 27, thread id 0x00001B98: Library function error (return value == -1 [0xffffffff]).
    (and mark the getfileattrs line in blue)
    and when i check the "folderexits" value it shows 2!? not 1 not 0 not even -1, but 2...
    can somone please help ?
    thanks 
    Adi.

  • How to check if internal table exists in dynamical called subroutine ?

    Hi,
    in a dynamically called subroutine i'm using a internal table, but in some calls this table is not exist.
    How can i check in the code whether the internal table exist or not ?
    regards,
    Hans

    In Horst Keller's blog /people/horst.keller/blog/2005/05/27/abap-geek-10--everything-functions-150-but-how my issue is talked about :
    All other parameters are handled in a way as they were declared as global data objects in the top include of the function group, that can be used only during the execution of the function module: They are visible throughout the function group but you can access them only while the function module is active. If you access such a parameter and the respective function module is not executed, you get the runtime error GETWA_NOT_ASSIGNED (Why? Well, technically thos guys are represented via field symbols which are valid only during the runtime of the function module).
    The code is in SD pricing. Sometimes the code is called from function module PRICING_BUILD_XKOMV or PRICING_SUBSCREEN_PBO where TKOMV is defined as globalized parameter.
    And sometimes it is called from function module PRCING_CHECK where TKOMV is NOT defined as parameter.
    In the call of last function the dump occures on the ASSIGN statement :
         data: ls_tkomv like line of tkomv,
                  lv_tablename(30) type c value 'TKOMV[]'.
        field-symbols: <lfs> type any table.
         assign (lv_tablename) to <lfs>.
         if <lfs> is assigned.
    Any suggestions to solve the issue ?
    regards,
    Hans

Maybe you are looking for

  • Messed up styling in firefox 32.0.1 and 32.0.2

    this website and many others doesn't show correct after I updated from Firefox version 32 http://i.imgur.com/TVzN44Q.jpg as you can see here this problem is only in Firefox: http://i.imgur.com/MNhOtYD.jpg

  • How much RAM does verizon internet have dedicated?

    Using GT704WG hard wired to Gateway 3 Ghz 2048 MB DDR2. I-MAC wireless in another room. Verizon is ISP. I have 1300 MB free RAM after I log on. Less as I surf. (win xp sp 3). I wouldn't normally think of Ram as an issue when they only used, to put 51

  • How many photos is too much

    I realize that this is one of those "your mileage may vary" type questions, but here goes: How many photos is too much for a single iphoto library? Have people either encountered problems after reaching a certain threshold? Or are there people who ha

  • Update terminated - MCV_STATISTICS_UPD_V2_ORDER

    After saving the sales order, I am getting the error - "Express Document - Update Document Terminated". SM13 shows the message error MCV_STATISTICS_UPD_V2_ORDER. Can you give me some idea how to fix this ?

  • I want to attach an external drive to my time capsule, what format should i select for it?

    I have a WD external drive that I want to add to my Time Capsule.  It had previously been used to store TV shows on.  I need to reformat it for the Time Capsule.  What format do I choose?