Using Flash Components in multiple SWCs inside AS-only project

Ok, this is a somewhat complicated issue dealing with SWCs and compilers. I've outlined steps to reproduce the problem below. I'm using the method outlined here to bring in Flash content to my project. I have 15-20 SWCs already, and it's working fine for those assets, the problem is specifically related to Flash's components (ComboBox, RadioButton etc.) If anyone has *any* advice on this, please let me know as we are completely stumped at this point!
The issue we're having involves using multiple external SWC files which contain AS3 components from Flash CS4. When two SWCs are linked to an ActionScript project (using Flash Builder 4 Beta (build 4.0.0)) there are collisions in the referenced classes which cause the most recently published SWC to knock out any duplicate classes in the other SWCs. A simple way to replicate this is as follows:
1. Create one FLA, called 'compA', drag one ComboBox, RadioButton and TextInput component onto the stage. Select all and convert to symbol, marking the symbol for export with a class name of Test1.
2. Create a second FLA, called 'compB', drag one ComboBox, Label and UIScrollbar onto the stage. Convert these to a symbol with a classname of 'Test2'.
3. Create a new ActionScript-only project in Flash Builder, called 'ComponentTest'.
4. Create a 'libs' folder in this new project. Select 'Project -> Properties -> ActionScript Build Path' and add the libs folder as a new SWC folder in the Library Path window.
5. Go back to compA.fla and right click the Test1 symbol in the library. Select 'Export SWC file...' and save it as compA.swc in the libs folder.
6. Do the same thing for compB.fla.
7. Edit ComponentTest.as and in the constructor, create an instance of Test1 and Test2, placing each on the stage.
8. Run the app, and the ComboBox will only be functional in one instance (whichever was published last.) The other ComboBox will behave like a MovieClip, cycling over the two frames in the stage asset (avatar and skin.) It will have no association to anything in the fl.* package.
Looking at the 'Referenced Libraries' in Flash Builder, compA may show it contains classes for the RadioButton and TextInput, but no ComboBox classes are referenced (sometimes it will show no classes at all, but this appears to be an unrelated bug with refreshing external libraries in Flash Builder.)
Unzipping the SWC files and examining their catalog.xml manifests shows all the necessary classes are listed (i.e. ComboBox is in both.)
Removing either SWC will cause the remaining one to work properly, so the problem appears to be in compiling the ComponentTest project which includes both.
Attempted Workarounds:
1. Create a new FLA, drag all components used in both files onto the stage and export a SWC called 'components.swc'. Add this SWC to the project's libs folder. In both compA and compB FLA files, add this SWC as an external library in the ActionScript 3.0 Publish settings. Re-export both SWCs. The theory is that the compiler will look for the required classes in the components.swc first, and thus not include them in the export, however this is not the case.
2. Same as above, deleting ComponentShim from both FLAs before exporting. The result is that no component classes are included, so all components act like MovieClips.
3. Add the Components source folder to the external library path of both FLAs, assuming the compiler will favor classpath references over compiled class references (ComponentShim). Same result.
Summary: We have been unable to find a way to use Flash Components in a project if they are referenced in more than one asset library. If we were able to import them once, and have all SWCs which need those classes use a single source, this might not be an issue, but the compiler does not appear to handle this (and we are admittedly not advanced enough to even know if this is possible.)

Hi!
I'm having the same problem. Any news on the matter?
Also, this looks like a very similar problem.
Best regards,
X_AmonPL.

