Calling methods in embedded SWF

In an AIR application, I embed other Flex apps [SWFs] as part
of the main AIR app.
Embedding works like a charm, but I need to interact between
the master and the (generic) slaves [the embedded SWFs].
As far as I understand the docs, master and client can't
exchange methods. Do I understand the docs correctly?
If master and client can't exchange methods, I may provide
two bindable properties in the client:
quote:
[Bindable]
public var inChannel:*;
[Bindable]
public var outChannel:*;
In case the master wants the client to perform an action, I
assign the client's inChannel, which in turn fires a handler inside
the client. If the client finished its work, it in turn assigns a
return value to outChannel. This then fires a handler in the
master.
Any ideas, if this strategy is OK? Or should I manage this
situation in some other way?
Thx,
Stefan

"justria" <[email protected]> wrote in
message
news:g81j07$hv4$[email protected]..
> Here is how I load widgets:
>
>
quote:
var loaderContext: LoaderContext = new LoaderContext();
> loaderContext.allowLoadBytesCodeExecution = true;
>
> aLoader = new SWFLoader();
> aLoader.source = bytes;
> aLoader.loaderContext = loaderContext;
>
> ww = new CFlexletContainer();
> ww.inner = aLoader ;
>
> mainGrid. addChild( ww );
>
>
> Then, this fails:
>
>
quote:
aLoader2.inChannel = 'Hello';
http://www.cflex.net/showFileDetails.cfm?ObjectID=690&Object=File&ChannelID=1

