Variable usage

Can a variable be used like this? If not does anyone have any
idea how I might be able to control a movie clip which comes from a
variable?
var itsMe = "movie1_mc";
itsMe.gotoAndStop(horVal);

no, you cant !
Just use like this..
var itsMe = movie1_mc;
itsMe.gotoAndStop(horVal);

Similar Messages

  • All variable usage

    hi, I am new to sap-abap.
    i want to learn more about variable usage in abap.
    can anyone guide me?
    regards,
    hema.

    hi hema,
    this will guide u.
    hi,
    *& Report Z_OOABAP18 *
    &----REPORT Z_OOABAP18 .CLASS lcl_employee DEFINITION.
    PUBLIC SECTION.
    The public section is accesible from outside
    TYPES:
    BEGIN OF t_employee,
    no TYPE i,
    name TYPE string,
    END OF t_employee.
    METHODS:
    constructor
    IMPORTING im_employee_no TYPE i
    im_employee_name TYPE string,
    display_employee.
    Class methods are global for all instances
    CLASS-METHODS: display_no_of_employees.
    PROTECTED SECTION.
    The protecetd section is accesible from the class and its subclasses
    Class data are global for all instances
    CLASS-DATA: g_no_of_employees TYPE i.
    PRIVATE SECTION.
    The private section is only accesible from within the classs
    DATA: g_employee TYPE t_employee.
    ENDCLASS.
    LCL Employee - Implementation
    CLASS lcl_employee IMPLEMENTATION.
    METHOD constructor.
    g_employee-no = im_employee_no.
    g_employee-name = im_employee_name.
    g_no_of_employees = g_no_of_employees + 1.
    ENDMETHOD.
    METHOD display_employee.
    WRITE:/ 'Employee', g_employee-no, g_employee-name.
    ENDMETHOD.
    METHOD display_no_of_employees.
    WRITE: / 'Number of employees is:', g_no_of_employees.
    ENDMETHOD.
    ENDCLASS.
    R E P O R T
    DATA: g_employee1 TYPE REF TO lcl_employee,
    g_employee2 TYPE REF TO lcl_employee.
    START-OF-SELECTION.
    CREATE OBJECT g_employee1
    EXPORTING im_employee_no = 1
    im_employee_name = 'Vikram.C'.
    CREATE OBJECT g_employee2
    EXPORTING im_employee_no = 2
    im_employee_name = 'Raghava.V'.
    CALL METHOD g_employee1->display_employee.
    CALL METHOD g_employee2->display_employee.
    regards,
    madhu.

  • MDX and substitution Variable usage in Essbase 7.1.5 -- Problem

    <p>Hi,</p><p> </p><p>Iam trying to write a query like this and Iam unable to validatethis in MDX -</p><p> </p><p>SELECT<br><br>{ [USD]}<br>ON COLUMNS,<br>{&CurMon}<br>ON ROWS<br><br>FROM [Sample.Basic]</p><p> </p><p>It gives me error at "&"</p><p> </p><p> </p><p>Also I tried to use substituion variable in a formula on amember like this and I couldnot get it validated -</p><p> </p><p> </p><p>CASE [Time Periods].CurrentMember<br>WHEN [JAN]<br>THEN SUM( CROSSJoin( {[Net Income]} , {[JAN]} ) )<br>WHEN &CurMon<br>THEN SUM( CROSSJoin( {[Net Income]} ,{[JAN] : &CurMon} ) )<br>ELSE<br>missing<br>END</p><p> </p><p> </p><p>Please reply me if indeed , we cannot use substitution variablesin MDX.</p><p> </p><p>( Note: Subsitution variables were already setup in thesystem)</p><p> </p><p>Thanks<br></p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Each essbase application can go up to 2GB only. If you have one application which use more than 2GB of ram, it will probably crash.
    If you use direct I/O, you can use more than 2GB of ram, however it is limited by the operating systems.
    For Windows, it is recommended to turn on the /PAE setting in boot.ini. This will allow the windows to use more than 4GB of RAM. According to Essbase DBA guide, Turning 4GT will allow Essbase to use up to 3GB of RAM when you use direct I/O.

  • Issue with graphical variable usage

    Dear All,
    I have a scenario where in based on the availability of 3 different fields(in target) I have to pass a certain values to another target field. I am using graphical variable(LGORT_STATUS, KUNNR_STATUS and LIFNR_STATUS) for each of the field and setting them as 'true' or 'false'. I am trying to use this status to decide on the value to be passed to another field. But unfortunately I am unable to do so. Kindly help me with it.
    Please find attached screenshot of the variable values.
    Regards,
    Vishal

    Hi Harish/Osman,
    First the actual field(For Ex: LGORT) is mapped based on certain condition and pass the value. Similar condition is used to passed 'true' or 'false' to the variable. Later in the mapping I want to use this status(for LGORT,KUNNR and LIFNR) is used to determine value for SOBKZ.
    Regards,
    Vishal

  • Variable usage cheat sheet

    I would like to have a cheat sheet that explains how to reference the different types of variables in Apex.
    When and how do you use
    1. Substitution variables (&myvar)
    2. Bind variables (:myvar)
    3. Pound? variables (#MYVAR#)
    Could anyone please provide me with a clear guideline for this?
    Thanks!

    RTF?? Read The Fabulous Manual??
    Thank you,
    Tony Miller
    Webster, TX
    If vegetable oil is made of vegetables, what is baby oil made of?
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Class/member variables usage in servlets and/or helper classes

    I just started on a new dev team and I saw in some of their code where the HttpSession is stored as a class/member variable of a servlet helper class, and I was not sure if this was ok to do or not? Will there be problems when multiple users are accessing the same code?
    To give some more detail, we are using WebLogic and using their Controller (.jpf) files as our servlet/action. Several helper files were created for the Controller file. In the Controller, the helper file (MyHelper.java) is instantiated, and then has a method invoked on it. One of the parameters to the method of the helper class is the HttpServletRequest object. In the method of the helper file, the very first line gets the session from the request object and assigns it to a class variable. Is this ok? If so, would it be better to pass in the instance of the HttpServletRequest object as a parameter to the constructor, which would set the class variable, or does it even matter? The class variable holding the session is used in several other methods, which are all invoked from the method that was invoked from the Controller.
    In the Controller file:
    MyHelper help = new MyHelper();
    help.doIt(request);MyHelper.java
    public class MyHelper {
        private HttpSession session;
        public void doIt(HttpServletRequest request) {
            session = request.getSession();
            String temp = test();
        private String test() {
            String s = session.getAttribute("test");
            return s; 
    }In the past when I have coded servlets, I just passed the request and/or session around to the other methods or classes that may have needed it. However, maybe I did not need to do that. I want to know if what is being done above will have any issues with the data getting "crossed" between users or anything of that sort.
    If anyone has any thoughts/comments/ideas about this I would greatly appreciate it.

    No thoughts from anyone?

  • Variables usage for ageing analysis ...

    Dear All,
        Pls let me know how do we create a variable in the query so that an ageing analysis can be done.
          e.g, I have ranges in the selection criteria (1-30, 31-60, 61-120, >120),  I need to filter the data based on my posting date and  the report run date.
         Depending on the conditions the values should be populated in the respective variables viz ., 1-30, 31-60 etc.
    TIA
    Mohd. Abdul Moghani

    Hi,
      Check the below link where I have provided a solution for aging....
    Re: Aging Report
    Hope this helps you....

  • Session variable usage in report title

    Is there a way to add session variable s_x in the report's title text?
    What is the correct syntax?

    Hi,
    I tried using @{biServer.variables['NQ_SESSION.varname']} in the narrative view and it seems to working fine and showing value without any decimals.
    You can try below:
    Write this statement - @{biServer.variables['NQ_SESSION.varname']} in the column fx. Say its the first column.
    Then, in your narrative view, write as below and set the no. of rows to 1.
    Top @1 Products
    This should ideally work fine.
    Thanks

  • Need clarification on BEX variable usage in customer exit.

    hi,
    i am an ABAP guy,i dont have any idea about BW,But here i got one problem,
    1)Variable has been craeted in BEX Report (processed by Customer exit).
    2)i am trying to write ABAP code in CMOD customer exit(ZXRSRU01),but when i am calling BEX variable it is not taking it is giving error(it should defined by data statment)so how to call the bex varible in Customer exit,if any body have sample code or any idea kindly let me know.

    Hi and welcome to SDN!
    there are a lot of examples and clarifications in these forums. For instance:
    Re: steps for a customer exit.
    Re: Regarding the Code for the Customer Exit
    Best regards,
    Eugene

  • Session variable usage syntax.

    OBIEE 10.1.3.4
    I happen to have a session variable called CD_Testing. I know this variable is being set to the value "Test Subject Area Description" by the init block. The text exists only in the database, I am seeing this text displayed as the description of one of my subject areas. So far so good.
    What is the syntax for accessing this variable within a Static Text component? I am looking at the OBI docs that say the syntax is this:
    *@{NQ_SESSION.variableName}*
    If I use this syntax, and replace variableName with CD_Testing, I see this displayed in my dashboard, so it clearly does not work:
    *@{NQ_SESSION.CD_Testing}*
    I have also tried these, all of which also display as seen here, not with the value of my CD_Testing variable:
    @{CD_Testing}
    @{VALUEOF(NQ_SESSION.CD_Testing)}
    VALUEOF(NQ_SESSION.CD_Testing) <-- This one even matches that used in the RPD to display as SA description.
    VALUEOF(CD_Testing)
    So what is the correct syntax? Why doesn't this work, and how do I get it to work?

    Thanks, Christian. Do you happen to know the source of that graphic?
    It looks like the answer is:
    @{biServer.variables\['NQ_SESSION.CD_Testing'\]}
    That is very different from what I saw in the Ans.Delivers.Interact.Dashboards User Guide.

  • Reg: Script Logic - REC Statement Variable usage

    hi friends
    Pl find enclosed the following code:
    *WHEN TIME               
    *IS TMVL(-1,2011.04)               
    *WHEN ACCOUNT               
    *IS "EXP01"               
    *REC(EXPRESSION = [TIME].[2011.04]-%VALUE%,TIME = 2011.04,ACCOUNT = EXP01A)               
    *ENDWHEN               
    *ENDWHEN               
    The above code is working fine and result is extracted but i have hardcoded , ACCOUNT=EXP01A;
    My Query is follows:
    I have used
    *WHEN ACCOUNT               
    *IS "EXP01"
    In REC i want to use concatenation of "A" To account like EXP01&"A"
    i know accunt & i want to concatenate "A" and use in REC statement like assign to variable
    var1="EXP01" & "A" and use var1 in REC
    *REC(EXPRESSION = [TIME].[2011.04]-%VALUE%,TIME = 2011.04,ACCOUNT = var1)
    i am not sure the syntax (Whether we need to put in strings)
    Also if EXP02 then var1="EXP02"&"A" and so on
    In fact i want to make this for all members in Account Dimenstion as generalised.
    Pl. verify and suggest best possibility
    Thanx & Rgds
    Srinath

    Hi Krishna
    *XDIM_MEMBERSET ACCOUNT AS %ACC% = EXP01
    *WHEN ACCOUNT
    *IS %ACC%
    REC(EXPRESSION = %VALUE%2,TIME = 2011.04,ACCOUNT = %ACC%A)
    *ENDWHEN
    Is it required to add EXP01A as below?
    XDIM_MEMBERSET ACCOUNT AS %ACC% = EXP01, EXP01A
    Also In Generalized code you have mentioned:
    Instead of Hard Coding EXP01, EXP02 can i have hierarchy of all EXP , so that if any new account added in dimension, there will be no change in script logic. Pl. can you share how to use the same.
    If above code needs to be generalised, *FOR *NEXT can be used .
    *XDIM_MEMBERSET ACCOUNT AS %ACC_LIST% = EXP01,EXP02,EXP03,EXP04
    *FOR %ACC_MBR% = %ACC_LIST%
    *WHEN ACCOUNT
    *IS %ACC_MBR%
    REC(EXPRESSION = %VALUE%2,TIME = 2011.04,ACCOUNT = %ACC_MBR%A)
    *ENDWHEN
    *NEXT
    Rgds
    Srinath

  • Session member variable usage

    I want to keep client-specific information for each incoming connection, but i heard it cannot be done with session variable. i read in a book that session variables in a servlet (or scriptlet section of a jsp page) are shared among all incoming threads (therefore all clients) accessing the servlet.
    I guess a simple example of what i want to acheive is a shopping cart, but keeping the shopping cart order in a session-like variable specific to the original client machine/user who placed the order.
    I thought of doing something like:
    request.getSession().setAttribute("ShoppingCart", cart);
    inside my doGet() method in a servlet. And a book author says it won't work. He says ff I use a member to keep information about user1, sometimes the session variable may be overwritten by user2 if they are accessing the servlet at the same time.
    1) Can someone confirm whether session variables are shared among all incoming requests to the same servlet?
    2) If so, how can i easily keep track of incoming user/client mahcine-specific information, without using cookies or other client-side storage methods.
    3) If client side storage is necessary (to keep user info), what are the common techniques and the classes used?
    I am fairly new to j2ee so i would appriciate it if you can explain in layman's terms.

    Hi,
    Session scope is made to save the user specific information only. All class(servlet) level members(state) can be shared by all incoming thread. So its a bad practice, if we used class level session variable which stores the client specific info.
    I dont think session will overwritten if you used session var locally(inside any method).
    When any user logs in you should create a new session for that user.
    Means if you have LoginServlet.java file which have log in functionality, Here only you need to create new session.
    HttpSession session = request.getSession();
    Other than this file every where you need to use
    request.getSeission(false);
    In your case it would be
    request.getSession(false).setAttribute("ShoppingCart", cart);
    Hope This will help you.

  • ODI Variable Usage

    Hi,
    I have two variables var1 and var2. Now I wann calculate var1-var2. How can I do this?
    Thanks,
    Monika

    Hi Monika,
    How are you?
    You can do this by using refresh variable that is var3
    use the following sql query in the refresh tab
    Select #var1-#var2 from dual
    you can use any physical schema.
    thanks,
    Madha

  • ACL variable usage

    what is the use of AccessListPrivilegesGrantedWhenEmpty variable setting?
    where do i get complete list of configuration variables which can be used.. is there any reference or one-stop-place in documentation.

    Read here: http://docs.oracle.com/cd/E23943_01/doc.1111/e10792/c05_security.htm#CDDBCIDA
    (the variable is described here http://docs.oracle.com/cd/E23943_01/doc.1111/e10792/c05_security.htm#autoId81)

  • Variable usage in TestStand expression statements

    I am trying to implement the following:
    Locals.tot_power= (Locals.tot_power+ 10E Locals.reading)
    as an expression in TestStand, it doesnt accept the variable locals.reading for the exp power. Is it possible to do this somehow?
    Solved!
    Go to Solution.

    Indeed in TestStand the exponent can't be a variable. Depending on the type of 'locals.result' (i.e. unsigned integer or real) two possible solution might solve your problem:
    Solution 1 (always expect an unsigned integer in 'locals.result' variable):
    - Define another numeric variable in locals section, for instance 'locals.temp'.
    Then, in an additional 'statement' step define the expression "Locals.temp *= 10" and a custom 'Loop option' with the following 'Loop While Expression':
    RunState.LoopIndex < Locals.reading
    The attached sequence file "Solution1.seq" gives an example of the description above.
    Solution 2 (the values in the 'locals.reading' are real numbers):
    - For this problem I wrote a math library (.DLL) where I implemented the mathematical function
    suitable for my needs, that aren't supported by TestStand. In the "Solution2.zip" attached file I used the exported function "TS_pow", which implements "z = x^y" and is called from an 'Action' type step using 'Flexible DLL adapter'. The result returned by this function is stored in 'locals.temp' variable and is used in the second 'Statement' step. (The expression in the 'Statement' step may be moved into the previous 'Action' step in the 'Post step' expression, so the function "Locals.tot_power= (Locals.tot_power+ 10E Locals.reading)
    " result can be achieved in a single step.)
    The "Solution2.zip" contains also the VC++ source code used to create "math.dll".
    Hope this answer your question,
    Silvius
    Silvius Iancu
    Attachments:
    solution1.seq ‏11 KB
    solution2.zip ‏129 KB

Maybe you are looking for

  • Tips for Creating Background Image

    I'd like to be able to use a background image on my website like this example: http://my.studiopress.com/themes/parallax/#demo-full I've found a few images, but there either to light or colorful and the white text just doesn't stand out over the imag

  • Empty columns in the table that is populated with a dimension operator

    Hello, i use a dimension operator to populate a dimension. This dimension has a hierarchie with 3 levels. The mapping works but the columns that are located in higher levels aren't populated if the deepest level of the dimension is filled. The column

  • Authorization checks

    Hi all My requirement is As we have 7 company and particular user are authorized for particular one. Means all are in group MGH. Employee                                               company Rahul                                                     

  • How to find and replace the table name/column name

    We have just upgraded the application to R12. Have many reports developed in Oracle Reports Builder. There are many changes in R12 table and column names when compare with 11i. Please suggest a solution to change the table name or column name in mult

  • WLAN 4402 Access points hang or reboot

    We are seeing a very strange issue in our WLAN setup. Our access points hang or reboot randomly. We have WLAN controller 4402 with 25 Cisco 1020 Access points. Our syslog server shows for some access points rebooted. While others just hang and then c