Working with SWF files...

We're working on an editor to post letter's to a blog, and we're trying to implement something that will automate the process of adding SWF's to the code. Basically what we're looking for is some way to read the width and the height of the swf while inserting it into the code. We have some Javascript that has been grabbing it, but it doesn't always grab the correct height and width.
function InsertFlash(sFlashFile,id)
var obj = document.getElementById(id);
var w = obj.getAttribute('width');
var iWidth=ReturnWidth(id);
var iHeight = ReturnHeight(id);
alert(iWidth + " " + iHeight);
function ReturnWidth(movie)
     var movieObj = getFlashObj(movie);
     return movieObj.TGetProperty("/", 8);
function ReturnHeight(movie)
     var movieObj = getFlashObj(movie);
     return movieObj.TGetProperty("/", 9);
function getFlashObj(movie)
     try
          if (window.document[movie])
               return window.document[movie];
          if (navigator.appName.indexOf("Microsoft Internet")==-1)
               if (document.embeds && document.embeds[movie])
                    return document.embeds[movie];
          else
                               return document.getElementById(movie);
     catch (e)
          //alert(e.description);
Something to note would be that our SWF's are built from flash files in which the programmer for flash has found canned content and then placed what we need inside of it. But we do have one video that has controls, and basically a screen at the beginning that you press in order for it to play. When it's at this screen, we have the normal dimensions of 400x550, but once you hit play and the movie with the movie controls show up, it varies around the 2200x356 mark, the latter generally staying the same, but the 2200 will bounce around 2000 and 2300 pixels (all in pixels), so that's where we're beginning to get clustermucked. There's a swf file (which holds the correct measurements) a flv file, and another swf file with the controls.
If anyone has run into this before or has a better solution, (using asp classic, no vb), that would be superb!! All we want is the silly dimensions... Hah!

Connect is an AS2 applicaton, and therefore, AS3 SWFs will not work (or not work properly).
If you want to correctly build an application to work in a Connect pod you need to follow the rules in the Collaboration builder, SDK documentation. This has not changed since Connect 6, thus the older version refference.

