1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Dreamweaver and Flash help

Discussion in 'Computers, Games, Electronics etc' started by adnoh, Apr 23, 2005.

  1. adnoh

    adnoh Senior Member

    Messages:
    1,016
    Likes Received:
    1
    Joined:
    Dec 22, 2003
    Location:
    Ontario
    ok,

    I'm doing a very basic website for my webdesign class. I am a total nooB to this stuff. The page so far has just one table, an image, and some text. I want to import a .swf file I made for the heading of the page. How do I import a flash file into my code?


    Here is what the code for the page looks like so far:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    }
    -->
    </style></head>


    <body bgcolor="#FFFFFF"><table width="800" height="387" border="1">
    <tr>

    <td width="396">

    More than business planning. More than advertising. Why? Because marketing is about finding new ways to create growth. It means truly
    understanding an existing or new business, researching whatever's out there, and defining an ideal, fresh vision, strikingly different from the competition.
    Then it means honing products/services, pricing, selling strategies, advertising, image and internal processes to become the company you truly want to be,
    no matter how off the beaten path. To achieve significant growth, you need the most comprehensive services available, at your side every step of the way,
    in a tight, coordinated team. You just found it. </p></td>

    <td width="388">[​IMG]</td>

    </tr>
    </table>

    </body>
    </html>




    Any help would be greatly appreciated :)
     
  2. pissedoffsol

    pissedoffsol RETIRED

    Messages:
    49,693
    Likes Received:
    53
    Joined:
    Sep 28, 2002
    Location:
    Retirement Home




    Step 1
    Choose File > Publish. Flash will now create the <object>, <param>, and <embed> tags for you. It will also create the classid and pluginspage attributes.

    Step 2
    Open the HTML document that Flash created, view the HTML source and copy the code into your HTML page where you want your Flash movie.

    Step 3
    Be sure that you have the "somefilename.swf" in your Web folder.


    Step 4
    Fix your code. its lame :)


    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css" media="screen">
    <!--
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    }
    
    #wrapper { width: 850px; margin: 0 auto; padding: 0; border: 1px solid #0000ff;}
    #leftcol { float: left; width: 370px; padding: 0; margin: 0; }
    #rightcol { float: right; width: 320px; padding: 0; margin: 0;}
    -->
    </style>
    </head>
    
    
    <body>
    <div id="wrapper">
    	<div id="leftcol">
     <p>More than business planning. More than advertising. Why? Because marketing is about finding new ways to 
    
    create growth. It means truly understanding an existing or new business, researching whatever's out there, and defining an 
    
    ideal, fresh vision, strikingly different from the competition. Then it means honing products/services, pricing, selling 
    
    strategies, advertising, image and internal processes to become the company you truly want to be, no matter how off the beaten 
    
    path. To achieve significant growth, you need the most comprehensive services available, at your side every step of the way, in 
    
    a tight, coordinated team. You just found it.</p>
    	</div>
    	
    	<div id="rightcol">
     <img src="Images/business%20One.jpg" alt="image description here" />
    	</div>
    
    </div>
    </body>
    </html>
    
    
    play with the widths to fit your pic and stuff.

    where do you want to add the flash to? in the heading? if so, use this code:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css" media="screen">
    <!--
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    }
    
    #wrapper { width: 850px; margin: 0 auto; padding: 0; border: 1px solid #0000ff;}
    #header { margin:0 auto; padding:0; }
    #leftcol { float: left; width: 370px; padding: 0; margin: 0; }
    #rightcol { float: right; width: 320px; padding: 0; margin: 0;}
    -->
    </style>
    </head>
    
    
    <body>
    <div id="wrapper">
    	<div id="header"><!-- insert flash object tag crap here --></div>
    	<div id="leftcol">
     <p>More than business planning. More than advertising. Why? Because marketing is about finding new ways to 
    
    create growth. It means truly understanding an existing or new business, researching whatever's out there, and defining an 
    
    ideal, fresh vision, strikingly different from the competition. Then it means honing products/services, pricing, selling 
    
    strategies, advertising, image and internal processes to become the company you truly want to be, no matter how off the beaten 
    
    path. To achieve significant growth, you need the most comprehensive services available, at your side every step of the way, in 
    
    a tight, coordinated team. You just found it.</p>
    	</div>
    	
    	<div id="rightcol">
     <img src="Images/business%20One.jpg" alt="image description here" />
    	</div>
    
    </div>
    </body>
    </html>
    
     
  3. adnoh

    adnoh Senior Member

    Messages:
    1,016
    Likes Received:
    1
    Joined:
    Dec 22, 2003
    Location:
    Ontario
    Thanks Brian, I really appreciate it. I'll try it out this afternoon!

    I know my code is lame :p Dreamweaver and I haven't really developed a working relationship as of yet :) Things are still a bit messy.
     
  4. pissedoffsol

    pissedoffsol RETIRED

    Messages:
    49,693
    Likes Received:
    53
    Joined:
    Sep 28, 2002
    Location:
    Retirement Home
    you'll never develop a solid relationship with dreamweaver. WYSIYYG editors blow.
     
  5. BodyDroppedNikes

    BodyDroppedNikes ...PENDEJO.... VIP

    Messages:
    10,593
    Likes Received:
    103
    Joined:
    Sep 28, 2002
    Location:
    caught in a mosh...
    i use Dreamweaver MX and to insert a flash picture or whatever, here is what i do (easiest way i know of):

    - click the "Show Design View" button. its on the left side at the top and looks like it has a picture in the left corner with scribbles on the side.

    - click the button thats a red circle with an F inside of the circle. thats for the flash object.

    - select the flash object you want to insert and double click it.

    thats basically it.

    i built (well still building) my site using DreamweaverMX. if you want to check it out, its: http://www.diversifiedridez.com. its a website for the car club i am in. if you have any questions, lemme know. i got the book that came with the software handy :)
     
  6. adnoh

    adnoh Senior Member

    Messages:
    1,016
    Likes Received:
    1
    Joined:
    Dec 22, 2003
    Location:
    Ontario



    Sweet man. Thanks for the input. I'm going to tackle this tomorrow so I'll let you know if I need any further help :)
     
  7. BodyDroppedNikes

    BodyDroppedNikes ...PENDEJO.... VIP

    Messages:
    10,593
    Likes Received:
    103
    Joined:
    Sep 28, 2002
    Location:
    caught in a mosh...
  8. adnoh

    adnoh Senior Member

    Messages:
    1,016
    Likes Received:
    1
    Joined:
    Dec 22, 2003
    Location:
    Ontario
    Ok, Still having an issue.

    I've fixed up the code via B's instructions, and it looks much better.

    My problem, is when I import my flash, it doesn't show the movie at all. It just has a large grey box with the flash logo, that most likely means "if you did this right, this is where your movie should be, dumbass".

    Here is a screen shot of what I mean:
    [​IMG]


    And here is what my code looks like, does anyone see anything?

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css" media="screen">
    <!--
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    }
    
    #wrapper { width: 850px; margin: 0 auto; padding: 0; border: 1px solid #0000ff;}
    #header { margin:0 auto; padding:0; }
    #leftcol { float: left; width: 370px; padding: 0; margin: 0; }
    #rightcol { float: right; width: 320px; padding: 0; margin: 0;}
    -->
    </style>
    </head>
    
    <body>
    <div id="wrapper">
    <div id="header"><!--DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>flash movie corp</title>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="850" height="200" id="flash movie corp" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="flash%20movie%20corp.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="flash%20movie%20corp.swf" quality="high" bgcolor="#ffffff" width="850" height="200" name="flash movie corp" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    </div>
    
    
    <div id="leftcol">
     <p>More than business planning. More than advertising. Why? Because marketing is about finding new ways to
    
    create growth. It means truly understanding an existing or new business, researching whatever's out there, and defining an
    
    ideal, fresh vision, strikingly different from the competition. Then it means honing products/services, pricing, selling
    
    strategies, advertising, image and internal processes to become the company you truly want to be, no matter how off the beaten
    
    path. To achieve significant growth, you need the most comprehensive services available, at your side every step of the way, in
    
    a tight, coordinated team. You just found it.</p>
    </div>
    
    <div id="rightcol">
     <img src="Images/business%20One.jpg" alt="image description here" />
    </div>
    
    </div>
    </body>
    </html>
     
  9. Battle Pope

    Battle Pope New Member

    Messages:
    10,279
    Likes Received:
    60
    Joined:
    Jun 22, 2004
    Location:
    Southern Oregon Coast
    Does the flash show when you open it in your browser?
     
  10. adnoh

    adnoh Senior Member

    Messages:
    1,016
    Likes Received:
    1
    Joined:
    Dec 22, 2003
    Location:
    Ontario
  11. pissedoffsol

    pissedoffsol RETIRED

    Messages:
    49,693
    Likes Received:
    53
    Joined:
    Sep 28, 2002
    Location:
    Retirement Home


    woah!!! nelly!!!!!!!!!!!!!!!


    lol


    you basically re-start your code all over again. all you want is the object to the /object code.




    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css" media="screen">
    <!--
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    }
    
    #wrapper { width: 850px; margin: 0 auto; padding: 0; border: 1px solid #0000ff;}
    #header { margin:0 auto; padding:0; }
    #leftcol { float: left; width: 370px; padding: 0; margin: 0; }
    #rightcol { float: right; width: 320px; padding: 0; margin: 0;}
    -->
    </style>
    </head>
    
    <body>
    <div id="wrapper">
    <div id="header">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="850" height="200" id="flash movie corp" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="flash%20movie%20corp.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="flash%20movie%20corp.swf" quality="high" bgcolor="#ffffff" width="850" height="200" name="flash movie corp" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    </div>
    
    
    <div id="leftcol">
     <p>More than business planning. More than advertising. Why? Because marketing is about finding new ways to
    
    create growth. It means truly understanding an existing or new business, researching whatever's out there, and defining an
    
    ideal, fresh vision, strikingly different from the competition. Then it means honing products/services, pricing, selling
    
    strategies, advertising, image and internal processes to become the company you truly want to be, no matter how off the beaten
    
    path. To achieve significant growth, you need the most comprehensive services available, at your side every step of the way, in
    
    a tight, coordinated team. You just found it.</p>
    </div>
    
    <div id="rightcol">
     <img src="Images/business%20One.jpg" alt="image description here" />
    </div>
    
    </div>
    </body>
    </html>


    that should work.


    and make sure, that the path to the movie is correct..
    flash%20movie%20corp.swf

    and using spaces in file names is a horrible idea dude. at least use underscores
     
  12. adnoh

    adnoh Senior Member

    Messages:
    1,016
    Likes Received:
    1
    Joined:
    Dec 22, 2003
    Location:
    Ontario
    Ahhhh.....now we're good!

    Looks great :)


    I've got two more pages to create now (no flash, just html) and then I have to link them together so it works like a real website.....that's pretty much the assignment (gotta love college).

    I'll hit you guys up if I need any more help.

    thanks again everyone.
     
Verification:
Draft saved Draft deleted

Share This Page