+ Reply to Thread
Results 1 to 2 of 2
Like Tree2Likes
  • 2 Post By timothy.taylor

Thread: *****xml & swf_ please help_ im stuck*****

  1. #1
    timothy.taylor is offline x10Hosting Member timothy.taylor is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    11

    *****xml & swf_ please help_ im stuck*****

    So I'm new to XML and SWFs but i managed to get my gallery working locally. I havent however, managed to get it to play in dreamweaver or in a browser as idk how to attach the xml file to my swf once imported in dreamweaver. Is there a way I can import them together or if not how can i get my gallery working. The gallery is the one found here: http://flash-gallery.com/box-flash-gallery/demo/ I am new to code, but pretty good in dreamweaver and flash as long as I am using the Graphical interface. I know VERY BASIC html code and that is it. Please help me with this, and if it is complicated please give me detailed instructions. Thanks!

    Sincerly,
    Timothy


    Edit:
    The following is my code. It is now working but how would i center the slideshow and place it into a table?


    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=KOI8-R" />
    <title>Flash Gallery Demo</title>
    <script src="js/swfobject.js" type="text/javascript" ></script>
    <style type="text/css">
    <!--
    body {
    background-color: #000;
    }
    -->
    </style></head>
    <body>

    <h1 align="center">&nbsp;</h1>



    <script type="text/javascript">
    var flashvars = {XMLFile: "gallery.xml"};
    var params = {bgcolor: "#FFFFFF"};
    swfobject.embedSWF("BoxFlashGalleryDemo.swf", "myAlternativeContent","410", "380", "9.0.0",false, flashvars, params);
    </script>

    <div id="myAlternativeContent">
    <div align="center"><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"/>
    </a>
    </div>
    </div>


    <div align="center"><br />

    </div>
    </body>
    </html>
    Last edited by timothy.taylor; 10-13-2009 at 07:56 PM. Reason: Automerged Doublepost
    dinomirt96 and karimirt47 like this.

  2. #2
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: *****xml & swf_ please help_ im stuck*****

    first, you should always, when posting code, use [php] [/php], [html] [/html] or [code] [/code] as it preserves the code formatting and keeps your post good looking and organized.

    As for the xml file, I think you should have it in the same directory as the html file and flash file, as it is loaded at run-time.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers