Access the SWF loaded by a SWFElement?

Is there a way to access the SWF loaded by a SWFElement? For example in a plugin, load a SWF, then pass data to the SWF and or listen to event broadcast by the SWF.

Well we got it working. Excluded classes make the framework really frustrating at times.
What we ended up doing is creating a new media element that extends MediaElement and just did our own loading and then applied the Loader/DisplayObject via a DisplayTrait.

Similar Messages

  • Change the SWF loading text for a single presentation

    This question was posted in response to the following article: http://help.adobe.com/en_US/Presenter/7.0/WS8815BC0A-5D22-4f29-87B9-D9047B5B57E4.html

    Hi,
      I have Adobe Presenter 7.0.5, in which with recently updating to 7.0.7 version.
    When I tried the fix of this "Change the SWF loading text for a single presentation" workaround fix, I passed to have the error:ReferenceError: Error #1069: Property ADOBE_PRESENTER not found on Pool_P75.Resource.UIText
    But before this error comes, I see that the loading text is changes from the original 2Adobe Presenter" to the one defined by me on the UIText, as the fix said.
    And what's happen is that the scrren with the loading text is not being changed by the learning first slide....
    Is there any workaround to correct that error?
    Many thanks in advance for any feedback from the adobe support team or from any other colleagues that are using Adobe Presenter (;-)).

  • How make the swf loaded in swfloader component to be transparent?

    Hi,
    I use the swfloader component to load many swf file into my project,but how do I make the swf loaded in swfloader component to be transparent? Just like the swf to be set transparent in HTML!
    Thanks a lot.
    David

    Nobody can help me?

  • Loading and Unloading of swf files in SWF Loader

    Hi all,
    I have a doubt reg. SWF Loader.
    I have created two mxml files A & B.
    A. local.mxml
    B. SwfSample.mxml
    i have two labels and a button in A file and i have set values to those labels and have a method to handle the click event of the button. In B file i have loaded this A file and accessed the labels and methods using SystemManager Component and changed the values of the A file's label and accessed data from A file to B file.
    Here comes the problem,
    I have two buttons named LoadAgain and Unload
    When i click the Unload button, the SWF Loader unloads its content by the method i handled for  the Unload button, after that i have clicked on the LoadAgain button to load the same content of A's mxml to the SWF Loader, it loads succesfully,but i was not able to access its Label or Method from the B mxml. Please help me to solve the issue.
    local.mxml
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx=http://www.adobe.com/2006/mxml layout="absolute">
    <mx:Script>
        <![CDATA[
    Bindable]
        public var varOne:String = "This is a public variable";
        public function setVarOne(newText:String):void
              varOne = newText;
        ]]>
    </mx:Script>
    <mx:Label id="lblOne" text="I am here" x="28" y="88"/>
    <mx:Label text="{varOne}" x="166" y="88"/>
    <mx:Button label="Nested Button" click="setVarOne('Nested Button Pressed');" x="28" y="114"/>
    SwfSample.mxml
    <?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.Alert;  
              import mx.managers.SystemManager;  
              import mx.controls.Label; 
    Bindable]
              public var loadedSM:SystemManager;
              private function initNestedAppProps():void
                  loadedSM = SystemManager(myLoader.content);
              public function updateLabel():void
                  lbl.text = loadedSM.application[
    "lblOne"].text;
              public function updateNestedLabels():void
                  loadedSM.application[
    "lblOne"].text = "I was just updated" ;
                  loadedSM.application[
    "varOne"] = "I was just updated";
              public function updateNestedVarOne():void
                   local(loadedSM.application).setVarOne(
    "Updated varOne");
              public function unload():void
                   myLoader.content.loaderInfo.loader.unload();
              public function loadAgain():void
                   myLoader.load(
    "../bin-debug/local.swf");
            ]]>
         </mx:Script>
    <mx:Label id="lbl" x="72" y="47"/>
    <mx:SWFLoader id="myLoader" width="438" source="../bin-debug/local.swf" creationComplete="initNestedAppProps();" y="73" height="238" x="72" alpha="1.0"/>
    <mx:Button label="Update Label Control in Outer Application" click="updateLabel();" x="72" y="319"/>
    <mx:Button label="Update Nested Controls" click="updateNestedLabels();" x="72" y="349"/>
    <mx:Button label="Update Nested varOne" click="updateNestedVarOne();" x="72" y="379"/>
    <mx:Button label="Unload" click="unload();" x="72" y="409"/>
    <mx:Button label="Load Again" click="loadAgain();" x="72" y="439"/>
    </mx:Application>
    Thanks & regards,
    Sathish.K

    creationComplete only fires once when the SWFLoader is created.  Therefore you never reset your variables to point to the new sub-app.  On a slow network, creationComplete may fire before the sub-app loads.  It is best to use the COMPLETE event.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Problem with accessing external swf library items

    Hi,
    I have a really annoying problem when I try to access the library items of an external .swf file. It is something I have done many times before using the ApplicationDomain.currentDomain.getDefinition() method. In this particular exmple, however, I am trying to load a .swf file from a full web address rather than locally.
    I can load in the .swf and try to set the application domain like the following
    * Please note that I amu using bulkLoader
    var domain:ApplicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain)
    var lc:LoaderContext = new LoaderContext(false, domain);
    var path:String =  WorldManager.SITE_ROOT + swfPath;
    l.add(path, { id:"Kit", context:lc } );
    l.start();
    The file loads successfully but when I try to access the .swf library assets using the following it cannot access it
    domain.getDefinition("Shirt_B04");
    If I load the file with a relative path it works.....
    Does anyone have any ideas how I can solve this?

    In addition to David's reply, this technote may help:
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f693f21-7e6 8a.html

  • Xcelsius Parent/Child SWF Loader with BICS Connections

    We have several Xcelsius Dashboards that use BICS connections to retrieve data from BW queries that we'd like to combine into one Parent/Child tabbed dashboard. I can't seem to find solid information on if this is possible using a SWF Loader component due to the BICS requirement of being published through BW Portal and not InfoView. Does anyone have any ideas (short of combining them into one huge dashboard due to the volume of data)? Thanks!

    Hi Chris,
    I have been working with SWF loader on the SAP portal using the BICS connection type. It was not supported last time I asked about a year ago. However, it can work if you specify the URL in the SWF loader in this way:
    http://sapwebdisp.vestas.net:8103/bicsremotebex?SWF=XXX&TIMESTMP=1318867468000
    XXX is the name you publish your child dashboard under. Data can be exchanged between the parent and child dashboard by using the custom component "Data sharer" from Inovista which can be downloaded for free:
    http://www.inovista.com
    Besides the fact that this setup is unsupported there are some limitations so from my point of view it should only be applied under the following conditions:
    1. It is not possible to build eveything into a single dashboard.
    2. A solution having several independent dashboards does not make sense.
    An alternative might be the setup described in note 1526291. The way I understand it, it binds the dashboards together in a similar way as on a BO server with flash variables.
    Regards,
    Michael

  • A swf loader bug?

    It looks like I may have found a bug in the swf loader.  Before I submit this problem I want to make sure there is not something I'm missing in my code. I wrote this class to load a tutorial when the user first launches a sub application in a project I'm working on. This is a simplified version of the class that exemplifies the problem.  The same methods I use to launch the swf from within an mxml work just fine, but when I externalize the process in this class, I can hear the tutorial, but I get no visual.  Is this a bug or am I missing something?
    Here is the tutorial launcher class:
    package proj.fuego.utils
         import flash.events.Event;
         import mx.controls.SWFLoader;
         import mx.flash.UIMovieClip;
         public class TutPlayerSimple extends UIMovieClip
              private var gutLoader:SWFLoader;
              public function TutPlayerSimple(fullTutorialPath:String)
                 gutLoader = new SWFLoader();
                 gutLoader.addEventListener(Event.COMPLETE, addToStage);
                 gutLoader.load(fullTutorialPath + ".swf");
                 //addChild(gutLoader);
              private function addToStage(evt:Event):void
                 addChild(evt.target.content);
    This is my mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="1024" minHeight="768" applicationComplete="application1_applicationCompleteHandler(event)">
         <mx:Script>
              <![CDATA[
                 import mx.controls.SWFLoader;
                 import mx.events.FlexEvent;
                 import proj.fuego.utils.TutPlayerSimple;
                 private var fullTutorialPath:String = "ll_tut";
                 private var tutPlayer:TutPlayerSimple;
                 protected function application1_applicationCompleteHandler(event:FlexEvent):void
                      // TODO Auto-generated method stub
                      var context:LoaderContext = new LoaderContext();
                      tutPlayer = new TutPlayerSimple(fullTutorialPath);
                      //context.checkPolicyFile = true;
                      //gutLoader.loaderContext = context;
                      trace("Loading Tut:", fullTutorialPath + ".swf");
                      addChild(tutPlayer);
              ]]>
         </mx:Script>
    </mx:Application>

    That didn't look right.  You'll need to addChild SWFLoader.  Not sure what will happen if you just try to add its content.  There might also be issues putting Flex components inside a UIMovieCip.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • .swf Loader component

    Could someone kindly explain to me how the swf loader component works? How can it be used?
    Thanks in advance for any help!

    Hi,
    Goto following link, will help you
    http://ryangoodman.net/blog/index.php/2008/02/14/adding_a_pre_loader_in_xcelsius_dashboar
    http://help.sap.com/businessobject/product_guides/xcelsius2008SP3/en/Xcelsius2008_FP3.1_release_notes_en.pdf
    http://saptechblogsxcelsius.blogspot.com/
    -Obaid

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

  • Rendering of SWF Loader child SWFs

    I am using the swf loader with an Xcelsius OpenDoc link (http://<server>:8080/Xcelsius/opendoc/documentDownload?sIDType=CUID&iDocID=<CUID>&sKind=Flash&CELogonToken=<CELogonToken>)  and it works beautifully so long as the parent swf is also opened using and OpenDoc link.  However, if the parent swf is opened via InfoView, the child swf does not render properly (either way too large or too small).  Has anyone else come across this or have any ideas for resolution?
    Regards,
    Alison

    "whomba" <[email protected]> wrote in
    message
    news:glq6j0$b20$[email protected]..
    > Hello all,
    > I have a Flex app that loads in a swf using 'SWFLoader'
    tag. the SWFloader
    > and
    > the swf being loaded in are the same height and width
    (see attached code)
    > Now,
    > the SWF getting loaded in is also 468 X 351 however the
    designers that
    > made it
    > have crazy amount of random Movie Clips EVERYWHERE that
    isn't on the
    > stage. My
    > guess is that the actual height and width of the SWF is
    close to 1000 X
    > 1000.
    > When I load this SWF in to my SWFLoader it scales
    everything down so all
    > of the
    > MovieClips are inside of this SWFLoader rather than just
    the SWF's Stage.
    > Any
    > Suggestions?
    >
    > <mx:SWFLoader id="mainMovieSWF" height="351"
    width="468"
    > source="{mainMovieSrc}" scaleContent="false"/>
    Try wrapping it as a component with the Flex component kit.
    That way you
    get to specify the bounding box.
    HTH;
    Amy

  • SWF Loader using OpenDoc links

    I am having no luck using an opendoc link inside the SWF loader. Any suggestions?
    Is my other choice to load the swf from a network location? I am able to load successfully that way (even run the data connections)
    I've tried different variations of this link and all I get is the 100% screen, with no dashboard -
    -SERVER-//OpenDocument/opendoc/openDocument.jsp?&iDocID=ARmopxdsSohMvuPJL67dARE&sIDType=CUID&sType=Flash
    Xcelsius SP3, trying to load other xcelsius swf files already in infoview.
    Thank you

    Hi,
    I tried using the links provided
    It gives me the below exception:
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
    com.businessobjects.clientaction.xcelsius.DocumentDownload.getSWFbyName(DocumentDownload.java:110)
    com.businessobjects.clientaction.xcelsius.DocumentDownload.service(DocumentDownload.java:149)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Is there any modification required on the server side to run the DocumentDownload syntax.
    I am able to view the swf using the opendoc syntax.
    Help is appreciated.
    Have breaking my head and reading so many forums and post for weeks. banghead.gif
    Link which is working using opendoc:
    https://ServerName/OpenDocument/opendoc/openDocument.jsp?sDocName=TestFile&sKind=Flash&iDocID=144902
    Please help me with the link for using Documentdownload
    Documentdownload link - not working:
    https://ServerName/OpenDocument/opendoc/&sPath=[My Favorites]&downloadDocument?iDocID=XXXX&sKind= Flash
    Also please let me know if documentdownload link would take me to the login page if the CELOGONTOKEN is not appended.
    Note: I am able to get the CELOGONTOKEN successfull

  • SWF Loader and Power Point Slide

    Hi Xcelsius Experts
    I am using a tab set container and in each container i am trying to open another Xcelsius Dashboard - as soon as i provide the complete path of .xlf file the swf loader instantly says 100% but it doesnt show the xcelsius file and it does the same after hitting preview button.
    so how can I show another Xcelsius file within Xcelsius and I would also like to see that working in powerpoint after export.
    Many thanks in advance for your help
    Kind Regards,
    Waqas

    Burn it to CD and re-import it.
    This is not for a public presentation, correct? It's for your own personal (not job related) use?

  • Using SWF Loader

    Hi Gurus,
    I have been looking through other questions like this, and not sure if the resolutions that I have seen will work.  I have a dashboard that I want to use the SWF loader in to bring in SWF files (obviously) but they are not stored in InfoView - which is what has been talked about in other questions.
    I have looked in the user guide and have seen that I can use DocumentDownload or OpenDoc, not that I am familiar with either.  My question really is this:
    1. could i use one or other of these even though i am not going through infoview (so i dont have a cuid)
    2. how would I write the syntax?
    I tried using a URL button, but I have a container on the main summary dashboard that I want the swf's to load in, rather than have a new screen load up.
    Could someone give me some advice on this??
    Many thanks,
    Sarah

    Hi Roman,
    Thanks for the response,
    I got that point that i cannot use SWF loader to show my Sub Dashboard inside my main dashboard.
    So my question What is the way (Working) to show the sub dashboard inside the main dashboard using the BICS(On EP).
    I have tried to published my Sub Dashboard and Main Dashboard on EP and tried to call the Sub Dashboard using the HTML Link...(SWF Loader/Slide Show)...but these comp. wont work...
    so which way i shd go..
    Are you saying i shd go via "Web Application Designer--creating the template and calling Dashboards(main n Sub) seperately???
    Sam...
    Edited by: Sapbpc_user on Dec 1, 2010 12:57 PM

  • Help needed in accessing the url from which a swf file has been loaded

    Hi All,
    Can anyone help me out in finding the url of the swf file
    from which it has been loaded? The purpose of the url is, I am
    loading some flv files using relative path. I just want to achieve
    the same by appending the relative path to the parent swf url from
    where the parent was loaded.
    I am a newbie to AS3, So please don t mind if this is a silly
    question.
    Can anyone help me on this.
    Thanks in advance,
    Prabakaran Srinivasan.

    Hi,
    Thanks for the reply. I think the option you gave is only
    applicable when the AS3 class comes in the DisplayObject hierarchy.
    I want this information in an AS3 class which does not extend any
    of the Sprite or its super class hierarchy. Can you let me know the
    possibility of fetching the value from such a class which i
    specified???
    Thanks,
    Prabakaran Srinivasan.

  • Urgent: Passing Metadata to SWF loaded via SWFElement?

    Hi!
    my problem: I have a SWF-Animation made in Flash. This animation will be loaded via a OSMF-Plugin as an overlay (SWFElement in ParallelElement). That works perfectly so far. But now I have to pass some Text (Metadata) to the SWF. Passing the metadata to the plug in works. But how does the plugin inject the metadata into the SWF or how do I access the metadata within the SWF?
    Any ideas?
    Thanks in advance,
    Simon

    Since the forums were down I played around on my own. I came up with the following solution.
    I'm not sure if there are better ways that are more straight forward (e.g. with metadata etc.) but it works fine so far.
        override public function set proxiedElement(value:MediaElement):void {
          log( "proxiedElement was set" );
          var overlayResource:URLResource = new URLResource( OVERLAY_URL );
          var overlayElement:SWFElement = new SWFElement( overlayResource );
          overlayElement.addEventListener( MediaElementEvent.TRAIT_ADD,
            function(e:MediaElementEvent):void {
              if ( e.traitType == "displayObject" ) {
                var el:SWFElement = e.currentTarget as SWFElement;
                var dot:DisplayObjectTrait = DisplayObjectTrait( el.getTrait( MediaTraitType.DISPLAY_OBJECT ) );
                var loader:Loader = Loader( dot.displayObject );
                if ( loader.content.hasOwnProperty( "setMetadata" ) ) {
                  Object( loader.content ).setMetadata(
                    { title: "Grant Skinner", details: "FITC 2011 - Amsterdam" }
          var layout:LayoutMetadata = new LayoutMetadata();
          layout.width = 520;
          layout.height = 100;
          layout.bottom = layout.left = 0;
          layout.index = 999;
          overlayElement.addMetadata( LayoutMetadata.LAYOUT_NAMESPACE, layout );
          var durationElement:DurationElement = new DurationElement( 5, overlayElement );
          var parallel:ParallelElement = new ParallelElement();
          parallel.addChild( durationElement );
          parallel.addChild( value );
          super.proxiedElement = parallel;

Maybe you are looking for

  • Firefox crashes whenever I try to open it.

    Firefox crashes when I try to open it. This has been happening for days. It began without warning and I was not aware of any changes or updates before it first happened. I tried to open in Safe Mode, without success. No Firefox updates done just befo

  • Urgent doubt in struts

    Hi, I have created the code for search employee from database values, my struts code in search.jsp is <logic:present name="searchForm" property="results"> <hr width="100%" size="1" noshade="true"> <bean:size id="size" name="searchForm" property="resu

  • Problems with Adobe Reader X since the 10.1 Update

    Hello togehter. Since the newest Update for the Adobe Reader X (Version 10.1, released 14.6.2011) a lot of our employers in our company have the problem that only the 1. PDF opens fast, the 2. PDF take 5 to 10 seconds to open, sometimes the hole prog

  • ITunes not showing app updates from iPhone

    I did some searches and found some people that have had similar, but not exactly the same problem. My iPhone 3GS shows that I have four apps that need updating. I don't like to use my data plan for updates if I don't have to, so I prefer to update vi

  • Pivot Report in Excel from Oracle data base

    I need to bring data in Excel from Oracle table. The connectivity was established without any problem. When trying to transform the newly created query into a pivot table a am not able to see the data inside the "Data area" of pivot table as it is in