Similar Messages

  • How to call method in another swf file

    Hi. I am at the moment making a website in Flash 8. The
    website consists of a main file with the buttons and then
    additional files for each page. Each of the buttons uses code
    similar to this:
    content.loadMovie("home page.swf");
    where content is the movieclip I am using to load the swf
    file into. In the main file I have a search box where a user can
    type some search terms. I have written some code that will search
    through the text field(s) on the page and highlight any words that
    appear matching the search terms. The only problem is that I cannot
    get to the text fields on the other files. So what I want to be
    able to do is attach some code to the search button that will call
    a method in another swf file using the parameters that I the user
    has specified in the search box. How would I go about doing this?
    Any help is much appreciated
    JM Young

    Place functions in the external swf. Then you can call them
    through the container clip
    content.yourFunction(args);
    Realize however, you cannot call code in an external swf
    until the frames with the functions are loaded. Timing would be an
    issue if the user can beat the loading clock or if you have code
    that is executed automatically after you start the load.
    So if timing becomes an issue, use MovieClipLoader and the
    onLoadInit method.

  • Flex3/air calling functions in embedded swf problem

    i'm a newbie to flex so i'm hoping there is going to be a
    simple answer to this problem. it's caused a massive headache!
    i have been using a swfLoader to load a swf, then triggering
    function calls within the swf from flex by using the following in
    the script tag of my mxml
    var mc:MovieClip = MovieClip(myMP3player.content);
    mc.loadMP3Player("file:///"+path, artist, title);
    where loadMP3Player is the function in the linked swf and
    myMP3player is the id of the swfLoader.
    this works great, no problems... but when i change the code
    so that the swf is embedded, rather than loaded at runtime the code
    above gives a
    "ReferenceError:Error #1069 Property loadMP3Player not found"
    error
    when i try to trigger the function.
    i have tried many different ways of referencing and embedding
    the swf, all have the same result. i.e. swf loads fine and the flex
    project compiles without errors, but i am unable to call the
    function. see the code snippet for my details.
    any help will be really appreciated.
    btw: i need to embed the swf as i am distributing the
    finished article as an air app.
    -------------------------------------------------code
    excerpt--------------------------------------------------

    1. You must be using the Flex Component Kit for Flash
    2. Select the clip in the library that you want to turn into
    a component for Flex
    3. Use the command (command menu in Flash) to convert the
    clip to a Flex Component
    4. Publish -> your swc is ready
    If you don't have a document class, one is made automatically
    and it has the same name as the name of the clip in the library
    You can provide a document class. Look at the linkage
    identifier for the clip in the library. There you will see what the
    name of the class is. Create the class yourself and Publish. Now
    add the swc to your library path in Flex. Now you can use the
    component as any other component in Flex. So, put the clip on the
    stage using mxml or in ActionScript using var myplayer = new
    MyPlayer();

  • Error in calling method of loaded swf

    I have two classes. One is loading class and another is Main2 class. Loading class is our document class of Load.fla.
    The code of loading class is:
    package
              import flash.display.MovieClip;
              import flash.display.SimpleButton;
              import flash.text.TextField;
              import flash.display.Loader;
              import flash.events.*;
              import flash.net.URLRequest;
              public class Loading extends MovieClip
                          private var url:String;
                          private var loader:Loader;
                          public function Loading()
                                      init();
                          private function init():void
                                      url='my_swf.swf';
                                      var request:URLRequest=new URLRequest(url);
                                      loader=new Loader();
                                      initListeners(loader.contentLoaderInfo);
                                      loader.load(request);
                          private function initListeners(dispatcher:IEventDispatcher):void
                                      dispatcher.addEventListener(Event.COMPLETE,completato);
                          public function onStartClick(event:Event):void
                                      trace("MenuStart")
                          private function completato(event:Event):void
                                      loader.contentLoaderInfo.content.addEventListener("startClick",onStartClick)
                                      addChild(loader);
                                      loader.y=10;
                                      var main2:Main2;
                                      main2=new Main2(this,MovieClip(loader.content));
    And the code of Main2 class is :
    package
              import flash.display.MovieClip;
              import flash.events.MouseEvent;
              import flash.events.Event;
              public class Main2 extends MovieClip
                          private var _fla:MovieClip;
                          private var mia_root:MovieClip;
                          public function Main2(fla:MovieClip,m:MovieClip)
                                      _fla=fla;
                                      mia_root=m;
                                      callClip();
                          private function callClip():void
                                      mia_root.test_mc.addEventListener(MouseEvent.CLICK, onStartClick);
                          private function onStartClick(e:MouseEvent):void
                                      trace("hi")
                                      dispatchEvent(new Event("startClick"));
    Here I have loaded 'my_swf file in Loading class. Actually  there is one movie clip  in my_swf . its name is test_mc. When I press on this (test_mc) movie clip
    I got trace value “hi”. But I dispatch one event startClick. I didnot listen in Loading class. How can I listen.

    First, what's up with this huge font?
    Second, your architecture feels convoluted and it can be simplified. But, assuming everything is OK, try this (inside function completato listener is added to the instance main2):
    package
         import flash.display.MovieClip;
         import flash.display.SimpleButton;
         import flash.text.TextField;
         import flash.display.Loader;
         import flash.events.*;
         import flash.net.URLRequest;
         public class Loading extends MovieClip
              private var url:String;
              private var loader:Loader;
              public function Loading()
                   init();
              private function init():void
                   url = 'my_swf.swf';
                   loader = new Loader();
                   initListeners(loader.contentLoaderInfo);
                   loader.load(new URLRequest(url));
              private function initListeners(dispatcher:IEventDispatcher):void
                   dispatcher.addEventListener(Event.COMPLETE,completato);
              public function onStartClick(event:Event):void
                   trace("MenuStart")
              private function completato(event:Event):void
                   addChild(loader);
                   loader.y = 10;
                   var main2:Main2 = new Main2(this, MovieClip(loader.content));
                   main2.addEventListener("startClick", onStartClick);
                   addChild(main2);

  • Embedded .swf's calling javascript from air container

    1) I have an html/ajax air app version 1.5.1
    2) This air app embeds .swf files from an external source / web server & plays the embdded .swf inside air.
    3) The embedded .swf file has a button with an onClick event
    function onClick(event:MouseEvent):void {
    ExternalInterface.call("someJavascriptMethod()" );
    4) The javascript method to be called is already parsed inside the containing Air app and is waiting to be triggered.
    5) When the onClick is triggered, the following error is thrown.
    Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX,
    Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
    at Error$/throwError()
    at flash.external::ExternalInterface$/call()
    at stress_fla::MainTimeline/onClick()
    6) On investigation I found on your livedoc's website that Air does not support the ExternalInterface.call method.
    http://livedocs.adobe.com/labs/air/1/aslr/flash/external/ExternalInterface.html
    Look for Note: Adobe AIR currently does not support the ExternalInterface class.
    7) Does anyone here know how I can get an embbeded .swf file to call javascript methods in the containing air application? I have had a look at the getUrl method but this is now longer supported & even the FS command but still to no avail. I may have a work around by inserting a DOM element over the top of the embedded .swf but this is not an elegant solution & want the .swf to talk directly to the air app container.
    All help & comments welcome
    Thanks
    Kyle
    Additionally I have found
    http://help.adobe.com/en_US/AIR/1.5/devappsflash/WS5b3ccc516d4fbf351e63e3d118666ade46-7ed4 .html
    Using the Html Loader so that Actionscript can call/manipulate the dom objects. At first I was whopee but then I tried the examples listed in the help. The HTMLLoader class is only available in Air. When trying to use import flash.html.HTMLLoader; Flash C4 complains that the Definition cannot be found on compile time & therefore does not export my movie correctly. Has anyone else had this problem or have a solution??
    More additions:
    The reason the htmlLoader class was not compiling was due to the source action script provided being ActionScript 2.0 - the htmlLoader class is a 3.0 library.
    However, after more investigation I have found the current structure.
    The air app has an html base/root doc. On periodic javascript events - .swf files are downloaded via
    videos = new air.Loader();
    netStream     = new air.URLRequest(path + file);
    videos.load(netStream);
    So now I have a html container in my air app that creates a new air.Loader which downloads the external .swf file in which I want an onClick event in the action Script of the downloaded .swf file to call a Javascript method of the parent air container. Simple yea?
    Or am I making life to hard for myself? Have been looking at the security snadboxes but I don't see how I can get the .swf file to talk nicely with the outer air container. Please help if able.
    Thanks
    Kyle

    Hi Kenneth,
    Your explanation makes sense.
    I have a big JavaScript file full of special mathematical functions written by a mathematician who only knows how to program in Javascript.
    I need to call the Javascript functions from within an ActionScript library, which obviously has no UI, and thus HTML and/or HTMLLoader are not an option.
    Any ideas?
    TIA,
    mlavie

  • Calling method from SWF file wtih javascript, when swf file is not loaded in any browser

    Hi There,
    I have a question regarding flex and javascript integration:
    1. We have created certain components and bundle them in swf. these swf file uses webservice to connect to backend code written in java.
    2. We have deployed swf file and backend on the same tomcat server.
    3. Backend server send some datapoint to UI and plot graph and displyaed to user.
    4. Now if user generate graph from datapoint and want to export it, we are tranferring image of that graph from UI to backend. No issues in this process.
    5. Now the question is. let say user has not open any swf file in browser and backend scheduling job want to generate the graph. How we will connect to swf file.
    6. Is ther any way we can connect or call method of swf from java/jsp/html/javascript code in this scenario without loading swf file in browser??
    Please help me!!!
    Thanks
    Sonu Kumar

    Both test sites work just fine for me.
    The "Update plugin" message is exactly what would be displayed if no .swfobject file at all was found... so it may not be the "version11" thing but rather, perhaps something else is messed up with the .swfobject file.
    File can be found in both folders:
    http://www.pureimaginationcakes.com/test/Scripts/swfobject_modified.js
    http://www.pureimaginationcakes.com/Scripts/swfobject_modified.js
    and file does download when downloading the html page (just check the cache).... but for some reason it doesn't seem to be working.... Hummmmm????
    Adninjastrator

  • Embedding SWF in a text field

    Hi, New user to Flash here with a problem embedding .SWF
    files. I have already existing SWF files that I have called
    historically from HTML using <object> to embed the object and
    <param name= value=> also to pass it information. The SWF
    movie I need to embed basically builds a graph and takes its data
    from the location you supply it in <param name= value=>
    field. This code is not mine and I can't alter it.
    What I want to do is construct a flash version of my site and
    embed these graphs within a flash textfield. I have been able to
    successfully embed a test SWF file using <img> tags on a text
    field ---> but here is my question. How do I support the
    <param name= value=> functionality I got when I called these
    graphs from HTML using <object>?
    I hope that's clear? Any help at all is greatly appreciated.
    Tom

    Tom,
    > What I want to do is construct a flash version of my
    site
    > and embed these graphs within a flash textfield.
    That's a really interesting approach. At first, I didn't
    understand
    what you were aiming for, but it sounds to me like you're
    tying to use HTML
    inside a Flash text field -- which is doable, to some extent
    -- and embed an
    external SWF in that HTML ... all within Flash.
    > I have been able to successfully embed a test SWF file
    > using <img> tags on a text field --->
    That does work, but it's about the closest you'll get, I'm
    afraid. It's
    only happenstance that Flash's very narrow (and somewhat
    unique) version of
    HTML accepts SWFs in an <img> tag.
    > but here is my question. How do I support the <param
    name=
    > value=> functionality I got when I called these
    graphs from
    > HTML using <object>?
    Flash only supports a very limited subset of the HTML
    language. You can
    see the full list of supported tags by searching the phrase
    "supported tags"
    in the documentation (specifically, the Learning ActionScript
    2.0 in Flash
    book). For better or worse, <object>, <param>,
    and <embed> are simply not
    in that list.
    > Any help at all is greatly appreciated.
    Your only choice is to use one of the more traditional
    methods of
    loading external SWFs, such as loadMovie(),
    MovieClip.loadMovie(), or the
    MovieClipLoader class. Once your external SWF is loaded, you
    may "feed" it
    variables that should be detectable by the ActionScript
    inside the loaded
    SWF.
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • How to make a Loadvars sendAndLoad request from embedded swf in flex

    I've developed a simple flex app with embedded swf. Basically swf use Loadvars to get data from particular database table. Ok, when I tested the flex app on localhost it is works fine and embedded swf make its sendAndLoad calls correctly.
    But! When it is located on the web server swf not work correctly. I meant there is not returned values by sendAndLoad method.
    Well, to make some points: questionContentLoadVars.img1 holds(return) the string from php call. This "img1" is an empty returned string only in Flex app placed in the web server otherwise it returns correct value from php call?
    When gameplay22.swf is standallone works!
    When gameplay22.swf is in HTML page works!
    When gameplay22.swf is embedded in FLex and executed in LOCALHOST works!
    But in the web server this embedded gameplay22.swf doesn`t works!
    What is the problem with it?
    //* here is flash(swf) part of gameplay22.swf file which is embedded in the Flex by SWFLOader(gameplay22.swf)
        questionContentLoadVars = new LoadVars();
        questionContentLoadVars.onLoad = function(success){
        if (success){
        slidingSvityk_mc.descripTA_mc.description_ta.text = questionContentLoadVars.theContent;
        else 
        slidingSvityk_mc.description_ta.text = "err!";
        function loadQuestionData(sectionID){
        var tablename ='questionsgeo';  // database tablename
        //sending variables to the PHP script
        questionContentLoadVars.row = sectionID;
        questionContentLoadVars.tablename = tablename;
        questionContentLoadVars.id_ = "";
        questionContentLoadVars.img1 = "";
        questionContentLoadVars.sendAndLoad("getQuestionRec.php",questionContentLoadVars,"_POST") ;
        function showLoadedGalleryImages():Void{
        infphp.text = questionContentLoadVars.img1;
        var img1Bulk:MovieClip = new MovieClip();
        img1Bulk = imgGalleryContainer_mc.img1Bulck_mc.createEmptyMovieClip(img1Bulk, _root.getNextHighestDepth());
        img1Bulk._x = 0;
        img1Bulk._y = 0;
        image_mcl.loadClip(questionContentLoadVars.img1, img1Bulk);
        //* And here is Flex part of embedded SWFLOader(gameplay22.swf) component
        <s:SWFLoader includeIn="user" width="1024" height="768" horizontalCenter="0" source="gameplay22.swf" verticalCenter="0"/>

    Thanks kglag, for trying to help,
    As i posted in another forum the problem was in the free flex example which i used to add another state and by using SWFLoader to  embed my swf file.
    Now i was created my own flex app and add SWFLoader to embed my swf and voila - it works!
    There is no cross-domain loads  the loaded content is in the same domain.
    So, again thanks!

  • Controlling one embedded swf with another

    I have a flash website where I am using the loadMovie()
    function to load multiple swfs, buttons, etc. into my index.swf
    file (so it is easier to update one component than the whole
    movie).
    I have a series of buttons (home, about, services, etc.) that
    in are in a file called "buttons.swf" and are loading into
    index.swf. I also have another button called "envelope.swf", which
    brings up a screen for a "Tell a Friend about this Page" box. I
    would like to have the "buttons.swf" files disabled when when the
    "envelope.swf" button is clicked, but I'm not too sure how to go
    about doing it BECAUSE it is called through loadMovie.
    Can this be done? I know about using enabled=false/true, but
    how can I use that when referring to an embedded swf?
    Thanks!

    That's a very wise method of developing your website.
    My group uses something like this:
    var myComponent:MovieClip =
    createEmptyMovieClip("myComponent", getNextHighestDepth());
    this.loadClip(src, this.myComponent);
    Then when you need to access a function or value in your
    component, you just use standard dot notation:
    this.myComponent.myFunction(values);
    this.myComponent.button1,_width=220;
    You can even embed components inside other components.

  • Video playback in embedded swf

    Hi,
    I'm building a website in flash catalyst that uses an embedded swf also created in catalyst.  The site is for a musician, and one of the pages (states) loads a swf file that contains a list of videos the user can select and play.  That swf was also made in catalyst.  This works. 
    When I navigate away from the video page to the Bio page (for instance), the video stops playing, which is good.  The problem though, is when I return to the video page, the video resumes right where it was when I left the page.  This is a bit jarring... I'd really like the video to stop playing for real when the user navigates away, so that when he/she returns to the page, its in the default state... With nothing playing.
    Can anyone help?  I'm stuck here.
    Thanks!
    Craig

    you need to make your own controls and you need to learn some
    basic actionscript: controlling playhead movement along a timeline
    is about as basic as it gets. check the movieclip gotoAndPlay(),
    gotoAndStop() methods.

  • Need help with embedded SWF in PDF as navigation

    Hi,
    I was wondering is there a way to have an embedded swf navigate to different pages of a pdf?
    Example:
    My swf is on page one. There are mulitple buttons in the swf, when clicked it will take you to page 3, or 5, or 7, etc.
    Currently, when I click on a button, it DOES take me to say page 4, but the content on page is the SWF file from page 1, and not the content that is suppose to be on page 4. Has anyone else experienced this problem?
    This is what I have in the flash action:
    btn_1994_1.addEventListener( MouseEvent.CLICK, p1994 );
    function p1994(e:MouseEvent):void{
         //addChild(pop_1994);
         doExternalInterfaceCall("gotoTarget", "pink");
    function doExternalInterfaceCall(myfncall, parm)
        flash.external.ExternalInterface.call(myfncall,parm);
    And this is what I have in the javascript of the pdf:
    function gotoTarget(name)
         this.gotoNamedDest(name);
    Please help me fix this problem.
    Thanks in advanced!
    ps. I am using Acrobat 9 Pro

    can anyone help?

  • Using a font embedded swf in mxml

    Hello,
    We need to load in fonts at runtime due to localization needs. I've got this working in an AS3 project in Flex by embedding the font in a class and then loading that swf into another class and registering the font.
    What I need now is to be able to use that font class in MXML components like a spark label. I can't seem to get it to work though. I've tried referencing the swf in a style sheet, then making a style class in the CSS using that font like this:
    /* Embed.css */
    @font-face {
         src: url("_Arial.swf");
         fontFamily: "_Arial";
    .genericTextArial
    font-family: "_Arial";
    fontSize: 40;
    color: #000000;
    Then in the MXML I have this:
    <?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="955" minHeight="600">
         <fx:Style source="Embed.css"/>
         <s:Label text="This should display my embedded text." width="100%" styleName="genericTextArial"/>
    </s:Application>
    However I can't seem to get it to render. I've also tried the method of embedding the font in a text field in Flash Professional and loading in that swf and it doesn't work either. Am I missing a parameter or just going about this the wrong way?

    Thank you, that worked! I actually didn't know exactly how to do that at first but I found this great blog post that explains it:
    http://www.softwarebyrichard.com/content/embedding-fonts-flex-4

  • How to playback an embedded swf in a Captivate project

    Hello,
    I generated a swf file from one captivate project and am embedding it into another.  When I play back the slide that has the imported animation the playback from the slide and the imported swf are different.  If I pause the main slide playback the swf continues and vice versa.  How do I get the playback of the imported swf file to be controlled by the main playback controls?  I am using Cpativate 4.
    Thank you in advance

    Hi there
    I'm hoping one of the Captivate team members picks up on this one and either confirms or denys my findings.
    It is my understanding that one cannot control the other. Likely you may want to simply insert a Click Box or Button on the slide with the SWF and allow the user to move on when they are ready after having interacted with the SWF.
    You may wish to experiment with the properties of the embedded SWF. There is an option called "Synchronize with project". But I'm doubtful it will work to accomplish what you want. I think what this option does is to ensure that if the timing of the slide is different than the SWF inside, it will play the SWF in its entirety.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Dynamically embedded swf, has it ever worked

    I have to repost it. Wondering what adobe will say about it.
    I have tried this for a couple of days. I created a swf object in window.onload (also tried to create it directly while the script was loaded ), then call an AS function from JS. statically embedded swf works for both IE8 and FF, FF also fine for dynamically loading. In IE, this call externalinterface.call("echo", "as returns " + b); always shows "as returns false". The callback function has never worked in other approches with dynamic creation. Anyone has good experience?
    Thanks.
     //js
    <script language="javascript">
    var containerready=false,flashready=false;
    function addLoadEvent(func) {var oldonload = window.onload; if (typeof window.onload != 'function') {
    window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); }}
    function embedswf(){
    var a,swf="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'";
    swf+=" codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10, 0,0,0'";
    swf+=" width='215' height='318' id='testswf1' align='middle'>";
    swf+=" <param name='allowScriptAccess' value='always' />";
    swf+=" <param name='allowFullScreen' value='false' />";
    swf+=" <param name='movie' value='testswf1.swf' />";
    swf+=" <param name='quality' value='high' />";
    swf+=" <param name='wmode' value='transparent' />";
    swf+=" <embed src='testswf1.swf' quality='high' wmode='transparent' width='215' height='318' name='testswf1' align='middle' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/go/getflashplayer' /></object>";
    a=document.createElement("div");
    a.id="swfholder";
    a.innerHTML=swf;
    document.body.appendChild(a);
    containerready=true;
    window.setTimeout(callas, 100);
    } addLoadEvent(embedswf); function echo(p){ alert(p)}  function callas()
    // alert("callas:containerready="+containerready+";fl ashready="+flashready);
    containerready=true;
    if(flashready){
    var a=getswf();
    a&&(a.flashfunc())
    return
    window.setTimeout(callas, 100);
    } function setflashready()
    flashready=true;
    function getcontainerready()
    //alert("getcontainerready:g31="+containerready+";fl ashready="+flashready);
    return containerready;
    function getswf()
    if (navigator.appName.indexOf("Microsoft") != -1)
    return window["testswf1"];
    else
    return document["testswf1"];
    } </script> //as
    import flash.external.ExternalInterface; flash.system.Security.allowDomain("*"); var rtm:Timer = new Timer(500);
    startTest(); function f0():void {
    ExternalInterface.call("echo", "one");
    function timerHandler(event:TimerEvent):void
    if (isContainerReady())
    rtm.stop();
    rtm.removeEventListener(TimerEvent.TIMER, timerHandler);
    setupCallbacks();
    function startTest():void
    if (ExternalInterface.available)
    try
    if (isContainerReady())
    setupCallbacks();
    else
    rtm.addEventListener(TimerEvent.TIMER, timerHandler);
    rtm.start();
    catch(error:Error) {
    trace("An Error occurred: " + error.message + "\n");
    else
    trace("External interface is not available for this container.");
    function isContainerReady():Boolean
    var b:Boolean = ExternalInterface.call("getcontainerready");
    ExternalInterface.call("echo", "as returns " + b);
    return b;
    } function setupCallbacks():void
    ExternalInterface.call("echo","setupcallback");
    ExternalInterface.addCallback("flashfunc", f0);
    ExternalInterface.call("setflashready");

    has it ever worked or is an Adobe bug? anyone knows?

  • Embedded SWFs not working with Flash 9

    Hello,
    I am also plagued with the Flash Player 9 issue. None of my
    embedded SWF files work if I publish with this version of the
    player installed. I ran the uninstaller and I'm now using version
    8. However, each time I open a PPT file I get an error saying "some
    controls on this presentation can't be activated. they might not be
    registered on this computer". This is very irritating. So, my SWFs
    still don't work. I found that if I register the v9 ocx and
    re-insert the SWFs, they will publish properly (while the Player 8
    is installed). However, I have about 50 existing PPTs with anywhere
    from 10-30 SWFs per presentation. I'd like to avoid this method if
    possible. Does anyone know of an easier solution? Thank you.

    good morning DocDVM and Supermercado Gato,
    I have the same issue with embedding SWF files into Breeze. I
    have been doing some searching the last two weeks and i found an
    tech note that you might want to read. It seems that Breeze is not
    really set up for Flash player 9 so Adobe came up with a work
    around. Read the technote.
    http://www.adobe.com/go/f9204eb8
    I am having my IT Department update Breeze for me so i will
    let you know if it works or if you update your Breeze let me know
    if this fixes the issue.

Maybe you are looking for