"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

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

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

  • 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

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

  • Cannot compile Library project in Flash builder 4: Unable to locate specified base class

    I am migrating from Flex builder 3 to Flash builder 4, during that process I found that Flash builder could'nt compile Flex Library projects which contains components in the form of mxml files. Compiler throws "Unable to locate specified base class".
    I have narrowed it down to by creating a flex library project named test library, below its screenshot with its package structure
    ControlA is based on componentA
    when i compile this project, mxml compiler throws this error
    Unable to locate specified base class 'components.componentA' for component class 'ControlA'.
    I cannot upload project code because file uploads are disabled on this forum so I am going to paste the code for both componentA and controlA
    componentA
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*" width="400" height="300">
    </mx:Canvas>
    ControlA
    <?xml version="1.0" encoding="utf-8"?>
    <components:componentA xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:components="components.*" width="400" height="300">
    </components:componentA>
    To further test it, I have made another library project with same package structure using pure AS3, and it compiled without errors

    It might be this happens and other errors if you forget to Run Flash Builder 4.5 Buritto and startup the other version FB4.
    It uses the same project listings and that can be confusing since you're not expecting the old version to be aware of new Buritto (MobileApplications) projects you added (thinking) only to the BETA version installed elseware no doubt.
    Well it might not be your problem but worthy of noting for other's I'm sure.
    Otherwise you've double checked you're using SDK 4.5 Hero with it too! right?

  • Sharing code between Flex and AIR versions using library project

    Hello everyone,
    I'm developing an application that has both Flex and AIR versions. In order to share code between these apps, I created a library project and added all my code there. Now I've set the library project as a dependency for both Flex and AIR projects. Since there are some components that use the DataService object, I've added fds.swc and fds_rb.swc and fiber_rb.swc modules to the libs directory of the library project. No compile errors. Now, if I try to run my Flex application, I'm getting this error:
    Variable mx.data::LocalStoreFactory is not defined.
    I know that this error comes up when playerfds.swc is not present in the path. But that is not the case here. I have added playerfds.swc, fds.swc and related lib files to the build path.
    If I go back and add the playerfds.swc file to the original library project, the error no longer appears. This is not a proper solution for me, since I need to share this project with AIR version also, and I cannot have both playerfds.swc and airfds.swc in the same project.. Has anyone faced an issue like this before?? What am I doing wrong??

    Hello everyone,
    I'm developing an application that has both Flex and AIR versions. In order to share code between these apps, I created a library project and added all my code there. Now I've set the library project as a dependency for both Flex and AIR projects. Since there are some components that use the DataService object, I've added fds.swc and fds_rb.swc and fiber_rb.swc modules to the libs directory of the library project. No compile errors. Now, if I try to run my Flex application, I'm getting this error:
    Variable mx.data::LocalStoreFactory is not defined.
    I know that this error comes up when playerfds.swc is not present in the path. But that is not the case here. I have added playerfds.swc, fds.swc and related lib files to the build path.
    If I go back and add the playerfds.swc file to the original library project, the error no longer appears. This is not a proper solution for me, since I need to share this project with AIR version also, and I cannot have both playerfds.swc and airfds.swc in the same project.. Has anyone faced an issue like this before?? What am I doing wrong??

  • Flex mobile project as a library for Objective-c project?

    We have a objective-c app for ios already,
    now we have to add a rtmp based feature(I write that with a flex mobile project).
    is there any way to compile the flex mobile project as a objective-c library ,so that the objective-c developer can make that work on ios device?
    Please help me ,Thanks!

    Usually, people include the objective-c libraries in their AIR applications, using native extensions. However, if you just want rtmp streaming in your native iOS app using flash and not the UI, you may want to use the AV Foundation framework, instead of a flex mobile project.
    You may find some useful information and links in this article to achieve it: http://www.adobe.com/devnet/adobe-media-server/articles/streaming-video-ios.html

  • Create library (swc) in Flash Builder 4 / Flex Project (not in a Library Project)

    I want to create a swc file to use it in an other project. I can't use the Flash 4 Library Project to do this, because in a Library Project I
    haven't the possibility to use data/services, which I need for my library. After click on "data / services" I get the message "This view is only for Flex-Projects available".
    Has anyone a solution for my problem?
    Thanks for your help.

    Connect to PHP in FB4 is used when you have a PHP Class and you want to use that in FB, for example Employee.php and it has a Employee class and various methods in that like create, update, get, delete.
    However, if you have exposed your functionality in PHP as a HTTP URL (i.e. it is not a class), then you should be using HTTPService from the data menu.
    So if your file is login.php and is accessible as a URL, then using the HTTPService and enter the URL.
    Does this help?
    -Sunil

  • [svn:fx-trunk] 12087: Dev only. Checking in Flash Builder 4 " Library Projects" for building Flex SDK SWCs in trunk.

    Revision: 12087
    Revision: 12087
    Author:   [email protected]
    Date:     2009-11-21 20:56:09 -0800 (Sat, 21 Nov 2009)
    Log Message:
    Dev only. Checking in Flash Builder 4 "Library Projects" for building Flex SDK SWCs in trunk. These projects are easier to import and do not require linked resource variables to be specified.
    Note: although the trunk does not build textLayout.swc, there appears to be a legitimate compiler error in FlowGroupElement.as as a cast is missing. I'll follow up with TLF.
    QE notes: N/A
    Doc notes: N/A
    Bugs: N/A
    Reviewer: N/A
    Tests run: N/A
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/build.xml
    Added Paths:
        flex/sdk/trunk/frameworks/projects/airframework/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/airframework/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/airframework/.project
        flex/sdk/trunk/frameworks/projects/airframework/.settings/
        flex/sdk/trunk/frameworks/projects/airframework/.settings/org.eclipse.core.resources.pref s
        flex/sdk/trunk/frameworks/projects/airspark/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/airspark/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/airspark/.project
        flex/sdk/trunk/frameworks/projects/airspark/.settings/
        flex/sdk/trunk/frameworks/projects/airspark/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/flex/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/flex/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/flex/.project
        flex/sdk/trunk/frameworks/projects/flex/.settings/
        flex/sdk/trunk/frameworks/projects/flex/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/framework/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/framework/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/framework/.project
        flex/sdk/trunk/frameworks/projects/framework/.settings/
        flex/sdk/trunk/frameworks/projects/framework/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/halo/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/halo/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/halo/.project
        flex/sdk/trunk/frameworks/projects/halo/.settings/
        flex/sdk/trunk/frameworks/projects/halo/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/osmf/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/osmf/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/osmf/.project
        flex/sdk/trunk/frameworks/projects/osmf/.settings/
        flex/sdk/trunk/frameworks/projects/osmf/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/rpc/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/rpc/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/rpc/.project
        flex/sdk/trunk/frameworks/projects/rpc/.settings/
        flex/sdk/trunk/frameworks/projects/rpc/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/spark/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/spark/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/spark/.project
        flex/sdk/trunk/frameworks/projects/spark/.settings/
        flex/sdk/trunk/frameworks/projects/spark/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/sparkskins/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/sparkskins/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/sparkskins/.project
        flex/sdk/trunk/frameworks/projects/sparkskins/.settings/
        flex/sdk/trunk/frameworks/projects/sparkskins/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/textLayout/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/textLayout/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/textLayout/.project
        flex/sdk/trunk/frameworks/projects/textLayout/.settings/
        flex/sdk/trunk/frameworks/projects/textLayout/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/wireframe/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/wireframe/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/wireframe/.project
        flex/sdk/trunk/frameworks/projects/wireframe/.settings/
        flex/sdk/trunk/frameworks/projects/wireframe/.settings/org.eclipse.core.resources.prefs

    Status Update - don't know if this is a bug, design flaw, install problem or my misunderstanding.
    I got it to work by first changing my Flex library to 4.5.0 - still didn't work with current
    app and update mxml files using "2.6" for their namespace versions. But I did at least
    get the popup error number 16815 - indicating an error in the update version namespace.
    By leaving my application namespace version at "2.6" and changing the update version to "2.5" ... bingo!
    I got my new update installed autiomatically.
    Is this how it's supposed to work - or are my runtimes mixed up?
    Will this work the same using the Flex 4.5.1 SDK? I'll find out shortly
    Hope this helps others.

  • [svn:osmf:] 11292: Removing 'libs' as a library path from the Flex Builder project properties.

    Revision: 11292
    Author:   [email protected]
    Date:     2009-10-30 02:28:09 -0700 (Fri, 30 Oct 2009)
    Log Message:
    Removing 'libs' as a library path from the Flex Builder project properties.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/.actionScriptProperties
        osmf/trunk/framework/MediaFramework/.flexLibProperties

    Revision: 11292
    Author:   [email protected]
    Date:     2009-10-30 02:28:09 -0700 (Fri, 30 Oct 2009)
    Log Message:
    Removing 'libs' as a library path from the Flex Builder project properties.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/.actionScriptProperties
        osmf/trunk/framework/MediaFramework/.flexLibProperties

  • Bug with swc folders and library projects?

    Hi guys, hope someone can help here. We are just in the
    process of starting a fairly large flex project and we were trying
    to work out a solution so that I as a designer can view and edit
    custom components with visual styles applied.
    Now I know that you aren't meant to add a style tag into the
    component but it was working for me and I could at least preview
    the styles in 'design mode'.
    The problem arises though when you have a large project with
    shared assets across projects. I had 3 projects set up in my
    workspace:
    Project 1: Library project with css files, swc and graphics
    Project 2: Library project with components for Project 3
    Application
    Project 3: Application project
    What I did was to add a external source folder to Project 2
    & 3 both of which was Project 1. So far so good, the css loaded
    into my application from Project 1 and I could view my styles in my
    custom componants in Project 2
    But, I needed to add swc files for custom buttons etc in my
    application. So, I thought I would just add an swc folder source to
    my build path in both my Project 2 & 3 which referenced an swc
    folder in Project 1. Well, it did work and I could view everything
    fine but (and here is the main problem) this corrupts the
    workspace. Once Flex has closed and tries to reopen my workspace it
    hangs, same if I change workspace in Flex from another workspace to
    this one.
    Can anyone help? Is this a flex bug?
    TIA
    Steve

    Section 6.3.9 of RFC3501 expands on previous RFCs and clarifies the LSUB command, confirming that this is a bug in JavaMail. http://www.isi.edu/in-notes/rfc3501.txt