Similar Messages

  • So far I've been using Flash Player 11.2 which is the only normal playing sound newer versions are stereo sound streamed normal once the second is the center sp

    so far I've been using Flash Player 11.2 which is the only normal playing sound newer versions are stereo sound streamed normal once the second is the center speaker started to play

    Flash Player 11.2 is horribly insecure and no longer supported. Please update to Flash 11.6

  • Using flash projector on multiple screens

    hi,
    i have a display project for which i will be using 4 plasma
    screens linked together as 1 giant screen. I'm not sure if flash's
    "full screen" mode will work...and i don't know of any 3rd party
    software off the top of my head that will work...
    can flash or is there any 3rd party software that will allow
    me to run a flash projector across multiple screen connected
    together?

    icecappacino wrote:
    > hi,
    >
    > i have a display project for which i will be using 4
    plasma screens linked
    > together as 1 giant screen. I'm not sure if flash's
    "full screen" mode will
    > work...and i don't know of any 3rd party software off
    the top of my head that
    > will work...
    Flash won't do it in flull screen, tho 3rd party tools will.
    Jugglor from
    http://www.FlashJester.com
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Using Flash components as Widgets

    I'm liking much of the functionality (and prettiness!) gained by third-party Flash components (www.flashden.net, www.flashcomponents.net, etc) that I'd like to incorporate into Captivate lessons.
    Being a Flash and Captivate newbie, I haven't yet broken the code on how Flash, Widgets, and Captivate fit together. For example, I like one of the many OSX dock-like Flash components out there, and would like to use one for slide-to-slide navigation in Captivate.
    Does this necessarily have to be done using a Widget? Is there any online guidance out there regarding Widgets in Captivate? Googling reveals very little information.
    Thanks!

    It really depends on what you want to do with the particular component. I use components from www.flashden.net quite alot in my projects and most of them are not modified to act as widgets. For example photogalleries, image transitions etc. can be imported straight into Captivate, but you won't get any other functionality than what the original component offers.
    If you want to have a OSX style dock menu you could modify one of the files from www.flashden.net to suit your needs. I wouldn't make it into a widget if it was me, since all you really need to do is to enable navigation in Captivate when the user clicks on a thumbnail. This can easily be done by just sending the commands directly from Flash (the rdCmd variables). You would have to create the thumbnails yourself though (and probably reference everything in an external XML file so it's easy to update), but it should be doable.
    The idea from raj_cap about using the print widget is very good. If you want to have your menu create the thumbnails on the fly then you would need to go this way. I'm definetly looking into this because it's such a great idea (thanks raj_cap).
    /Michael
    Click here to visit the www.captivate4.com blog

  • Use flash charts from multiple base URLs

    My APEX apps are hosted by a shared service provider who uses a front end proxy. Following the instructions in this forum, I was able to get flash charts to work by substituting my client URL for #HOST#.
    Example, Change:
    <embed src="#IMAGE_PREFIX#flashchart/
    #CHART_TYPE#.swf?XMLFile=#HOST#apex_util.flash?p=&APP_ID.:5:&APP_SESSION.:FL
    OW_FLASH_CHART_R#REGION_ID#"
    to
    <embed src="#IMAGE_PREFIX#flashchart/#CHART_TYPE#.swf?XMLFile=
    http://mydomain.hostingcompany.com/pls/apex/apex_util.flash?p=&APP_ID.:5:&APP
    _SESSION.:FLOW_FLASH_CHART_R#REGION_ID# "
    I changed this base url in multiple locations in the chart source code and the charts now work.
    THE PROBLEM
    Users access the site via a public domain http://www.xyz.com. In order to get the charts to work I then need to change #HOST# to http://www.xyz.com/pls/apex. Then they no longer work when accessing via http://mydomain.hostingcompany.com/pls/apex.
    Is there some way to get the charts to work irrespective of which path users take to get to the site?
    ANOTHER PROBLEM
    Though the above fix works for stand alone flash charts it does not work for the charts in interactive reports or the sample charts displayed when using the chart builder wizard in the application builder.
    Is there somewhere to change in order to get the sample charts in the create chart wizard in application builder and/or the charts in interactive reports?

    Hello,
    Take a look at this thread -
    Re: #HOST# variable at Flash chart region source
    Which discusses the issue.
    John.
    http://jes.blogs.shellprompt.net
    http://www.apex-evangelists.com

  • To use the concept of  using a template with multiple windows inside it.

    Good evening friends ..........
    I have a requirement from my client like this i need to make a smart form in that
    i need to display a template of kind like this
    it must have 1st row 1st column of height 35mm approx. ie which should have 5 rows height with
    no lines IE rows inside that column, and column width must be 4cm.
    and it has 2nd to 5th column of lengths 3cm each in the same row IE 1st row. and
    in 2nd row from 2nd to 5th column of lengths 3cm each. and
    in 3rd row from 2nd to 5th column of lengths 3cm each continue the same pattern till
    5th row and lastly .
    in 6th row i must have 1st 2nd columns with length 4 cm each
    this whole thing i must get i one template only.....................
    when i tried to search this in sap portal or any other documentations
    i got the concept of combining windows and template in one window......
    they are saying we can make a template with 2 or more windows inside it. which also
    contain one template each inside that windows
    so my 1st row 1st column has exactly same requirement as this only.
    IE using a template with 2 or more windows inside it with templates inside each
    window.
    can u please guide me how to try it out this one .......
    this i tried to depict in pictorial form and send u in my previous reply
    but it displayed in other way sorry for that.

    Give this a go...
    // form1.page1.cb::click - (JavaScript, client)
    if (this.rawValue == 1) {
      xfa.resolveNode("form1.page1.nf.ui.#numericEdit.border.fill.color").value = "255,255,0";
      form1.page1.nf.border.edge.color.value = "0,0,0";
    else {
      xfa.resolveNode("form1.page1.nf.ui.#numericEdit.border.fill.color").value = "255,255,255";
      form1.page1.nf.border.edge.color.value = "255,255,255";
    Don't forget to make your form a dynamic form.
    Steve

  • Using Flash Components

    I am using Tree Component of Flash Mx 8 in Director Version
    10.
    I want to get the index or value of node if any one of
    clicked by the user.
    Regards,
    Shahzad

    You can use a mouse event function in a behavior attached to
    the Flash sprite that holds the tree component.
    property thisSprite
    on beginSprite me
    thisSprite = me.spriteNum
    on mouseUp me
    put
    sprite(thisSprite).treeComponentInstanceName.selectedNode.attributes.label
    put
    sprite(thisSprite).treeComponentInstanceName.selectedIndex
    end
    just plug in the actual name of the component.

  • Using swf files compiled as swc in a ios project

    Hi,
    I might have a quite stupid question, but here I go anyway since its not easy on iOS.
    I have 10 swf files (each file is 1 game with all assets + as3 inside it)
    I'd like to make now an iOS app (air 2.7) which can play those 10 games on selection.
    Normally on iOS its not allowed to load in swf files with AS3 in it because you may not use interpreter by Apple.
    Now, on http://www.flashrealtime.com/compiling-big-air-swf-to-ios/ I read some info about a trick to use SWC.
    Here is my question now.
    If each of my 10 swf files actually contains 1 movieclip on stage which by itself contains all game logic (as3) and assets inside it, then can I compile these 10 swf files each one to a swc and somehow include them in a big iOS app ?
    For example
    in game1.swf the main movieclip would be on stage and would be exported for actionscript under the name "game1_mc"
    in game2.swf the main movieclip would be on stage and would be exported for actionscript under the name "game2_mc"
    in game3.swf the main movieclip would be on stage and would be exported for actionscript under the name "game3_mc"
    in game4.swf the main movieclip would be on stage and would be exported for actionscript under the name "game4_mc"
    Can I then somehow include all those swc files inside my 1 big application ?
    And can I then somehow instantiate one of these movieclips and add them to the displaylist to start a game ?
    This could solve a big problem for me, but I'm very unsure if thats possible.
    Kind regards,
    Bart

    Thank you for this very fast reply. Just a little thought, but if I understand right you say that the swc method works but would be the same as copying the mc inside my .fla.
    In that case, wouldn't it be better for project management to use the swc anyway, since flash doesn't have to recompile the stuff anymore each time you build?
    Or is that advantage also not correct?
    Also (and pardon me if this sounds extremely dumb) suppose I include 100 of those games and each game uses around 5MB, then I have 500MB of data in there. Will flash then by default use 500MB of ram on the mobile device (deadli and most probably not available) or will it only use the amount of ram neede by that 1 movieclip which we instantiate from the 100 available ones?
    That would make a huge memory difference.

  • How to use Flex Components with Flash?

    Hi!!
    I found a lot of very useful components in the web, but they are all for  Flex, is it possible to use Flex Components with Flash IDE?
    Thanks !!!
    jenry
    PS: this is one of the components I need to use (a tree with checkbox  nodes)
    http://www.sephiroth.it/file_detail.php?pageNum_comments=30&id=151
    another one:
    http://www.darronschall.com/weblog/2006/09/a-flex-2-checked-tree-control-component.cfm

    Flex components are delivered as SWCs just like Flash components, but the
    SWC format is incompatible with the Flash IDE.
    Also, the default fl.. components in the Flash IDE are incompatible with
    Flex components.
    You should be able to load a Flex SWF into a Flash SWF as long as you aren't
    using fl.. components in the Flash SWF.  If the Flex SWF overlays things
    in your Flash SWF then it might block interaction, but otherwise it
    shouldn't.  I don't think the statement you quoted is true for all
    configurations.
    But loading a Flex SWF into a Flash SWF isn't going to help you use those
    Flex components from your Flash IDE.  Try Flash Builder 4 to build out the
    Flex portion of your application.  I haven't tried it myself, but it I think
    it is supposed to have better integration with Flash.

  • Flash Pro CC produces swc that Flash Builder can't compile

    I've been using Flash CS6 to work with graphics and I export swc files to use them in my FlashBuilder project.
    Today I tried to use to new Flash Pro CC. But now I've got the following issue. When I try to Run/Debug my project шт FlashBuilder - compiling is never be finished. It stucks on 57%. And it doesn't show any error.
    I worked fine when I used Flash CS6 to made swc files.
    I tried to use FlashBuilder 4.5 and 4.7 with different FlexSDK (from 4.0 to 4.6). But it didn't help.
    By trial and error I could figure out the problem is in any code I use in frames in my fla files. I usestop(); in many MovieClips. But that's enough that my projects can't be compiled now
    I tried to comment stop(); but Flash Builder still can't finish the compilation. Only full removing all the code from my fla files allowed the project to be compiled.
    Has anyone catched this bug too? Maybe is there better solution?
    Sometimes I use stop(); and gotoAndPlay("frameName") in frames to loop some animations - it's really convinient. And I wouldn't to give up this convenience
    P.S. Just in case I work on Mac.

    Try changing target player in Flash Professional to match Flex SDK version. For example Flex SDK 4.6 targets Flash Player 11.1.

  • May i use flash component for develop IPhone application?

    Hi all,
    Actually i have flash cs4 pro, so first i develop my small application using flash component like datagrid, button and input text.
    After my completion my program, I will perches flash cs5 pro. Please suggest?
    Regards,
    Kartikeya Sharma

    it doesn't.
    but you can build iphone apps using flash and you can use flash components to build those apps (which was the answer to the op's question).

  • Using Flash Catalyst to create components in Flash Builder

    Hi,
    Apologies if this is a obvious question, but I wanted to solve the one way catalyst --> flash builder nightmare (there is no better word in my opinion) and create a number of basic components in catalyst (rather than an entire site), import them into flash builder and use them as components that I can extend, thus hopefully avoiding the need to affect the fxp file and prohibiting the catalyst updates. It also means I can have multiple people working on components in catalyst and assemble them into one app in Flash builder.
    My questions are:-
    1. Does what I'm proposing make sense?
    2. Is it possible to create SWC files from a project imported from an fxp file (generated in catalyst)?
    Many thanks for all of you who take the time to indulge a newbie like me :-)
    Kind Regards
    Jace

    Don't worry about the UI components development since there is a poweful GUI library that works
    for the J2ME PP. This is LwVCL that is available here: www.lwvcl.com
    See the www.lwvcl.com/online-demo.php demo applet to understand what the components set looks like.

  • Using mx components in Action Script project in Flash Builder

    Hi
    I have created an Action Script project in flash builder 4 and want to use a mx.controls.button.
    The as file looks like this:
    package
        import flash.display.Sprite;
        import mx.controls.Button;
        public class as_test_project extends Sprite
            public function as_test_project()
                var btn:Button = new Button();
                btn.label = "test";
                addChild(btn);
    I have added C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\src as a Source Path in the project settings. I have also added framework.swc to the library path.
    I still get errors like :
    Description    Resource    Path    Location    Type
    Unable to resolve resource bundle "core" for locale "en_US".    as_test_project        Unknown    Flex Problem
    Have then tried added various Bundles folders like
    C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\bundles
    to the source path and library path, but I still get the errors.
    WHAT IS THE CORRECT WAY OF USING MX COMPONENTS IN A PURE ACTION SCRIPT PROJECT ?
    If I want to use th fl.controls componets instead but dont have CS3 where can I download them ?

    Thank you for your quick reply.
    But how then can I obtain the fl.controls components and use them in an Action
    Script project in Flash Builder 4?
    I don't have CS3 or CS4 (the flash authoring tool) installed.
    Is there an SWC somewhere to be downloaded?

  • How to create Theme SWC using Flash Builder 4

    I have created a library project in flex which contains spark skin classes for certain controls and a style sheet class. The problem is when I use the SWC generated by thsi project  and import this SWC as Theme and apply it to another test project. the stylings chasnges are not reflected.
    IF I use comand line to generate Theme SWC the changes are reflected.
    Can any one help me use FLash Builder to create and apply theme SWC.

    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

  • Can i use flex components in flash?

    hi all,
    i recently downloaded flex and saw that the components have a
    much better feel than the components which ship with flash 8 pro.
    is there a way to use flex components in flash?
    any help would be appreciated.
    thanks,
    gaurav

    "rritchey" <[email protected]> wrote in
    message
    news:g8ua6d$qu6$[email protected]..
    > bump: Was I not clear in my question? Or does no-one
    know the answer?
    You might want to try in the flexCoders Yahoo! group.

Maybe you are looking for

  • Sync cable for Zire21

    I recently moved and somehow, the sync cable for my Zire disappeared.  anyone know how i might get another. Post relates to: Zire 21

  • [SOLVED] Confused about development packages

    To build an embedded linux image using minifs utility, I need to install some development packages. The packages listed in the tutorial are named for Debian based distros, with the "-dev" suffix. Some of the listed packages are: libz-dev, libelf-dev,

  • Simple Question on & in SQL query

    I am executing the following query from the SQL*Plus (my data in the table contains P&G as the value of the column for name) select * from emp where name = 'P&G' This rightly prompts me for the value of &g Please let me know any solution other than t

  • Error ORA-12162 with sqlplus

    Hi everybody, When I open sqlplus64, I take the user-name ans password and I have the error message ERROR: ORA-12162: TNS:net service name is incorrectly specified But while processing the user-name and password are the same I made ... I don't unders

  • How are the summary tables refreshed

    hi all, Can you please tell me how are the summary tables refreshed. Does the Oracle databse do it or the discoverer server performs the tasks