SWFLoader

Hi EveryOne,
I'll be repeating a question which has been asked many a time in this community. I have also gone through earlier posts created.....with same topic but was not able to resolve the issue i had.
I want to know how to Pause and Stop a SWF file running on a SWFLoader component ????????
Another one......do we have Time line in Flex too......??? and how can we implement....Seeking the SWF Clip in SWFloader??? can we do it without using MovieClip class?????
Following is the code i'm trying however not working.................
        public function stop():void
        if (loader.content is MovieClip)
    var clip:MovieClip = loader.content as MovieClip;
       clip.stop();
Thaks all.

Hi,
It will be better for you if you will use Loader instead of the SwfLoader.I am giving you the solution with the Loader.I have never been tried with the swfLoader. Pls find the code here of your problem's solution.Let me know if you have any issue with this.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="OnCreationComplete()">
<mx:Script>
<![CDATA[
import mx.core.UIComponent;
private var loader:Loader;
private function OnCreationComplete():void
var url : String ="assets/animation.swf";
loader = new Loader();
var request:URLRequest = new URLRequest(url);
loader.load(request);
loaderHolder.rawChildren.addChild(loader as DisplayObject);
private function onStop():void
var mc : MovieClip = loader.content as MovieClip;
mc.stop();
private function onPlay():void
var mc : MovieClip = loader.content as MovieClip;
mc.play();
]]>
</mx:Script>
<mx:VBox width="100%" height="100%" horizontalAlign="center" verticalAlign="middle">
<mx:Canvas id="loaderHolder" width="500" height="500"/>
<mx:Button label="Stop" click="onStop()"/>
<mx:Button label="Play" click="onPlay()"/>
</mx:VBox>
</mx:Application>
with Regards,
Shardul Singh Bartwal

