Put a SWF file on a dynamically generated pages using Dreamweaver and PHP

Posted on 2010-01-07
Last Modified: 2012-05-08
I can successfully upload a SWF movie to a folder on my server and its filename to a database with a CMS form I've created in Dreamweaver using PHP.
What I need to do is have the SWF movies I've uploaded to the server appear on pages that are generated dynamically. I know how to do this with jpgs: ie, by applying a source attribute to the proper record the bindings panel and then binding that to the dynamic image area on the page.
So how do I do the same thing with a SWF file?
Question by:trptdblc
    1 Comment
    LVL 70

    Accepted Solution

    Hi trptdblc,

    The easiest way to do it is to create a new blank page and drag and drop a flash file into it.  DW will auto-generate the code for embedding.  Switch to code view to see all of the code (and includes) needed and find the references to the swf file name.  Copy/paste the code into the dynamic page (fix paths if needed) and replace the static filename with whatever dynamic call holds the same information.

    You will note that the code does not use a full file name (file.swf) in all cases.  Instead, it uses just "file"

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: Create Mobile App Prototypes with Adobe XD

    This is a project-based course: we go through all the steps of creating a prototype from start to finish, using all the tools and features currently available in Adobe XD. You can complete the course in less than a day, plus all project files and fonts are included.

    Suggested Solutions

    Title # Comments Views Activity
    SWF won't scale? 4 510
    Debug PHP with Dreamweaver 6 505
    Adding an Audio File (MP3) to a Website (HTML) page 2 174
    Video Not Showing 8 87
    Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
    This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now