SWF and CDN

We're considering utilizing a CDN (Content Delivery Network)
such as Limelight Networks, Akamai, Level 3 Comm, etc. Our product
is an online education program with lots of video and animations
that are all in SWF format. If our media elements are located on a
CDN what might we need to considering with regards to cross-domain
scripting issues? It's my understanding that when a file is
requested the url will be unique with each session. For example,
when a student launches a lesson (main lesson interface swf located
on our server/domain) and then clicks a video (swf which is located
somewhere on the CDN different domain) the video has a unique url
that will differ for each user depending on their location in the
US or around the world. We rely on scripting between the media
elements and the main lesson. I'm trying to avoid have to add any
actionscript to each SWF that would enable cross-domain scripting.
Can this be done by passing some parameter in the main lesson SWF
that will allow scripting between the main swf and the on-demand
elements that get loaded in from a different domain?
Thanks in advance for any insight provided.
Michael

Thanks, I thought it didn't manner much unless steaming live video and this is not the case. The videos are old, at least two years and I am finding that re-rendering the videos in AF CS6 helps. But my video guy does that. On the CDN (Rackspace) you can get 4 address locations, http, https, httpStream and iOS. It makes since there is something going on with the CDN to me but I can't narrow it down becasue when we re-render 4 videos, 3 out of 4 work perfectly. The 4th was better and cut off at 3 seconds.
I've never had as many video problems as I have had in the past 2 months and it is driving me crazy!!!!
Thanks for the feedback kglad!!!!

