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!

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.
    >

  • 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.

  • 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.

  • 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>

  • Flash Pro CS6 - consistent crash - duplicating library symbol

    This is similar to a bug reported for CS5.5, then fixed in the update.
    Every time I duplicate certain library symbols, flash crashes consistently.
    Someone from Adobe can contact me, and I will send source files for test.
    Filippo

    It's the same issue as this one:
    http://forums.adobe.com/message/5793195#5793195
    This has been fixed in Flash CC with the 13.1 update. In case you're working on a previous version, make sure to keep all your font items in the library root (not within any folder) to avoid this crash.
    -Nipun

  • Flash crashes when I backspace in a blank TextField while editing a library symbol.

    Steps to reproduce.  Reproducible every time.
    Open Flash CS6, draw a big (classic,input) text field, convert it to a library symbol, then remove the symbol from the stage.
    Go to the library, double click the symbol you just created in the library to edit it, then double click the text field to edit the text (currently blank).
    Press "Enter" key ten times to make ten blank lines, and then press the backspace key ten times to delete the lines.  Flash crashes upon the tenth keypress.  If by chance it doesn't crash right away, just press enter a few more times times and backspace an equal number of times and it will crash.
    I took a video of it happening at least 3 times.   I was editing a project file, trying to make a field just big enough for ten lines by creating the blank lines and dragging the text field handle to resize it, but it was crashing when I tried to remove the blank lines.
    Since I was able to make it happen on a brand new file drawn from scratch as well, I figured it was a serious bug and not just a problem with the file I was working with.  Also, it seems to occur only when the textfield's type is "input".  It stopped happening if I changed the type to "dynamic".

    tried emptying cache, had no effect, safari is basically unusable at the moment, using firefox with no problems, i'm thinking that i should do a clean install of leopard as when i installed I upgraded tiger

  • Gdb error while reading shared library symbols

    Build pro*c sample1 on linux platform. Launch 'gdb sample1'. Break on main and run. Gdb fails before it hits the breakpoint: error while reading shared library symbols.
    Help anyone?

    Hi Gschwert,
    our developers told me that for X-Code Version 4 you need an additional download. Then, it should also work with Version 4. Here is what they said:
    It turned out that Shared Libraries compile fine with XCode 4, it's just that the command line tools that we need for compilation are now an optional download. 
    From https://developer.apple.com/xcode/ 
    "Xcode includes a new "Downloads" preference pane to install optional components such as command line tools, and previous iOS Simulators." 
    So, this is not well documented we will handle that and let make a correction as soon as possible.
    Have a nice day,
    Abduelkerim
    Sales
    NI Germany

  • 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).

  • Editing a library symbol from ActionScript

    In the authoring environment I can edit a library symbol and
    all on-stage instances based upon it reflect the changes. How can I
    do the same thing in ActionScript? There seems to be no way to
    address a library symbol.

    that's correct, at least with actionscript. you can edit
    library symbols with jsfl.

  • Does a Flash library symbol search extension exist that can search across multiple files?

    Hi, I'm working on a large animation project with an extensive symbol library that exists across multiple files. I would like to know if such a tool exists that can search between all of these files for specific symbols. This would save me a great deal of time and I would be very grateful for any suggestions. We are using Flash CS5 primarily. Thanks.

    Thanks! I appriciate you confirming this for me

  • 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!

Maybe you are looking for

  • SSIS PACKAGE MIGRATION FROM 2005 to 2008 - Script task/component errors

    HI All, We have to migrate ssis packages (about 300) from ssis 2005 to 2008 . 1. I understand that the major concern is regarding the script component/tasks. I searched a lot about this and also consulted with many friends , all of them are aware of

  • Upload from Kodak Photo CD 1992

    I can't upload from Kodak Photo CD 1992 directly. I have first to upload to iPhoto and from there File upload to Aperture. Is this normal? Milan

  • Submit query button

    I am working in oracle 10g with developer 2000 as front end (forms and reports 9i) which was developed by software professional. unfortunately i don't have any source code or user manual of the project done by them. I have a small problem for which i

  • Simultaneous login problem

    Hi  I am having simultaneous login problems. In the past I have been able to sign into my skype account on both my Mac Book Pro and my Windows 7 desktop PC. However since I had to change my password I can only login into one machine at a time now. Al

  • How to manually patch oc4j to run bc4j

    A patch has been released to enable bc4j components to run with oc4j. This patch only works on windows, how do I patch oc4j running on linux? I've copied the bc4j jars from jdeveloper 9i to oc4j/lib. But the patch also mentions that the jsp compiler