SWFLoader issue

Hi,
When loading and external .swf file, I get the following error:
URIError: Error #1052: Invalid URI passed to decodeURI function.
    at global/decodeURI()
    at mx.controls::SWFLoader/OSToPlayerURI()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\ controls\SWFLoader.as:1938]
    ...etc....
First and foremost - what does this mean exactly?
Secondly, why would I be seeing this error in Flex 4 now, when the code used to work with Flex 3.5?
Thanks,
  Alex.

Hi, thanks for your reply.
Sure, the URL refers to an external swf file and the parameters sent to it, an example of which would be:
http://<IP address and file structure omitted>/awv.swf
The parameters passed to it look like this:
?awvByteHandlerPath=<IP address omitted>
&awvImagePath=<Image path omitted>
&awvWidth=1133&awvHeight=687
&awvX=-0.34302108671969433
&awvY=-0.39048279531074837
&awvZoom=23%
&awvToolbar=1
&awvMenubar=0
&awvNavWindow=0
&awvNavWidth=150
&awvNavHeight=100
&awvSlider=1
These are all comined together to make the url string. The paths are omitted for security.
It's basically passing a very large image (~80000 x 60000 px) to the swf with specific parameters. The swf itself is a proprietary application and behaves much like zoomify.
Not too clear on how to send the URIs unencoded. How would I do that?
Thanks again,
  Alex.