Similar Messages

  • Adobe presenter - work with swf file

    I have a floder called Alpha.  In Alpha folder I have Flash folder where my "fla" and "swf" are placed.  I have subfolder called "uploaded"  in Flsh where I place all my XML files.  I call all my text in fla from xml files which are in "uploaded" folder.
    In Adobe Presenter, I inserted, swf file which was in "Flash" folder but unable to see any text or animation. please suggest.

    I would probably assume that.
    I would reccomend a presenter with a "joystick" type control.
    The trackball type are a pain, and usually get gummed up like the
    old ps2 mice.
    When I was in the navy, we had something similar to this for
    ward room briefs:
    http://www.superwarehouse.com/RemotePoint_Presenter_Wireless_Pointer/VP4300/p/287346

  • Working with .swf files in Adobe Connect

    My goal is to load custom made flash (.swf) presentations into Adobe Connect and present them to an audience (not using presenter)- however I am encountering the following issues:
    1. The sound within the .swfs will not play (sounds works fine everywhere else, and was tested via the Audio setup wizard).
    2. Many of the features within the loaded .swf do not work - sometimes causing runtime errors - does certain as3 code not work in the Adobe Connect environment?
    3. "Synchronized Navigation" in the Shared Pod option menu is grayed out - I can not synchronize flash content? How can I control the presentation?
    Thank you in advance for any guidance you can offer.

    Connect is an AS2 applicaton, and therefore, AS3 SWFs will not work (or not work properly).
    If you want to correctly build an application to work in a Connect pod you need to follow the rules in the Collaboration builder, SDK documentation. This has not changed since Connect 6, thus the older version refference.

  • Problem when load more swf files work with xml files into my movie

    hi ;
    I have one flash file & more of swf files which work with xml files .
    when I load one swf file into my flash file  and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
    when i load one on movieclip and remove it and load anther swf  on anther movieclip the file doesn`t work  and stoped.
    when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
    thanks;

    YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect.  If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)

  • DW CS3 ImageViewer - problem with .swf file

    I'm trying to make a slide show in Dreamweaver for the first time. I've searched and found a lot of common problems people have - forgetting to upload the .js file, not including the .swf file, etc.
    I think I've done everything right (obviously I'm wrong though), it previews in DW, it works when I preview it in a browser, but when it's uploaded, nothing.
    But I think I've found where the problem is. The .swf file that was created doesn't seem to be the right file. When I open it, it shows a blank flash slideshow with three empty slides, just as the sample is when you first open the Imageviewer.
    But then what is DW pulling the slideshow from that works in the preview?? How do I re-export the .swf file from DW?
    Do my questions even make sense? Sorry, kinda new at all this.
    Thanks in advance.
    Oh, here is the blank page, but when I view source, the code is there.
    http://www.americanindianreport.com/imageviewer.html
    The .js file is in the Scripts folder, the .swf is in the same folder. Actually, here you can see why it doesn't work. This is the .swf file, three blank pages:
    http://www.americanindianreport.com/imageviewerflash.swf

    If you look at my last post, the js file has been overwritten with html code, and this is what will be causing the problem.
    The only solution is to delete this file insert a new flash object (any swf file will do for this), then copy the new js file to your server, as your flash will not work with this file.
    here is a short example of the js files content (not javascript), -
    <html>
    <head>
    <title>Page not found | www.americanindianreport.com</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="/http://www.falmouthinstitute.com/favicon.ico" type="image/x-icon" />
    <link type="text/css" rel="stylesheet" media="all" href="/modules/book/book.css?r" />
    <link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?r" />
    PZ

  • ExternalInterface not working when swf file is embed inside a dynamically cloned DIV element.

    ExternalInterface not working when swf file is embed inside a dynamically cloned DIV element.
    It seems that flash movie is identifed as 'undefined' inside document.
    //a statically placed div
    var staticdiv=document.getElementById('PropDiv');
    //dynamically placed div with object tag
    var dynDiv =staticdiv.cloneNode( true );
    var xD=50;
    var yD=50;
    if(dynDiv)
    dynDiv.style.display  = "block";
    dynDiv.innerHTML="<object classid=" + "\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"" + "codebase=" +
    "\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\"" + "width=" + xD + "height=" + yD +
    "id=" + "\"external\"" + "align=" + "\"middle\"" + ">" +
                    "<param name=" + "\"allowScriptAccess\"" + "value=" + "\"sameDomain\"" + "/>" +
                    "<param name=" + "\"movie\"" + "value=" + "\"external.swf\"" + "/>" +
                    "<param name=" + "\"quality\"" + "value=" + "\"high\"" + "/>" +
                    "<param name=" + "\"wmode\"" + "value=" + "\"transparent\"" + "/>" +
                    "<param name=" + "\"bgcolor\"" + "value=" + "\"#ffffff\"" + "/>" +
                    "<embed src=" + "\"external.swf\"" + "quality=" + "\"high\"" + "wmode=" + "\"transparent\"" +"bgcolor=" + "\"#ffffff\""
    + "width=" + xD + "height=" + yD + "name=" + "\"external\"" + "align=" + "\"middle\"" + "allowScriptAccess=" + "\"sameDomain\"" +
    "type=" + "\"application/x-shockwave-flash\"" + "pluginspage=" + "\"http://www.macromedia.com/go/getflashplayer\"" + "/>" +
                    "</object>";
       dynDiv.style.top=50;
       dynDiv.style.left=100;
    document.body.appendChild(dynDiv);
    In above situation communication is not establised when a  funtion which is retruning boolean is called from flash using
    ExternalInterfcae.call.The return value of this function is getting as false inside flash.But the value is true in javascript.
    if (navigator.appName.indexOf("Microsoft") != -1) {
       return window[movieName];
      } else {
       return document[movieName];
    window["external"] is returning as 'undefined'.
    Please give a  solution to solve this.

    Note that you have different file names for the object (images/banner.swf) and the embed (images/banner1.swf)
    You also placed the embed in the middle of a param tag and nested all param tags.
    Because you didn't include a MIME type and the object doesn't have a classid for an ActiveX control for IE, I'm not sure what Firefox will be using.<br />
    The object doesn't have a data attribute to specify the file.<br />
    A separate embed is only needed when you specify a classid in the object.
    <pre><nowiki><div class="bannercontainer">
    <object width="940" height="445" type="application/x-shockwave-flash" data="images/banner.swf" >
    <param name="wmode" value="transparent" />
    <param name="movie" value="images/banner.swf" />
    </object>
    </div></nowiki></pre>

  • How do you get URL hyperlinks to work in SWF files?

    I have exported an InDesign
    file to SWF and all the interactive elements work fine apart from my hyperlinks to websites. I have searched the forums and have figured out how to get this to work by changing the server setting on my machine. The problem is I am looking to email this publication to people and it is unrealistic for me to ask everyone to change their server settings every time. Surely there must be a simple way to get hyperlinks to work in SWF files??

    I´m afraid there´s not... it´s flash players security setting. And security setting that anybody can workaround is not a good security setting... you just have to live with it....
    Put your SWF to server and attach a link to it into your email message.... all hyperlinks works if SWF is in the server.

  • Has anyone not working with .dv files had synchronization problems?

    Has anyone not working with .dv files had sound synchronization problems? I'm not exactly sure what the alternatives to DV are, but I think one of them is HD.
    The reason for asking this question is to help isolate the nature and cause of a very serious flaw in iMovie '11. In the original release of iMovie '11 (version 9.0) there was a small--but serious--synchronization problem. In the 9.01 there is a large synchronization problem. We know of one person who has not experienced the problem, and he is not working with DV files (media). So we want to find out if anyone who is using something other than .dv files is experiencing a lack of synchronization between sound and picture. Knowing the answer to this will help with figuring out where the cause lies. For the initial iMovie '11 release (9.0), you probably would not notice a problem unless you had very long event-clips, e.g., two hours long. Events get this long if you are transferring from analog 8 mm tapes. Even then, it would have to be in scenes in which the connection between event and sound is obvious, e.g., close ups of people talking. It isn't until the 9.01 release that most people would notice anything. All we need to do is establish one case of a synchronization problem in which the person is using something other than DV.
    Message was edited by: Paul Bullen

    Hopefully, the 9.0.2 release will make my question moot. Zyfert must have posted the announcement of the release just as I was formulating my question. Still, if you have information on the subject, it would be interesting to hear.

  • Working with RAW files in PSE9:  Doable or better to use PSE12?

    I have PSE 9 and will soon get a camera with RAW capability.  I notice that Adobe no longer supports PSE 9.  Am I in for trouble if I don't upgrade to PSE 12 since I don't know how to work with RAW files?  It sounds as if I will need something to convert RAW files?  Where do I get it?  Is it a big deal for a beginner with no software skills?

    You can download a free DNG Converter from Adobe and then convert your RAWs to DNGs which can be used in PSE9.
    You don't need PSE12, but if you want to purchase PSE 12, you get the most current features in the Raw processor (which in my opinion is a huge improvement over what is available in PSE9), and you don't need the extra step of converting to DNG.

  • Very slow responce when working with Office file on DFS-Share

    Very slow responce when working with Office file on DFS-Share
    We have implemented the following configuration
    Domain level Windows 2000. Two member servers with Windows Server 2008 R2, sharing the same DFS namespace with, at the moment, one folder target called Home.
    Users complaining that the access to different MS Office files is very slow. Even creating a new MS Word document using right click context menu takes up to 4 minutes to open. Saving, for example, one singe Excel sheet takes also few minutes.
    Tested with both, MS Office 2007 and MS Office 2010. Makes no difference. When using Office 2010 you can see the message like contacting:
    \\DomainName\Root\Home\UserName. Other files like TXT, JPG or PDF are not affected.
     What makes the thing really weird is the fact, that the behavior described above can absolutely change after client machine being rebooted, suddenly everything becomes very fast and this condition can revert back again just after the next
    reboot.
    Considerations until now:
    1. This has nothing to do with the file size. Even tiny files are affected.
    2. AD Sites are configured correctly and the client workstations see themselves in the correct sites.
    3. This is not an Office issue. If I map my folder target not as DFS, but directly as shared network drive
    \\ServerName\Root\Home\UserName , everything functions as expected
    What makes me suspicious: when using f.e. TCPView to monitor connections, I can see, that each time I make any operation on an office file, there will be a connection established to one of the domain controllers, sometimes to remote ones,
    located in other countries. But on the other side, even if the connection is established to the nearest DC, operations are still very very slow!
    Just forget to say. All clients are Windows 7
    Thanks to all who respond.

    Dear all,
    sorry for the delayed reply. The problem has been solved now and since September 19<sup>th</sup>. everything is functioning as expected.
    What was done:
    Deleted replication targets excepting the initial ones
    Carefully recreated folder targets
    Deleted and recreated  replication groups
    Disabled SNP features on both namespace servers
    Created EnableTCPA registry entry
    Checked that the following Updates are installed
    http://support.microsoft.com/kb/2688074
    http://support.microsoft.com/kb/2647452
    Concering Office File validation KB2553065 - This Update was already declined on our WSUS server
    Kind Regards
    Eduard

  • Working with RAW files in iPhoto 5.0.4 and Elements 4.0.1

    I take photos in RAW mode and download them to iPhoto. When I try to edit the photo in iPhoto, the picture is a tiny little file that is impossible to enlarge with any sort of clarity. Also, the word "RAW" does not appear anywhere on the iPhoto window like I read it is supposed to.
    When I drag the file to Photoshop Elements, I get an editing window that has none of the tools usually associated with JPEG files. I get a separate window in which I can darken or lighten the image, that's it.
    Clearly, I'm doing something wrong. No one in their right mind would ever use RAW if this is how it works.
    Any ideas?

    Hi Jack!
    If you're new working with RAW files, your right, it just doesn't make sense. RAW <imho> is a bit overrated. One thing you will need to keep in mind when shooting in RAW, is you will still need to take a well exposed image. What RAW files will allow are CHANGES in all areas of the image v. JPEG which may allow you to ADJUST a few settings in the image. My only suggestion would be to kepp playing around with PSE until you get the hang of it, it is an excellent image editing software. But realize, a well exposed JPEG and RAW file are hard to tell apart...
    Personally, I do not directly download RAW files through iPhoto but will create a folder and download to here, and simply drage folder to iPhoto to import (which are then 'converted' into JPEG files). This way I have the original RAW images safely located outside of iPhoto as well as in iPhoto. You should set Elements as your choice of application to edit files inside iPhoto.
    Good luck, Rick
    Good link: http://www.elementsvillage.com/forums/ and just for fun: http://www.photoshopcosmetics.com/index.php

  • Working with Large files in Photoshop 10

    I am taking pictures with a 4X5 large format film camera and scanning them at 3,000 DPI, which is creating extremely large files. My goal is to take them into Photoshop Elements 10 to cleanup, edit, merge photos together and so on. The cleanup tools don't seem to work that well on large files. My end result is to be able to send these pictures out to be printed at large sizes up to 40X60. How can I work in this environment and get the best print results?

    You will need to work with 8bit files to get the benefit of all the editing tools in Elements.
    I would suggest resizing at resolution of 300ppi although you can use much lower resolutions for really large prints that will be viewed from a distance e.g. hung on a gallery wall.
    That should give you an image size of 12,000 x 18,000 pixels if the original aspect ratio is 2:3
    Use the top menu:
    Image >> Resize >> Image Size

  • Unexpected problem: uncaught exception when working with audio files in Soundtrack Pro

    Hey,
    Whenever I double click an audio file in the timeline to work on it, I end up getting the Error message: "Unexpected problem: uncaught exception" and Soundtrack Pro eventually crashes.  Also, this happens when I try to work with audio files in the file editor.  I have Leopard and am using Logic Studio 8.  Any insight would be much appreciated. Thanks
    Matt

    Didnt know how to remove the original clip from the STP arrange window - or whatever it's called in STPro.  So I could go no further in my perverse science experiment. 
    It also appeared that I could only import an aif but not a wav? 
    I gave up on STPro and did what I needed to do in Logic, which I use regularly.    
    Thank you for folowing up on this. 
    PS.  I used to use an old PowerPC version (1.0.3) of STPro and loved the way it visually showed the change in the waveform when you added each efffect.  It appears that the new version (3.0.1) does not allow you to do this anymore?  You can render or flatten the effects to see the final waveform, but then you are dead in the water and cant make changes?  
    Im such a newbie at STPro that I am probably not using it right? 

  • Working with Multiple Files in Workspace Layout

    If I was working with multiple files in the workspace layout, they each used to be available for selection from a tab.  Now I can either cascade the files horizontally or vertically - but not have them appear in a tab across the top of the workspace layout.
    Does anyone know how to set the workspace to present multiple files in tabs?  I have CS3.

    Tanya,
    This may not help, but the times when that happens to me is when I go too fast and some operations haven't finished. I then try to select a file that hasn't completed and the file I select is in the process of having the data updated. The worst is when it is trying to render as I am doing something.
    I hope this helps some.
    Mel

  • Help: Working with .MOV files in FCP and forced to RENDER FOR EVERY EDIT

    I'm working with .MOV files from my digital camera in Final Cut Pro and every time I make a new edit, I have to render it in order to see it in the canvas.
    How do I make it so that I don't have to render every edit in order to see it?
    (I've worked with files straight from a DV camera, and editing went fine. I'm assuming it has to do with the .MOV files)

    DV Cameras are not the same thing as a Digital camera. Digital cameras offer video on a limited basis and it's usually highly compressed in a non-editing format such as MPEG-2 or similar. NLEs are made to work with video cameras, not still cameras which is why you're having trouble.
    That's not to say you can't edit video captured with a digital camera, but you need to know how to prep it for editing. Some digital cameras shoot at odd frame rates and they all use some form of compression that is not typically used in editing. This means that you'll likely need to convert your clips to an editable format first using Compressor.
    Andy

Maybe you are looking for