1. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Dec 2006
    Rep Power

    Flash: Problems with embed code.

    hey all.

    i have always had problems with embedding flash in my webpages. i try using the import feature with dreamweaver, and it wants to tag on some script to the page that i also have to upload and reference..which i did, despite my wanting to, and it took me FOREVER to figure out why the ef some variables werent coming into my stage and it was because how dreamweaver wanted to put the code vs how the browser wanted to read it. now cs4 is throwing some conditional nonesense in to test for ie...

    all i want it so tell the browser to put the gd movie on the page, and pull in a querystring variable or two.

    can someone please tell me the most simple syntax to attach an swf.

  2. #2
  3. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Mar 2004
    Columbus, Ohio
    Rep Power
    same here.
    heres what i have come up with of late.
    it works in all major PC browsers and has also been successful in safari on the MAC.
    [flash...of course...will not play on the ipad]

    flash="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='440' height='287' id='video' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='allowFullScreen' value='false' /><param name='movie' value='video/video.swf?vid="&vidnum&"' /><param name='quality' value='high' /><param name='bgcolor' value='#c4c8d1' /><embed src='video/apcovideo.swf?vid="&vidnum&"' quality='high' bgcolor='#c4c8d1' width='440' height='287' name='video' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /><EMBED href='video/video.swf?vid="&vidnum&"' quality=high bgcolor=#c4c8d1 WIDTH='440' HEIGHT='287' NAME='video' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></object>"
    change the flash parameters as needed for your use.
    as you can see...i am also passing a variable to flash using the 'vid' variable. this actually dynamically tells flash which video to load.

    you will also need to adjust the location of the swf file in this code as needed.

    i send this entire block of code to the page as a variable=flash.

    good luck.

Similar Threads

  1. Href a flash file?
    By elviscat in forum ASP Development
    Replies: 5
    Last Post: December 23rd, 2005, 05:21 AM
  2. Program to capture code ASP of a URL?
    By paulinho_ivoce in forum ASP Development
    Replies: 6
    Last Post: September 1st, 2005, 05:14 PM
  3. Need ASP / Code assistance
    By johnr in forum ASP Development
    Replies: 3
    Last Post: August 5th, 2005, 01:51 PM
  4. want to merge vb.net and html code
    By hitoall in forum .NET Development
    Replies: 5
    Last Post: June 24th, 2004, 06:29 AM
  5. Replies: 1
    Last Post: April 27th, 2001, 05:29 PM

IMN logo majestic logo threadwatch logo seochat tools logo