Embedding .swf file into web pages

What's the best way of embedding a flash file into web pages?
After Microsoft introduce something about the active object (need
to click on the Flash file first on IE to activate it) it seems
like the best way is to use 'FlashObject'. Is there any other
better way? Thanks a lot.

SWFObject, which
used to be FlashObject.

Similar Messages

  • Help with inserting SWF file into .html page

    I created a photo gallery in Flash CS5.5, using the advanced photo gallery template. It works fine as a standalone SWF file but it's not displaying properly when I try and insert it into the Gallery page of my website.
    The thumbnails are showing as blank white boxes and the main image holder isn't showing at all, though the controls beneath it are showing. The SWF file and all the images are stored in site/images/gallery/ and my Gallery page is in the root. What's going on here? Can anyone help please?
    Thanks

    If you are storing any of your Flash assets in sub-folders and having problems... it's most likely because of pathing problems. For review:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    What it boils down to is that you need to path the Flash assets from the Web page that you place the main .swf on... NOT the physical location of the .swf
    Best wishes,
    Adninjastrator

  • Embedding SWF file into an Indesign document and later export as PDF

    Hi to everybody,
    I am searching now since 3 days for good solution of my problem. First I wanna tell you that the problem is not just to convert a swf-file into a pdf.  I did this many times with all animations, page flip and stuff.My situation is the following:
    I have varios catalogues with  more or less 12 pages each in an indesign format. Now I created an animated scroll down menu, which appears on an "index-page". On the menu I created buttons. One button for each catalogue. So the idea of the whole thing is to open a document and an index page appears where you have the animated menu and you choose the catalogue you wanna see. Until here it is quite easy. I created a swf file of each catalogue with my animations (as the special page turnover e.g.). So that I just need von Object in with I can load the different swf-files of these catalogues. I already did the process. I linked the buttons to the different swf files and so. So the problem is now when it comes to convert the whole thing into a PDF. Of course I convert it first to swf and then to PDF. After converting it to swf it works 100% fine, but in PDF not, suddenly the swf-files of the catalogues disappear.
    So the summary is, that I don't know how to embed swf files into an indesign document, creat buttons and interactions next to swf file, then save it to another swf, and then to a pdf without losing the first swf files within the pdf.
    Hope I made my self clear would be too nice if someone could help me or if someone may have a better idea of realizing the whole project.

    Jeffrey,
    Thank you for the answer. As you have written:
    I will also add that the ID's play mode contol [plays once] [repeat play] does not always control the file once in Acrobat.
    I presume you mean version of ID older than CS4 or version of Acrobat Reader older than 9.1
    It that is the case I will strongly recommend my visitors to upgrade to this version.
    I hope that would work.
    Thanks again.
    Peter

  • Linking from SWF files to web pages

    Hi
    I'm using the latest Flash CS3.
    Basically, I want to link from the SWF file to a webpage.
    Here's what I've done so far.
    Created the FLA file, imported the quicktime movie into it
    etc etc.
    I've then added a behaviour by clicking on the inserted
    movie, then BEHAVIORS >WEB> GO TO WEB PAGE> and filled in
    all the relevant text for the link.
    Then I have saved the file. Then I have published then OK.
    I have embeded the SWF file in a web page, but when I click
    on the movie, it shows there's a link, but it won't link to the
    webpage.
    What am I doing wrong? I dont understand.
    Can't get my head around this!
    When I go to the FLA file, then publish preview > flash,
    and the movie appears on its own, the link works... but the SWF
    file doesn't.
    Basically what do I need to do to make it work.
    The coding I am using in my web-page is:
    <p align="center"><center>
    <object width="165" height="100">
    <param name="movie" value="
    http://homovision.media7london.com/wordpress/Newcontribute.swf"
    />
    <embed src="
    http://homovision.media7london.com/wordpress/Newcontribute.swf"
    width="165" height="100" />
    </object>
    </p></center>
    The movie plays, the "link hand" appears above it, but when
    it is clicked nothign happens.
    Any help would be greatly appreciated.
    Simon

    Did you inport to the stage and put a stop (action script) on
    the frame?

  • Embedding PDF files into jspx pages

    Hi,
    I'm trying to include a PDF into JSPX. I've got a servlet that produces the PDF. I use the following code:
    <f:verbatim>
    <iframe src="myservlet"
    width="100%"
    height="100%"
    scrolling="auto">
    </iframe>
    </f:verbatim>
    However, although I can see PDF content inside JSPX page, commandButtons doesn't work any longer. They seem to be dead.
    So, my question is: which is the "suitable" way to include PDF content into a JSPX page.
    Thanks in advance.
    Luis Serrano.

    Hi,
    actually this is the same experience I gathered when trying it this way. My assumption is that the PDF plugin causes the conflict. However, best integration I can imagineis to se a popup dialog and show the PDF file in there
    Frank

  • Swf dimensions for web page

    This seems so silly a question that I hate to ask:
    Just starting with flex coming from flash. How do you get the
    width/height of the final swf to put it into a web page?
    I use swfobject JS routine to place my regular flash swf
    files into web page. But, the w/h is right in the flash dvp
    environment.
    I may be missing something obvious, but where do you get
    these dimension in Flex?
    Appreciate any help and anything might need to watch out for
    in trying to treat a swf from flex in same manner as swf made in
    flash enviroment.
    Thanks!
    Keith

    hi bijal........
           for every view there is a tab called methods....
           in this tab you can find many mehtods and codings for it...
           this is where the codings are written...
           this is local to this view...
           if you go to the component controller instead of a view...
           there also you will find methods tab whic contains coding which commmon for all views.
    ---regards,
       alex b justin

  • Insert Photoshop Web Gallery swf file into Dreamweaver

    So i tried to take a shortcut, and created a flash photoshop
    web gallery and placed the "gallery.swf" file into my html file in
    Dreamweaver. However, it is showing a blank white screen (i'm
    guessing it can't find the images?) but when I view it on my hard
    drive, it is working fine, just not in dreamweaver or any browser,
    even after I upload to my server. Any help would be GREATLY
    appreciated!! I've also tried pasting the body html code from
    "index.htm" that photoshop creates, as well as move my image files
    to the root folder where the swf is, but that doesn't work either.
    I have my scripts in the same directory, and not in
    subfolders.

    Kizat727 posted in macromedia.dreamweaver:
    > and the link is
    >
    > www.micromediapubs2.com/dyers/portfolio.html
    That page is very different from the code you posted and I
    know nothing
    about Geoff Stearns' FlashObject code.
    For the above link, I see nothing in the source code that
    attempts to
    load a .swf file. However, it is linking to
    AC_RunActiveCon.js file in
    the wrong place:
    GET /dyers/assets/flash/pages/AC_RunActiveContent.js HTTP/1.1
    Referer:
    http://www.micromediapubs2.com/dyers/portfolio.html
    HTTP/1.x 404 Not Found
    The file is actually here:
    /dyers/Scripts/AC_RunActiveContent.js
    So if you actually do have a page in the dyers/ folder that
    links to a
    .swf file, just make sure the link to the .js file is
    correct.
    Most likely, change this:
    <script src="assets/flash/pages/AC_RunActiveContent.js"
    type="text/javascript"></script>
    to this:
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Embedding a quicktime file into a page

    hey guys. Im trying to embedd a quicktime file into a page
    ive made. I found this tutorial online.
    http://www.csupomona.edu/~llsoe/42101/premiere/playmov.htm
    I embedded the file but when i try to play it its telling me
    "Unable to find the plug-in that handles this media type. " When I
    play the movie in quicktime its fine, buyt I cant get it to play on
    the page? Has anyone ran into this before? Thanks

    There is a great extension that will do it all for you and
    it's free...it's here:
    http://www.adobe.com/cfusion/exchange/index.cfm#view=sn106&viewName=Exchange%20Search%20De tails&loc=en_us&authorid=32895559&page=0&scrollPos=0&subcatid=0&snid=sn106&itemnumber=0&ex tid=1007547&catid=0

  • Getting .CP or .Swf files into .FLV

    Hello:
    I used Captivate to create 3 e-learning modules. My hope is
    to deliver them via web. When enclosing the SWF files into a web
    page, the application takes **FOREVER** to load (3 minutes). So,
    after looking into retaining a streaming web host, I discovered
    that I need an .FLV file to stream adequately.
    Exporting my .CP files to Flash 8 results in drastically
    degraded quality and un-synched audio and animation. Exporting the
    .FLA file to .AVI is even worse. I can't seem to de-compile my .CP
    file to any other Flash application in a way that maintains the
    qualtiy. The SWF files are beautiful, but they can't be used to
    stream.
    Does anybody have any answers?

    Hi, TriSys G!
    If I'm understanding "lightning speed" playback of embedded
    .swfs, it sounds like a frames per second (fps) mismatch. By
    default Adobe Captivate records and plays back at 30 fps. However,
    if the .swf you are inserting as animation was created at a
    different fps rate, you can end up with the scenario you outline.
    The best solution would be to go back to the original
    developer of the .swf and have them re-compile at 30 fps. Of course
    the developer may not be available.
    The alternative is to go the other way. If you know the fps
    of the swf you are embedding, you can adjust your movie's frame
    rate to match the .swf. Here's the command path for that:
    Project>>Preferences>>Preferences>>Frames Per
    Second.
    BTW, since this thread was created to answer a different
    question, next time I'd suggest create a new topic so we can see
    more quickly
    john

  • SWF placing in web pages?

    Hi guys,
    this is one for those familiar with web building.
    I have a page here: (note this page does not contain the alternate content described below as the page is 'live' and it dosent display swf's properly as explained below. this is to show the layout I have)
    note, content of site is a little explicit (language)
    http://http://www.wayouttshirts.co.uk/T_Shirt_Gallery.html
    on which there are many images in rows and columns. Each image is an swf file, which also needs to contain alternative content written into the <div> which it replaces (this is embedded with swfObject as you will see from the code)
    Im using webstudio to position the swf files on the page currently by placing the code below into a html 'object' on the webstudio page.
    However when i view the page (with and without flash installed) the alternative content seems to display well as depicted by the code, but the swf's have a mind of their own and seem to be lining up vertically.
    Heres the code for three of the instances when the alternate content is used:
    <script type="text/javascript" src="swfobject.js"></script>
    <div id="fairly">
    <div style="position:absolute; top:50px; left:50px;">
    <a href="http://www.wayouttshirts.co.uk/Fairly_wasted_1.html"><img src="http://www.wayouttshirts.co.uk/fairly.png"></a>
    </div>
    <div id="eyes">
    <div style="position:absolute; top:50px; left:170px;">
    <a href="http://www.wayouttshirts.co.uk/Eyes.html"><img src="http://www.wayouttshirts.co.uk/eyes.png"></a>
    </div>
    <div id="penny">
    <div style="position:absolute; top:50px; left:300px;">
    <a href="http://www.wayouttshirts.co.uk/See_a_penny_1.html"><img src="http://www.wayouttshirts.co.uk/see a penny.png"></a>
    </div>
    <script type="text/javascript">
       var so = new SWFObject("fairly.swf", "fairly", "300", "300", "8", "#336699");
       so.addParam("wmode", "transparent");
       so.write("fairly");
    </script>
    <script type="text/javascript">
       var so = new SWFObject("eyes.swf", "eyes", "290", "290", "8", "#336699");
       so.addParam("wmode", "transparent");
       so.write("eyes");
    </script>
    <script type="text/javascript">
       var so = new SWFObject("penny.swf", "penny", "315", "315", "8", "#336699");
       so.addParam("wmode", "transparent");
       so.write("penny");
    </script>
    So how do you control the position of the swf file within the page?
    Any help appreciated!
    Dave
    P.S if anyone can help with the annoying problem of the magnifying glass sticking on the sides of the images on rollout that would also be ace!! (dont ask for much do i
    Thank you v much!

    It is due to Microsoft Implementing ActiveX security features
    in IE.
    here is the fix that everyone is using:
    http://blog.deconcept.com/swfobject/
    Shane

  • Insert an swf file into another Flash file

    Hi,
    I'm a newbie to flash trying to insert an SWF flash file (a game) into another Flash file. However, when I import the swf file into the library and drag it onto the frame (and insert the stop(); command onto the frame action to stop it playing the whole movie), the SWF file plays constantly, ignoring all the actionscript and button commands in the game SWF file.
    When I try inserting it using the Window component, the game SWF refuses to play at all - it just stops (clicking buttons in the game work, but it goes-to-and-stops instead of go-to-and-play like it's supposed to do). The only other component I could find was called "Loader". Using this doesn't work either, it won't play any of the animation, just like using the "Window" component
    When the game SWF is played by itself (by just double-clicking to open it from Windows Explorer or embedding it in a web page), it works fine.
    Any help how to do this would be appreciated.
    Thanks.

    Hi,
    I'm posting in this thread because my problem seems similar but may be not...
    In my first swf, I'm loading a second swf via loadClip().
    My second swf works well alone but when I try to integrate itself in my first swf I'm losing my events. My events only works on my first swf.
    I'v tried your trick with _lockroot but he doesn't work for me too.
    Is someone have an idea to help me ?
    Thx
    My code is really basic
    First swf:
            var mcloader:MovieClipLoader = new MovieClipLoader();
            var listener:Object = new Object();
            listener.onLoadInit = function (mc:MovieClip){
                main_obj.__preloader.die();
                obj[funct](target_mc, param);
            mcloader.addListener(listener);
            mcloader.loadClip(file_name, __loader);
    Second swf:
        var box:MovieClip = this.createEmptyMovieClip("box"+depth, this.getNextHighestDepth());
        //Draw box
        drawBox(...);
        // Event on Box, Change Alpha and show arrow or not
        box.onRollOver = function() {
            drawBox(...);

  • Inserting swf file into dw vs. creating full site in flash

    I'm updating a website, and am pretty familiar w/html and DreamWeaver, but would like to add some elements of Flash into the site.  I am using Flash CS4.
    What is the advantage and/disadvantage of inserting various swf files into my DW site versus just creating the entire site in Flash; what's the difference in either approach? 
    If I do the latter, do I eventually bring it into DW anyways so that it is an html file?
    Thanks for your help!

    There can be potential issues with Flash content in a web site since the evolution of iStuff led to disallowing Flash content to be displayed.  If you are looking to attract a mobile user base, then going with Flash can be a gamble, especially as you go further on into the future where there will no longer be Flash Player development to parallel the mobile market.
    I have heard that Flash content does not support handicapable design elements that html/css provide for.
    You can always have the web page code check for the availability of the Flash Player, and if not found have alternative content presented instead.
    An issue with having a full Flash site is that it can be less SEO friendly than going with straight html-based designed, although since the Flash content would still reside in an html page there are some measures that can be taken to support SEO concerns.
    For a full Flash site design you would probably not need DW since Flash can generate an html page of its own.
    I recommend you post your questions in the Dreamweaver forum as well.  The reaction there to using Flash content is likely to be harsh, so don't take it personally, but some helpful information might still be gleamed from trying.

  • Can't import swf file into QuarkXpress 8.12

    Hello everyone,
    I'm using QuarkXpress v 8.12 | Apple iMac Intel Core 2  Duo, 64 bit |  Flash Player 10.1.85.3.(?)
    When I tried to import a swf file into a picture box in Quark it freezes the program and then I have to force quit the application and restart. I've been onto Quark's forum already with this issue and the advice is to uninstall Flash 10.1 and go back to v10 that came with the Quark DVD.This is the advice given:
    This FLash player consists out of two files, flashplayer.xpt and  Flash Player.plugin. However it is much cleaner to uninstall by using  the Flash Uninstaller Adobe provides on their web page.
    However, it's not made clear where these xpt and plugin files reside. Are they inside the Library>Internet Plug-ins? Quark's forum then goes on to say that there is ANOTHER standalone Flash Player programe that previews Flash files out of QuarkXpress and I did manage to open up the swf flie without trouble and saw the interactiveness within it. (I didn't create the swf file and don't know its provenance, it came with a tutorial).
    Inside of Quark's Extensions, there's a folder called ForIneractive that contains a Flash Player, when I clicked on it to get info it says it's v10.0 r22. Is this the standalone programe that previews flash files out of QuarkXpress and has nothing to do with the problem of my swf files not importing? To add confusion, when I visited Adobe Flash's troubleshoot site, it detects the Flash Player I have on my system as 10.1.85.3. So I'm totally puzzled as to what's what (version wise)! I've tried spotlight and it leads back only to the QuarkXpress ForInterActive folder and the Library for the plugin.
    The main question is, if I uninstall with the Adobe Flash Uninstaller, how do I know that I'm uninstalling the right components? Any other advice to fix this?
    Thanks a million
    Jadeytai

    Photoshop elements has never had File>Import>Video Frames to Layers.
    At one time, until a few versions back, there was File>Import>Frame from Video, but that was just able to do one frame at a time and the function has since been removed from photoshop elements.
    Photoshop and photoshop elements are two different applications, photoshop elements being an application based on photoshop, but with less advanced features.

  • Import a .eps or .ai files into a Pages document?

    Does anyone know of a way to import .eps or .ai files into a Pages document?

    I tried it again with a new EPS file from the web and drag'n'drop worked fine. 
    After some testing, I suspect that Pages doesn't like encapsulated postscript files that don't have a preview inside, or perhaps old embedded fonts are related;  I honestly don't parse EPS that well, in my head. I hope the preview thing isn't true as that's kinda anti-EPS, but I'll likely not dig further in this case. 
    Full disclosure;  the header did have some random garbage in front of the file, but it didn't seem to be interpreted <≈–”∆ {πôπX ˇˇ%!PS-Adobe-3.0 EPSF-3.0>
    So, it seems I was wrong with my discrete example and it's as easy as drag and drop, if everything is up to date for flookoco.

  • Embedding MP3 files into dreamweaver webpage

    I've embedded mp3 files into my webpage, but every time someone opens the page, they are prompted to either open or save the file.  I want the viewer to be able to play the song using the embedded player, without the prompt.

    Embedded players are very old school.  And it won't work for many since they need a player and appropriate browser plugins installed on their end.  The modern approach is HTML5 <audio> which is widely supported by all browsers, including mobile and tablets.  For an example of HTML5 audio, copy and paste this code into a new, blank document.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Audio Demo</title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <style>
    header {
        width: 500px;
        margin: 0 auto;
        text-align: center
    audio { color: red }
    figure {
        margin: 20px auto;
        padding: 20px;
        width: 500px;
        text-align: center;
        border: 1px #ccc dashed;
        clear: both;
    figcaption {
        display: block;
        clear: both;
        text-align: center;
        font-style: italic;
        padding-top: 15px;
    dl {
        text-align: left;
        margin-left: 40%
    dt {
        clear: both;
        float: left;
        width: 4.5em;
        font-weight: bold;
    line-height: 150%
    dd {line-height:150%; color:maroon}
    </style>
    </head>
    <body>
    <header> <h1>HTML5 Audio Demo</h1>
    <p><a href="http://www.w3schools.com/html/html5_audio.asp">HTML5 Audio Tutorial</a></p>
    </header>
    <figure>
    <audio preload="auto" controls >
    <!--replace demo audio files with your own-->
    <source src="http://alt-web.com/Media/Fake-Empire.ogg" type="audio/ogg">
    <source src="http://alt-web.com/Media/Fake-Empire.mp3" type="audio/mp3">
    Looks like your browser is outdated and doesn't support the audio element.
    Please upgrade to a modern browser that does.
    </audio>
    <figcaption>HTML5 Audio using OGG &amp; MP3 files. <br>
    Works in all current browsers &amp; mobile devices.<br>
    </figcaption>
    </figure>
    <dl>
    <dt>Title:</dt>
    <dd>Fake Empire</dd>
    <dt>Year:</dt>
    <dd>2007</dd>
    <dt>Artist:</dt>
    <dd>The National</dd>
    <dt>Album:</dt>
    <dd>Boxer</dd>
    </dl>
    </body>
    </html>
    Nancy O.

Maybe you are looking for

  • AD upgrade from 9.1.1.7.0 to 11.1.1.5.0

    Hi, i am trying to upgarde the AD from 9.1.1.7.0 to 11.1.1.5.0 version.but i can't able to do this. i got the following error (after defining the connector and enter the exist AD name & version in database) while trying to upgrade the AD in OIM-->Adv

  • Video chat not working with AIM...it was working last night perfectly..??

    hi, I'm using the video chat in ichat via AIM. It was working perfectly last night, now when I call the other person, or they call me ,it says that there was a communication error. The error report lists the following. Any help/suggestions would be g

  • Performance Issues on BSID and BSAD

    Hello guys, for a custom report I need the balance data of a couple of vendors for different keydates. Therefor I tried to use function 'BAPI_AR_ACC_GETKEYDATEBALANCE' which works fine but takes a lot of performance time when getting data for more th

  • HT1665 my iphone 4s doesn't work?

    dear sir / madam, My Iphone4s doesn't work? I have to give it back.

  • CS4 can GREP do this?

    Hi, Is it possible using a GREP find/replace to locate a tab character and replace it with a forced line break AND tab. BUT ONLY if the tab is followed by less than 5 characters on the same line! I know GREP can do some pretty complex stuff but is th