Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Flash SWF and JSP page?? (Using netbeans)

  • 29-03-2010 05:34PM
    #1
    Registered Users, Registered Users 2 Posts: 3,112 ✭✭✭


    Hi all, any suggetsions would be great, not sure if this should be in design or development...

    I'm basically trying to embed a flash SWF file into a JSP page, but nothing is showing up. I'm coding the JSP with latest version of netbeans. I've created a JSP page in Dreamweaver, dragged in the SWF file, (with all relevent RunActiveContent files etc)....but when I reopen file in netbeans it says the "embed" tag is an unknown tag, and hence the SWF shows up as blank. It needs to be a JSP page as there is dynamic data also on page which is being pulled from a database.

    I've tried using an iframe, with the SWF in a HTML page, which in turn is embedded into the JSP, but still no success!! I thought it was possible, am I missing something really simple??


Comments

  • Registered Users, Registered Users 2 Posts: 2,119 ✭✭✭p


    Try using this code rather than all the mess Dreamweaver puts in.

    You'll have to put some details in twice because IE sucks, but it's still way cleaner.
    <!--[if !IE]> -->
      <object type="application/x-shockwave-flash" data="movie.swf" width="400" height="300">
    <!-- <![endif]-->
    <!--[if IE]>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com
    /pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="300">
        <param name="movie" value="movie.swf" />
    <!-->
      </object>
    <!-- <![endif]-->
    


  • Registered Users, Registered Users 2 Posts: 3,112 ✭✭✭RikkFlair


    Great that worked a treat, thank you so much.

    I see what you mean about Dreamweaver adding in all that unecessary code.
    THanks again :)


Advertisement