Error in application: custom component Localization in flex library project

Hi!
I created custom component in flex library project and I created resource bundle for it. Now it all compiles, but when I add the component to other project I get an error: Unable to resolve resource bundle "Guestbook" for locale "en_US".
So can someone help me with this?

Where are your resource bundles located in relation to your Flex project src folder?
You may need to add the path to the bundles using Project - Properties - Flex Build Path and then add the parent folder to the resource bundles.
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex / AIR Development, Training, and Support Services

Similar Messages

  • How do I apply programmatic skins for completely custom drawn components of a Flex library project?

    Hello folks,
    I am looking for best practices advice when (1) creating
    custom components and (2) styling and skinning.
    I already know how to skin a component part of the Flex
    framework. I can make a class extending ProgrammaticSkin and have
    my component skinned using CSS to link the component with the
    reference to my custom class.
    However what about those cases when you are completely
    creating a component from scratch?
    Imagine a "Freehand Drawing Canvas" component that allows the
    user to draw on it and has some buttons to set color styles, line
    styles, etc., or imagine a "Screen Flow Gallery" component that
    displays visual objects in a fashion similar to Cover Flow in the
    Mac.
    In many components I am aware you may reuse other components
    part of the Flex framework but I am trying to picture an scenario
    where you would need to draw everything yourself because there just
    isn't something to base it upon so you will end up drawing it from
    scratch.
    To learn how instead of building one of those components I
    mentioned previously I decided to start with something simple that
    would illustrate this like a LiteButton component that will behave
    just like the Flex mx.controls.Button but will extend UIComponent
    and be completely custom drawn.
    The component will have a default look and will also be
    style-able and skin-able. I will provide styles for users of the
    component to modify and regarding skinning anyone can create a
    custom ProgrammaticSkin adding its own drawing logic and link it to
    the component via CSS with the ClassReference applied to the skin
    selector.
    So far so good and it's clear what I want to achieve. I
    actually know how to do most of the stuff here but I have one
    single problem.
    Here is my question, where should I put my custom drawing
    logic? If I do it in the updateDisplayList inside the class
    extending UIComponent it works, however I thought that it would be
    a better practice to do it using programmatic skins, that way I
    could provide different skin themes for my component set.
    The problem is that I can't make the programmatic work in
    this scenario. I tried instantiating the custom programmatic skin
    during the updateDisplayList of the LiteButton component and adding
    it to my display object via addChild but that didn't do anything. I
    also tried creating a "default.css" stylesheet and tried to use
    ClassReference as I would normally do to skin an already existing
    component (or composite component as well) but that didn't do
    anything either.
    So how do I apply programmatic skins for completely custom
    drawn components of my Flex library project?
    I could do it inside the updateDisplayList of the LiteButton
    class extending UIComponent but again I would like to provide
    different theme sets for my components so it makes sense using
    programmatic skins.

    "jbucaran" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hello folks,
    >
    > I am looking for best practices advice when (1) creating
    custom components
    > and
    > (2) styling and skinning.
    >
    > I already know how to skin a component part of the Flex
    framework. I can
    > make
    > a class extending ProgrammaticSkin and have my component
    skinned using CSS
    > to
    > link the component with the reference to my custom
    class.
    >
    > However what about those cases when you are completely
    creating a
    > component
    > from scratch?
    >
    > Imagine a "Freehand Drawing Canvas" component that
    allows the user to draw
    > on
    > it and has some buttons to set color styles, line
    styles, etc., or imagine
    > a
    > "Screen Flow Gallery" component that displays visual
    objects in a fashion
    > similar to Cover Flow in the Mac.
    >
    > In many components I am aware you may reuse other
    components part of the
    > Flex
    > framework but I am trying to picture an scenario where
    you would need to
    > draw
    > everything yourself because there just isn't something
    to base it upon so
    > you
    > will end up drawing it from scratch.
    This may help with that
    http://livedocs.adobe.com/flex/3/html/help.html?content=skinstyle_3.html
    > To learn how instead of building one of those components
    I mentioned
    > previously I decided to start with something simple that
    would illustrate
    > this
    > like a LiteButton component that will behave just like
    the Flex
    > mx.controls.Button but will extend UIComponent and be
    completely custom
    > drawn.
    >
    > The component will have a default look and will also be
    style-able and
    > skin-able. I will provide styles for users of the
    component to modify and
    > regarding skinning anyone can create a custom
    ProgrammaticSkin adding its
    > own
    > drawing logic and link it to the component via CSS with
    the ClassReference
    > applied to the skin selector.
    >
    > So far so good and it's clear what I want to achieve.
    Actually after
    > playing
    > with the weekend and today I know how to do most of the
    stuff but I have
    > one
    > single problem. So here is my question, where should I
    provide my custom
    > drawing logic? If I do it in the updateDisplayList
    inside the class
    > extending
    > UIComponent it works, however I thought that it would be
    a better practice
    > to
    > do it using programmatic skins, that way I could provide
    different skin
    > themes
    > for my component set.
    These aren't mutually exclusive. When you provide a skin with
    a
    TypeSelector, you have to add it to the display list
    somewhere, and this is
    typically done in updateDisplayList or addChildren. I prefer
    to do it in
    updateDisplayList, because you can then change it if the
    style changes.
    > The problem is that I can't make the programmatic work
    in this scenario. I
    > tried instantiating the custom programmatic skin during
    the
    > updateDisplayList
    > of the LiteButton component and adding it to my display
    object via
    > addChild but
    > that didn't do anything.
    Exactly what did you do?
    > I also tried creating a "default.css" stylesheet and
    > tried to use ClassReference as I would normally do to
    skin an already
    > existing
    > component (or composite component as well) but that
    didn't do anything
    > either.
    I've never had any problem using an approach similar to
    this...but I will
    say that I couldn't see any advantage in creating a
    default.css style sheet,
    since it's not really default in the way that the one that
    comes with Flex
    is. It's much more obvious to anyone using your component
    what's going on
    there if you create a style sheet where they're likely to
    spot it.
    > So how do I apply programmatic skins with the default
    look for custom
    > drawn
    > components?
    It seems like your approach is fine, but maybe you've made a
    mistake in your
    implementation.
    > I could do it inside the updateDisplayList of the
    LiteButton class
    > extending
    > UIComponent but again I would like to provide different
    theme sets for my
    > components so it makes sense using programmatic skins.
    You might want to consider also adding an instance of
    HaloBorder to your
    component. That brings a lot of functionality with it.
    HTH;
    Amy

  • I get an error message "application attempted to access C   runtime library incorrectly" when I try to update or reinstall iTunes. How can I resolve this issue?

    I get a Windows error message "application attempted to access C++ runtime library incorrectly" when I try to update or to reinstall iTunes. How do I resolve this issue?

    Hi there MRDLS,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    -Griff W.

  • Flex Library Project(SWC) with css and image assets

    HI,
    I want to create a flex library project with images and css. I shall use that swc with other flex applications. I wand to use those css and images from the swc. Is it possible? Can you please explain in detail.
    Thanks
    Nirmal

    Right... but how do I reference that CSS outside of the
    Libray Project?
    All I want my library project to be is a CSS and images
    Then I want to include that library project in my main
    project, and have the main project call the CSS file inside the
    library project

  • Include xml data file in Flex Library Project

    Hi all,
    i've got a Flex Library Project in which I include some
    assets, as css files and some xml data files too. They are located
    in my project root, under /assets/css and /assets/data. Once
    compiled, if I use my library in other projects, the css styles
    from the css under /assets/css apply, but the xml data files are
    not found.Both are checked in the Flex Library Build Path window of
    the project's properties.
    There's any reason why the xml files are not included? Or
    should I reference them in some other way... In my library project
    I'm doing: ' theHTTPService.url = "assets/data/data_file.xml" '
    thanks in advance,
    Marc

    Hi Greg, thanks for answering.
    Yes, that's what I'd like to know also... I mark it to be
    added to the library, but how can I be sure if it's in the final
    .swc? Are they browseable somehow?
    thanks,
    Marc

  • [svn] 713: Merging recent sample eclipse project changes for framework and rpc flex library projects to the trunk

    Revision: 713
    Author: [email protected]
    Date: 2008-03-03 10:19:09 -0800 (Mon, 03 Mar 2008)
    Log Message:
    Merging recent sample eclipse project changes for framework and rpc flex library projects to the trunk
    QA: No
    Doc: No
    Bugs: N/A
    Modified Paths:
    flex/sdk/trunk/development/eclipse/flex/framework/.actionScriptProperties
    flex/sdk/trunk/development/eclipse/flex/framework/.flexLibProperties
    flex/sdk/trunk/development/eclipse/flex/rpc/.actionScriptProperties

    Thats good news.

  • "Flex Library Project"

    Just a terminological note - "Flex Library Project" should be renamed to just "Library Project". It has nothing to do with Flex Framework. You can create non-flex libraries. Now as Flex Builder has become Flash Builder, it is even more illogical.

    Pavel,
    Good point. Can you please file a bug/enhancement at http://bugs.adobe.com/flex.
    Thanks,
    Peter deHaan
    Flex SDK Team | Adobe Systems Inc

  • Error invoking a custom component in a Process.

    Hi,
    I've build a custom component that uses Output ES services.
    If i run it as a Java app all runs well, he generates the output pdf files and output report .xml file.
    If i import it as a component into Livecycle ES and use it in a process i get the following error:
    2008-05-20 11:35:52,390 INFO [STDOUT] com.adobe.livecycle.output.exception.OutputException: java.lang.ClassCastException: com.adobe.livecycle.output.client.OutputResult
    2008-05-20 11:35:52,390 INFO [STDOUT] at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(OutputClient.java:138)
    2008-05-20 11:35:52,390 INFO [STDOUT] at outputfactory.Output.outputFromXML(Output.java:55)
    2008-05-20 11:35:52,390 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2008-05-20 11:35:52,390 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2008-05-20 11:35:52,390 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2008-05-20 11:35:52,390 INFO [STDOUT] Caused by: java.lang.ClassCastException: com.adobe.livecycle.output.client.OutputResult
    2008-05-20 11:35:52,390 INFO [STDOUT] at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(OutputClient.java:122)
    I deploy it with th adobe-output-client.jar in my component jar and the reference for it in the component.xml file (also in my component.jar).
    How can i solve this problem? thanks

    Hi Rui
    Very difficult to know from your description.
    It's a class-cast exception - try to find the line in your code that's doing the cast, and find out what the actual object is.
    It could also be a jar versioning problem, or a class-loader problem.
    Sorry, very difficult to help without doing some detailed debugging.
    Howard
    http://www.avoka.com

  • Showing Error MEssage using Custom Component

    Hi,
    I have built the custom component to validate the File Size and File Extension.
    I.e user should be able to check in the document if size is less than 5MB and file extension is one of "Pdf", "doc", "tiff", "png".
    Here whenever the validation files i am throwing the exception "File Size Exeeds the Limit or Invalid file Type".
    I am able to get the custom component working as per the validation. And it is alsi logging the error in the Log file.
    But i need to show the error message when the user cllick on the check in button in UCM page.
    As of now it shows some generic error saying "Unable to execute service CHECKIN_NEW_SUB and function validateStandard.
    The error was caused by an internally generated issue. The error has been logged"
    Any help on this is highly appreciated.
    Regards,
    Rakshitha Shetty.

    Hi,
    You could throw a ServiceException in your filter with the message you want to display.
    Romain.

  • What's the difference between action script library project and flex library project

    i see a new project named actionscript library project. what's the difference?

    In ActionScript Library Project, there is no MXML support and Flex related libraries will not be added by default. Otherwise both are similar.
    Thanks
    -Sunil

  • Tlf use into flex library project make some errors

    errors:
    Description Resource Path Location Type
    1046: 找不到类型,或者它不是编译时常数: ContentElement。 SparkWebCommonComponents  Unknown Flex Problem
    Description Resource Path Location Type
    1046: 找不到类型,或者它不是编译时常数: ElementFormat。 SparkWebCommonComponents  Unknown Flex Problem
    Description Resource Path Location Type
    1046: 找不到类型,或者它不是编译时常数: FontMetrics。 SparkWebCommonComponents  Unknown Flex Problem
    Description Resource Path Location Type
    1046: 找不到类型,或者它不是编译时常数: GroupElement。 SparkWebCommonComponents  Unknown Flex Proble

    I can't tell from the description whether these are compile time problems or runtime problems, but you could try checking that your Flex project is marked as a 10.0 or later project, and that when you run the SWF you are running it in a 10.0 or later Player.
    In the FlashBuilder, there is a section in the project preferences for "ActionScript (Flex) compile". Make sure that the minimum player is 10.0 or later. If you are using Flex Builder 3, this can be done by turning on the HTML wrapper option, and setting the minimum player there.

  • How to use a flex custom component in an AS3 Class?

    Our software team has been developing flash applications using AS3 (via the FlashDevelop IDE and the free Flex SDK).  Recently, some members of the team started exploring FlexBuilder and Flex (wow... why did we wait so long?).  The problem is that some folks continue to develop using pure Action Script 3 (FlashDevelop) while others are creating custom components in FlexBuilder.
    How do the AS3 developers use the Flex Custom components built in FlexBuilder in their AS3 Applications?

    SwapnilVJ,
    Your suggestions enabled me to make progress, but I'm still having a problem.  Based on you suggestion, I learned how to make a swc using Flex Builder.  I successfully added the swc to the lib resource in my AS3 project (FlashDevelop).  I was able to instantiate one of my new components (code hinting even picked it up from the lib).
    When I run my app, my component is not visible.  I can trace properties of it and the values are correct.  Any thought why I might not be seeing my custom component?
    package trainer.games.board.MatchThree {
    import flash.display.Sprite;
    public class Test extends Sprite{
      private var cp:MatchingGameControlPanel; // <<< this is my swc custom component created in Flex
      public function Test() {
       cp = new MatchingGameControlPanel();
       cp.visible = true;
       addChild(cp);
       trace("width: ",cp.width); // <<< works and displays valid data for the component.

  • Custom Component Error -- Uggh

    I have tried to solve the problem using online resouces, 3rd party message boards, Xcelsius tutorials, the textbook "Xcelsius 2008: Dashboard Best Practices", tutorials which came with the Xcelsius SDK, among others, however, I continue to run into problems. Additionally, I am have tried to fix by reading the Flex 3 SDK, Xcelsius 2008 SDK, and the samples for Xcelsius/Flex which came bundled in the SDK.
    The problem is that the custom component, created in Flex 3 Hotfix and brought into Xcelsius using the Add-on Packager and the Add-on Manager does not display on the canvas. While all of the inherent components in Xcelsius work correctly the custom component does not display. When dropped on the canvas it simply disappears and never instatiates on the canvas and also is not listed inside the object browser. The custom component is, however, listed in the vertical menu under the category Add-Ons.
    Example:
    1. I use a sample Flex project which was included in the Xcelsius SDK and bring it into Flex 3 builder.
    2. I configure the project to run appropriately in my local environment
    3. I build the project successfully.
    4. I open the Xcelsius Add-on Packager
    4a. In the GENERAL tab I give the package a name
    4b. In the VISUAL tab I type the name of the class (i.e. com.business.dept.project )
    4c. In the VISUAL tab I type the display name (i.e. Email Component)
    4d. In the VISUAL tab I type the directory location of the .swf (i.e. C:\Xcelsius\Flex\Project\Email\emailcomponent.swf )
    4e. In the VISUAL tab I type the directory location of the property sheet (i.e. C:\Program Files\Business Objects\Xcelsius\SDK\bin\propertyinspector.swc )
    4f. In the BUILD tab I build the component sucessfully
    5. I open Xcelsius and go to File -- Manage Add-Ons
    6. I add the new emailcomponent.xlx file to the Add-on Manager and select Close
    7. I exit Xcelsius and reopen Xcelsius
    8. The new component is listed in the vertical menu under Components -- Add-Ons
    9. I test the function of inherent objects and drag a pie chart successfully onto the canvas of Xcelsius
    10. I drag my new component onto the canvas, and while there is a visible border outline of the object as I drag over the canvas, when I drop the component onto the canvas the object does NOT appear on the canvas.
    11. I re-test another inherent componet in Xcelsius which works fine
    12. I re-test my component with the same failure.
    Thank you for the assistance in advance.
    Alex Dove

    I have successfully created a Flex component in Xcelsius. The data is static and hard coded into the Flex component which is not ideal, but it certainly is a step in the right direction.
    My steps were as follows:
    1. Create a new Flex project
    2. Create a new Flex component and save it into the class namespace directory I was planning on using
    3. Include all of the MXML logic for the application in the component file
    4. Reference the component file in the Application file as a namespace reference
    5. Save the file
    6. Create an .xlx file using the Xcelsius Add-on Packager
    7. Typing the class namespace location using the entire path and file name without the extension
    8. Loading the new component into Xcelsius
    9. Building the app.
    Success.
    Thank you for all the help
    Alex Dove

  • Importing a custom component from Flash Catalyst with Assets

    I am experimenting with Flash Catalyst to see if it would work well for us to create components for Flash Builder to use. As a test I created a very simple component with a Pie Chart and a button and exported it as a fxpl file. In Flash Builder I created a Flex library project and imported the component to it. When I tried to use the component in a trivial test app it gave me an error, saying 'Could not resolve <graphics:fc_pie> to a component implementation', presumably because it had not put the component files in the right place of the library tree - by default they were put in a folder at the same level as components but with the name of the component, below which it had a components folder and an assets folder. If I move the files in these folders to the corresponding folders under src then it works fine.
    The question is, how do I get Flash Builder to do this correctly? I assume I'm missing something obvious but I am a real Flash Builder Novice and this process is about evaluating which tools to use. Sorry if I'm being a numpty. I'm using Flash builder 4.5 and Flash Catalyst CS5.5.
    Any help much appreciated.

    If you look in the library panel, there should be an entry for your custom component - probably something like CustomComponent1.mxml. Drag this out onto the artboard to create a new instance of the component.
    In the case of a custom component, you can't change much on the second instance. If you have something like a text input skin though, you can change the text it is displaying for each instance.
    We are working on making this sort of thing easier in the future, so stay tuned

  • Component property declaration in a Custom Component

    Hello everyone,
    I have a question related to a custom component. I will define a use case and how I want to define a property.
    e.g.: I develop a custom component using Flex Library Project, with all manifest.xml, design.xml, locale etc. My component name is CustomList, now in this component, I define a property with following getter/setter.
    //  defaultState
    private var _defaultState:CustomState;
    [Bindable( "defaultStateChange" )]
    //I have tried defining type property as CustomState, doesn't works
    [Inspectable( category="General",  name="Default State" )]
    public function get defaultState():CustomState
         return _defaultState
    public function set defaultState( v:CustomState ):void
         if ( _defaultState!= v)
              _defaultState = v
              dispatchEvent(new Event("defaultStateChange"))
    Here, CustomState extends MXMLObjectAdapter and defines a id property and few other property. and In mxml I can define it like this,
    <CustomList ....>
         <defaultState>
              <CustomState label="" icon="" />
         </defaultState>
    </CustomList>
    Now, what I want to achieve is, I want to define property something like this:
    <CustomList ....>
         <defaultState label="" icon=""/>
    </CustomList>
    Can someone tell me how to achieve this and point me to some description about it.
    Thanks in advance.
    Chetan Sachdev

    @Ryan:
    Thanks for your reply. For type property in Inspectable metadata tag: http://livedocs.adobe.com/flex/gumbo/html/WS2db454920e96a9e51e63e3d11c0bf680e1-7ffe.html#W S2db454920e96a9e51e63e3d11c0bf69084-7a21
    It can have values like Boolean, Array, String etc. I am trying to have a custom one. But I notice that I have to close the property tag, even if it is a string or html for e.g. text property in TextInput, I have to write something like this:
    <mx:TextInput>
            <mx:htmlText>
                <![CDATA[
                ]]>
            </mx:htmlText>
        </mx:TextInput>
    and
    <mx:TextInput>
            <mx:text>something</mx:text>
        </mx:TextInput>
    But I still think, it should be there. Not sure
    Chetan

Maybe you are looking for

  • How to include a free goods as gift automatically

    hi, my scenario is like this in order to encourage the customers buying more products i would like to give them a gift article as a free goods which depends on the value the customer buys. example for 5000RS of billing i would like to give parker pen

  • Oracle 10g can be Installed on Windows 7 64 bit os

    Hi Is it possible to install oracle 10g/11g on windows 7 OS /windows vista 64 bit os Regards Pavan Kumar

  • NIC teaming - Server 2008 R2 DC combined with other Software

    Hello! I've been searching all morning for an answer of what we have in mind to do at work.... We've got a server installed with Windows Server 2008 R2 and have 4 NICs on it. We want to make it a DC (with DNS, DHCP and print services) and also want t

  • Role & responsibilities for SD functional consultant

    Hi friends, iam sravan, applying 2+yrs of exp as a sd functional consultant. i want to put 10 months of exp for impementation and rest of the yrs putting as a support. is it ok, otherwise plez suggest me. can u tell me the role and responsibilities f

  • How oui creates key in windows registry?

    Hi all, I have a question about Oracle 11g Client(32bit) installation. My question is how oracle universal installer create key in windows registry (Windows Server 2008 R2)? Is that info written in some parameter files? How oui decide witch path to g