Library symbol in class

I am attempting to attach a symbol in my library to a movie
clip in a class. The code looks like this:
__movieClip.attachMovie("symbol", "symbol_mc",
__movieClip.getNextHighestDepth, {_x:0, _y:0});
When I test the movie, I get a type mismatch error. I'm sure
'__movieClip' is a MovieClip but I think the problem is with
'symbol'. When I take the above code out of the class and simply
put it on the main timeline of my .fla file, it works.
Please help.

dr_ross is correct. Instead of using a hardcoded string of
"symbol" you might want to consider something more like:
private var _linkage:String="symbol"
and then later have getter/setter methods for providing a
linkage id to the class. Or perhaps provide the linkage in the
constructor. Of course the above would default to symbol, but you
might want to have it default to null so that if it isn't set it
doesn't just mysteriously work!

Similar Messages

  • How to save library symbols' class files in packages that are not the default package?

    Hi,
    I perform the following in Flash CS5 with Flash Builder 4
    1) Create a new library symbol.
    2) Do a RightClick->Properties on the new symbol
    3) Check the options for "Export for ActionScript" and "Export in frame 1".
    4) I write a new name for my class "Class1" and click on the pencil icon "edit class definition" to edit the class.
    At this point my FlashBuilder 4 takes over and opens the "New ActionScript" dialog.
    4) I then click on Package-Browse to select a package e.g. com.mycompany.myfiles as the new class destination.
    The as file is created as com.mycompany.myfiles/Class1.as as everything seems just fine.
    5) I close the ActionScript file and back in Flash CS5 I RightClick on the symbol and select "Edit Class".
    At this time, FB4 suggests again to create the file, ignoring the fact that I already created it before.
    Do you know of a way I can make Flash CS5 remember where I created the file?
    Thanks.

    Hi,
    I didn't remove the project or delete any of the files.
    All I did was create the class file under a package that is not the default package. Then when I clicked on the Flash symbol's "Edit Class" It asked me again to create the same class file.
    Only if I create the class in the default package, it won't ask me to recreate it again.
    Bye,
      RaamEE-IL

  • Attaching a class to multiple library symbols

    Hello again,
    I'm so grateful for the help I've gotten so far!
    Here's the situation: I wrote a class called ButtonGlow in
    ButtonGlow.as. I made a movieclip with the "Base class:" of
    "flash.display.MovieClip" and the "Class:" of "ButtonGlow". This
    actually works!
    Then I created a 2nd button on the stage. I right-clicked on
    that to enter the linkage information, but it would not let me
    enter "ButtonGlow"
    The error is:
    Please enter a unique class name that is not associated with
    other library symbols
    I thought that was the purpose of making a class
    I can't imagine making all my buttons in AS, because they are
    graphics and I have to see them together. Doing it all in AS is
    like doing it blind.
    I would appreciate any insight from the Wise Ones.

    Hello,
    Can you upload the .fla so that I check?
    Henri
    http://www.kitmap.fr
    http://www.absyx.fr
    "amidreaming" <[email protected]> a
    écrit dans le message de
    news: fplm18$9ah$[email protected]..
    > Hello again,
    >
    > I'm so grateful for the help I've gotten so far!
    >
    > Here's the situation: I wrote a class called ButtonGlow
    in ButtonGlow.as.
    > I
    > made a movieclip with the "Base class:" of
    "flash.display.MovieClip" and
    > the
    > "Class:" of "ButtonGlow". This actually works!
    >
    > Then I created a 2nd button on the stage. I
    right-clicked on that to enter
    > the
    > linkage information, but it would not let me enter
    "ButtonGlow"
    > The
    > error is:
    >
    > Please enter a unique class name that is not associated
    with other
    > library symbols
    >
    > I thought that was the purpose of making a class
    >
    > I can't imagine making all my buttons in AS, because
    they are graphics and
    > I
    > have to see them together. Doing it all in AS is like
    doing it blind.
    >
    > I would appreciate any insight from the Wise Ones.
    >

  • Failed to load ODBC library symbol: /export/home/odbc/ODBC60/lib/libodbc.so

    I've been trying to create a database link from a MySQL database to Oracle using the Oracle dg4odbc gateway. I downloaded and installed DataDirect's ODBC package which includes mysql ODBC library (ddmysql24.so) and a generic ODBC libary (libodbc.so). After creating the DSN in odbc.ini, I tested it and it can connect to the mysql database. Then I created the init{SID}.ora file in hs/admin directory, added dg4odbc lines in the listener.ora, and added lines in tnsnames.ora. Then I tnspinged the new SID with success. Finally, I created the database link. However, when I tried to access the database, I got the ORA-28500 error. In the trace log, I found the following:
    Entered hgolofns at 2009/11/01-06:27:20
    libname=/export/home/odbc/ODBC60/lib/libodbc.so, funcname=SQLAllocHandle
    hoaerr:28500
    Exiting hgolofns at 2009/11/01-06:27:20
    Failed to load ODBC library symbol: /export/home/odbc/ODBC60/lib/libodbc.so(SQLAllocHandle)
    Exiting hgolofn, rc=28500 at 2009/11/01-06:27:20
    Exiting hgoinit, rc=28500 at 2009/11/01-06:27:20 with error ptr FILE:hgoinit.c LINE:282 ID:Loading ODBC aray of function ptrs
    Entered hgoexit at 2009/11/01-06:27:20
    I searched the functions within libodbc.so and found all the SQLAlloc* functions in this library. Why do I still get the error?
    Thanks for your help. Jeffrey
    Here's the entire trace log:
    Oracle Corporation --- SUNDAY NOV 01 2009 06:27:20.637
    Version 11.1.0.6.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "4"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    HOSGIP returned value of "FALSE" for HS_FDS_SUPPORT_STATISTICS
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStat
    istics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "MOODLE"
    Product-Info:
    Port Rls/Upd:6/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.1.0.6.0_0006, Instance:MOODLE
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=10
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2009/11/01-06:27:20
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/export/home/odbc/ODBC60/lib/libodbc.so"
    Entered hgolofns at 2009/11/01-06:27:20
    libname=/export/home/odbc/ODBC60/lib/libodbc.so, funcname=SQLAllocHandle
    hoaerr:28500
    Exiting hgolofns at 2009/11/01-06:27:20
    Failed to load ODBC library symbol: /export/home/odbc/ODBC60/lib/libodbc.so(SQLAllocHandle)
    Exiting hgolofn, rc=28500 at 2009/11/01-06:27:20
    Exiting hgoinit, rc=28500 at 2009/11/01-06:27:20 with error ptr FILE:hgoinit.c LINE:282 ID:Loading ODBC aray of function ptrs
    Entered hgoexit at 2009/11/01-06:27:20

    on which platform did you install DG4ODBC? On a 64bit? In this case did you install the 64bit DD ODBC driver?
    What is the output of: file dg4odbc
    and: file /export/home/odbc/ODBC60/lib/libodbc.so
    can you also please clarify your statement: .. and a generic ODBC libary (libodbc.so). Datadirect ODBC drivers come with their own driver manager ... and you have to use their driver manager with their drivers.

  • Library symbols ignored

    I am trying to instantiate and position a library asset
    (MovieClip) programmatically. The classpath setting and import
    directives, which work as expected for all other custom classes
    (those which are not in the library), do not seem to affect library
    symbols. It appears that the compiler works with its automatically
    generated class for this (exported) symbol, while completely
    ignoring my custom class for it. It is only when the custom class
    resides in the root folder that it's respected; otherwise it's
    ignored... This is not likely the result of some trivial error in
    folder naming/hierarchy, or classpath/import settings/statements,
    as I've meticulously ascertained this. But perhaps there is a
    conceptual issue here that I miss. Although I've arrived at an
    acceptable workaround to this problem, I'd love to understand the
    reasons for this behaviour...
    Many thanks for any comments!

    Indeed. And the better way to tell the compiler where to find
    it, it turns out, is by setting the base class appropriately in the
    library, rather than by adding another directory to the
    classpath...
    Many thanks!

  • Symbols + Base-Class Workflow

    I frequently create a lot of Library Symbols, export for Actionscript, letting Flash auto-generate the Class & extending a custom base-class in order to give them all custom functionality w/out having to create a Class for each, and/or without having to create a FactoryClass for instantiating X number of ClassObjects for each Symbol to be added to.
    It's really fast for prototyping, and with this workflow I've only hit a few obstacles.  Those are:
    1 - If the Symbol has children you cannot give the children instance-names, else the compiler gives an error related to automatically declaring stage instances.  Two workarounds for this are that you can uncheck automatically declare stage instances, and do it manually in your base-class.  or you can avoid using instance-names, and use getChildAt().
    2 - If the Symbol is a MovieClip, the timeline doesn't inherit the base-classes imports.  I don't have a workaround for this.
    My question is, are these limitations that could be addressed by Adobe's Flash team, or are they limitations that are unavoidable without altering the workflow?

    Vote for this idea at ideas.adobe.com Flash Professional: http://tinyurl.com/2bxew2x
    Problem Description:
    Using the Library to export Symbols for Actionscript hits a severe wall when Symbols use auto-generated classes + base-classes.  Child instances are declared as their auto-generated class type instead of their base-class.  The result is that you cannot create 2 Library Symbols with auto-generated classes which inherit from a user-defined base-class which have named child instances with auto-generated classes & a user-defined base-class.
    Steps to Reproduce:
    1.     Create 2 Library Symbols, export for Actionscript with base-class "Character" which extends Sprite. Let Flash auto-generate Class names "Character1" & "Character2".
    2.     Create 2 more Library Symbols, export for Actionscript with base-class "Head" which extends Sprite. Let Flash auto-generate Class names "Character1Head" & "Character2Head".
    3.     Place an instance of Character1 on the stage, and give it a child instance of "Character1Head" named "head".
    4.     Place an instance of Character2 on the stage, and give it a child instance of "Character2Head" named "head".
    5.     Test Movie or Publish
    Actual Result:
    Warning: All instances named 'head' will be automatically declared as "Character1Head" in symbols that use "Character" as their base class. In symbols that are linked to user-defined base classes, instances with the same name must be of the same type.
    Expected Result:
    Flash should declare all instances named "head" as their base-class type "Head" when using auto-generated Classes.  Save this workflow!!!

  • Library symbol synchronization with Illustrator

    I have an Illustrator *library* file that stores all of my graphics (as defined Movie Clips). I am importing them in Flash via File>Import>Import to Library, I pick my "library.AI" file, and then check "include unused symbols" (the artboard is empty).
    I am doing all of my animation on a single frame in flash, all done with actionscript. As the animation sequences progresses, I am often adding new symbols or tweaking existing symbols, all starting back with my master Illustrator *library*, and then re-importing, and then testing the animation again (rinse + repeat).
    What is really becoming a burden is the process of reestablishing the "AS Linkage" for the appropriate symbols. During import, naming conflicts are easily resolved with "replace existing item", but I lose the AS Linkage when I do this.
    When right-clicking a library symbol, why is "Update" always grayed out; this seems like exactly the feature I am looking for. Is there any way to get flash to remember where it got the symbol definition from, and to check there again for changes (in my case, check with the originally imported .AI file for the matching symbol name). Is there a better way to approach this?
    Ive reached a point where every import is taking minutes, when all i need to do is make 15 second tweak to a symbol and verify that I got my alignment right (and if not, do another 3 minute import for yet another 15 second tweak).

    Little bit of an update...
    The (basically) same thing happens when using assets from another FLA file, only this time I did get a bit closer to what i wanted. Using a "library.fla" project that houses multiple symbols meant to be imported/shared with future projects, I get a little better organization and interactivity with the Flash GUI. (now the 'update' menu item works when selecting a symbol)
    Now instead of AS-Link properties being broken, they are copied from the source! I was kindof hoping that if my "new_project.fla" takes symbol1 and symbol2, and exports them to actionscript, that this would have nothing to do with the original symbol1 and symbol2 from my 'library.fla' (as far as symbol properties are concerned).
    I want to be able to propogate visual updates throughout multiple projects, but each project may implement the symbol in different ways using different AS classes. I would like to autoupdate visual changes, but each project should also retain its AS-Link settings (and not reset to the "library.fla" symbol settings)
    Is my workflow wrong here? I am surprised that this is not achievable (I would actually bet that it is, but somehow I am going about it wrong)? I am almost to the point of writing my first extendScript that will take all selected symbols and modify the properties to export a new ActionScript class that is the same as the symbol name (and Ill just make sure not to have conflicts).

  • Field-symbols as class attribute

    Hi Fellas,
    Is there a way we can define a field-symbols as a class attribute ? My requirement is that i am dynamically constructing a structure at runtime in my model class and binding the component of this structure to my view fields. I am able to create the structure which is basically ref to cl_abap_structdescr and the problem is when i am binding to the model attribute, i need this to be a structure so that i can address the components as "//model/structure.component".
    Please let me know how we can define a field-symbol as a class attribute.
    Cheers,
    Ram.

    Hi Ram,
    Field-Symbol as class attribute is not possible. Your way to do this by REF TO DATA is the correct way for that.
    By default data binding is only possible like this:
    Simple field attribute
    value=”//<model>/<field name>”
    Structure attribute
    value=”//<model>/<structure name>.<field name>”
    Table attribute
    value=”//<model>/<table name>[<line index].<field name>”
    If you want to bind to your data reference you have to implement your own getter and setter methods. Read this <a href="http://help.sap.com/saphelp_nw70/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/frameset.htm</a> for further information. In addition to that, you have to implement your own GET_M_S_xxx to return metadata of your structure. By doing all this it is possible to implement a completely dynamic data binding. In the view it looks like the regular Structure attribute: value=”//<model>/<data-ref name>.<field name>”
    Regards,
    Thilo

  • BUG - saving with both flash pro CS6 and CC causes library symbol names to change

    Concise problem statement:
    If you save with flash pro CC and then save with CS6, in the library panel, symbol names are changed.
    Specifically, pipes | and trailing spaces ("|Divider", "Divider ") get replaced by escape sequences ("&#124Divider", "Divider&#032" ...) Ampersands & and number signs # also get replaced, such that symbol names grow exponentially if you continue to save with both flash pro CC and CS6 ("Divider&#032", "Divider&#038&#035032", "Divider&#038&#035038&#038&#035035032" ...) This makes it difficult to transition a team from CS6 to CC.
    Sometimes, the original-name symbol remains, and an escaped-name symbol is also created. In this case, the children are removed from the original-name symbol, so it doesn't render anything to the screen; a mysterious, silent failure.
    Steps to reproduce bug:
    1. Create a library symbol named "|", save an xfl with flash pro CC, and close.
    2. Open, save, and close with flash pro CS6.
    3. Open, save, and close with flash pro CC.
    Results:
    A library symbol named "&#124".
    Expected results:
    A library symbol named "|".
    I submitted this bug with the bug form, and also with adobe bugbase (in case it isn't obsolete) - I'm just trying to maximize my chances of getting a fix.  Has anyone else encountered this bug?

    Hi,
    We are aware of this issue and its open for investigation internally. This issue is observed when you have certain special characters in your symbol names and try to open that file in Flash CS6. This happens due to a change in the way symbol naming is handled in Flash CC and in Flash CS 6.
    As a workaround, request you to use only Underscore or Hyphen as special characters while naming symbols or library layers etc.
    We shall update you as soon as this has been fixed.
    Thanks,
    Nipun

  • How to find ount where a library symbol is used

    Hello
    Please be patient with me because I'm not very familiar with flash.
    I would like to know if there is a way to find out where is a symbol used into a Flash document.
    If Symbol A is used by two other symbols (say B and C) is there a way to query the enviroment to know that A is used by B and C?
    Does one among Flash MX, CS4 or CS5 have such a feature or not?
    Thank you

    among many other things, movie explorer will show you where each and every instance of any library symbol is used.
    click the right-most icon on the movie explorer panel and tick both context items.  then toggle the 2nd icon only and type your library symbol name.  each and every instance of that library symbol with be displayed along with a tree representation of its location.   right click over any symbol in movie explorer to get an idea of just how powerful that tool is.

  • Field-symbols in classes

    Hello,
    Is it possible to use field-symbols in classes?
    When I try to declare field-symbol in class like other variable, appears an error.
    Or may be it is possible to use something instead of field-symbols?
    Great thanx in advance!

    Hi
    You can use field symbols in classes.
    Sample code is given below:
    CLASS c1 DEFINITION.
      PUBLIC SECTION.
        METHODS m1 IMPORTING oref TYPE REF TO object
                             attr TYPE string.
    ENDCLASS.
    CLASS c1 IMPLEMENTATION.
      METHOD m1.
        FIELD-SYMBOLS <attr> TYPE ANY.
        ASSIGN oref->(attr) TO <attr>.
        WRITE <attr> ...
      ENDMETHOD.
    ENDCLASS.
    Thanks
    Khushboo

  • Field symbols inside class

    Is it possible to declare field symbols inside classes?
    Thanks in advance.
    Hema
    Moderator message: please search for information and try yourself before asking.
    Edited by: Thomas Zloch on Dec 23, 2010 10:55 AM

    Hi Hemalatha,
    We can use Field Symbols in classes.
    local field_symbols within methods are allowed.
    you can only use field-symbols within method (locally), not as direct class attribute (globally).
    U can check with this sample code.
    Sample code is given below:
    CLASS c1 DEFINITION.
    PUBLIC SECTION.
    METHODS m1 IMPORTING oref TYPE REF TO object attr TYPE string.
    ENDCLASS.
    CLASS c1 IMPLEMENTATION.
    METHOD m1.
    FIELD-SYMBOLS <attr> TYPE ANY.
    ASSIGN oref->(attr) TO <attr>.
    WRITE <attr> ...
    ENDMETHOD.
    ENDCLASS.
    I hope u got this .....

  • Field symbols as Class Attributes

    Hello Gurus,
    Is anybody able to say to me if it is possible to declare field symbols as class attributes? As I can understand until now, this is not possible and we need to use some attribute with the "TYPE REF TO Data" to get the information we need. Correct?
    Thanks,
    Daniel.

    Ok, let me see if someone can give me some idea on how to improve my method:
    Method: PREPARE_PTOOL_DATA
    Parameters specification:
    Parameter        Type     Typing     Reference Type
    PF_ANALYSIS        Importing     Type     /SYM/SC_PT_ID_ANALYSIS_D
    PF_ANAL_DESC        Importing     Type     /SYM/SC_NM_DESC_ANALYSIS
    PF_LOGIC        Importing     Type     CHAR01
    PF_MATERIAL        Importing     Type     MATNR
    PF_MAKTX        Importing     Type     MAKTX
    PT_DATA_COMPA        Exporting     Type     /SYM/SC_TAB_PT_RESULT_CP
    PT_CALC_ANALY        Exporting     Type     /SYM/SC_TAB_PT_RESULT_CA
    PT_DATA_MATERIAL1 Changing     Type     /SYM/SC_TAB_PROC_ALLERG_RESULT
    PT_DATA_MATERIAL2     Changing     Type     /SYM/SC_TAB_PROC_ALLERG_RESULT
    Source code:
    From the /SYM/SC_CL_PROCESS_ALLERG_GEN class
    Old version (but it is working)
    METHOD prepare_ptool_data.
      DATA: ls_data_material1   TYPE /sym/sc_s_proc_allerg_result,
            ls_data_material2   TYPE /sym/sc_s_proc_allerg_result,
            lf_index_material1  TYPE sy-tabix,
            lf_index_material2  TYPE sy-tabix,
            ls_result_cp        TYPE /sym/sc_pt_result_cp,
            ls_result_ca        TYPE /sym/sc_pt_result_ca.
    Prepare data for Data Comparison step
      IF pt_data_compa IS REQUESTED.
        LOOP AT pt_data_material1 INTO ls_data_material1.
          lf_index_material1 = sy-tabix.
          CLEAR ls_result_cp.
          MOVE pf_analysis   TO ls_result_cp-analysis.
          MOVE pf_anal_desc  TO ls_result_cp-desc_analysis.
          MOVE ls_data_material1-algbe TO ls_result_cp-desc_property.
    If Logic 'A', move the text from ls_data_material1 to original
    material status
          IF pf_logic EQ c_logic_a.
            MOVE ls_data_material1-agsbe TO ls_result_cp-val_orig_matnr.
    If Logic 'B', move the text from ls_data_material1 to "toy"
    material status
          ELSEIF pf_logic EQ c_logic_b.
            MOVE ls_data_material1-agsbe TO ls_result_cp-val_toy_matnr.
          ENDIF.  " IF pf_logic EQ c_logic_a.
    Read the lt_data_toy by the Allergen ID (ALGEN)
          CLEAR ls_data_material2.
          READ TABLE pt_data_material2 INTO ls_data_material2
                WITH KEY algen = ls_data_material1-algen BINARY SEARCH.
          IF sy-subrc EQ 0.
            lf_index_material2 = sy-tabix.
    If Logic 'A', move the text from ls_data_material2 to "toy°
    material status
            IF pf_logic EQ c_logic_a.
              MOVE ls_data_material2-agsbe TO ls_result_cp-val_toy_matnr.
    If Logic 'B', move the text from ls_data_material2 to original
    material status
            ELSEIF pf_logic EQ c_logic_b.
              MOVE ls_data_material2-agsbe TO ls_result_cp-val_orig_matnr.
            ENDIF.  " IF pf_logic EQ c_a.
    Delete record from lt_data_toy, index lf_index_toy
            DELETE pt_data_material2 INDEX lf_index_material2.
          ENDIF.  " IF sy-subrc EQ 0.
          APPEND ls_result_cp TO pt_data_compa.
    Delete record from lt_data_orig, index lf_index_orig
          DELETE pt_data_material1 INDEX lf_index_material1.
        ENDLOOP.  " LOOP AT lt_data_material1 INTO ls_data_material1.
      ENDIF.  " IF pt_data_compa IS REQUESTED.
    Prepare data for Calculation Analysis step
      IF pt_calc_analy IS REQUESTED.
        LOOP AT pt_data_material1 INTO ls_data_material1.
          lf_index_material1 = sy-tabix.
          CLEAR ls_result_ca.
          MOVE pf_material   TO ls_result_ca-matnr.
          MOVE pf_maktx      TO ls_result_ca-maktx.
          MOVE pf_analysis   TO ls_result_ca-analysis.
          MOVE pf_anal_desc  TO ls_result_ca-desc_analysis.
          MOVE ls_data_material1-algbe TO ls_result_ca-desc_property.
    If Logic 'A', move the text from ls_data_material1 to original
    material status
          IF pf_logic EQ c_logic_a.
            MOVE ls_data_material1-agsbe TO ls_result_ca-val_curr_stat.
    If Logic 'B', move the text from ls_data_material1 to "toy"
    material status
          ELSEIF pf_logic EQ c_logic_b.
            MOVE ls_data_material1-agsbe TO ls_result_ca-val_simul_stat.
          ENDIF.  " IF pf_logic EQ c_logic_a.
    Read the lt_data_toy by the Allergen ID (ALGEN)
          CLEAR ls_data_material2.
          READ TABLE pt_data_material2 INTO ls_data_material2
                WITH KEY algen = ls_data_material1-algen BINARY SEARCH.
          IF sy-subrc EQ 0.
            lf_index_material2 = sy-tabix.
    If Logic 'A', move the text from ls_data_material2 to "toy°
    material status
            IF pf_logic EQ c_logic_a.
              MOVE ls_data_material2-agsbe TO ls_result_ca-val_simul_stat.
    If Logic 'B', move the text from ls_data_material2 to original
    material status
            ELSEIF pf_logic EQ c_logic_b.
              MOVE ls_data_material2-agsbe TO ls_result_ca-val_curr_stat.
            ENDIF.  " IF pf_logic EQ c_a.
    Delete record from lt_data_toy, index lf_index_toy
            DELETE pt_data_material2 INDEX lf_index_material2.
          ENDIF.  " IF sy-subrc EQ 0.
          APPEND ls_result_ca TO pt_calc_analy.
    Delete record from lt_data_orig, index lf_index_orig
          DELETE pt_data_material1 INDEX lf_index_material1.
        ENDLOOP.  " LOOP AT lt_data_material1 INTO ls_data_material1.
      ENDIF.  " IF pt_calc_analy IS REQUESTED.
    ENDMETHOD.
    As you can see, I am repeating almost the same code, just changing some items. I am not sure if I can use new parameters (ANY or ANY TABLE) but, my first idea to improve it was to use the field-symbols (and it works ok). The issue is that I have to repeat the assignment lines every same named method of the classes I am changing (I would like to do the assignment into a new method of the superclass). Do you think it is possible or should I give up and proceed with the assignments locally, for each same named method of each class?
    Thanks,
    Daniel.

  • JSFL: Change element properties inside a library symbol?

    I'm trying to make a JSFL script to scan all the symbols in a library, find the text fields, and set useEmbeddedFonts = true.
    Actually, just backing up a second, assume there are instances on the stage.  Then I can use fl.findObjectInDocByType("text") to find all the text fields and inspect them to see their type, contents, etc.  But if I try to use one of the elements returned by that call to change the useEmbeddedFonts property, nothing seems to happen.
    Something like this:
    var texts = fl.findObjectInDocByType("text", doc);
    if (texts.length > 0) {
        for (var i = 0; i < texts.length; i++) {
              if( texts[i].obj.textType != "static" &&  texts[i].obj.useDeviceFonts == false )
                   fl.trace("Setting text field to use device fonts: " + texts[i].obj.name);
                   texts[i].obj.useDeviceFonts = true;
    It seems to have no effect on the text fields.  They are still set to anti-alias.
    Ok, so assuming that problem can be overcome, to deal with symbols in the library, I was thinking of running through the library items and creating instances of them on the stage, then using the findObjectInDocByType to update them, assuming this will actually change the symbol and not just the instance.  But I don't see how to actually create an instance of a symbol on the stage, which seems like it should be easy.
    Or, is there some other way of introspecting the library symbols to find the text fields and modify them directly?  This would have to handle cases like button symbols where the text field is inside the symbol, not a symbol itself...

    altenbach wrote:
    One of the elements could be a 2D picture indicator of about the same size. You can write text in any color using picture functions.
    Here's what I had in mind. Seems to work just fine (I would fine-tune the font, picture border, etc. but this should get you started).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ColorText.png ‏13 KB
    ColorText.vi ‏9 KB

  • X64 Adobe ANEs break when using Hide ANE-Library-Symbols

    Hi all,
    It looks like the x64 versions of the Product Store and Game Center ANEs are causing some kind of conflict when "Hide ANE-Library-Symbols" is turned on. It is possible other Adobe ANEs are causing issues as well but these are the other two I use.
    Upon building a project that includes these ANE for iOS and using the "Hide ANE-Library-Symbols" flag, I receive the extremely generic build error below. If the "Hide ANE-Library-Symbols" flag is disabled, everything complies fine but some ANEs break during runtime due to conflicts.
    Hide ANE-Library-Symbols flag turned ON error
    "Error occurred while packaging the application:
    Compilation failed while executing : ld64"
    Details
    Flash Builder 4.7
    AIR 16
    OS X 10.9
    Using ANEs from this thread
    Any help in resolving this issue would be appreciated as it is seems to be the last thing standing in the way of updating my iOS app to be x64 compatible.

    Hi,
    We are working on the issue. As of now, there is a workaround possible in packaging on mac machine as described below.
    cd <sdk>/lib/aot/bin/ld64
    mv ld64 ld64_orig
    ln –s /usr/bin/ld ld64
    <Run the packaging command now>

Maybe you are looking for

  • BW3.5: Error message when trying to activate the transfer rule

    When I was trying to activate the transfer rule for one info object( charateristic with master data) , I got the following error  in [[  ]] Error when creating transfer structure /BIC/CCPIZGR00CC_ATTR in source system CI2220 Diagnosis An error occurr

  • Application containing only resources and no run target

    HI Gentlemen, I have a set of web applications with XSQL sheets. These reference different subsets of stylesheets, and XML files as lookups from a large pool. Now it happens several times that a stylesheet or XML file is referenced in many different

  • Mplayer playback problems

    Hello, Mplayer video output is rather jerky and not smooth. I believe its sound related because adding '-nosound' makes the playback smooth again. I've been trying to seacrh for the solution to this for hours; any suggestions? I use OSS by the way...

  • Wrong assignment of user

    Hi Folks, Initially we assigned the user to the purchase organization and purchase orders created by him.Later business raised an issue saying that Assign me tab is not working for that particular user in Sourcing cockpit.As we analysed the Assign me

  • JAVA SE 7 Release Date

    Has a specifc GA release date for Java SE 7 been published ?