Results 1 to 10 of 10

Thread: Flash .swf Embedded in HTML

  1. #1
    Join Date
    Sep 2004
    Location
    Martil
    Age
    29
    Posts
    19,386
    Rep Power
    109855

    Default Flash .swf Embedded in HTML

    After creating a Flash movie you choose File > Save As from the top menu to save your movie. Save the file as "Somefilename.fla".
    To embed the Flash movie you just made into an HTML page, you should go back to your Flash program and do the following steps:
    Step 1
    Choose File > Open. Open a Flash movie you have created.
    Step 2
    Choose File > Export Movie.
    Step 3
    Name the file "somefilename.swf". Choose the location where the file is to be stored (in your Web folder). Click OK.
    Step 4
    Open the HTML page where you want to insert your Flash movie. Insert this code:
    <object width="550" height="400"><param name="movie" value="somefilename.swf"><embed src="somefilename.swf" width="550" height="400"></embed></object>
    Note: This is the minimum code you need to embed a Flash movie in a browser. A broken icon will appear on the Web page if the user does not have the Flash plug-in installed.
    Note: In the code above there is both an <embed> tag and an <object> tag. This is because the <object> tag is recognized by Internet Explorer, and Netscape recognizes the <embed> tag and ignores the <object> tag.
    Step 5
    Type in the address of the HTML file in your browser and look at your first Flash movie.

    Let the Flash Program do the Work

    The code above is the absolute minimum code to embed Flash movies in HTML pages. It is not recommended to use the minimum code. There should be a few more attributes added:
    • classid is an attribute to the <object> tag. It tells Internet Explorer to load the ActiveX plug-in if it is not installed
    • pluginspage is an attribute to the <embed> tag. It displays a link to the Shockwave download page if Netscape does not have it
    The Flash program can add these attributes for you:
    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
    Type in the address of the HTML file in your browser and look at your first Flash movie.
    -
    -


    **FAQ**


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
    [Only registered and activated users can see links. ]
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
    [Only registered and activated users can see links. ]
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
    [Only registered and activated users can see links. ]
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

  2.    Advertissements


  3. #2
    Join Date
    Sep 2007
    Location
    Sweden(right now)/Canada
    Age
    34
    Posts
    4,534
    Rep Power
    147207

    Default

    Thats really a great guide on how to. Didn't know it was that easy :D
    [Only registered and activated users can see links. ] <- Read me!!!
    If You Like My Post Please Add Rep++ Instead of saying thanks.
    Rep Is The Star Symbol At The Bottom Left
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

    Its Simple and doesn't clutter threads with unnecessary posts.

    [Only registered and activated users can see links. ]

  4. #3
    Join Date
    Apr 2007
    Location
    Bergen, Norway
    Age
    21
    Posts
    4,048
    Rep Power
    73733

    Default

    thank you for a great tutorial.... me as mtechfan didn't know that it was that easy... helps me alot...
    If you like my post click on this icon
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
    on the right top instead of making thanks posts.
    It saves space on the forum and prevents unnecessary posts!

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

    Specialized as a pocketpc moderator!
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]

  5. #4

    Default

    u can use one free program named easy flashlet builder...very simple and cool

  6. #5

    Default

    cool man. thanks for the info. you rock ^_^

  7. #6
    Join Date
    May 2007
    Location
    Gotham City
    Posts
    1,553
    Rep Power
    25111

    Default

    Thanks for the great information, Mr. Spiral.
    That's a cool tutorial, thank you very much.
    U2.COM

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


  8. #7

    Default

    Nice tutorial!

    The problem comes when you want your web page to be xhtml compliant and valid xhtml - the embed tag is a problem here!

    The alternative to using both embed and object tags is to use only the object tag. This small example shows how it is used: [Only registered and activated users can see links. ]

    It is much simpler than using both tags, and seems to work in most current browsers!

  9. #8

    Default

    very helpful post
    <marquee><font color="#FF007F">I am kimedillo a forum community active</font></marquee>

  10. #9

    Default

    thanks for your post

  11. #10

    Default

    Quote Originally Posted by Spiral View Post
    After creating a Flash movie you choose File > Save As from the top menu to save your movie. Save the file as "Somefilename.fla".
    To embed the Flash movie you just made into an HTML page, you should go back to your Flash program and do the following steps:
    Step 1
    Choose File > Open. Open a Flash movie you have created.
    Step 2
    Choose File > Export Movie.
    Step 3
    Name the file "somefilename.swf". Choose the location where the file is to be stored (in your Web folder). Click OK.
    Step 4
    Open the HTML page where you want to insert your Flash movie. Insert this code:


    Note: This is the minimum code you need to embed a Flash movie in a browser. A broken icon will appear on the Web page if the user does not have the Flash plug-in installed.
    Note: In the code above there is both an <embed> tag and an <object> tag. This is because the <object> tag is recognized by Internet Explorer, and Netscape recognizes the <embed> tag and ignores the <object> tag.
    Step 5
    Type in the address of the HTML file in your browser and look at your first Flash movie.

    Let the Flash Program do the Work

    The code above is the absolute minimum code to embed Flash movies in HTML pages. It is not recommended to use the minimum code. There should be a few more attributes added:
    • classid is an attribute to the <object> tag. It tells Internet Explorer to load the ActiveX plug-in if it is not installed
    • pluginspage is an attribute to the <embed> tag. It displays a link to the Shockwave download page if Netscape does not have it
    The Flash program can add these attributes for you:
    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
    Type in the address of the HTML file in your browser and look at your first Flash movie.
    well appreciated because of so easy tutorial
    really nice SpiraL ;)
    ERWIn
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219