Similar Messages

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

  • SWFLoader issue... IMPORTANT & URGENT

    I m developing an AIR application to run different SWF Clips using SWFLoader. I have given a list of clips in tree-view. The problem is that when i play first clip (any clip from the list) that runs fine with audio and video but when i play anyother after first one, there is no sound for that clip. Means only first clip has voice but none other afterward.
    I googled this issue and have tried every possible solution but no way. Plz help me to resolve this issue, it is very important for me.
    Thanks
    Asad Ijaz

    Hi, thanks for your reply.
    Sure, the URL refers to an external swf file and the parameters sent to it, an example of which would be:
    http://<IP address and file structure omitted>/awv.swf
    The parameters passed to it look like this:
    ?awvByteHandlerPath=<IP address omitted>
    &awvImagePath=<Image path omitted>
    &awvWidth=1133&awvHeight=687
    &awvX=-0.34302108671969433
    &awvY=-0.39048279531074837
    &awvZoom=23%
    &awvToolbar=1
    &awvMenubar=0
    &awvNavWindow=0
    &awvNavWidth=150
    &awvNavHeight=100
    &awvSlider=1
    These are all comined together to make the url string. The paths are omitted for security.
    It's basically passing a very large image (~80000 x 60000 px) to the swf with specific parameters. The swf itself is a proprietary application and behaves much like zoomify.
    Not too clear on how to send the URIs unencoded. How would I do that?
    Thanks again,
      Alex.

  • SWF LOAD UNLOADING SWFLOADER ISSUES

    Hello Everyone,
    I wonder if anyone ran into this issue. I have a view stack
    with 3 visual screens. One of the screen has SWFLoader placed in
    with "id = contentLoader";
    I have two buttons on this screen on the top: "LOAD MOVIE 1"
    and "LOAD MOVIE 2".
    So pretty much, user can load the movie into the SWF LOADER
    via this two button navigation. Well, I am able to load the first
    movie with "AUTOLOAD". But when I click for the "LOAD MOVIE 2", the
    second movie does load in but then the application crashes and
    closes itself.
    My Questions:
    How can I unload the currently loaded SWF Movie before
    Loading the next one. I have searched for days for this on google
    and nothing has come through.
    ContentLoader.unloadandStop() doesn't work and application
    still crashes.
    ContentLoader.source = ""; doesn't work, app still crashes
    ContentLoader.source = null; doesn't work, app still crashes
    Any help would highly be appreciated on this, please.

    Hello Everyone,
    I wonder if anyone ran into this issue. I have a view stack
    with 3 visual screens. One of the screen has SWFLoader placed in
    with "id = contentLoader";
    I have two buttons on this screen on the top: "LOAD MOVIE 1"
    and "LOAD MOVIE 2".
    So pretty much, user can load the movie into the SWF LOADER
    via this two button navigation. Well, I am able to load the first
    movie with "AUTOLOAD". But when I click for the "LOAD MOVIE 2", the
    second movie does load in but then the application crashes and
    closes itself.
    My Questions:
    How can I unload the currently loaded SWF Movie before
    Loading the next one. I have searched for days for this on google
    and nothing has come through.
    ContentLoader.unloadandStop() doesn't work and application
    still crashes.
    ContentLoader.source = ""; doesn't work, app still crashes
    ContentLoader.source = null; doesn't work, app still crashes
    Any help would highly be appreciated on this, please.

  • Flex3: SWFLoader Issues

    Is this the right forum for Flex3, seems to be the closest
    match?
    Creating Flex3 app for dynamically loading SWF's and other
    content (jpgs, pngs) inside an mx:Panel at runtime. The SWF's fire
    dynamically in AS3 great, but the SWF's act strange and don't
    conform to their containers. It shows objects off the stage in some
    instances, and
    doesn't stay inside the panel or the arbitrary canvas I defined
    for the SWFLoader. I'd like to be able to load any SWF and pop
    it into a panel to run, much as it would perfectly on a web page.
    I've tried just about every combination of width and height
    parameters, but it never works as intended. I've reverted to
    absolute sizing, it might be easier to get working than relative,
    even though that's the desireable endstate.
    Any suggestions? I can include screenshots if necessary.
    Thanks!
    Relevent Code (let's hope it doesn't mangle it!):
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    initialize="initApp()"
    height="100%" width="100%"
    paddingTop="10" paddingBottom="10" paddingLeft="10"
    paddingRight="10"
    creationCompleteEffect="{ creationCompleteEffect }" >
    <mx:HDividedBox width="100%" height="100%">
    ....snip, the left nav panel here...
    <mx:Panel
    id="contentPanel"
    title="Currently Viewing: {selectedNode.@label}"
    width="100%"
    height="650"
    paddingTop="0" paddingRight="0" paddingLeft="0"
    paddingBottom="0"
    shadowDirection="right"
    visible="false"
    showEffect="{fadeIn}" >
    <mx:Canvas borderThickness="1" borderStyle="solid"
    width="600" height="400">
    <mx:Image
    id="content_loader"
    source=""
    scaleContent="true"
    maintainAspectRatio="true"
    showBusyCursor="true"
    width="600"
    height="400"
    includeInLayout="true"
    complete="trace(content_loader.content.loaderInfo.width,
    content_loader.contentWidth,
    content_loader.content.loaderInfo.height,
    content_loader.contentHeight)"
    ioError="missingSourceFile();" />
    </mx:Canvas>
    <mx:ControlBar>
    <mx:Label text="Go to:"/>
    <mx:NumericStepper/>
    <!-- Use Spacer to push Button control to the right.
    -->
    <mx:Spacer width="100%"/>
    <mx:Button label="Prev" />
    <mx:Button label="Play"/>
    <mx:Button label="Stop"/>
    <mx:Button label="Next"/>
    <mx:HSlider id="volume" minimum="0" maximum="100"
    value="80"
    dataTipPlacement="top"
    tickColor="black"
    snapInterval="1" tickInterval="10"
    labels="['1','Volume','100']"
    allowTrackClick="true"
    liveDragging="true"
    change="changeVolume();"/>
    </mx:ControlBar>
    </mx:Panel>
    </mx:HDividedBox>

    I have the same problem.
    I think this is the answer:
    When loading a SWF file from an nontrusted source (such as a
    domain other than that of the Loader object's root SWF file), you
    may want to define a mask for the Loader object, to prevent the
    loaded content (which is a child of the Loader object) from drawing
    to portions of the Stage outside of that mask, as in the following
    code:
    import flash.display.*;
    import flash.net.URLRequest;
    var rect:Shape = new Shape();
    rect.graphics.beginFill(0xFFFFFF);
    rect.graphics.drawRect(0, 0, 100, 100);
    addChild(rect);
    var ldr:Loader = new Loader();
    ldr.mask = rect;
    var url:String = "
    http://www.unknown.example.com/content.swf";
    var urlReq:URLRequest = new URLRequest(url);
    ldr.load(urlReq);
    addChild(ldr);

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

  • SWFLoader loded swf and relative path issue

    Hi,
    Before explaining the problem, let me describe the usecase.
    I have dashboard flex application hosted on Host1.
    I have another flex application which acts as plugin to dashboard and is hosted on Host2.
    I am using proxy to load plugin into dashboard using SWFLoader. With proxy SWFLoader in dashboard thinks that the plugin is coming from same host.
    For plugin to load I specify SWFLoader source something like - source="Proxy/Host2WebappDir/plugin.swf.
    Everything is fine upto this point. plugin.swf get loads successfully without any issue.
    Now the problem -
    If plugin.swf made some request - the url path of that requrest is expected to be relative - i.e. if it make request say getIndianStates.xml, I am expecting the request should look for resource at "Proxy/Host2WebappDir/getIndianStates.xml". Instead it tries to look for getIndianStates.xml into dashboard hosting directory on Host1.
    Can this issue be resolved without making any modification in source of plugin.swf.
    Thanks in advance,
    Prithveesingh Zankat.

    I don’t know if any way to fix this without changing the URL the plugin wants to load.  Now if the plugin stores that URL in a publicly accessible variable, you might be able to access it from the main SWF and change it.  But it would be better to have the plugin detect relative paths and make sure they are relative to the SWF.  The SWFLoader component uses a LoaderUtil class to do that for SWFs it loads, but loads that don’t use SWFLoader need similar fix ups.

  • SWFLoader width height Issue

    When I use the SWFLoader to load an swf from a URL it is not
    using the
    sizes specified in the SWFLoader component that is loading
    it, the swf
    seems to initially load at whatever size the actual swf is,
    but after
    the swf has been downloaded fully then the SWFLoader jumps to
    the
    width/height I specified, so basically all swfs I load start
    out huge
    then after sever seconds shrink to the size I want them to
    be. has
    anyone else seen this or know how to remedy this issue?
    (also the element in the swf that animate say from outside
    the
    original swf stage width/height show out way outside the
    bounds of the
    size specified)
    //set the source(within a function)
    swfplayer.source="
    http://www.somedomain.com/myswf.swf";
    <mx:Canvas id="swfplaycontainer" width="452" height="252"
    horizontalCenter="0" verticalCenter="0">
    <mx:SWFLoader id="swfplayer" width="100%"
    height="100%"/>
    </mx:Canvas>
    Also tried with no Canvas...
    <mx:SWFLoader id="swfplayer" width="452" height="252"
    width="100%"
    height="100%"/>
    Thanks, Tim
    specified size does not take effect until fully loaded swf

    hmm, well I tried explicitly setting the widht/height of the
    SWFLoader to no avail, I just tried the scaleContent, it also did
    not work ;-( I cannot hide the SWFLoader until complete event
    because these are long swf animations(they are tutorial videos in
    swf format) some seem to take 30-60 seconds to fully load(depending
    on network traffic). They do start playing quite well immediately
    but the size is messed up until complete, but I would think and
    explicit size on the SWFLoader should be the definitive answer.
    Adobe?

  • [svn] 2913: Fix SWFLoader sizing issue (SDK-16497) Refactor some classes to try to fix ASDoc build.

    Revision: 2913
    Author: [email protected]
    Date: 2008-08-19 21:55:11 -0700 (Tue, 19 Aug 2008)
    Log Message:
    Fix SWFLoader sizing issue (SDK-16497) Refactor some classes to try to fix ASDoc build.
    Review: DJL
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16497
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/managers/WindowedSystemMa nager.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/SWFLoader.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/ISystemManager.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemManager.as

    Thanks for sharing.

  • SWFLoader scale issue

    Hi everyone,
    i'm trying to embed a media player (soudcloud) on my flex app.
    the HTML code is :
    <object height="81" width="100%">
         <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fsoundcloud.com%2Fnicola-ricca%2Fp odcast-lmh-sunshine-one&show_comments=true&auto_play=false&color=ca35e9"></param>
         <param name="allowscriptaccess" value="always"></param>
         <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fsoundcloud.com%2Fnicola-ricca%2Fp odcast-lmh-sunshine-one&show_comments=true&auto_play=false&color=ca35e9" type="application/x-shockwave-flash" width="100%">
          </embed>
    </object>
    So in flex i created a SWFloader :
    <mx:SWFLoader id="mySWF" width="100%" source="http://player.soundcloud.com/player.swf?url=http://soundcloud.com/nicola-ricca/podcast-lmh -sunshine-one&show_comments=true&auto_play=false&color=ca35e9" />
    The problem is taht the embed swf is larger than my app, it realy dont fit with the size of my app.
    If i set the scaleContent to false the swf is in a sort of way scaled ...but actually it is truncated !!!
    Can someone help me with the issue please ?
    Thank you.

    Hi Tracy
    No I was not aware of that, but I see this as another
    problem. Right now the problem is the load operations that never
    completes (nor fails). I think it may have to do with some browser
    connection limits... Do you know of any events being fired when an
    "open connection" event fails because of connection limits ?
    Another problem related to what you mentioned is when you
    tell a movie clip to "gotoAndStop" at som frame. Then it takes a
    little while before the instances of the frame is initialized. I
    could not find any "complete" events to handle this, so righ now I
    use a solution where I wait a bit and then check if all childred
    are non-nul, and if not I wait again before checking again. This is
    a hack, but it works and I could not find any better solution - do
    you know a better way to ensure a frame is completely initialized
    after a gotoAndStop call ?

  • Issue with the swfloader.

    We specified the scaleContent="true", given width, height,
    maxWidth,maxHeight for a swfloader and tested locally by
    excuting a you-tube .swf (src =
    http://www.youtube.com/v/uk4V12zHtjc)
    file. That works fine. When we deployed the application in
    webserver(Tomcat), the swf file is getting loaded with its max
    width and height; but it doesn't ensure the scalecontent, maxWidth
    and maxHeight provided in the swf loader. Kindly help

    Hi Tracy
    No I was not aware of that, but I see this as another
    problem. Right now the problem is the load operations that never
    completes (nor fails). I think it may have to do with some browser
    connection limits... Do you know of any events being fired when an
    "open connection" event fails because of connection limits ?
    Another problem related to what you mentioned is when you
    tell a movie clip to "gotoAndStop" at som frame. Then it takes a
    little while before the instances of the frame is initialized. I
    could not find any "complete" events to handle this, so righ now I
    use a solution where I wait a bit and then check if all childred
    are non-nul, and if not I wait again before checking again. This is
    a hack, but it works and I could not find any better solution - do
    you know a better way to ensure a frame is completely initialized
    after a gotoAndStop call ?

  • 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

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

  • Textinput issue from external file in AIR application (Is it bcz of mask?)

    Hi
    I tried to load external swf in TabNavigator. In this file, I have some input text.
    I can key in external file's text input after load. But i got  "Security Sandbox Violation" error.
    Here is the code
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                         xmlns:s="library://ns.adobe.com/flex/spark"
                                                         xmlns:mx="library://ns.adobe.com/flex/mx">
    <mx:TabNavigator width="100%" height="100%">
                        <mx:Canvas>
                                       <s:SWFLoader id="_swfLoader" source="C:\Users\bala\Desktop\TextSWF.swf"/>
                        </mx:Canvas>
    </mx:TabNavigator>
    </s:WindowedApplication>
    To solve security issue, i used load swf as bytes. After load there is no security issues, but i cannot key in external file's text input.
    Here is the code,
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                               xmlns:s="library://ns.adobe.com/flex/spark"
                               xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Script>
                        <![CDATA[
                                  protected function CreationCompleteHandler(event:FlexEvent):void
                                            var loader:URLLoader=new URLLoader();
                                            loader.dataFormat=URLLoaderDataFormat.BINARY;
                                            loader.addEventListener(Event.COMPLETE, onSWFLoaded);
                                            loader.load(new URLRequest("C:\\Users\\bala\\Desktop\\TextSWF.swf"));
                                  private function onSWFLoaded(e:Event):void {
                                            var loader:URLLoader=URLLoader(e.target);
                                            loader.removeEventListener(Event.COMPLETE, onSWFLoaded);
                                            var context:LoaderContext=new LoaderContext(false, new ApplicationDomain());
                                            context.allowLoadBytesCodeExecution=true;
                                            _swfLoader.loaderContext = context;
                                            _swfLoader.load(loader.data);
                        ]]>
              </fx:Script>
    <mx:TabNavigator width="100%" height="100%">
              <mx:Canvas>
                        <s:SWFLoader id="_swfLoader" />
              </mx:Canvas>
    </mx:TabNavigator>
    </s:WindowedApplication>
    How can solve this issue. Is there anything to do with css?
    Is tabnavigator conatin default mask? How can user edit masked textinput without embed font?
    Thanks
    Regards
    Balasubramaniyan.S

    Thanks for your reply,
    Yes, the addedToStage handler is executed every time. I set my host application up to work exactly with that behaviour. There are several events going from client to host to help the communication inside the the application. I can't get behind the reason why it won't work.
    I made a case where I created a camera instance inside the host application and passed it over to the client via
    client.setupFunction(inArg: arg, sendCamera: Camera);
    That works. But I also need a microphone, and I can't get the mic working over with the same technique. And also I'd prefer to have it all in the client, cause I designed the application model to work exactly in that fashion.
    I guess it's a secruity sandboxing problem, but I can't find any documentation on this issue.
    Thanks, maybe another solution can be found here. ;-)

  • 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

Maybe you are looking for

  • Audio crazies with embedded captivate 4 product in captivate 4 project in LMS

    I know I've seen some solutions and setting variables to eliminate this issue (one I've never had before thank goodness) I have LO's created in captivate that contain published .swf files also created in captivate 4. I have 6 embedded in one project,

  • Apple TV does not appear in iTunes after hard drive swap. (original ATV)

    I recently upgraded the internal hard drive in my mac book pro. I removed the original drive and and put it into an external casing. With the new, larger capacity drive in place, i reinstalled the operating system and the updates, bringing it up to s

  • Item Text  in RFQ/ Quotation.

    Hi Experts, when i am creating a RFQ/ Quotation  to vendor   through ME41  i would like to enter the  ITEM TEXT  for the material. but i am trying through  .  me47 -  ITEM -  texts -   Text overview.   i entered there but its not appearing in print p

  • How can I permanently delete private browsing on iPad 2?

    Does anyone know how to permanently delete the private browsing option on my iPad 2?

  • Using Windows 2003 AD server as NTP source

    I tired to setup my PowerBook G4 OS X 10.4.4 to use our existing NTP time server (Active Directory Domain Controller) as the source for the Mac to get its time. The Mac is joined to the domain and I can browse the domain ok (shows connectivity) but i