Similar Messages

  • What is the difference between SWF and F4V in the context of Streaming or progressive Download?

    Hello everybody,
    I am absolutely a beginner in working with Captivate and furthermore my technological know how is not that good.
    So, I have problems to understand if the export formats SWF and F4V are both capable to be published in the Internet as streaming video and as progressive Download? Well so, I do not really understand the difference between streaming and progessive download either?
    Furthermore I was asking myself if this issue depends on how I imported flash videos (there are these two options) in my Captivate project during the production phase?
    I would be very thankful for some helping information!
    Greetings,
    Mareike the beginner

    Welcome to our community
    I'm not certain I fully understand the differences myself, but will toss out what I believe to be true about the formats. Hopefully, if I'm incorrect in my bellief, someone with more definitive knowledge will chime in.
    It was explained to me a couple of years back and is my understanding that "streaming" only applies to a video based format such as F4V, FLV and it doesn't apply to SWF. With SWF, you may specify a preload value. So when the SWF transmits from the web server to the PC, a certain percentage has to be received before play begins. But that's not streaming. It's preloading.
    For streaming to occur, the web server establishes a communication channel between the server and the destination PC. This channel is monitored to see what speed is in use. Only enough information is then transmitted to be comfortable at that speed. If the speed improves during the connection, the server serves data at a faster rate. If the connection degrades, the information transmitted is also scaled back so as to accommodate the lower speed.
    With SWF, after it has all been downloaded, a savvy user is able to poke around in their temporary internet files and save the SWF for play later. With streaming, this isn't possible because as the stream is viewed, it evaporates from memory.
    Seriously hoping others will chime in here to confirm or deny this.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • Pausing swfs and audio in a browser when the tab is out of focus

    I'm trying to code my flash file so that the html will pause all swfs AND audio when the tab is out of foucs.  I found this code on http://frontenddeveloper.net/wiki/index.php?title=JavaScript_and_VBScript_Injection_in_Act ionScript_3 and it works,but not completely. It only pauses the movie clips that are in the Flash file and not any that are exteranlly loaded with audio included.
    How can I adjust it to pause the externally loaded swfs that are loaded to a mc within my main movie clip and the audio OR what should I use in place of this code?  Someone mentioned on a different post that I needed to use a window.onblur funcition, but they didn't give details.
    import flash.display.MovieClip;
    import flash.utils.setTimeout;
    // This is a more "safe than sorry" setting, since multiple domains
    // have entry into my site. Can be removed or hardcoded if you feel
    // secure or insecure, as you see fit.
    flash.system.Security.allowDomain("*");
    // Throw any errors around to make sure somebody actually gets them.
    ExternalInterface.marshallExceptions = true;
    // This is not the most ideal way to toggle animations on and off, but
    // it's thorough, generic, and simple. Iterate all movieclips within
    // clip, shutting them down each in turn. A better, but much more tedious
    // method would be to target specific clips using dotpath notation, telling
    // each in turn to turn off or on depending on what we need.
    // BUT this is just a demo, and what we're really interested in is the
    // event-handling mechanism that actually calls this routine, and not the
    // routine itself.
    function toggleAllClips(doAnim, clip) {
    if ( clip is MovieClip) {
      if (doAnim) {
       clip.play();
      } else {
       clip.stop();
      for (var i = 0; i<clip.numChildren; i++) {
       toggleAllClips(doAnim, clip.getChildAt(i));
    function animOn(e:*=null) {
    toggleAllClips(true, this.mainMC);
    function animOff(e:*=null) {
    toggleAllClips(false, this.mainMC);
    function injectPrep(e:*=null) {
    try {
      ExternalInterface.addCallback("jsanimOn", animOn);
      ExternalInterface.addCallback("jsanimOff", animOff);
    } catch (e) {
      trace(e);
    function injectListeners(e:*=null) {
    try {
      // Object/Embed ID of this movie needs to be inserted into the
      // JavaScript before we actually wrap and send it to the browser:
      var jsfix=js.toString().replace(/xxx/g, ExternalInterface.objectID);
      ExternalInterface.call(jsfix);
    } catch (e) {
      trace(e);
    // Using timeouts ensures the movie is actually done loading before
    // these fire, helping compatibility for a few browser versions.
    setTimeout(injectPrep,0);
    setTimeout(injectListeners,100);
    JAVASCRIPTS
    JavaScript needs to be wrapped in a tag, a cdata, and a closure
    function in order to be wrapped up and sent to the browser.
    Note that an ActionScript function will replace all instances
    of "xxx" with the actual ID used for this SWF.
    We're battling some major bugs and crossbrowser idiosyncrasies
    here:
    1) In Internet Explorer the 'onblur' event is implemented
        incorrectly (as opposed to Firefox/Mozilla browsers). It is
        wrongly fired when focus is switched between HTML elements
        *inside* a window. As a result, we have to use onfocusout
        instead of onblur, and keep track of which element is active.
        If we focusout and the active element is not the previous
        active element, then we haven't actually "blurred" and dont
        want to trigger Flash.
    2) Firefox has problems interpreting both getElementById and
        document["swf"] when dealing with "twicebaked" object/embeds.
        Adobe's method of finding the swf fails to address the fact
        that document["swf"] sometimes returns an array in this
        situation rather than an object ref, and getElementById
        sometimes confuses name and id.
    3) When a window is created in Firefox, it doesn't actually have
        "focus" (event though it appears to) and therefore won't "blur"
        unless you actually click in it first, i.e if you open up a
        window, then immediately send it to the background, it never
        gets the command to halt the flash. So we have to explicitly
        focus the blasted thing to get it to work properly.
    4) Because of irregularities caused by Ajax, the way browsers shut
        down, and other factors, there's a good chance our swf won't
        be there when a blur (or focusout) event occurs. Therefore we
        need an explicit check within the event handler itself.
    5) Finally, we want to wrap everything inside a wrapper-closure
        function, to keep everything safe from being stepped on. Lucky
        us, we have to do this anyways to get everything to fit inside
        a single ExternalInterface.call event.
    var js:XML = <script><![CDATA[
    ( function() {
      var active_element; // tracker for ie fix;
      var bIsMSIE = false;
      // Modified version of Adobe's code resolves a bug in FF:
      function getSWF(movieName) {
        if (navigator.appName.indexOf("Microsoft") != -1) {
          return window[movieName];
        } else {
          // Resolves a bug in FF where an array is sometimes returned instead of a
          // single object when using a nested Object/Embed.
          if(document[movieName].length != undefined){
            return document[movieName][1];
          return document[movieName];
      // Need to check for swf each time we try this because the swf may actually be gone
      // because of ajax or a window closure event. Prevents error dialog from popping up.
      // Future release should check for this condition and then remove the calling event
      // so it doesn't keep triggering.
      function animOff(){
        if (bIsMSIE && (active_element != document.activeElement)) {
          active_element = document.activeElement;
        } else {
          var logoThang = getSWF("xxx");
          if(logoThang){logoThang.jsanimOff();}
      function animOn(){
        if (bIsMSIE && (active_element != document.activeElement)) {
          active_element = document.activeElement;
        } else {
          var logoThang = getSWF("xxx");
          if(logoThang){logoThang.jsanimOn();}
      // Add the listeners. Hear ye, here ye.
      if (typeof window.addEventListener !== "undefined") {
        // Firefox, Mozilla, et al.
        window.addEventListener("blur", animOff, false);
        window.addEventListener("focus", animOn, false);
      } else if (typeof window.attachEvent !== "undefined") {
        // Internet Explorer
        bIsMSIE = true;
        window.attachEvent("onfocus", animOn);
    // Another bug: window.onblur ALWAYS fires in IE, so
    // we have to keep track of what we're clicking using
    // another method:
    active_element = document.activeElement;
    document.attachEvent("onfocusout", animOff);
      // Necessary to trigger toggling in FF if the page hasn't actually been clicked in and the page
      // is sent to the background. Can be commented out if necessary, e.g. if you don't want the page
      // popping to the top or want focus to remain somewhere else like a form field.
      window.focus();
    ]]></script>;

    I added this code and it removes the externally loaded swfs.  I don't want that, I want them to pause and then resume when the tab is back in foucs.  Also, the main code restarts the main movie clip upon refocusing too.
    Added code:
    function toggleAllLoaders(doAnim, loader) {
    if ( loader is Loader) {
      if (doAnim) {
       loader.play();
      } else {
       loader.stop();
      for (var i = 0; i<loader.numChildren; i++) {
       toggleAllLoaders(doAnim, loader.getChildAt(i));
    I added the new function to all of the places that had the "toggleAllClips" function.

  • Need to load multiple skins with only a single .swf and config.xml

    Hello
    These are part of some instructions that were of a AS3 Mp3 Store I purcased
    Well guys the new AS3 flash cart system can have skins hot swapped in and out with out having to recompile the actionscript code.
    You can even have multiple skins on the same cart and use different ones in different places of your website.
    This is all because the flash cart system itself runs seperate from the graphical user interface that the customer visits.
    When you purchase a new cart skin, or if you edit your own custom skin, you can place the swf file for it in the "skins" directory of your flash cart installation directory. Then in the config file where you "embed" the cart on your website you include the name of the skin you'd like to use (the skin MUST be available in your skins directory).
    The other plus to using the skin system is you can keep the cart application seperate from your site. No longer do you have to have all that ugly php code and cramped swf files floating along side your website html files. No instead you create an install directory then simply embed the cart from where ever it is. The only litigation is that the cart must exist on the same server as the website you are showing it publicly on.
    So right now I have a website with the store set up and working, allowing the buyer  to listen to the tracks, add to cart and checkout after which they are given an instant download link to the purcased files.
    What I want to do now though is break up the songs into differents carts/skins within a dropdown list in my website as quoted in the instructions above, according to genre.
    So I have published 4 different skins  as
    MusicSkin 1.fla
    MusicSkin 2.fla
    MusicSkin 3.fla
    MusicSkin 4.fla
    and have placed these on my server
    The cart works by Index.html > loads the Main.swf >loads MusicSkin.fla which is called by via config.xml 
    (<?xml version="1.0"?>
    -<config><skin src="MusicSkin"/><db src="/" sandbox="false" type="sql"/></config>
    I am having trouble configuring how to call on 4 different Skins into different pages on my site if I only have ONE index.html, Main.swc and config.xml files which according to the instructions is possible!
    Hope this makes sense, I get how it works on one skin but not how it works/or to make it work with multple ones on a website.

    Is this possible...anyone!!!!!!!!!!!!!!!!
    Really hoping to getting this working soon.
    I am wondering if i have to copy the instances of the different skins into the config file above and each swf and html file loads the corresponding on in the list, or does each instance require it's own config file, which would then be a problem I think, because I could not have 4 config.xml files in the same directory which is what the Action Script is calling on.

  • I applied a template to a page with SWFs and now that page does not play the SWFs. Why?

    I applied a template to a page with SWFs and now that page does not play the SWFs (just a blank area where the SWF should be). When I detach the template it will play the flash file. This site will eventually be updated via Adobe Contribute. And I just discovered that when applying a template to a page that uses HTML datasets (Master/Detail),it no longer reads the Master/detail regions and displays a blank. Any thoughts?
    [Moved to Dreamweaver forum by moderator]

    Firstly, you shouldn't really 'apply' a template to a page, you should create a child page by going to FILE>NEW>Page from Template.  Too many things can happen when applying a template the way you are doing it. eg:; editable and non-editable regions not matching up and being asked where to place these regions and in all likelihood, you end up with 2 or more of the same region.
    When a swf file is inserted into a page, a corresponding Scripts folder is written automatically is stored in the root of the site - it is also linked to in the head of the document. What I believe is happening is that when you apply a template to the page, the Template has no idea that there is a swf file on the page and is not aware of the correct link to the Scripts folder.  If you do a test and add the swf file to the template page itself, I bet that the links to the swf and the scripts folder are correct - because DW knows the correct path to the script file.   Hence the reason the page probably works when you detach it from a template.

  • Loading an external clip(swf) and removing existing one

    Hi All,
    I am tearing my hair out; I simply want a button when
    clicked, to load an external swf. But I just can't seem to get my
    head around it. Here is my code:
    butt1_btn.addEventListener(MouseEvent.CLICK, swf1);
    function swf1(evt:MouseEvent):void
    loadSwf1.load(new URLRequest("swf1.swf") );
    butt1_btn.buttonMode = true;
    Any help with this would be much appreciated!
    Kind Regards,
    Boxing Boom

    Hi,
    Sorry for late response. I used the following code, which
    loads another swf and replaces the original swf;
    computerProtection_btn.addEventListener(MouseEvent.CLICK,
    removeMain, false, 0, true);
    var ld:Loader = new Loader();
    ld.load(new URLRequest("computerProtection.swf"))
    function removeMain(evt:MouseEvent):void {
    this.parent.addChild(ld);
    this.parent.removeChild(this);
    Now, the problem is that when I use the same code to get back
    to the original, it doesn't work. Obviously, I have changes the
    button name and the requested swf.
    I get an error stating something about the main timeline.
    Funny, how it works only once, loads a swf but won't load another
    swf file.
    I appreciate the time this issue has taken. But an answer
    would be nice!
    Kind Regards,
    Boxing Boom

  • How to call a method in a flash file (swf) from another fl;ash file (swf) and vica versa ?

    Hi, I have a Flash file (Flash1.fla). I have a  public method, method1() in a public class of the file. I have another Flash file (Flash2.fla). I have a public method, method2()  in the public class of this file. I want to call the method1() from Flash2.swf and the method2() from Flash1.swf. Please help!!

    swf-to-swf communication
    http://kb2.adobe.com/community/publishing/918/cpsid_91887.html

  • How do I enable SSL to serve swfs and non video content in FMS 4.5

    I'm running FMS 4.5 with the built in Apache server on a Windows 2003 server running SP2.  Our users are complaining that embedded videos in Chrome aren't displaying properly because the SWFs and some of the non video content are being delivered over http instead of https.  I'm having trouble finding any documentation on how to add an SSL cert to the Apache server and enabling it to serve content over 443.  I've requested my cert and am following my CA's docs on adding the cert to Apache, but I'm not seeing the VirtualDirectory referenced in the httpd.conf file.  I'm relatively new to Apache configuration, so please include as much detail as possible in your answer.  Thanks in advance for any assistance.

    Look for httpd-hls-secure.conf file in AMS(FMS) Apache Bundle. httpd.conf includes this file. This enables SSL for key delivery for HLS. You may like to do the same for other cases.
    Other than this, you have to enable the LoadModule mod_ssl in httpd.conf.

  • Exporting Flash(SWF) and Getting No Audio

    Hello All,
    I'm new to these boards and have only posted once previously.
    I'm recording lectures with Captivate 3 for University
    professors speaking in front of a class using power point. I have
    one Captivate project with about 570 slides. When I publish this
    project to SWF and play it in html and/or the skin player there is
    no audio.
    There is audio when I play each slide or when I preview the
    project but no audio when I publish it.
    I have audio selected as MP3 96 kbps, 44.10 KHz in the
    preferences of Publish but there's just nothing.
    Any ideas of what could be going wrong?
    Also, I'm not sure if I should post this in the Recording
    category but during some of these long recordings, part of the
    lectures end up recording blank white slides. There is audio as the
    professor is speaking and surely there's an image on the computer
    with power point but Captivate is recording pure white. Troubling.
    THANKS!

    I have the same problem here. I only have 47 slides, and
    about 12 have audio. The total size of the .cp file is 15 mb. I
    only hear audio when I am looking at the slides and press F3. None
    of the slides are muted. I have made sure that the "Include Audio"
    checkbox is checked. I do not have audio in preview mode or in the
    published swf or exe file. I am at a loss here.

  • Published swf and html file viewing issues.

    Greetings,
    I design web banners and used to, with Flash 8, sedn my
    clients the published *.html and *.swf files to download onto their
    desktops so they could view the banner. With Flash CS3 this doesn't
    seem to be working the same way. It keeps giving them the window
    that says something about "ac_runactivescript.js". How come this
    never did this with Flash 8?

    click file/publish settings/formats, make sure the swf and html boxes are selected, and click the use default names button.  then click file/publish.  are the files in your directory with your fla?
    if not, create a new directory (that has no subdirectories), save your fla to that new directory using a new name (ie, click file/save as).  then click file/publish.  check the new directory for your 3 files.

  • How to publish for both swf and html5

    I have a course that I need to publish for swf and html5, and have the system automatically detect which browser the user has.  Can someone help me figure out how to do this?  I am not a very technical user.  I am using Captivate 6.  Thanks
    Danielle

    You just have to check both SWF and HTML when publishing. Load up everything to a server. Have a look at this video, some more in the same channel:
    http://www.youtube.com/watch?v=loDtOdg3DSk&feature=g-u
    Lilybiri

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

  • Firefox should display .swf and .flv files without Adobe. You can do it can't you?

    If the program, 'Media Player Classic' can play .swf and .flv files, the surely Firefox programmers can do for those what was done for .pdf files. PLEASE!

    hello, mozilla is indeed working on it, but this is not an easy task...
    https://blog.mozilla.org/research/2012/11/12/introducing-the-shumway-open-swf-runtime-project/

  • How to create .swf and .lib font files?

    Hello All!
    I'm working with a flash template I bought but I'd like to change the fonts.
    According to the documentation:
    To add a new font new .swf files should be transferred to  the “fonts” folder, and necessary changes should be done in fontsLibrary.xml file as well, using the same format.
    In the "fonts" folder I have both .swf and .lib files.
    I've managed to create what I believe to be a healthy .swf font file following the steps in here: http://www.communitymx.com/content/article.cfm?cid=67A61
    Still, after editing the XML accordingly, it won't work, and I believe it's because I don't hava the .lib file.
    Here's what the XML looks like, pretty simple actually:
    <?xml version="1.0" encoding="utf-8"?>
    <fontsLibrary>
    <fonts>
      <font name="standard 07_57" url="standard07_57.swf"/>
      <font name="standard 07_58" url="standard07_58.swf"/>
      <font name="Marketing Script" url="MarketingScript.swf"/>
      <font name="extravaganza" url="extravaganza.swf"/>
    </fonts>
    </fontsLibrary>
    Anyone has any idea how I can progress on this?
    What other info can I give to help you help me?
    Many thanks!!!

    Hi I found the SAP note:897289, which I got answer for my post.
    Regards,
    Murthy

  • Load swf and get a SimpleButton in it

    I load a swf and want to get a button in the swf. But the button I get is NULL. I am sure the button's name is right and exists. Could somebody help me to solve this problem?
    package
    import flash.display.MovieClip;
    import flash.net.URLRequest;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.events.ProgressEvent;
    import flash.display.SimpleButton;
    import flash.display.LoaderInfo;
    public class MyClass1 extends MovieClip
      public function MyClass1()
       super();
       var swfLoader:Loader = new Loader();
       addChild(swfLoader);
       var bgURL:URLRequest = new URLRequest("secondFlash.swf");
       swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadProdComplete);
       swfLoader.load(bgURL);
       var currentSWF:MovieClip = new MovieClip();
       function loadProdComplete(e:Event):void {
         var loaderInfo:LoaderInfo = e.target as LoaderInfo;
          var mv:MovieClip= MovieClip(loaderInfo.content);
        var btn1 = mv.getChildByName("btn1") as SimpleButton;
        trace("mv"+mv);
        trace("btn1="+btn1);

    The code you show works fine for me.  How is btn1 created/named in the second swf file?  If you create it dynamically and do not assign a name property to it, it does not have the name you think it does.

Maybe you are looking for

  • Loading freight cost to inventory at the time of GR

    Dear All When i am not using LE then i do have process where i will be having a condition type of freight at STO type , I shall do delivery(VL10D) against that PO number, PGI and at the time of GR at receiving plant that freight will get uploaded to

  • Error in data load

    hi all, iam using ESSCMD Scripting IMPORT statement to load the data into my database i got an error saying localhost/demo/demo/essbase/Error(1090010) Error in File [datafile.txt] Which is a [Unable To Determine] Spreadsheet if any one faced it prior

  • Itunes Controls on Status Bar

    I'd like to have my itunes controls on my status bar. This way I don't have it on top or below other windows. Is there a way to do so? Thanks in advance for the help.

  • MY FEW QUESTIONS

    Hello All, I am on basis 620. I am developing some reports (ex : purchasing Analysis , sales flow etc) mostly generic reports. Can i use BSP for such requirements or what is the best fit for BSP , Why do we need it in first place?. What should i do t

  • Workflow to color Subversion checkouts - encountering a few problems!

    I've been trying to write a simple workflow that will find all my local Subversion checkout folders (easy - each one has the directory ".svn" in it) and "label" them with a particular color. However, I've encountered two problems: 1. The regular Find