Global object in transformation

Hi all,
I'm plannin to declare an object of an ABAP class not in the start routine but in the global section of the transformation in order to generate the object only once (the constructor shall be only called once in order to save time). Within the start routine every single data record shall trigger a method for that object.
My question is: Do you see any problems when different packages are running in parallel, i.e. we have one single object of a class for which a method is called serval times at the same time because of parallel processing of packages.
Best regards
Markus

Hi Markus,
It is not necessary that you need to create the object in the Global declaration.
make the declaration for that object in the start routine itself.
While creating the object just make a check as the following code.
If <object name> IS INTIAl.
  CREATE Object <object name>.
Endif.
This will create teh object only once during the entire run for the different data packages as well and your contructor will be called only once during the entire loading process.
Prathish

Similar Messages

  • Global object Services ( GOS ) in WD4A

    Hi Gurus,
    does anybody know if the former Global object Services ( GOS ) are availabel in WD4A?
    Any planning for transforming them to the new UI-technology?
    Best regards
    Andreas

    Even i am looking for a standard web dynpro interface for the same.
    there are no Non Dialog services for Attachments to Business objects.
    Currently i am using my custom code.
    Get the folder ID
      CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
       EXPORTING
      OWNER                       = ' '
         region                      = 'B'
       IMPORTING
         folder_id                   = ls_fold
       EXCEPTIONS
         communication_failure       = 1
         owner_not_exist             = 2
         system_failure              = 3
         x_error                     = 4
         OTHERS                      = 5
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        BUFFER                = CS_ATTACH-FILE_CONTENT
      APPEND_TO_TABLE       = ' '
    IMPORTING
       OUTPUT_LENGTH         = LV_SIZE
      TABLES
        BINARY_TAB            = LT_CONTENT
    DESCRIBE TABLE LT_CONTENT LINES LV_LINES.
    LOOP AT LT_CONTENT INTO LS_CONTENT.
    LS_BIN-LINE = LS_CONTENT-LINE.
    APPEND LS_BIN TO LT_BIN.
    ENDLOOP.
    CALL FUNCTION 'SO_LOIO_PHIO_CREATE'
    IMPORTING
       LOIO_OBJECT            = LS_LOIO
       PHIO_OBJECT            = LS_PHIO
    EXCEPTIONS
      KPRO_MODEL_ERROR       = 1
      X_ERROR                = 2
      OTHERS                 = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LS_ACCESS-COMP_ID = CS_ATTACH-FILE_NAME.
    LS_ACCESS-COMP_SIZE = LV_SIZE.
    LS_ACCESS-BINARY_FLG = 'X'.
    LS_ACCESS-FIRST_LINE = 1.
    LS_ACCESS-LAST_LINE = LV_LINES.
    APPEND LS_ACCESS TO LT_ACCESS.
    CALL FUNCTION 'SCMS_R3DB_EXPORT'
      EXPORTING
      MANDT                 = SY-MANDT
        CREP_ID               = 'SOFFDB'
       DOC_ID                =  LS_PHIO-OBJID
      PHIO_ID               =
      DOC_PROT              = ' '
      OVERWRITE             = '-'
      CREA_TIME             =
    IMPORTING
      DOC_ID_OUT            =
    TABLES
       ACCESS_INFO           = LT_ACCESS
      CONTENT_TXT           =
       CONTENT_BIN           = LT_BIN
    EXCEPTIONS
      ERROR_EXPORT          = 1
      ERROR_IMPORT          = 2
      ERROR_PARAMETER       = 3
      FORBIDDEN             = 4
      OTHERS                = 5
    SPLIT CS_ATTACH-FILE_NAME AT '.' INTO TABLE LT_FILE_NAME.
    READ TABLE LT_FILE_NAME INTO LS_HD_CHANGE-OBJDES INDEX 1.
    READ TABLE LT_FILE_NAME INTO LS_HD_CHANGE-FILE_EXT INDEX 2.
    LS_HD_CHANGE-OBJLEN = LV_SIZE.
    LS_HD_CHANGE-OBJPRI = '5'.
    ls_hD_CHANGE-extct = 'K'.
    CONCATENATE '&SO_FILENAME=' LS_HD_CHANGE-OBJDES '.'
                LS_HD_CHANGE-FILE_EXT INTO LS_OBJHD.
    APPEND LS_OBJHD TO LT_OBJHD.
    CLEAR LS_OBJHD.
    CONCATENATE '&SO_FORMAT=BIN' LS_OBJHD INTO LS_OBJHD.
    APPEND LS_OBJHD TO LT_OBJHD.
    CONCATENATE '&SO_KProObjectID=' LS_LOIO INTO LS_OBJCONT-LINE.
    APPEND LS_OBJCONT TO LT_OBJCONT.
    CALL FUNCTION 'SO_OBJECT_INSERT'
      EXPORTING
        FOLDER_ID                        = LS_FOLD
      OBJECT_FL_CHANGE                 = ' '
       OBJECT_HD_CHANGE                 = ls_hD_CHANGE
        OBJECT_TYPE                      = 'EXT'
      ORIGINATOR_ID                    = ' '
      OWNER                            = ' '
    IMPORTING
      OBJECT_FL_DISPLAY                =
       OBJECT_HD_DISPLAY                = LS_HD_DISP
       OBJECT_ID                        = LS_OBJECT
      TABLES
        OBJCONT                          = LT_OBJCONT
        OBJHEAD                          = LT_OBJHD
      OBJPARA                          =
      OBJPARB                          =
    EXCEPTIONS
      ACTIVE_USER_NOT_EXIST            = 1
      COMMUNICATION_FAILURE            = 2
      COMPONENT_NOT_AVAILABLE          = 3
      DL_NAME_EXIST                    = 4
      FOLDER_NOT_EXIST                 = 5
      FOLDER_NO_AUTHORIZATION          = 6
      OBJECT_TYPE_NOT_EXIST            = 7
      OPERATION_NO_AUTHORIZATION       = 8
      OWNER_NOT_EXIST                  = 9
      PARAMETER_ERROR                  = 10
      SUBSTITUTE_NOT_ACTIVE            = 11
      SUBSTITUTE_NOT_DEFINED           = 12
      SYSTEM_FAILURE                   = 13
      X_ERROR                          = 14
      OTHERS                           = 15
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LS_OBJ_A-OBJKEY = IM_VBELN.
    LS_OBJ_A-OBJTYPE = '/IRM/GCR'.
    LS_OBJ_B-OBJKEY = LS_FOLD.
    LS_OBJ_B-OBJKEY+17(17) = LS_OBJECT.
    LS_OBJ_B-OBJTYPE = 'MESSAGE'.
    CALL FUNCTION 'BINARY_RELATION_CREATE'
      EXPORTING
        OBJ_ROLEA            = LS_OBJ_A
        OBJ_ROLEB            = LS_OBJ_B
        RELATIONTYPE         = 'ATTA'
      FIRE_EVENTS          = 'X'
    IMPORTING
      BINREL               =
    TABLES
      BINREL_ATTRIB        =
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
    Abhi

  • Cs3 bug - global objects and frame labels

    Just found a bug that took me an hour to figure out.
    A strange problem occurred when I had a global object and a
    frame label named the same.
    Example:
    _global.discussion = new Object();
    //lots of functions here
    I was directing the timeline of a movieClip to the frame
    label "discussion". On this frame there were a number of actions
    involving the discussion object. However, flash was treating the
    object as if it didn't exist. All variables / functions residing in
    this object were completely gone. Has anyone seen this problem. If
    not, watch out for it.
    james

    that's coder bug, not a flash bug.

  • Global Object Services (GOS) Attachments Deleted from Maintenance Task List

    We use the Global Object Services (GOS) Attachments function to attach Word and Excel Documents to Maintenance Task Lists (transactions IA02, IA09). Recently we noted that more than 300+ Attachments had been deleted/removed from the GOS list visible via IA03/IA09. We are at a loss for explaining how this occurred- all Attachments appear to have been deleted at once/instantaneously. We can see the underlying tables (SGOSHIST and others) still contain entries, but we do not understand why the Attachments are no longer visible in the GOS list via Maintenance Task Lists, or how the ability to access these via GOS can be restored. This is not occurring with other PM Object Attachments - only Task Lists. Any help or suggestions appreciated.

    Is it possible that there was some authorisation change in a role associated with task lists? That would be consistent with the immediate loss - but only in the task list area. Another thought - has anyone been doing any programming in the Generic Object Services Business Add-Ins (perhaps for another module?) - They might have inadvertently clobbered your use?
    Do you use the GOS notes functionality? Does that still work?

  • blank values using Global Address Cleanse Transform

    Hi,
    We are trying to cleanse Global Addresses using Global Address cleanse transform. (with USA and Global Engines). We are passing Locality, Region and Postal code as multiline items. In the output some of the records are not getting populated. For these records if we keep USA as defult country then the fields are getting populated. The problem is we cannot take USA as defult country because it has global addresses and for other countries also it is filling USA as country name. Why is it that without giving USA as default country the fields are not getting populated for some records?
    Below are some of the sample addresses.
    1)     10 INDUSTR. HWY MS6     LESTER     PA     19029
    2)     PO BOX_22964     JACKSON     MS     39225
    3)     306 EASTMAN     GREENWOOD     MS     38930
    4)     3844 W NORTHSIDE DR     JACKSON     MS     39209
    5)     259 W QIANJIANG RD     ZHEJIANG     CN     31440
    Can you please suggest a way to fill the countries for these addresses? Any inputs on this will be appreciated.
    regards,
    Madhavi

    Hi,
    As Lance indicates, you set up your address cleanse (for US I would suggest using the URAC transform) and map in your input fields as normal.  In the output, you will select to output postcode2 along with all the other standardized fields you want posted in the output.
    Note:  If an address is assignable using the CASS rules established by the USPS to the USPS referential data, the postcode2 will be populated.  In cases where it is not assignable, the postcode2 can be empty or the input postcode2 data could be preserved based on a user's settings.
    Thanks,
    Paula

  • Has the Global Object Security changed

    We have a form that uses a global object to work. Since Acrobat 9 and the introduction of the GOSP we have had to remind users to uncheck the "enable global object security policy" in the Javascript section of preferences.
    Recently this has stopped working, the code still fails with a "InvalidSetError: Set not possible, invalid or unknown."
    what;s going on?
    can I re-enable the global objects maybe with a registry hack?

    Thanks for getting back to me, I have sorted the issue (hopefully)
    there are three sets of fields that form a date selector they all end in the same two digit number to identify them (which set on which page) this two digit ident is saved to a global variable so that the scripts that then make the day, month and year selector fields un-hide etc
    anyway, it turned out that the first set was the one that failed, the other two on the page worked fine. So I deleted set 1 and copied set 2 and placed them where set 1 was, it all worked fine so I just renamed the fields back to set 1 and all was still ok.
    The odd thing is that this issue has been there since the first version of the form in 2010 but has only now chosen to surface.
    this is the code that the button uses
    var fieldExtension = event.target.name.substring(event.target.name.length -2, event.target.name.length)
    global.dateField = "date" + fieldExtension
    if (this.getField("day" + fieldExtension).display == display.hidden){
      showDate()
    }else{
      hideDate()
    Anyway, all sorted

  • RE: Global Object -- the last word

    Chris,
    You are correct. My apologies for not testing my reply sooner. The
    OLM.RegisterObject method does touch the NameService, but OLM caches
    registrations and therefor OLM.BindObject is a local call. So there is one
    network call, but that's all (unless the cache entries are aged out).
    Andrew,
    After testing all of the proposed solutions, using task.part.apptitle seems
    the easiest one to implement. Subclass from TextNullable and add an
    attribute to hold the reference to LocalCache. Remember, TextNullable can
    not be anchored.
    Caveat, you are relying on a Forte feature which may not be guaranteed to
    work the same way in the future.
    At 01:59 PM 10/17/97 -0500, you wrote:
    Where would the network traffic come in? The object location manager
    is local, and if you assume the cache object is also local (there is
    one on each partition), I don't see where the network hit would be.
    Would you please enlighten me?
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Chris Johnson
    BORN Information Services Group
    Forte National Practice
    Direct: 612-404-4409
    Fax: 612-404-4441
    http://www.born.com
    mailto:[email protected]
    From: David Vydra[SMTP:[email protected]]
    Sent: Friday, October 17, 1997 12:42 PM
    To: [email protected]
    Subject: RE: Global Object
    Guy,
    At 11:35 AM 10/17/97 -0500, you wrote:
    Another approach would be to use the partition's object locationmanager
    (task.part.objectLocationMgr) to register the partition's local cachecontainer object (LOCache) under a name based on the
    partition's name. Tasks needing the cache container can use the"bindObject" method to get the reference back.
    I believe this would generate network traffic for each bind, and if
    the
    objects in need of the local service are transient the overhead may be
    considerable.
    ========================================
    David Vydra
    Education Consultant
    Forte Software, Inc.
    [email protected]; phone: (510)986.3593

    Possible problems with using task.part.appTitle.
    1) Isn't appTitle part of the task? If it is, what happens when the
    task goes across a partition boundary? Does the appTitle get serialized
    and deserialized by Forte? As long as the cache itself is anchored this
    reference held in the appTitle is only a proxy. (But a TextNullable
    cannot be anchored.) If the cache is not anchored, won't the entire
    cache get serialized and deserialized at each partition boundary?
    2) If the appTitle goes with the Task when it crosses a partition
    boundary, what happens when some piece of code in the other partition
    attempts to use the cache? If the cache was able to be anchored,
    wouldn't there a network hit at this point? Also, haven't you just lost
    the 'local'ness of the local cache.
    3) What about serialization problems when you enter a partition that
    does not know about the cache object. Won't you get a deserialization
    error when you enter a non-application partition such as the Node
    Manager or Forte's run-time compiler?
    4) Version 3 provides appContext which can be used to hold any Object.
    This should probably only be used for very small objects or anchored
    object that are used infrequently on a different partition. Since
    appTitle cannot be anchored, why would you use it rather than
    appContext (Version 2 is a different story)? AppContext appears to be a
    more generic solution to the global object problem, one that Forte will
    support. Neither AppContext nor appTitle appear to be solutions to a
    local cache problem.
    John G. Bielejeski
    Born Information Services Group (http://www.born.com)
    Forte National Practice
    Voice: (612) 404-4116
    Fax: (612) 404-4440
    mailto:[email protected]
    From: David Vydra[SMTP:[email protected]]
    Sent: Sunday, October 19, 1997 7:04 PM
    To: [email protected]
    Subject: RE: Global Object -- the last word
    Chris,
    You are correct. My apologies for not testing my reply sooner. The
    OLM.RegisterObject method does touch the NameService, but OLM caches
    registrations and therefor OLM.BindObject is a local call. So there is
    one
    network call, but that's all (unless the cache entries are aged out).
    Andrew,
    After testing all of the proposed solutions, using task.part.apptitle
    seems
    the easiest one to implement. Subclass from TextNullable and add an
    attribute to hold the reference to LocalCache. Remember, TextNullable
    can
    not be anchored.
    Caveat, you are relying on a Forte feature which may not be guaranteed
    to
    work the same way in the future.
    At 01:59 PM 10/17/97 -0500, you wrote:
    Where would the network traffic come in? The object locationmanager
    is local, and if you assume the cache object is also local (thereis
    one on each partition), I don't see where the network hit would be.
    Would you please enlighten me?
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Chris Johnson
    BORN Information Services Group
    Forte National Practice
    Direct: 612-404-4409
    Fax: 612-404-4441
    http://www.born.com
    mailto:[email protected]
    From: David Vydra[SMTP:[email protected]]
    Sent: Friday, October 17, 1997 12:42 PM
    To: [email protected]
    Subject: RE: Global Object
    Guy,
    At 11:35 AM 10/17/97 -0500, you wrote:
    Another approach would be to use the partition's object locationmanager
    (task.part.objectLocationMgr) to register the partition's local
    cache
    container object (LOCache) under a name based on the
    partition's name. Tasks needing the cache container can use the"bindObject" method to get the reference back.
    I believe this would generate network traffic for each bind, and if
    the
    objects in need of the local service are transient the overhead maybe
    considerable.
    ========================================
    David Vydra
    Education Consultant
    Forte Software, Inc.
    [email protected]; phone: (510)986.3593

  • Global object Services ( GOS ) for service users

    Hi,
    It is possible to have GOS ( Global object services ) ability for Service user type?
    As far as I know only Dialog users has that ability.
    Thanks,
    Krishna.

    it is not possible for service-users. never was.

  • Need one global object constructed ahead of others

    We are working on porting an application from a Lynx
    environment to Solaris using the Forte 6 development
    tools. We're having a problem when a constructor for
    one object tries to use a global object created in a
    library file. The application uses an SLogFile class
    to write warning messages to a particular destination.
    This is specified in a source file called config.cpp like
    so:
    SLogFile _slog(fileno(stderr), SLogFile::warn);
    SLogFile &slog = _slog;
    config.cpp is compiled into config.o, which is then
    stored in libclass.a.
    In program testprog.cpp, we define a new class
    whose constructor wants to use slog to write
    output. I think the following simplification explains
    what the application is trying to do.
    extern SLogFile &slog;
    class test {
    public:
    test(int val);
    ~test();
    private:
    int prival;
    test::test(int val)
    prival=val;
    slog << "Initial value set to " << prival << "\n";
    test testcritter;
    int main(int argc, char** argv)
    slog << "Count of arguments to main = " << argc << "\n";
    return 0;
    Through dbx, I can stop the program when it enters
    test::test. slog points to slog, but slog is not
    initialized. According to the documentation, this
    can be resolved in g++ by the use of the load command
    to get config.o loaded first (apparently getting _slog
    constructed). Is there anyway to get this to happen
    in the Solaris/Forte C++ environment?
    Any help would be appreciated...

    We are working on porting an application from a Lynx
    environment to Solaris using the Forte 6 development
    tools. We're having a problem when a constructor for
    one object tries to use a global object created in a
    library file. The application uses an SLogFile class
    to write warning messages to a particular destination.
    This is specified in a source file called config.cpp like
    so:
    SLogFile _slog(fileno(stderr), SLogFile::warn);
    SLogFile &slog = _slog;
    config.cpp is compiled into config.o, which is then
    stored in libclass.a.
    In program testprog.cpp, we define a new class
    whose constructor wants to use slog to write
    output. I think the following simplification explains
    what the application is trying to do.
    extern SLogFile &slog;
    class test {
    public:
    test(int val);
    ~test();
    private:
    int prival;
    test::test(int val)
    prival=val;
    slog << "Initial value set to " << prival << "\n";
    test testcritter;
    int main(int argc, char** argv)
    slog << "Count of arguments to main = " << argc << "\n";
    return 0;
    Through dbx, I can stop the program when it enters
    test::test. slog points to slog, but slog is not
    initialized. According to the documentation, this
    can be resolved in g++ by the use of the load command
    to get config.o loaded first (apparently getting _slog
    constructed). Is there anyway to get this to happen
    in the Solaris/Forte C++ environment?
    Any help would be appreciated...

  • Global variables in transformation routines

    Hi
    Where would I declare a global variable in my characteristic transformation routines?
    There's a spot that says:
    $$ begin of global - insert your declaration only below this line  -
    ... "insert your code here
    $$ end of global - insert your declaration only before this line   -
    Is that it?
    Then what's the difference with:
    $$ begin of 2nd part global - insert your code only below this line  *
    ... "insert your code here
    $$ end of 2nd part global - insert your code only before this line   *
    Corne

    What for? (2nd part global declaration in transformation)

  • Urgent - Global Objects

    Hi All,
    Actually I am in a big trouble , I began my first project in java and I need an answer for the following q.
    1) - I need a global object to be seen from other objects
    for the same user in the runtime for specific object??.
    2)- I need a global object to be seen from other objects for all users in the runtime . I am trying to catch users to not enter in different sessions.
    thanx in advance, your help is deeply appreciated.

    I am sorry, I didn't read your original post as carefully as I should have. Using the Singleton pattern will work for objects that must be seen by multiple objects running within a single instance of a JVM.
    For "global" objects to be reached from several instances of a JVM -- your second question -- there are a few techniques that you can use. It really does depend on the solution you are trying to create, however.
    Are you attempting to expose just a single object, or want to expose many different objects, all of which will be globally accessible to other cliens? J2EE provides the solution and mechanisms to do either of the above; for a single object, I would suggest using JNDI, wheras the second would warrant using EJBs perhaps. (EJBs actually do use JNDI, but is a bit less manual and is a better solution if you have a need to expose multiple objects.)
    Providing an overview of either of the aforementioned technologies would be overkill for a single post. Check out http://java.sun.com/j2ee for more information on them.

  • Why does diadem intellisense not work when using scriptinclude or for global object

    I have a script with a different classes in it (scripted 1).  When I create an object of a class in the script 1 intellisense works.  Intellisense is when you type name of the object created from a class it shows all the possible variables and functions contained in that object.  But when I write another script and use scriptinclude(scripted 1) the intellisense does not work.  I also tried a global object and intesllisense does not work.  Is there a way to get intellisense to work when using scriptinclude?  I am working with version 2012. 

    Here is more information on the issue.
    I have a script with a different classes in it (scripted 1).  When I create an object of a class in the script 1 intellisense works.  Intellisense is when you type name of the object created from a class it shows all the possible variables and functions contained in that object.  But when I write another script and use scriptinclude(scripted 1) the intellisense does not work.  I also tried a global object and intesllisense does not work.  Is there a way to get intellisense to work when using scriptinclude?  I am working with version 2012. 
    'Test.vbs
    class test
        public function test1()
             msgbox("test1")
        end function
        public function test2()
             msgbox("test2")
        end function
    end class
    'now create a object of the class
    dim oTest
    set oTest=new Test
    'now when you type oTest. you get the following functions to choose from
    oTest.test1
            .test2
    Now if you remove the object from Test.vbs and create a main program with scriptinclude(Test.vbs) it will not show the two functions
    'Main.vbs
    Option Explicit  'Forces the explicit declaration of all the variables in a script.
    call scriptinclude("c:\1atmp\Test.vbs")
    dim oTest
    set oTest=new test
    'now when you type oTest. it shows none of the functions in the object oTest
    oTest.

  • Global Object Access Auditing test question

    Hello!
    There's a test question (N4) I'd like to have clearified:
    http://exam.test4actual.com/70-411.pdf
    Yes, D and F will enable auditing with no extra replication traffic, but enabling Global Object Acces Auditing will lead to auditing not only SYSVOL shares but to any others as well (http://blogs.technet.com/b/askds/archive/2011/03/10/global-object-access-auditing-is-magic.aspx)
    - is this replication traffic worth it???
    Thank you in advance,
    Michael

    Hi,
    For this question, the correct answer is DF, but we do not need to use Global Object Acces Auditing policy to audit SYSVOL shares.
    About the replication traffic, please refer to:
    http://technet.microsoft.com/en-us/library/bb742457.aspx
    Meanwhile, any changes made to SYSVOL are automatically replicated to the other domain controllers in the domain. If the files stored in SYSVOL change frequently, the replication increases the input and output for the volume where SYSVOL is located. For
    example, editing a GPO can potentially force a GPO-level replication. If the volume is also host to other system files, such as the directory database or the pagefile, then the increased input and output for the volume can impact the performance of the server.
    More detail information:
    Introduction to Administering SYSVOL
    http://technet.microsoft.com/en-us/library/cc778037(v=WS.10).aspx
    Regards.

  • Global Object Building

    I am using flash MX and looked in the actionscript dictionary
    and it came with that example:
    function Book(name, price){
    this.name = name;
    this.price = price;
    book1 = new Book("Confederacy of Dunces", 19.95);
    book2 = new Book("The Floating Opera", 10.95);
    Now the problem is I want my object to be globaly usable by
    other movieclips
    I tried
    function _global.Book(name, price)
    and it wouldn't accept it
    I tried:
    _global.Book = new function (name, price)
    but obviously it wasn,t an object that it gave...
    So my qustion is how do I make global objects or
    classes

    You're second try was very close. Check F1 reference:
    Learning ActionsScript 2.0 in Flash > Functions and
    Methods > About functions and methods > About types of
    methods and functions > Writing anonymous and callback functions
    ----------[ From F1 reference ]----------
    To write an anonymous function:
    Create a movie clip on the Stage, and then select the clip.
    Open the Property inspector, and type my_mc into the Instance
    Name text box.
    Select Frame 1 of the Timeline, and type the following code
    into the Actions panel:
    var myWidth = function () {
    trace(my_mc._width);
    //later in code you can add
    myWidth();
    Select Control > Test Movie.
    The width of the movie clip is displayed in the Output
    panel.

  • Global Object Differences

    Does anyone know where I can read up on the differences between Acrobat 9 and X on the global object?

    Under Changes for 10.1.1, XP system I created the following path below and even reboot the computer and still get the same error message.  I am trying to get 3 computers up and running 1 in the same building and 2 oversea in Czech Republic.  I had one of the Czech Republic computers rolled back to Reader 9.0 and had them place the script in the C:\Program Files\Adobe\Reader 9.0\Reader\JavaScript folder, again same error message.  Could there be an issue with my code being written in the USA and there using a Reader made for Czech Republic?
    C:\Documents and Settings\JoeUser\Application Data\Adobe\Acrobat\Privileged\10.0\JavaScripts

Maybe you are looking for