Similar Messages

  • Error after close popup with swfloader

    Hi all, hope some one could help me with this i get this
    error ( Error: Unable to load '' ) each time after i close a popup
    with a swfloader the error popsup when i click on the datagrid
    *****************************main mxml
    private function ShowPano():void
    var SWFLoaderInstance:Panoramica2 =
    Panoramica2(PopUpManager.createPopUp(this,Panoramica2,true));//
    instantiate and show the title window
    PopUpManager.centerPopUp(SWFLoaderInstance);
    SWFLoaderInstance.mainAppPano = this //Reference to the main
    app
    scope
    *******************************this is the mxml Panoramica2
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="doInt()"
    cornerRadius="10" width="600" height="450">
    <mx:Script><![CDATA[
    import mx.controls.PopUpMenuButton;
    import mx.managers.PopUpManager;
    import mx.collections.ArrayCollection;
    import mx.controls.Button;
    [Bindable]public var mainAppPano:Object = null;
    //called by the close event raised byclicking the close
    button
    private function closeWindow():void
    PopUpManager.removePopUp(this);
    }//closeWindow
    private function doInt():void
    PopUpManager.centerPopUp(this);
    ]]>
    </mx:Script>
    <mx:TitleWindow layout="absolute" right="10" left="10"
    showCloseButton="true"
    close="closeWindow()" top="10" bottom="10">
    <mx:SWFLoader
    source="{mainAppPano.datagrid.selectedItem.pano..src}"
    scaleContent="false"
    horizontalCenter="0" verticalCenter="0"/>
    </mx:TitleWindow>
    </mx:Canvas>
    ********************************xml structure
    <catalog>
    <libro>
    <name><![CDATA[<b>Biblioteca Central
    </b> ]]></name>
    <desc><![CDATA[Se inauguró el 20 de noviembre
    de 1978 ]]></desc>
    <imagen>FOTOS/est/Biblioteca Central Manuel Bartlett
    Bautista.jpeg</
    imagen>
    <pano nombrePano="Biblioteca Central Bautista">
    <src>FOTOS/Panoramicas/PanoZoom642007.swf</src>
    </pano>
    <ico>BOTONES/gifs/video.gif</ico>
    <video nombreVid="Biblioteca Manuel Bartlet">
    <src>VIDEOS/Biblioteca Manuel Bartlet.flv</src>
    </video>
    <audio/>
    <pie>Biblioteca Central Manuel Bartlett
    Bautista</pie>
    </libro>
    </catalog>

    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    var test = $x('P7_FLAG').value;
    if(test == '1')
    window.close();
    window.opener.doSubmit('REFRESH');
    </script>javascript does not wait for the current action to complete and then perform the next line.
    means in your function call
    doSubmit('SUBMIT');is triggered and it carry on's to next line that is
    $x('P7_FLAG').value;this will not be set because you are setting the value of P7_FLAG to 1 in plsql and trying to check in javascript, which will not work.
    what you need to do is amend your js function like below
    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    </script>create a page branch to procedure and make it conditional to when P7_FLAG = 1
    and set the branch source to below
    htp.p('window.close();');
    htp.p('window.opener.doSubmit(''REFRESH'');');

  • SWFLoader in Air can't access Camera/Mic?

    I have a Flex swf file I'm loading into an Air 1.5 app that does a video chat. Flex app standalone in a browser works fine, but when loaded into the Air app  by SWFLoader, it can not stream cam/mic. logging shows it successfully connecting streams and running localVideo.publish(name).
    Is this a security issue or something that is going make me cringe?
    Really need an answer, any help appreciated,
    Greg

    When loading SWFs inside a Flex/AIR app, you can see restrictions depending on how each SWF was compiled, and what resources it is trying to access.
    See these Flex Builder help sys pages, or LiveDocs for more info:
    Loading local assets
    SWFLoader control
    Using multiple SWF files

  • SWFLoader Memory - At my wits end! Ugh!

    I am pulling my hair out trying to make sense of why SWFLoader controls consume so much memory?
    I'm trying to load SWF's that are pages of a document.  Each page is about 100k in size.  In this example, I'm loading 100 pages (the same page actually).
    I fully understand that 100 * 200k = 20MB of memory.  Lets assume the SWFLoader has a *ton* of overhead - 1MB of memory per instance - that math still means the app shouldn't consume more than 120MB of memory - but in this instance it is consuming up to 1GB of memory!!
    I can't / don't understand what is going on or why it would consume this much memory.
    When you first load the example, all is well (sort of at somewhere around 80MB of memory).  However, if you click and drag the scroll thumb up and down slowly, you'll see your memory balloon to well over 1GB of memory - and continue to balloon until crash.
    Note that I'm not attaching *any* event handlers or even attempting to unload anything(!)  This is as plain vanilla as it gets!
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
         <mx:Script>
              <![CDATA[
                   import mx.controls.SWFLoader;
                   private function loadDocs() : void {
                        var sl : SWFLoader;
                        for(var i : uint = 1 ; i < 100; i++){
                             sl = holder.addChild( new SWFLoader() ) as SWFLoader;
                             sl.load('e514508fa074478cbef52d2662925246_1.swf' );                    
              ]]>
         </mx:Script>
         <mx:VBox height="100%" width="100%">
              <mx:HBox width="100%" height="100">
                   <mx:Button click="loadDocs()" label="load docs"/>
              </mx:HBox>
              <mx:VBox id="holder" height="{this.height - 130}" width="{this.width - 30}"/>
         </mx:VBox>
    </mx:Application>
    Attached is the test document I'm loading.. so you can try this for yourself.
    I just can't figure out what is going on or how to approach this any differently.
    I know it is Friday and we've all checked out at this point mentally, but if anyone can please help me solve this, I'll paypal you a $100 bounty instantly to buy you and yours a few rounds on me over the weekend (and saving my sanity)!  
    Thanks for any ideas you have in advance
    -Nate
    [email protected]

    My apologies - after exhausting everything else, I started to test the client's generated swf and apparently it is their swf file specifically that is causing the problem.
    So, turns out I'm not taking crazy pills after all.

  • Issue with Parent child dashboards using SWFLoader component

    Hello Gurus,
    I am using Parent-child dashboards approach in our project.
    I have multiple child files embedded in Parent dashboard using the SWFLoader (directly passing the URL as SWFLoader value) to load child dashboards. All the child, parent swf's are saved in the same intranet folders.
    When I open the parent SWF, everything loads fine in the intranet.
    But for some users, when they open from the intranet, the child dashboard doesnt load up properly or size of the dashboard gets reduced to a small version. (Iam sure that it has nothing to do with the access/privileges)
    Any thoughts/ideas what could be causing an issue with child dashboard/resizing of the child dashboard.
    Please help!
    regards,
    S R

    Check whether the machine has compatible flash version in error specific machine and your machine.

  • Click event on SWFLoader

    Hello,
    In my FLEX application i have a SWFLoader where i load some wsf files that are located in others places in the web. Some of the swf files loaded contain an hyperlink associated and, when the swf file is clicked, a new web page is opened.
    So, i need to count the number of clicks made in the SWFLoader but, in the case when the swf file has an hyperlink associated, the click event is not fired. What can i do to detect if a click was made in the SWFLoader?
    Thanks in advance for your help.

    Hi carlos_sousa4,
    Check the below code loading the Flash SWF in to Flex application.. and handling a click event on the Flash SWF Button in the Flex app..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical"
    backgroundAlpha="0"
    backgroundColor="#FFFFFF">
    <mx:Script>
      <![CDATA[
       import mx.controls.Button;
       import mx.controls.Alert;
       private var loadedSWFMainTimeline:*;
       public function onSWFLoadComplete():void {
        Alert.show("onSWFLoadComplete");
        //loadedSWFMainTimeline gets you a reference to the Flash SWF MainTimeline
        loadedSWFMainTimeline = swfLoader.content;
        if(loadedSWFMainTimeline)
         var _button:SimpleButton = loadedSWFMainTimeline.button_btn as SimpleButton;
         _button.addEventListener(MouseEvent.CLICK,onMCButtonClick);
       public function onMCButtonClick(event:MouseEvent):void {
        if(loadedSWFMainTimeline)
         Alert.show("HELLO SWF LINK CLICKED");
      ]]>
    </mx:Script>
    <mx:SWFLoader id="swfLoader" source="assets/flashswf.swf" complete="onSWFLoadComplete();"/>
    </mx:Application>
    Note : In the above code  button_btn is the Flash button instance of the SWF file and the corresponding type in the Flex will be SimpleButton...In your post you said that you are using a HyperLink so may be you should flash.text.TextField datatype instead of SimpleButton.
    Try to debug by putting a break point at onSWFLoadComplete function and watch the loadedSWFMainTimeline varibale you will come to know the exact type and the other parameters in the SWF file.
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • Loading a remote SWF via SWFLoader Issue

    I have a simple flex app which loads an external XML into an
    arrayCollection using HTTPService send method. This works fine as
    both a stand-alone, or when loaded into it's parent as a LOCAL file
    via the SWFLoader tag. However, when I place this child file onto a
    remote server and try to load it into the parent which resides on
    my desktop, the ArrayCollection default resultFormat of the send
    method triggers the following runtime error (listed below). I don't
    think it's a sandbox issue because when I change result format to
    e4x, it works fine remotely. I've been hitting a wall on this for
    days now... Any insight would be greatly appreciated and thanks to
    all in advance!!!
    PARENT SWF (resides on local desktop)
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical" initialize="initData()">
    <mx:Script>
    <![CDATA[
    public var baseURL:String;
    public function initSWF(swfURL:String):void {
    remote_swf.load(swfURL);
    public function initData():void
    baseURL = "
    http://blahblahblah";
    Security.allowDomain(baseURL);
    ]]>
    </mx:Script>
    <!-- WORKS when loading child swf LOCALLY -->
    <mx:Button label="Load LOCAL SWF APP"
    click="initSWF('remoteSWF.swf')"/>
    <!-- DOES NOT WORK when loading child swf REMOTELY -->
    <mx:Button label="Load REMOTE SWF APP" click="initSWF('
    http://blahblahblah/remoteSWF.swf')"/>
    <!-- LOADER -->
    <mx:SWFLoader height="100%" width="100%" id="remote_swf"
    autoLoad="false" visible="true" scaleContent="false"/>
    </mx:Application>
    CHILD SWF (resides on remote server)
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="getXMLData()">
    <mx:HTTPService id="myTeams" url="
    http://blahblahblah/xml/myXML.xml"/>
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.rpc.events.ResultEvent;
    import mx.collections.ArrayCollection;
    public function getXMLData():void
    Alert.show(Security.sandboxType);
    myTeams.send();
    ]]>
    </mx:Script>
    <mx:Label text="THIS IS THE LOADED SWF WHICH HAS JUST
    PERFORMED A SEND ON HTTP SERVICE TO CREATE ARRAY
    COLLECTION"></mx:Label>
    </mx:Application>
    ------------ RUNTIME ERROR ---------------------------------
    ArgumentError: Error #1063: Argument count mismatch on
    Object/
    http://adobe.com/AS3/2006/builtin::hasOwnProperty().
    Expected 0, got 2.
    at mx.rpc.xml::SimpleXMLDecoder/decodeXML()
    at mx.rpc.xml::SimpleXMLDecoder/decodeXML()
    at mx.rpc.xml::SimpleXMLDecoder/decodeXML()
    at mx.rpc.http::HTTPService/
    http://www.adobe.com/2006/flex/mx/internal:rocessResult()
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::resultHandler()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    at :irectHTTPMessageResponder/completeHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio
    n()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    flash.net::URLLoader/flash.net:URLLoader:nComplete()

    After further investigations, it appears that the problem might be, due the fact that in the remote (loaded) swf, the following is null:
    var sm:ISystemManager = ISystemManager(SystemManagerGlobals.topLevelSystemManagers[0]);
    sm.swfBridgeGroup <----- equals null
    I tried creating the swfBridgeGroup in the local (loading) swf, but the loaded one still thinks it is null.
    Any ideas?

  • Objects with IDs not instantiated inside Accordian using SWFLoader

    Flex SDK 3.2.1
    We are using SWFLoader to load one application from another application.
    The second (child) application uses Accordian component which contains datagrid with a specified ID attribute.
    When the code tries to access the datagrid using the specified ID the application throws the following error.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    Any help will be greatly appreciated.
    Thank you,
    Srini

    I figured it out!
    For anyone else out there who might be looking for the same effect, here's how you do it:
    1) Create a cool shape with a cool stroke in Illustrator. 
    2) The stroke can be any color, but make sure that the Fill is white (not transparent).
    3) Copy and paste to InDesign. 
    4) Once in ID, the object will apear as a Group.  Go to Object -> Ungroup.
    5) Because the white centre of the object is filled with white, this will apear as one of the items in the group.  It will have it's own object frame. 
    6) Go to File -> Place.  Choose a photo and place it in the frame of the white space.  You'll get a lovely effect that can be manipulated as per usual in ID!

  • Problem with width/height of swfloader

    I am loading in a swf file via swfloader and I want the dimensions to be 600x300:
    <mx:SWFLoader id="loader1" width="600" height="300"/>
    In the loaded swf file, everything is layed out based on the dimensions.  I check the dimensions in the actions of the the first frame of the timeline.  When the swf file is embedded in html, this.stage.width is equal to 600.  However, when I load it via the SWFLoader above, this.stage.width is the size of my browser window.
    Why is this?  Is there a way to force it to stick to the dimensions set by SWFLoader?
    Thanks,Christie

    I figured out the problem.  Turns out there is only one stage and that is the stage of the flex application.  I went around this by adding a function to the embedded swf that allows me to resize it.  I'm not sure how I would have gotten around it if I did not have control over that file, but that is a  moot point for now.

  • Loading swf into SWFLoader before it is added to a container

    I want to dynamically load a SWF file, before a particular view is created in a Flex 4.5 mobile app. Is it possible to load a SWF file into a SWFLoader before the SWFLoader is added to a container? I tried this but it didn't work.
    I tried doing this using the AS3 Loader class and movieclips, but when I compile for iOS this method does not work for me. Is there a way to do what I want?

    Hello,
    Firstly, why do you want to do this?
    Secondly, you cannot run runtime-loaded SWF files on iOS devices.
    By that I mean you can probably only use static SWF files like assets, but code inside them will not work.
    If you still want to load it, try inside the initialize event handler.

  • Flex Applications loaded in SWFLoader DropDownList Offset

    Hello all,
    I have searched far and wide and am unable to come up with the answer to an issue I am experiencing.  I have a Flash App (FB4) Which loads various other Flex 3 and 4 apps using SWFLoader based on what the user requires at the time.
    Everything is working well so far with one exception.  If I have the SWFLoader offset (Like Left="50" or Top="50") Then the dropdown menu that appears when a user clicks the DropDownList component is offset by that many pixels to the right or down.  My goal is to provide a graphical menu above the embedded swf.  However, when I do that each time the DropDownList is clicked, the list of choices is moved down by the same amount of pixels the embedded swf is on the stage.  It appears to be a bug in the way the DropDownList works for determining location, but I don't know how to fix it.
    Any thoughts?

    Thank you for that.  I have the loadcompatability option so I can have different versions.  But I did not know about the compiler setting.  Is there documentation somewhere about the compiler settting?

  • How to access the function in loaded application using swfloader?

    Hi,
    I have a main flex application which has a view stack, panel
    and swfloader in the below hierarchy.
    Flex main app --> Canvas1(Viewstack) --> Panel1 -->
    Swfloader
    Please view
    http://www.probe7.com/flex_ques.gif
    for better understanding.
    I have a function in the loaded application which has to be
    called from a function within the main application. I am not sure
    of the syntax to access the swfloader content which is placed in a
    canvas -> panel.
    I tried this example (
    http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html),
    it works when the swfloader is placed in the main application
    without the viewstack or panel. How can I do this, Is there a way
    to access all the running applictaions, regardless of the
    hierarchy? Any help will be greatly appreciated.
    Also any links for quick reference on various components and
    their access will be helpful.
    Thanks for your time.

    You are probably seeing the deferred instantiation behavior
    which is the default for ViewStack.
    The Swfloader component does not exist until a user navigates
    to the View that contains it.
    Use events to determine when the swfloader content is ready
    for interaction. Here is an example:
    http://www.cflex.net/showFileDetails.cfm?ObjectID=690
    Tracy

  • SWFLoader Stop()

    I have a Flash 9 Actionscript 3 SWF that we generated to run
    as a advertisement inside an app we are building. I generate a
    Popup window from inside my Flex app, load the SWF with SWFLoader
    and play it - no problem. WHen I click the stop button I created it
    performs as expected... ALMOST... the SWF's VIDEO portion stops -
    but the soundtrack for it keeps going? ANyone out there in
    Adobe-land have a solve for this one?

    I have a Flash 9 Actionscript 3 SWF that we generated to run
    as a advertisement inside an app we are building. I generate a
    Popup window from inside my Flex app, load the SWF with SWFLoader
    and play it - no problem. WHen I click the stop button I created it
    performs as expected... ALMOST... the SWF's VIDEO portion stops -
    but the soundtrack for it keeps going? ANyone out there in
    Adobe-land have a solve for this one?

  • Sync movie clips loaded by swfloader

    hi guys,
    i have 5 separate movie clips (swf) represent 5 flower petals,
    each of them is showing up from center,
    i load them in flex app by 5 separate mx:SWFLoader tags.
    the problem is they should sync with each other to open up the flower,
    but due to being loaded from network, they don't start at the same time.
    please help me, how to sync these flower petals?

    according to http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/SWFLoader.h tml
    it doesn't seem like SWFLoader has a method called "rewind()" or "gotoAndPlay(...)"?

  • Reloading CSS in SWFLoader loaded Flex app.

    Hello,
    I am having the following problem:
    I have a Main application with a SWFLoader that loads a child Flex application. When a button is pressed, SWFLoader loads a new child Flex application. Currently LoaderContext for SWFLoader is created as follows:
    var context:LoaderContext = new flash.system.LoaderContext(false, ApplicationDomain.currentDomain);
    Everything seems to work okay except that CSS style sheets definded in the first child application cannot be overwritten by the CSS style sheets in the second.
    After much research I see the following two options: 1. load style sheets externally using StyleManager.loadStyleDeclaration() method or 2. specify a different ApplicationDomain for the child Flex application.
    The problem with solution #1 is I would like to keep all style sheets embedded in either the main application or each child application. So, my question is, how do load/reset CSS styles while keeping the CSS (or CSS compiled to SWF) embedded when StyleManager.loadStyleDeclaration() only takes a URL as a parameter?
    The problem with solution #2 is as follows: when I change the ApplicationDomain property in the LoaderContext declaration to this:
    var context:LoaderContext = new flash.system.LoaderContext(false, new ApplicationDomain(ApplicationDomain.currentDomain));
    I get the following error when I load a second child application into the SWFLoader:
    TypeError: Error #1034: Type Coercion failed: cannot convert spark.components::VScrollBar@64d6851 to spark.components.VScrollBar.
    (See attached txt for full trace stack.)
    I'm using Flex 4.0 beta 2 and Flash Builder beta 2.
    Also, I found this article on per Module StyleManager which does not look like it has been implemented and is basically exactly what I'm trying to accomplish but with a SWFLoader instead ofModule.
    If someone could please explain or point me in the right direction on how to either 1. load Flex 4 beta 2 application as a sub application domain app without generating VScollBar error (and if that will even solve overwriting CSS styles issue). or 2. how to load StyleManager.loadStyleDeclaration() from an embedded css or swf, I would greatly appreciate it.
    Thank you in advance,
    Ilya Voloshin

    Alex, thank you for the quick reply -- I'll give it a shot. Where would I find the nightly builds? I found the source code repository, but if there's a nightly build I can check out, that would be much easier.
    Thanks,
    Ilya

  • Unresolvec SWFLoader bug

    Hello All
    I have a problem with the swfLoader that bucket loads of
    other people have as well and have posted on forums all over the
    internet. Unfortunately, no solution has been found.
    Basically, if you load a flex 2 app in to a swfloader, then
    after interaction it loads another, then it has to load the
    original one again, nothing is shown apart from the broken app
    icon.
    For example:
    1. A button is clicked and the code
    swfloader.source='one.swf' is used.
    2. A second button is clicked and swfloader.source='two.swf'
    is used to load another flex 2 app.
    3. The first button is clicked again to perform line 1 above.
    This is where the error is. The flex 2 app is not re-loaded and
    just shows the broken app icon.
    This really does seem to be a very common problem. Does
    anyone know of a work around for this or even a solution or any
    information at all about it?? Adobe are quiet about it too.....
    Thanks,
    Mike

    Weldome to the very dificult topic of application domains.
    This error is due to an idiosyncracy in how classes are
    identified in Flex 2. Each instance of an application has its own
    set of classes (application domain). The UIComponent in the main
    SWF has a different identifier than the one in the loaded SWF, and
    the second instance of the loaded SWF has yet another identifier
    because a separate application domain is set up for each instance
    of a SWF. To get things to work, they have to match, by having
    everybody share the same class.
    This works for UIComponent because loaded SWFs are configured
    to use the classes in the loading SWF if they already exist. I'll
    bet that if you put a columnChart in the loading SWF things will
    get better.
    That's not always a satisfactory solution because then the
    loading SWF is sort of bloated, so then you have to try other
    configurations to get things share classes properly. One
    configuration is to put the charts in an RSL and load that at
    run-time and then make instances of the Chart. Another is to put
    the shared asset (I'm guessing you customized the axis stroke?) in
    the main swf or RSL and load that before you load the Chart SWF.
    What is probably happening underneath for you is that the
    first instance sets up the styles for the columnChart including the
    custom axis stroke. The second instance is going to end up using
    that set of styles including the first instance's axisStroke which
    is illegal because it is in an application domain that is
    off-limits. They can only share the loading SWFs classes, and not
    the sibling SWFs classes. Unfortunately, style definitions are
    global.
    How you solve this problem will be somewhat dependent on
    whether you are only going to load two instances or N instances and
    how many other assets need to be shared, and how comfortable you
    are with RSLs

Maybe you are looking for