Maybe you are looking for

  • First & Second BBP terms appearing on Year End Bill  instead of first only

    Hi All, During running of EA19 the u2018oldu2019 BBP plan gets closed while a new one is being created. The amount to be paid on the invoice is the sum of costs of the billing period + BBP term. Normally only 1 BBP term is present on the invoice. Iss

  • Can ODBC configuration data be stored in a Crystal Report?

    Post Author: Gary W CA Forum: Crystal Reports We've been running some SQL statements in Access pulling data from a server/database.  I decided to see if I could do the same thing in a Crystal Report with the intention of scheduling the report to run

  • Task assign in loop

    Hi all, i've write the following test code to make a dynamic parallel assign of a task +public class MultiParticipantsFromMessage implements IAssignmentService {+ +public Participants onInitiation(Task task, Map map) {+ Logger.getAnonymousLogger().lo

  • [SCCM 2012 R2] How SCCM 2012 handles Software Update Revisions?

    Hi All, There are a lot of questions regarding how SCCM 2012 handles Software Update Revisions. Does anyone know what happened if: Windows update publish some update with revision #1 Same update downloaded and deployed via SCCM 2012 Windows update pu

  • ORA-02074 when calling proc from VB

    Anyone have any idea why a stored procedure that sets a savepoint will fail with [Oracle][ODBC][Ora]ORA-02074: cannot ROLLBACK in a distributed transaction ORA-02074: cannot SET SAVEPOINT in a distributed transaction ORA-06512: at "PIPS_ADMIN.PKG_ACA