SWF in Powerepoint

This is perhaps just a discussion point, but when I creat a swf from a timeline in After Effects (easy enough to do: File > Export > Adobe Flash Player) and I insert it into PowerPoint, it will not play. But when I render an avi file, it won't open in Flash until I convert it to a flv or fv4. I import the file, then publish it as a swf, if plays just fine in PowerPoint. Somehow this seems uh, pointless to have to go through all these processes. Even if I just made the AE compositon a dynamic link in Premiere Pro, I'd still have to open Premiere Pro and output the file as a flv, import it into Flash, then publish. This is a suboptimal workflow to get something to play in PowerPoint, IMHO. What is the difference between a swf created in PowerPoint and a swf created in Flash?
Thanks!

thanks octav, but since I need the answer yesterday I kept on
looking, what I need was:
loadMovieNum ("name.swf", *); // at the " * " u put the layer
number.
but thanks.

Similar Messages

  • How to edit a Animated Gif file and convert to SWF

    I am using the creative cloud with fireworks. I chose the free trial with buying in mind if I saw it work properly. I simply want to upload an animated GIF file and then download it as a SWF file. I saw someone on youtube do this and it's not that if I get on the correct page I would not know how to do that but I just cannot find how to get the GIF into the software to edit. It has just simply put them in the creative cloud folder which can open them on IE> How do i make it available to edit and convert to SWF please? Thanks in advance.

    You will likely get better program help in a program forum
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • How can I pubish SWF interactive magazine to flash based website? It's not working!

    I hope someone can help me launch my first interactive magazine (SWF) to our website with ID 5. Okay, my hard copy mag came out great so then I started on the interactive edition. Everything was going swell with adding 3 short videos ( FLV  ) and creating 3 slide shows. When I previewed it by exporting to SWF I could preview it in my browser fine. Page curls, fade in words (although the “hide until animated” options only works in two out of about 7 instances. (same settings) file:///C:/Users/lauralaptop/Documents/NEW%20PUBLICATION%20QUARTERLY%20JOURNAL%202011%20se pt%202/LIFE%20apr-may-june%202011%201st%20issue%20INTERACTIVE%20TRYOUT%20Aug%2031%204pm.ht ml
    I then followed instructions from another Adobe exercise, exported it to Flash, went to Publish Settings, but of course when I pressed “publish” I didn’t get the same result as the teacher…I got an error message about text. I searched a forum with the same message I got and saw that making sure my text setting was set for Classic, solved someone else’s problem. So I did and was able to “publish”. But now, when I open either the SWF or HTML file, it’ just rapidly repeating the 12 pages in my file in a loop!
    file:///C:/Users/lauralaptop/Desktop/LIFE%20apr-may-june%202011%201st%20issue%20INTERACTIV E%20TRYOUT%20Aug%2031%204pm.html
    I have spent most of the summer self teaching myself InDesign CS5 (not easy!) and am excited to be able to put out an interactive SWF file that can be opened in a Flash player through our Flash based website. I feel like I’m just inches away for launch but now I’m getting frustrated. Isn’t this going to be possible?
    Also, when I publish it in Flash, it creates a SWF file AND an HTML file. But on our website, I have only one option to make a link to a document OR an outside link to open a file. How does that work?
    Many thanks for whoever can help me out here. This was supposed to be a spring issue. Had to change it to summer and now I guess it’s a fall launch!

    Thank you for your quick reply, Rob. Well, i can't open the link you gave me to mysite (got a 404 error), could you resend it?
    Originally, I exported the file to SWF (player) and just tried to link that file from our flash based website. It opens fine, page curls fine, slide shows fine, but when you click on the photos with videos, page 5 (father and baby) and two others, the image disappears and only a white comes up to fill that area.
    http://scpres.org/#/media-sermons-online/our-publications. Could you go to this link on our website to see what I mean? Go to the NEWSBREAK TRANSFORMS and click on the Life, Stories of Transformation.
    Rob, here is where i have very limited knowledge: As I said we use a flash based (read very user friendly) web hosting company. When I am in the back end to upload the swf file, I have only one option  - "attach a video, attach a document, attach a link" so how would I upload a "folder" with more than one item to the server?
    I thought it would be considered a video since the SWF file says SWF movie, but when I when i try to upload as a video, it doesn't come up as importable. (am i sounding really stupid?) Maybe I should admit that yes, I'm an ID5 newbie AND yes,  I'm no spring chicken but I have been working in CS2,3,4 for several years and now 5 and am quite proficient in the create aspect of Adobe products. It's just now the technical part about how to actually get my  in work published to the site.There isn't anyone else in my company able to help me so I have to reach out to this forum!
    I love ID and this is just my first effort but I'm looking forward to creating many more interactive magazines for my company.
    Thanks for any help.

  • AS3: How to create one base class for classes loaded in multiple swfs?

    Our application have 3 different modules and all use
    fscommand and ExternalInterface alot. Now the problem is we are
    combining all those modules, but they all will reside in different
    swfs. Is there any way that they extend to same base class and its
    static members have only one instance accessible by all
    three?

    Hi,
    You can achieve this via Workshop 9.2 by using the exported Ant script for your project as follows:
    -Ensure that all Jars needed to resolve com.bea.p13n.property.EntityPropertyManager (this particular class is found in weblogic92/common/p13n/lib/p13n_ejb.jar) and all referenced classes are added to the Java build path for your WebLogic EJB project (Properties->Java Build Path->Libraries)
    -Export the "Workshop Ant Script" for your WebLogic EJB project (File->Export->Workshop Ant Script); this will generate a "build.xml" Ant script under your project root directory.
    -Edit this default build script as follows: in the call to the "ejbgen" task within the "build" target, add the attribute: propertyFile="ejbgen.properties"
    -Create a file "ejbgen.properties" under the root of your WebLogic EJB project and add the following entry:
    YourSessionBeanClassName.remote.baseClass=com.bea.p13n.property.EntityPropertyManager
    -Add a "<path refid="java.classpath"/>" within the "<classpath>" for the "java" task element that calls "weblogic.ejbc" (this will ensure that the p13n classes are resolved by EJBC)
    Follow the instructions for executing the Ant build script found here: http://edocs.bea.com/workshop/docs92/ws_platform/ideuserguide/conUseCustomAntBuild.html
    For more information on the EJBGen property file support, see: http://e-docs.bea.com/wls/docs92/ejb/EJBGen_reference.html

  • XML not loading in SWF

    Please, please someone help. I have been at this for days and can't see the woods for the trees any more.
    I have a swf embedded in a htm file. I pass FlashVars to it with a view to setting colours for symbols already in the swf.
    No matter what I do I simply cannot get the xml loaded. Can someone help and have a look at the following code and tell me where I am going wrong.
    I am using Flash CS4/AS 3. The default class is com.main and all .AS files are located in a folder 'com' within the root. All fla. .swf and  .xml files are located in the root.
    TIA
    Default.htm
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
    </head>
    <body>
    <p>Hello World!</p>
        <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="550" HEIGHT="400" id="8 - WHN Sixth Floor.swf" ALIGN="">
        <param name="allowScriptAccess" value="sameDomain" />
        <PARAM NAME=movie VALUE="8 - WHN Sixth Floor.swf">
        <PARAM NAME=quality VALUE=high>
        <PARAM NAME=bgcolor VALUE=#FFFFFF>
        <PARAM NAME="FlashVars" value="xmlfile=myxml2.xml" />
        <EMBED FlashVars="xmlfile=myxml2.xml" width="550" height="400" src="8 - WHN Sixth Floor.swf" allowScriptAccess="sameDomain" quality=high bgcolor=#FFFFFF NAME="8 - WHN Sixth Floor.swf" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
        </OBJECT>   
    </body>
    </html>
    Main.as
    package com
    import com.*;
    import flash.display.MovieClip;
    import flash.display.SimpleButton;
    import flash.text.TextField;
    import flash.display.Stage;
    import flash.display.LoaderInfo;
    import flash.events.*;
    public class main extends MovieClip
      public var gx:getXML;
      public var xmlFileName:Object;
      public function Main()
       //addEventListener( Event.ADDED_TO_STAGE, init );
       init();
      private function init():void 
       //removeEventListener( Event.ADDED_TO_STAGE, init )
       //var xmlFileName:Object = stage.loaderInfo.parameters;
       var gx:getXML = new getXML("myxml2.xml");
       addChild(gx);
    getXML.as
    package com
      // Static Class
      import com.*;
      import flash.display.SimpleButton;
      import flash.xml.XMLDocument;
      import flash.xml.XMLNode;
      import flash.xml.XMLNodeType;
      import flash.events.*;
      import flash.net.URLLoader;
      import flash.net.URLRequest;
      import flash.net.URLVariables;
      import flash.net.URLRequestMethod;
      import flash.geom.ColorTransform;
      import flash.net.navigateToURL;
      import flash.system.fscommand;
      public class getXML extends SimpleButton
       public var xmlData:XML;
        public function getXML(xmlurl:String):void
         var loader:URLLoader = new URLLoader();
         loader.addEventListener(Event.COMPLETE, LoadXML);
           var urlReq:URLRequest = new URLRequest(xmlurl);
            //urlReq.method = URLRequestMethod.POST;  
            //var variables:URLVariables = new URLVariables();
            //urlReq.data = variables;
            //try {  
                      loader.load(urlReq);
                  //} catch (error:Error) {  
                      //trace ("Unable to load requested document.");  
        public function LoadXML(e:Event):void
         xmlData = new XML(e.target.data);
         //xmlData = new XML("myxml2.xml");
         var rslt:XMLDocument = new XMLDocument();
         rslt.ignoreWhite = true;
         rslt.parseXML(xmlData.toXMLString());
         //trace(result.firstChild.childNodes.length);
         for (var i=0; i<rslt.firstChild.childNodes.length; i++)
          staticClass.head_Array.push(xmlData.data[i].head);
          staticClass.color_code_Array.push(xmlData.data[i].colorcode);
          staticClass.url_Array.push(xmlData.data[i].url);
          staticClass.note_Array.push(xmlData.data[i].mc_name + "##" + xmlData.data[i].note);
          staticClass.mc_Array.push(xmlData.data[i].mc_name);
         var k = staticClass.mc_Array.length  
         var j = 0;
         for each (var val:String in staticClass.mc_Array)
          var btn:SimpleButton = SimpleButton(this.parent.getChildByName(val));
          if (btn != null)
           var rojo:ColorTransform = new ColorTransform();
           rojo.color = uint (staticClass.color_code_Array[j]);    
           btn.transform.colorTransform = rojo;
           btn.addEventListener(MouseEvent.CLICK, onClick);
           btn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
           btn.addEventListener(MouseEvent.MOUSE_OUT, onOut);
           * Set mouse over separate colour
           btn.alpha = 3;
          j++;
         function onClick(e:MouseEvent )
          trace(e.currentTarget.name + "----" + staticClass.url_Array[e.currentTarget.name.substring(7, e.currentTarget.name.length)-1]);
          if(staticClass.url_Array[0] != "None")
           navigateToURL(new URLRequest(staticClass.url_Array[0] + "?Room=" + e.currentTarget.name), "_self");
          else
           fscommand("RoomType", e.currentTarget.name);
         function onOut(e:MouseEvent )
          e.currentTarget.parent.getChildByName("HoverText").text = "";
          e.currentTarget.alpha = 3;
         function onOver(e:MouseEvent )
          e.currentTarget.alpha = 1.5;
          for each (var val:String in staticClass.note_Array)
           if(e.currentTarget.name == val.substring(0, val.indexOf("##", 0)))
            e.currentTarget.parent.getChildByName("HoverText").text = val.substring(val.indexOf("##", 0) + 2, val.length);
            //e.currentTarget.parent.getChildByName("HoverText").text = "HELP ME";
    staticClass.as
    package com
    import flash.display.MovieClip;
    public class staticClass
       public static var head_Array:Array = new Array();
       public static var color_code_Array:Array = new Array();
       public static var url_Array:Array = new Array();
       public static var note_Array:Array = new Array();
       public static var mc_Array:Array = new Array();
       public static var url_Array1 :Array = new Array();

    i don't think you're using Main or you would see error messages.
    what's the following trace() reveal:
    oh, i can see an error in Main, too:
    Main.as
    package com
    import com.*;
    import flash.display.MovieClip;
    import flash.display.SimpleButton;
    import flash.text.TextField;
    import flash.display.Stage;
    import flash.display.LoaderInfo;
    import flash.events.*;
    public class main extends MovieClip   // main should be Main
      public var gx:getXML;
      public var xmlFileName:Object;
      public function Main()
    trace(this)
       //addEventListener( Event.ADDED_TO_STAGE, init );
       init();
      private function init():void 
       //removeEventListener( Event.ADDED_TO_STAGE, init )
       //var xmlFileName:Object = stage.loaderInfo.parameters;
       var gx:getXML = new getXML("myxml2.xml");
       addChild(gx);

  • Unable to play audio stream in a swf file

    Making a swf file that reacts like a button: it plays sound
    when you pass over it. Or should play. When the button keyframes
    sound options are set to "start" or "event", there is no problem,
    it works well. But it doesn't work if I set to "stream". My
    original file is an mp3. Is there something special avout it? Help
    tutorials didn't help me so far...

    With "stream" you have to make sure there are enough frames
    in the movie to play the whole sound file. Try adding some frames
    and see if it plays then.

  • Detail Region as TOC for captivate (.swf) files

    Hi All,
    Not sure how to explain this, but i will do my best. I didnt like the TOC/Aggregator for CP 5. Thinking maybe to use Spry data using the Detail Region sample. I thought it would be simple to just combine the Detail Region code with the publsihed .swf and .htm code. But not sure what im doing wrong or if this is even possible to do. I was experimenting just using the exact same code and xml for Detail Region sample and modifying it a bit. See below...
    Appreciate the Help! Thank you.
    XML:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <products>
         <product>
              <name>Adobe Photoshop CS2</name>
              <category>Digital Imaging</category>
              <boximage>images/photoshop.gif</boximage>
              <bkgimage>M_1.swf</bkgimage>
              <descheader>The professional standard in desktop digital imaging</descheader>
              <desc>Adobe&#174; Photoshop&#174; CS2 software, the professional image-editing standard and leader of the Photoshop digital imaging line, delivers more of what you crave. Groundbreaking creative tools help you achieve extraordinary results. Unprecedented adaptability lets you custom-fit Photoshop to the way you work. And with more efficient editing, processing, and file handling, there's no slowing you down.</desc>
              <features></features>
         </product>
         <product>
              <name>Adobe Illustrator CS2</name>
              <category>Print Publishing</category>
              <boximage>images/illustrator.gif</boximage>
              <bkgimage>M_2.swf</bkgimage>
              <descheader>Vector graphics reinvented</descheader>
              <desc>Adobe&#174; Illustrator&#174; CS2 software gives you new creative freedom that lets you realize your ideas quickly and powerfully. Instantly convert bitmaps to vector artwork and paint more intuitively. Save time with intelligent palettes and optimized workspaces. Plus, tight integration with other software allows you to produce extraordinary graphics for print, video, the web, and mobile devices.</desc>
              <features></features>
         </product>
         <product>
              <name>Adobe InDesign CS2</name>
              <category>Print Publishing</category>
              <boximage>images/indesign.gif</boximage>
              <bkgimage>M_3.swf</bkgimage>
              <descheader>A new standard in professional layout and design</descheader>
              <desc>Join the growing ranks of creative professionals discovering new levels of creative freedom and productivity using Adobe&#174; InDesign&#174; CS2 software. Tightly integrated with the Adobe applications you use most, InDesign CS2 delivers faster production workflows and a more fluid creative environment for designing professional layouts with sophisticated graphics and typography.</desc>
              <features></features>
         </product>
         <product>
              <name>Adobe GoLive CS2</name>
              <category>Web Publishing</category>
              <boximage>images/golive.gif</boximage>
              <bkgimage>M_4_1.swf</bkgimage>
              <descheader>Professional, standards-based Web and mobile authoring</descheader>
              <desc>Adobe&#174; GoLive&#174; CS2 software lets you unlock the power of CSS with intuitive visual tools such as prebuilt CSS objects that you can drag and drop to build sophisticated sites. Jump-start your designs by easily converting Adobe InDesign&#174; layouts into Web pages. Or, design Web and mobile content in an advanced, standards-based coding environment.</desc>
              <features></features>
         </product>
         <product>
              <name>Adobe Dreamweaver 8</name>
              <category>Web Publishing</category>
              <boximage>images/dreamweaver.gif</boximage>
              <bkgimage>M_5_1.swf</bkgimage>
              <descheader>Dreamweaver 8 is the industry-leading web development tool, enabling users to efficiently design, develop and maintain standards-based websites and applications.</descheader>
              <desc>With Dreamweaver 8, web developers go from start to finish, creating and maintaining basic websites to advanced applications that support best practices and the latest technologies.</desc>
              <features></features>
         </product>
         <product>
              <name>Adobe Flash 8 Professional</name>
              <category>Web Publishing</category>
              <boximage>images/flash_pro.gif</boximage>
              <bkgimage>M_6_1.swf</bkgimage>
              <descheader>Introducing Macromedia's biggest Flash release to date.</descheader>
              <desc>Flash&#174; Professional 8 is the industry's most advanced authoring environment for creating interactive websites, digital experiences and mobile content. With Flash Professional 8, creative professionals design and author interactive content rich with video, graphics, and animation for truly unique, engaging websites, presentations or mobile content.</desc>
              <features></features>
         </product>
    </products>
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Detail Region and Effects Sample</title>
    <link href="files/samples.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .product {
         cursor: pointer;
    .hover {
         background-color: #FFFFCC;
    .selected {
         background-color: #CCCCCC;
    #description {
         opacity: 0;
         filter: alpha(opacity=0);
         background-color: white;
    </style>
    <script src="files/xpath.js" type="text/javascript"></script>
    <script src="files/SpryData.js" type="text/javascript"></script>
    <script src="files/SpryEffects.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("files/products.xml", "products/product");
    var gEffectInProgress = null;
    var gPendingSetRowIDRequest = -1;
    function fadeInContent(notificationType, notifier, data)
         if (notificationType != "onPostUpdate")
              return;
         var effect = new Spry.Effect.Fade('description', { to: 100, from: 0, duration: 500, finish: function() {
              // The region is now showing. Process any pending row change request.
              gEffectInProgress = null;
              if (gPendingSetRowIDRequest >= 0)
                   var id = gPendingSetRowIDRequest;
                   gPendingSetRowIDRequest = -1;
                   fadeOutContentThenSetRow(id);
         effect.start();
    Spry.Data.Region.addObserver('description', fadeInContent);
    function fadeOutContentThenSetRow(rowID)
         if (gEffectInProgress)
              gPendingSetRowIDRequest = rowID;
              return;
         if (rowID == ds1.getCurrentRowID())
              return;
         gEffectInProgress = new Spry.Effect.Fade('description', { to: 0, from: 100, duration: 500, finish: function() {
              ds1.setCurrentRow(rowID);
         gEffectInProgress.start();
    //-->
    </script>
    <script src="files/standard.js" type="text/javascript"></script>
    </head>
    <body>
    <h3>Detail Region and Effects Sample</h3>
    <hr />
    <table width="100%" border="0">
         <tr>
              <td width="21%">
    <ul spry:region="ds1" spry:repeatchildren="ds1">
                        <li class="product" onclick="fadeOutContentThenSetRow('{ds_RowID}');" spry:select="selected" spry:hover="hover">{name}</li>
                </ul>
              </td>
           <td width="79%">
       <div id="description" spry:detailregion=" ds1">
      <div id="CaptivateContent">
       </div>
       <script type="text/javascript">
          var so = new SWFObject("{bkgimage}", "Captivate", "100%", "100%", "8", "#CCCCCC");
             so.addParam("quality", "high");
             so.addParam("name", "Captivate");
             so.addParam("id", "Captivate");
             so.addParam("wmode", "opaque");
             so.addParam("bgcolor","#F1F4F5");
             so.addParam("menu", "false");
             so.addParam("allowScriptAccess", "always");
             so.addVariable("variable1", "value1");
             so.setAttribute("redirectUrl", "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
             so.write("CaptivateContent");
       </script>
            <script type="text/javascript">
          document.getElementById('Captivate').focus();
          document.Captivate.focus();
       </script>    
          </div>
          </td>
      </tr>
    </table>
    </body>
    </html>
    Message was edited by: drodax

    Hi,
    I think you will need a third party convertor - a quick
    google sent me to this one
    http://www.winavi.com/swf-to-avi.htm
    which is free.

  • How to pause stage/swf with audio when a new tab is opened/ out of focus in browser

    I have created a container in Flash Professional CS5 for my project’s CBT.  I’ve been able to script many of the features we require using AS3, but there are a couple of things I’m still trying to work out.
    I would like the swf presently playing in one tab to pause and go silent when another swf is opened in a new tab (the sound is inside this externally loaded swf which is loaded inside a movie clip from buttons nested a movie clip down).  I’ve tried :
    var originalFrameRate:uint = stage.frameRate;
    var standbyFrameRate:uint = 0;
    addEventListener(Event.ACTIVATE, onActivate);
    addEventListener(Event.DEACTIVATE, onDeactivate);
    function onActivate(e:Event):void
           stage.frameRate = originalFrameRate;
           trace("in focus");
    function onDeactivate(e:Event):void
           stage.frameRate = standbyFrameRate;
           SoundMixer.stopAll();
           trace("out of focus");
    And
          I’ve looked into the HTML tag “has Priority”
    and coded buttons to:
    function fl_ClickToGoToWebPage(event:MouseEvent):void
           navigateToURL(new URLRequest("http://www.ansaldo-sts.com/AnsaldoSTS/EN/index.sdo"), "_blank");
           MovieClip(this.stage).stop();
    With variations of:
    MovieClip(this.parent.parent)stop();
    MovieClip(this.parent.parent.parent.parent)stop(); because the button is 3 movie clips deep.
    MovieClip(this.root)stop();      MovieClip(root)stop();MovieClip(this.currentTarget.root)stop();
    Could someone please provide me with the code?
    This function is present when I publish the CBT with Captivate, so obviously there must be code available. You can set the Captivate button to open url in new window and pause movie.
    Is there something I can add to the html file that is similar to the “has Priority” for mobile devices or is there javascript that can be added to the flash itself?

    You would send a command to Flash from JavaScript when window.onblur event occurs.

  • What is or isn't possible on iOS?  (Not having Loader, loadBytes(), external swfs, etc)

    My basic question is:  "What are the classes which we should not use for iOS using the packager."
    I have been trying for a few days trying to get a simple Flash app to run on the iPad.  A very simple app (with sound!) with just 2 classes works fine (Performance is a whole other issue.  We will get to that).  But if I try anything else, all I get is a white/black screen on the iPad.  So it would be really nice to know what classes, functions, etc we CANNOT use for the Packager.
    I have fairly simple app (not as simple as 2 classes) which loads some art assets via URLRequest/Loader, puts them on the stage.  Fairly common standard practice in AS3.
    I've read about not able to load an external file using the Packager.  So to fix the situation of loading assets, I have looked into the [embed] tag, which seems to work.  I hope the blogger doesn't mind, but this page is an excellent source on what works and doesn't work with the [embed] tag in it's various flavors:  http://www.richardleggett.co.uk/blog/index.php/2010/03/08/flash_builder_and_flash_pro_asse t_workflows.  For example, AS3 in a swf is stripped out from an external swf using [embed].
    The best way to load an external swf file for iOS seems to be using [embed] with "application/octet-stream" and load the swf through ByteArray (Option #4 in the link above).  This works great on the PC.  HOWEVER, on iPad, it fails.  The [embed] tag works on the iPad with the other ways, so my guess is that loadBytes() does not work.  Is this true Adobe/Flash guys?  Can you confirm this?
    My initial question is "why is this not allowed on iOS?".  If it is because of the fact that it uses a Loader, can it be changed so it's not using a Loader to construct a MovieClip?  I have a ByteArray with the raw swf/MovieClip data.  Why can't I construct a MovieClip from it without going through Loader?
    This loadBytes() failure seems to be the only thing preventing me from using the normal pipeline of Flash development in loading external assets.  If there are other ways people have found, please share!
    Now on to performance.  Adobe, can you post some examples/samples of code which runs at decent performance?  Like a "tech demo" of what is possible using the Packager running on iPad/iPhone.  That would be extremely helpful for everyone.  I have done a lot of the optimizing suggestions on various sites and pages ( and by Adobe http://www.adobe.com/devnet/flash/articles/optimize_content_ios.html), but I am not seeing the 30 fps performance that is MORE than possible on iPhone/iPad.  Displaying and moving around Bitmaps (I don't use any vector graphics) should be blazing fast.  Quake runs on iPad without any problems and that code is 10 years old.  Moore's law dictates that drawing Bitmaps using CPU should be faster than a 3D engine written 10 years ago...  I am trying out the new iOS 4.2 which is supposed to be "significantly" better, but I am still stuck on loadBytes().
    So at this point, I am blocked on loadBytes() and my performance for a simple app which draws a few Bitmaps and MovieClips is terrible.  I am hopeful some people out there have figured out some solution (there are lots of clever people out there) and I will stumble on to something.  But being forced to go native Objective-C seems to be my only option at this point.
    In summary, here are the questions I would like to ask the Adobe/Flash group for some more help/information/advise:
    - Why is Loader not allowed on iOS?  Is it a technical limitation of the hardware/os/Flash?  Will it never be supported?  What is the future of this class on iOS?
    - Why is loadBytes() not allowed on iOS?  I have the raw embedded data in memory.  I don't need to make a remote call so security should not be an issue.  Can I create a MovieClip without using Loader?
    - Why is AS3 stripped from the timeline when a Symbol is retrieved using [embed]?  Maybe this is the same reason loadBytes() fails, but if I could use [embed] and get a copy of the Symbol, that is what I need.  (There are issues with the mx.core.MovieClipLoaderAsset/Asset, but it is better than being blocked by loadBytes())
    - What are some apps you guys have written that we can use to compare PC vs iOS?  Again, a "tech demo" or sample code of what you as experts in Packager for iOS have done which runs at decent framerate (30+fps) would be of tremendous help.  If the Adobe/Flash group hasn't gotten the current Packager for iOS to handle more than 50+ 2D Bitmaps on screen running at 30+fps, that would be good to know.  Please let us know what the experts and owners of your software are capable of getting the most throughput using the Packager.  I'd hate to sound a bit fed up/angry, but I think you are wasting a lot of people's time and energy with a piece of software that, to me, seems like it was a bit early to release.  Flash can do some great things.  If it can do it on iOS, even better.  But PROVE it to us that it's possible, before having your customers run into barriers imposed on us by trial and error.
    Thanks.

    I have hardly ever seen a post here from someone at Adobe, so you may need to be patient.
    Read this article, and get its associated demo files, to see some good performing tech demos:
    http://www.adobe.com/devnet/flash/articles/optimize_content_ios.html
    Back to your main point, loaders are working, what isn't working for you is accessing of things in the library of a successfully loaded swf, that have been set to Export for ActionScript. That means that the swf you have loaded has an ActionScript Class, to represent the library symbol. iOS Flash apps are native ARM code, and don't include the virtual machines that a browser plugin has, and so it's not able to interpret ActionScript. That may be why it would fail.
    Now, I can think of at least a couple of reasons why you might want to have external swfs with elements that you want to reuse in the main swf. One would be if you're intending to make a lot of them, like say if you wanted to have an Asteroids game and the ability to use artwork from a set of different swfs. Another reason might be if you want to skin your interface, by taking specific elements from the loaded swf and using them in the main swf. That way you could have artists preparing those swfs for you, and you just include them in your package, and load the one you want.
    There is a way to do either of those things. The second one can be done by having the item as a named symbol on the stage of the loaded swf. With a to-be-loaded swf named "inner.swf", that has a movieclip on its stage named "mc1", this script in the main swf would load that external swf and use its symbol on the main swf's stage, without having to make the inner swf's symbol use ActionScript:
    var req:URLRequest = new URLRequest("inner.swf");
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded);
    ldr.load(req);
    function loaded(e:Event) {
    var mc:MovieClip = e.target.content as MovieClip;
    var innermc:* = mc.mc1;
    innermc.x = 50;
    innermc.y = 50;
    addChild(innermc);
    For the other case, you can take the item off the stage of the loaded swf and draw it into a bitmapdata, and then make as many bitmaps from that as you like. Here's the above example, only it adds the original movieclip to the main swf stage, and also creates a bitmap that looks the same:
    var req:URLRequest = new URLRequest("inner.swf");
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded);
    ldr.load(req);
    function loaded(e:Event) {
    var mc:MovieClip = e.target.content as MovieClip;
    var innermc:* = mc.mc1;
    innermc.x = 50;
    innermc.y = 50;
    addChild(innermc);
    var bmd:BitmapData = new BitmapData(innermc.width,innermc.height);
    bmd.draw(innermc);
    var bm:Bitmap = new Bitmap(bmd);
    bm.x = 150;
    bm.y = 150;
    addChild(bm);
    So, the thing to learn is that a native ARM code application does not have an ActionScript interpreter in it, and if you need to do something that normally requires interpreting ActionScript, find another way to do it.

  • Publishing .index Vs .swf  How to make my file look like the .swf Question

    Hi, I currenly have a site published where the domain is reading
    www.mysite.com/index.html  (example)
    When I view this site the image is not centered and when I expand it in different browers it does not look good.
    When I view the site by looking at it through the exact location of where I have the flash, for example www.mysite.com/index.swf  It's exactly how I want it to look.
    Is there a code I can put into the html where I can have the same look as the .swf but view it with the .index.html
    For example when I am testing the .swf extension and change the size of the browers or expand it, the flash movie is always centered and looks great in every brower.
    I was thinking of changing the domains link to the .swf file to solve the issue, but is by having the .html extension provide greater serach information.   What is it nessary?

    You seem to be confusing the .swf file with the Web page that the .swf file goes on. For Internet delivery you want the index.html web page.
    You can "Publish" the page directly from Flash. Under the "File" menu, look for Publish Settings and review ALL the options before "Publishing" the swf.
    If you don't understand them, Google for that specific option.
    Also review "Flash scaling"
    Here are examples of different scaling parameters available in the Publish settings. You can also add these parameters directly in the html (<param name="scale" value="noscale"). All the examples replace the actual Flash dimensions with 100% for both width and height (width="100%" height="100%"). These examples use the old <object> and <embed> to illustrate the different ways to scale Flash. Once you understand how it works I’d recommend that you use swfobject to place the Flash in your final project.
    View the source code for each page to see the full code.
    http://www.cidigitalmedia.com/tutorials/scale/exact_fit.html
    "exactFit" scales the file to fit exactly within the confines of the screen, irregardless if the movie becomes consequently distorted. The original aspect ratio is not maintained. So round things are not round and squares are not square.
    http://www.cidigitalmedia.com/tutorials/scale/noScale.html
    "noScale" is the default setting, and causes the movie to be displayed at the originally designed dimensions.
    http://www.cidigitalmedia.com/tutorials/scale/no_border.html
    "noBorder" causes the movie to be scaled to what ever dimensions are needed to have no border surrounding the movie within the player, which consequently could result in some of the movie being cut off from view. In other words, the movie will maintain the original aspect ratio and will fill the screen completely. But if the movie has to be streched wider to fill both sides of the screen, it will also stretch taller, but then some of the top and the bottom of the movie may be cut off from view.
    http://www.cidigitalmedia.com/tutorials/scale/show_all.html
    "showAll" scales the movie to the size of the screen (which could cause pixelation if the file contains raster information), the difference between showAll and exactFit is that showAll mantains initial movie size proportions. Because it maintains the original aspect ratio, there can be space to the sides or the top and bottom. But everything always shows and they are not distorted. But notice the photo in the center, it becomes pixilated at larger screen resolutions.
    The trickiest part of trying to go full screen is that it’s difficult to make the Flash wider without making it taller also, that is, to maintain the correct proportions or aspect ratio of everything on the stage. These methods are just simple scaling accomplished with html. There are also methods to dynamically scale the stage and it’s elements using Actionscript… but that’s a much more complex undertaking.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Adninjastrator

  • Playing swf file by onclick in html web page

    First time poster so please forgive any protocol lapses.  I'm trying to play an  AS3 swf embedded in my web page by an onclick javascript function in my page.  Have tried many different ways, including the ExternalInterface class but no luck. Any help or suggestions would be appreciated.  I have a feeling that I'm overlooking something very basic.
    javascript :
    function playCorrectMovie() {
              var getSwfObj = swfobject.getObjectById("FlashID2");
              if(getSwfObj)
                        getSwfObj.play();
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
    swfobject.registerObject("FlashID2");
    </script>
    html:
    <div id="answer1" class="answer_box">
      <ul>
        <li><a href="#" id="gifted" onclick="MM_effectShake('answer1'); return false;">gifted musicians who trace their genealogy back to Monteverdi.</a></li>
        <li><a href="#" id="wealthy" onclick="MM_effectShake('answer1'); return false;">successful entrepreneurs (the folks who brought us the original Bazooka bubble Gum.</a></li>
        <li><a href="#" id="slackers" onclick="playCorrectMovie();" >slackers, swindlers and ne'er do wells.</a></li>
      </ul>
    </div>
    flash:
    <div id="popupswf">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="200" id="FlashID2" title="Your answer was correct!">
        <param name="movie" value="correct.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <param name="play" value="false" />
        <param name="swfversion" value="6.0.65.0" />
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="scripts/expressInstall.swf" />
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="correct.swf" width="300" height="200">
          <!--<![endif]-->
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <param name="play" value="false" />
          <param name="swfversion" value="6.0.65.0" />
          <param name="expressinstall" value="scripts/expressInstall.swf" />
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>

    No need to be sorry...  one other thing... the url to the swf uses the "public_html" directory as a lead-in.
    <param name="movie" value="public_html/our nations.swf" />
    The public_html directory of a web site is typically where a web site's content is placed as the base for a web site on a host server.  Unless you have a directory named public_html within what is probably already the public_html folder, then you do not want to specify that.  It is more probably supposed to be...
    <param name="movie" value="our nations.swf" />
    If you look at the various images that are specified in the html code, they do not specify that directory.  So if the swf is in the same folder as them, you do not want to be specifying the public_html part of that address.

  • Opening SWF to its exact size in HTML (ASP page)

    Hi,
    I have one popup window to open any SWF. User clicks a button
    from some other page and the file name is passed to this popup
    window through parameter. The popup window itself is sized at 100%
    to accomodate with any SWF file.
    For the SWF object, if width and height parameters are
    missing, the animation has a default size, if width and height are
    specified at 100%, the animation is resized much bigger...
    Is it possible to find the exact size of the SWF (either by
    VBScript or Javascript) and to resize the control to its original
    size, either using VB variables when the page is built or with
    Javascript once the page is loaded ?
    Many thanks for your help
    Jean-Pierre

    I found the solution.
    Many thanks for your help
    Jean-Pierre

  • 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

  • Relative Path for swf skin, is it set by DW or Flash

    Hello,
    I have a simple video swf file with skin (swf) in my site inside a folder (video folder).
    In the video folder there is video.swf, flv file, and skin.swf.
    When I test the html file it looks for
    siteroot/videofolder/video.swf
    siteroot/videofolder/video.flv
    But when it looks for skin.swf it looks in the siteroot directory
    Does anyone know who sets where the skin.swf path get set?
    I publish the files (flash) to right directory.
    Thank you in advance
    Carlos

    Basically  not many files, just a temp.html file that calls the
    subfolder where the video at.
    Here is an example of the temp.html file nothing complicated
    inside the videofolder is the swfobject.js & untitled.swf & sking.swf & etc.
    var flashvars = {};
    var params = {};
    var attributes = {};
    swfobject.embedSWF("videofolder/untitled.swf", "myAlternativeContent", "800", "600", "9.0.0", false, flashvars, params, attributes);
    http://www.adobe.com/go/getflashplayer
                   </a>
              </div>
         </body>
    </html

  • IE running under XP can't handle multiple SWF files, Why?

    I noticed that IE 8 running under Windows XP cannot handle multiple swf files in one page.
    Up to about 10 files is no problem they are loaded and we can play them ( buttons that start a small audio file).
    But more of these files in one page will stop IE.
    Firefox ( 3.6.28) runs them fine.
    And also IE 8 and/or Firefox under Windows 7 handles them perfectly.
    Has anyone any idea what can cause this and how to resolve this?
    Thanks,
    Onno Tomson
    The Netherlands

    Sorry...I still don't get it. What is it about Windows FUS that keeps iTunes from running running the process twice? It can run many other non-Apple windows apps in multiple user sessions (commercial apps, open source apps, audio/video apps, networked apps). I can even run two different virtual machines at the same time under two different user sessions.
    Why can iTunesHelper.exe run twice but iTunes.exe cannot? Why can I run Safari at the same time? Quicktime Player runs fine under multiple user sessions.
    Blaming it on Windows and/or FUS sounds like FUD. Can anyone give a valid technical reason? Semaphores? Mutexes? An admission (and explanation) that the Windows version is purposely crippled?

Maybe you are looking for