SWFLoader error

Hi everybody,
I have a problem with the SWFLoader component.
When i tried to embed my SWF file (build with FLASH CS3), i
have this error:
quote:
exception during transcoding: unrecognized fill style type:
37
But i don't know why !!
I've just added some sound in the fla and put them on clip.
Someone can help me ?

I was using
swfContent.loaderInfo.loader.unload();
where swfContent is the loaded MovieClip.
loader.source = null does not resolve the problem. The error
message is the same.

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'');');

  • Load a Flex2 SWF using SWFLoader: #1009 null error

    public function set visualization(vizSWF:String):void
    loader = new SWFLoader();
    try{
    loader.addEventListener(FlexEvent.CREATION_COMPLETE,
    setVizHandler);
    loader.addEventListener(ProgressEvent.PROGRESS,
    progressHandler);
    loader.load( vizSWF );
    }catch(error:Error){
    trace("Could not load visualization "+error);
    My progress action fires a bunch, tells me it's loading in.
    Once it's loaded in I get the error, it never fires on
    creationComplete
    131072 of 140574
    131072 of 140574
    140574 of 140574
    [SWF] C:\Documents and
    Settings\lbyron\Desktop\Workspace\Project\bin\Visualization.swf -
    283,275 bytes after decompression
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::updateCallbacks()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:4737
    at mx.core::UIComponent/set
    nestLevel()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:2357]
    at mx.managers::SystemManager/
    http://www.adobe.com/2006/flex/mx/internal::addingChild()[C:\dev\flex_201_gmc\sdk\framewor ks\mx\managers\SystemManager.as:1511
    at
    mx.managers::SystemManager/mx.managers:SystemManager::initializeTopLevelWindow()[C:\dev\f lex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2329]
    at
    mx.managers::SystemManager/mx.managers:SystemManager::docFrameHandler()[C:\dev\flex_201_g mc\sdk\frameworks\mx\managers\SystemManager.as:2214]
    Any clue? The SWF it is loading is a basic Flex app, and runs
    perfectly fine on its own.
    THANKS!!

    Megamu, I'm getting this error as well, did you ever solve
    the issue?
    Thanks in advance

  • SWFloader causing "transcode" errors

    I'm trying to embed an SWF file (dynamic application) into my current mxml file and I'm getting errors (detailed code below).  The index.swf that I'm trying to embed is located in my src and my bin-release folders.  Why can't it find the swf file?  Maybe I'm just not understanding the meaning of the transcoding errors.  Please help.
    My Code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1000" minHeight="600"
                   currentState="CloseArchives">
        <fx:Style source="archive.css"/>
        <s:states>
            <s:State name="CloseArchives"/>
            <s:State name="OpenArchives"/>
        </s:states>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:BorderContainer id="s1" x="0" y="0" width="1000" height="600" backgroundColor="#730F0F" width.OpenArchives="675" x.OpenArchives="325">
                <s:Label text="Map Area" x="0" fontSize="17" fontWeight="bold" color="#FFFFFF"/>
                <s:Button width="42" enabled="true" x="0" y="284" label="&gt;" includeIn="CloseArchives" click="currentState='OpenArchives'"/>
                <mx:SWFLoader x="0" y="0" width="1000" height="600" width.OpenArchives="675" x.OpenArchives="0" id="mapload" source="@Embed(source='index.swf')"/>
        </s:BorderContainer>
        <s:BorderContainer includeIn="OpenArchives" x="0" y="0" width="325" height="600" backgroundColor="#4289AA" id="s2">
            <s:Button x="273" y="287" label="&gt;" width="42" enabled="true" id="OpenArchives" x.OpenArchives="294" y.OpenArchives="289" label.OpenArchives="&lt;" click="currentState='CloseArchives'"/>
            <s:RichText x="10" y="10" text=" Previous Years Information:&#xd;  2009&#xd;   Albemarle-Pamlico&#xd;    Map&#xd;    Report&#xd;    Project Photos&#xd;      Project Name (Before)" width="294" height="578"/>
        </s:BorderContainer>
        <s:transitions>
            <s:Transition id="opening" fromState="CloseArchives" toState="OpenArchives">
                <s:Parallel targets="{[s2]}">
                    <s:Fade duration="1000"/>
                </s:Parallel>
            </s:Transition>
        </s:transitions>   
    </s:Application>
    My Errors all for the line where the SWFloader is located:
    unable to resolved 'index.swf' for transcoding
    Unable to transcode index.swf
    Thank you in advance,
    Alison

    Hi Michael,
    Thank you for the tip.  I tried making it a full path and received the same error message.
    -Alison Page

  • Getting error #1034 when using mx:SWFLoader

    I have a requirement where I need to load another swf file into an area in a layout.
    I have the following mxml:
                <mx:Canvas  width="100%" height="200" borderStyle="solid">
                    <mx:Label text="This is text in Zone 4 prime "/>
                    <mx:SWFLoader id="loader4" source="http://myhost/test/Test2..do"/>
                </mx:Canvas>
    When it loads I get a dialog with the Error #1034 in FireFox.
    If I use this same "http://myhost/test/Test2.page" url in another html page with the html object/embed tags the swf is served and loaded just fine.Is there something special that the SWFLoader expects from the response?   I've inspected the response from a direct swf file ref (put source="test.swf" with a simple swf I created) in the mx:SWFLoader source attribute and they appear to be the same. I've set the content type and  content length headers for the Test2.do whcih is served from a struts application.
    If there are way to stream a swf via the source attibute on the mx:SWFLoader tag that's not a direct .swf file reference?
    Thanks,
    Miro

    Hi dodderob,
    Can you try to remove all other cards from the cahssis except for the 4110?  Also, do you have any exclamation points in the Windows Device Manager?  If yes, do you have an error code wtih the device?  Also, what version of DC Power do you have installed (this can be found in the software tab of MAX)?
    Best,
    Adam
    Academic Product Manager
    National Intruments

  • Error with SwfLoader and new application domain

    Hi
    I have a test with a SWFLoader loading an application in a different application domain.
    Test with SWFLoader is ok when you load the application in the same application domain but when I want a new Application Domain, I have an error message with a flahplayer debug version when I use the unload method.
    Is this a bug ?

    I use FlexUnit 4 and FlexBuilder 3
    I want to test the behaviour of a custom class which extends SWFLoader,
    including when it loads (and unloads) an application in a new
    application domain, but I have this error message so I tried some very
    simple tests on SWFLoader.
    In my test I just load a swf file in a new application domain and unload
    it when it's completed. On the "unloadAndStop" method I have this error
    message :
    TypeError: Error #1009:
        at
    mx.managers::SystemManager/removeChildBridge()[C:\autobuild\3.3.0\frameworks\projects\fram ework\src\mx\managers\SystemManager.as:4844]
        at
    mx.controls::SWFLoader/contentLoaderInfo_unloadEventHandler()[C:\autobuild\3.3.0\framework s\projects\framework\src\mx\controls\SWFLoader.as:2160]
        at flash.display::Loader/_unload()
        at flash.display::Loader/unloadAndStop()
        at
    mx.controls::SWFLoader/load()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\cont rols\SWFLoader.as:1334]
        at
    mx.controls::SWFLoader/commitProperties()[C:\autobuild\3.3.0\frameworks\projects\framework \src\mx\controls\SWFLoader.as:1185]
        at
    mx.core::UIComponent/validateProperties()[C:\autobuild\3.3.0\frameworks\projects\framework \src\mx\core\UIComponent.as:5807]
        at
    mx.managers::LayoutManager/validateProperties()[C:\autobuild\3.3.0\frameworks\projects\fra mework\src\mx\managers\LayoutManager.as:539]
        at
    mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.3.0\frameworks\projects\ framework\src\mx\managers\LayoutManager.as:689]
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at
    mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.3.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8633]
        at
    mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.3.0\frameworks\projects\framewor k\src\mx\core\UIComponent.as:8573]

  • Error in app with TabNavigator loaded with SWFLoader - WebKit browsers

    Hiya,
    I use a flex app (A) to load another flex app (B) using SWFLoader (both built using Flex Builder 3 sometime ago).
    Everything works fine as expected across all (IE, FF, Chrome, Safari) desktop browsers.
    However, if I use a TabNavigator within the flex app (B) then when you click on any of the tabs it unloads the flex app (B) and re-starts flex app (A). This behaviour is limited to Webkit based browsers (Chrome & Safari) the rest of the browsers (IE, FF) it works fine.
    I wonder if anyone can throw some light on this.
    Many thanks
    Kind regards,
    klem

    Resolved:
    Replacing the HTML template files with the latest copy from Flash Builder 4.5 seemed to resolve the issue. It appears they have replaced the AC_OETags.js with swfobject.js
    Tried to explore upgrading the code to 4.5 but seemed to throw a lot of incompatibilities, created a test/dummy project instead in 4.5 and used the html file created to replace the old html files created by Flex Builder 3.0
    Clearly not a very common problem, but hope this saves someone time and effort.
    Thanks Harui

  • Error while loading a swf created in flash cs4, inside a flex application

    Hi there,
    I have created a rotating logo in flash cs4 using motion presets, named logoRotar.swf. I have used this inside my flex application:
    <mx:SWFLoader width="33.33%" height="100%" source="assets/logoRotar.swf">
    When I execute the flex application, I get this runtime error message:
    VerifyError: Error #1014: Class flash.geom::Matrix3D could not be found.
        at global$init()
        at fl.motion::AnimatorFactory3D/getNewAnimator()
        at fl.motion::AnimatorFactoryBase/addTargetInfo()
        at logoRotar_fla::MainTimeline()
    I also tried adding import flash.geom.*; statement in my flex application, I still get the same message.
    Flash player 10,0,22,87 is running in my browser.
    Please help me out....
    Cheers!
    Deepak

    Get Flex 3.3 and use -target-player=10
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Emdedding swf file as class throws error while previewing the component

    Dear all,
    I am using Flex SWFLoader to load an animated swf file and added it as a component in xcelsius by add on manager. When i click preview button it throws the folloing error.
    TypeError: Error #2023: Class must inherit from Sprite to link to the root.
    I am embedding swf file by using the following lines of code
    Embed('Animation_1.swf')
    public var Animation:Class;
    Then i tried to create my class by extending Sprite, i got the same error,
    Can you please anyone help me to solve this issue, all i need is the way to emded the swf file as class and using it in xcelsius. The embedded swf class is working fine alone (that is outside to the xcelsius).
    Thanks & Regards,
    Manimaran.
    Edited by: manimaraninfo on Jun 18, 2009 10:47 AM
    Edited by: manimaraninfo on Jun 18, 2009 10:48 AM

    Hi
    To embed a .swf file in xcelsius using SWFLoader, you have to pass the path of that swf file to the source property of SWFLoader.
    By using class concept xcelsius does not get the path of the swf file you have embeded.
    In flex It gets that file because that swf file is present in the same directory as your application.
    Hope this helps
    Regards
    Rush-me

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

  • AudioElement causes an error in Flex 4

    Greetings,
    A few days ago Ryan and Brian helped me to patch the problem wtih importing video into Flex by using the 'loadForCompatibility' flag.
    This morning I ran into similar problem with audio: the SWF that uses simplest OSMF player plays fine in the Flash CS5 and in the standalone FlashPlayer. Once I import the SWF into Flex 4, even with the SWFLoader flag 'loadForCompatibility' set to 'true', I get this error:
    Here is the code for the simplest audio player class (by the way, for some unclear reasons getter/setter didn't work, so for the test case I had to set the variable as 'public' ):
    package
    import flash.display.Sprite;
    import org.osmf.media.MediaPlayer;
    import org.osmf.media.URLResource;
    import org.osmf.elements.AudioElement;
    public class LightAudioElement extends Sprite
    public var audioPlayer:MediaPlayer;
    public function LightAudioElement(aSource:String)
    var resource:URLResource = new URLResource(aSource);
    var audioElement:AudioElement = new AudioElement(resource);
    audioPlayer = new MediaPlayer();
    audioPlayer.media = audioElement;
    audioPlayer.autoRewind = true;
    And here is the code for the SWF:
    import LightAudioElement;
    import flash.events.MouseEvent;
    var snd:LightAudioElement = new LightAudioElement('assets/Test.mp3');
    snd.audioPlayer.autoPlay = false;
    //Standard Button component dragged on the stage for this quick test
    sndBtn.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(event:MouseEvent):void
    if(snd.audioPlayer.playing)
    snd.audioPlayer.stop();
    else
    snd.audioPlayer.play();
    Once again, it works fine in both Flash CS5 and standalone FlashPlayer, but produces an error in Flex 4. I'm on OS X 10.6.3, the Flex SDK 4.0
    Thanks in advance for any suggestions,
    FTQuest

    Hi,
    First, and foremost. As Brian Riggs - who is ultimate authority on the subject - has said:
    I'd advise against replacing Flex's OSMF.swc with the latest one.  The reason is that the Flex SDK integrates with OSMF APIs from a much earlier sprint, and in the latest OSMF SWC many of these APIs don't exist anymore (due to renaming).
    And that's what I take seriously.
    Yet, out of curiosity, and for the sake of exploration I took my chances and did replace the version of the OSMF that is shipped with the Flex 4.0 release with the latest - 0.95.
    So far, all the functionality that I need - single player, multiple players, compiled in Flash, compiled in Flex, playing in synch, or alternating - seems working fine, including access to various events.
    Let me repeat: this is NOT a suggestion; just mere sharing of experience, and it comes at a cost - you should use your versions of video player, i.e. built in that latest version of OSMF. The Spark VideoPlayer (or VideoDisplay) give you compile time error I mentioned before - TimeDimension.
    Just FYI,
    FTQuest

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

  • 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