How to know dimension of a swf file

I need to put up some swf file to the web site. The swf files
are downloaded from our provider's site. We didn't got any Flash
tools. I know the swf could be resize, but I want the swf just fit
in a <table>. Therefore, I need to know the original
dimension or the aspect ratio of the swf files.
Does the free flash player got any help? Or any freeware
could do the same thing? Could native Active Server Page (ASP)
detect the ratiio?
Thank you.

If you're using AIR, I believe you can use the
FileSystemDataGrid control (see
http://livedocs.adobe.com/labs/flex/3/langref/mx/controls/FileSystemDataGrid.html)
Peter

Similar Messages

  • FAQ: How do I load an external SWF file into a parent SWF file?

    A ton of Flash users visit Adobe’s we site every month wondering  about how to load an external SWF file from within another SWF.
    Adobe's own TechNote on the subject attempts to answer the basic question, along with some common follow-up questions, including:
    How do I load more than one SWF?
    How do I load a SWF into a specific location in the display list?
    How do I resize the loaded SWF?
    How do I set its X and Y location?
    Here are some additional resources that elaborate on loading content and on working with the display list:
    Sample files for the above TechNote. A set of 3 FLA and 3 corresponding SWF files, including a parent SWF and 2 SWFs that the parent loads.
    Help > AS3 Developer’s Guide > Loading an external SWF file
    Help > AS3 Developer’s Guide > Loading display content dynamically
    Loading multiple external SWFs within a main SWF – CreativeCow.net forums
    Video tutorial: ActionScript 101 – Episode 6: Adding named objects to the Stage. By Doug Winnie. An example of how to add the loaded external asset to the Stage and modify its location or other properties.
    Video tutorial: Preloading in ActionScript 3.0.  By Lee Brimelow. A slightly more complicated example, showing how to  make the parent SWF display information about the progress of loading  the external SWF.
    Tutorial: Loading and unloading SWFs - FlashAndMath.com
    This article provides several examples of how to communicate between a parent SWF file and the loaded SWF:
    SWF to SWF Communcation via ActionScript 3.0 (by kglad)

    quote:
    Originally posted by:
    NedWebs
    You now seem to want to get rid of the swf once it has loaded
    and played itself thru. To do that you would need to have something
    in the swf itself that triggers its removal in its last frame. The
    following might work...
    MovieClip(this.parent).removeChild(this);
    Unfortunately I couldn't get this to work. I placed it on the
    last frame of the SWF to be called - is that right?
    I am not sure I am doing it correctly...

  • How can I change the insert SWF File, I need to add a few things and make it better?

    How can I change the insert SWF File, I need to add a few things and make it better? Is there an option inside of the dreamweaver menu that I am not looking at. It would make it easier on me if I changed some things around and didn't have to do it all myself each time I used it. Just incase you was needing to remember what swf flash was, It is not a swf video either.
      <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480">
        <param name="movie" value="Sonic Kaboom.swf">
        <param name="quality" value="high">
        <param name="wmode" value="opaque">
        <param name="swfversion" value="9.0.115.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="Sonic Kaboom.swf" width="640" height="480">
          <!--<![endif]-->
          <param name="quality" value="high">
          <param name="wmode" value="opaque">
          <param name="swfversion" value="9.0.115.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>

    If I understand correctly, Sonic Kaboom.swf needs to be edited in a separate Flash authoring program and then reinserted into your HTML document. 
    As Murray said, Flash is dead.  Nobody uses it anymore.   We use HTML5, CSS3 and JavaScript animations which have universal support from Smartphones, Tablets and other web devices that can't support Flash.   Look at Edge Animate.
    HTML animation | Download free Adobe Edge Animate CC trial
    Nancy O.

  • How to edit or modify a .swf file?

    I am trying to edit a .swf file and make some changes in the css styles.How to edit or modify a .swf file?

    You need the fla file that created the swf.  You edit the fla and publish the swf.  Swf's don't usually involve css styles.

  • I have one file ss_fpga.rbt,abcd.txt how to know the details of the file

    i have  one file  ss_fpga.rbt,abcd.txt how to know  the details  of the file  (when was the date created ,when was date modfied,owner) any function is there like   GetFileInfo

    Yes there is some, called stat(), look the links in your post in stack overflow, there is a lot of link in the anser.
    They talk about sys/stat.h a C header, witch contain the stat() function.
    stat() return a lot of things (size, changes, access etc) about files. look the "here" everywhere in the Yann anser, UP his anser and put the subject as resolved.
    Thanks,

  • How can I make a small swf file out of InDesign

    I have a 200 page book (PDF). I am trying to make a flip book to preview in web browser. How can I make a small swf file out of InDesign with the PDF I have?

    There is another point:
    if you are using JPEG images together with SWF as output file format, you could get smaller images by:
    1. using the Export For Web menu for generating size optimized JPEGs in PhotoShop opposed to Save As JPEG
    2. stripping all color management (ICC) information off the files (SWF is not very good in color management besides sRGB, I think…)
    Uwe

  • How can I make my Clock.swf file disappear?

    Hi,
    How can I make my Clock.swf file disappear? The following code works great for movie clips but throwing an error while using for .swf files.
    Introduction_mc.visible = false; >>> This code works fine
    Clock.swf.visible = false; >>>> This code throws an error (How to resolve this problem?)
    Please help.

    The easiest way is by targeting the Loader object.
    l.visible = false;
    or
    removeChild(l);
    will both work.  And you can make it visible again if need be using the opposite of those commands.

  • How to load a pdf/xls/swf files in to a adf:popup

    hi
    my requirement is to open a pdf/xls/swf in a popup. howcan i get a poup with pdf/xls/swf files . presently i am using a servlet.I set the content type in the servlet as application/pdf and so on..
    I am getting data as byte stream from the data base.know how to give this bytestream/response object of the servlet to the panel window.
    In a popup i placed panel window.the struture is:
    <af:popup>
    <af:panelwindow>
    </af:panelwindow>
    </af:popup>
    thanks in advance
    Srikanth.V
    Message was edited by:
    user631950

    Hi,
    I have a similar requirement where I need to show the preview of a document in a popup.
    I have a button and I added "af:fileDownloadActionListener" into the button, then I wrote the following code in my bean for the downloadactionlistener:
    public void showPreviewDownloadListener(FacesContext facesContext,
    java.io.OutputStream outputStream) throws IOException{
    DCIteratorBinding agr = getBindingsForDCB().findIteratorBinding("xyz");
    Row row = ag.getRowSetIterator().getCurrentRow();
    String fileName = (String)row.getAttribute("FileName");
    String fileType = (String)row.getAttribute("FileType");
    BlobDomain file = (BlobDomain)row.getAttribute("FileData");
    try {
    InputStream inputStream = file.getBinaryStream();
    byte[] buf = new byte[1024];
    int count;
    while ((count = inputStream.read(buf)) >= 0) {
    outputStream.write(buf, 0, count);
    inputStream.close();
    outputStream.flush();
    outputStream.close();
    file.closeInputStream();
    docPreviewInlineFrame.setSource(fileName);
    //ADFUtils.setEL("#{pageFlowScope.docSource}", "../"+fileName);
    ADFUtils.invokePopup(docPreviewPopup,true);
    catch(IOException ioex) {
    ioex.printStackTrace();
    when I'm clicking my button, all it does is open a popup to view/download the while.
    My own popup (with a dialog and an internalFram in it) does not get invoked at all.
    Also the file that I'm referring is from DB, can anyone also suggest me how to set the source for the inline frame if the file is from DB?
    Thanks in advance,
    Swapna

  • How do i stop loading a swf file which is still in progress.

    //I have three buttons on the stage (btn1, btn2, btn3)
    when i click the first button swf starts loading
    while the swf is loading if i press the 2nd button
    the first swf wont stop loading and both the swfs start playing
    but if the first swf is fully loaded then every thing workes fine.
    so please let me know how do i stop loading a file which is still in progress.
    var _contentSWF:ContentSWF
    var _content
    btn1.addEventListener(MouseEvent.CLICK, handleClick)
    btn2.addEventListener(MouseEvent.CLICK, handleClick)
    btn3.addEventListener(MouseEvent.CLICK, handleClick)
    function handleClick(){
        if(_content!=undefined){
            _contentSWF.removeContent()
            removeChild(_contentSWF);
            _contentSWF =null;
        _contentSWF = new ContentSWF()
        _content = addChild(contentSWF);
        _contentSWF.init(some path.swf)
    //ContentSWF.as
    private var _path:String
    private var swfLoader:Loader
    private var _content
    public class ContentSWF extends Sprite{
        public function init(path){
            if(_content!=null){
                _content.content.removeEventListener(Event.COMPLETE, completeHandler)
                _content.removeChild(mymc)
                _content=null
            swfLoader=new Loader();
            _path = path
            swfLoader.load(new URLRequest(path));
            swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
        public function removeContent(){
            swfLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
            swfLoader.unloadAndStop()
        private function swfLoaded(e:Event){
            _content = addChild(mymc)

    Thanks Kglad, it all worked fine but can you help me in this.
    I have 4 movieclips (_a,_b,_c,_d) when i click each of the movieclip they load a SWF(my_mc)
    now when the swf file loades it starts loading a Sound(mp3)
    Now when i press another button  (_b) while this mp3 is loading
    all the methords like  Loader.close and loader.unloadAndStop() workes fine  but i dont know how dose the MP3 loades and start playing
    I also used the below script in  my_mc.swf , but it wont work
    this.addEventListener(Event.unload, myfun)
    function myfun(e:Event){
    \     if(_sound.bytesLoaded<_sound.bytesTotal){
              _sound.close()
         if (_chanel){
              _chanel.stop()

  • How to put a video player swf file inside a flash file

    i want to know how i can put a flash file inside a flash wbsite. i have found a tutorial http://www.ehow.com/how_4906532_within-another-flash-swf-file.html that says something like that but in this tutorial if i understand correctly it creates a new flash project and add another swf inside. i have my website created and i just want to add video gallery, image gallery etc that are already swf. how i can do that?

    You can use swf inside of another swf.
    If you are using Actionscript2 then learn about LoadMovie
    And for AS3 it is Loader.

  • How make a button open a .swf file in a new window?

    How do I make a button open a swf file in a seperate window
    new window (like if i opened to swf file seperately)
    Anyone know ?

    well you can publish the the other FLA, which would give you
    an HTML file, upload that and the SWF then link to the SWFs' HTML
    page.

  • How to pass Variable value to SWF file in Eclipse development

    We are creating Widget file in Eclipse by using SAP Widget Foundation .
    We included one SWF file in Widget & it is working fine.
    But we are not able to pass the values to SWF file variables.?
    How to pass variables to SWF file let us know.
    Thanks & regards

    We are creating Widget file in Eclipse by using SAP Widget Foundation .
    We included one SWF file in Widget & it is working fine.
    But we are not able to pass the values to SWF file variables.?
    How to pass variables to SWF file let us know.
    Thanks & regards

  • How to Open or load the swf file only in Java application

    Hai.,
         How I Secure my Flash SWF files(AS2 and AS3).?
         The SWF files are only work through java application. When the java call the swf file that time only it will work otherwise it won't work including browsers also..

    I attached the file to this post. It would be great if you could send me the pdf version of the block diagram. It's not totally finished, but that doesn't matter, I can complete it in school.
    Thank you, really, thank you.
    I know that this is not the purpose of this forum, but it was the easiest solution for my problem.
    Attachments:
    Programma transportmiddel.vi ‏129 KB

  • How to know a line of text file is ending with line feed or return?

    hi all, i have a program that read log file that generated by other service (apache http server for example), i want to know that each line is ending with "\r", "\n" or "\r\n" so i can skip them in the next time, like this:
    int char_counter=0;
    BufferedReader reader = new BufferedReader(new FileReader(logFileName));
    while((line=reader.readLine())!=null){
           char_counter+=line.length()+x_value;
    }and the next time read the log file, i will skip all the lines that read in previous time.
    BufferedReader reader = new BufferedReader(new FileReader(logFileName));
    reader.skip(char_counter);
    while((line=reader.readLine())!=null){
           char_counter+=line.length()+x_value;
    }with x_value is 1 or 2 depended on line end with "\n" or "\r\n".
    so, how to know which is the char line ending with?
    Edited by: secmask on Feb 21, 2009 5:46 AM

    Alright, the BufferedReader method readLine() reads all text until it finds a \n character. And then next time you call it it will automatically continue from where it left out.
    try this out it should show it as an example
    import java.io.*;
    public class readLineTest {
        static FileOutputStream filename;
        static BufferedReader input;
        public static void main(String[] args)
            try
                filename = new FileOutputStream("logFile.txt", false);
            catch (IOException e)
                //blank
            PrintStream output = new PrintStream(filename);
            output.println("this is the first line");
            output.println("this is the second line");
            output.println("this is the third line");
            try
                input = new BufferedReader(new FileReader("logFile.txt"));
            catch(IOException e)
                //blank
            for(int i = 0; i < 3; i++)
                try
                    System.out.println(input.readLine());
                catch(IOException e)
                    //blank
    }

  • How to call method in another swf file

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

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

Maybe you are looking for

  • Please help me with installation of adobe reader

    Hello, I hope I'm in the right spot.  I finally was successful in downloading and installing flash player but now I can not download and install the adobe reader!!  It gets all the way through the download and gives me the message "installation did n

  • Hooking up a Dell Lap Top to wireless router

    I purchased a rebuild Dell Lap top for my home office.  We currently have a desk top and two newer wireless computers wired to the internet with a LINKSYS Range Plus Wireless Router.  I don't know how to hook up my computer to go on line, can someone

  • General error (34) ??? tried everything FCP

    Hey all, I am confused here. Before you reply note that I am not hugely tech-savvy, you may have to break it down for me. I am using FCP and trying to export a basic 6 minute video. The source vid plays fine in quicktime. I have searched all over for

  • Quicktime 7.1.5. slow load on avi files

    Hi Apologies if this has been posted before. I downloaded the update of Quicktime, I also have pro installed, and it takes FOREVER, if at all, for anything to play. My macbook sounds like it is going to explode with the effort of getting anything to

  • Aperture, MobileMe and Syncing

    I use MobileMe Galleries via Aperture a lot. Occasionally however, I will upload a gallery only to discover that I left out a photo or two. I will add the new photo to the gallery in Aperture and click the sync button, but it will start reloading the