<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Introduction to Web Design and Computer Principles</title>
	<atom:link href="http://digitalmedia2012.globalblogs.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://digitalmedia2012.globalblogs.org</link>
	<description>Spring 2012, New York University</description>
	<lastBuildDate>Tue, 08 May 2012 11:48:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Password Protecting content on i5</title>
		<link>http://digitalmedia2012.globalblogs.org/2012/05/08/password-protecting-content-on-i5/</link>
		<comments>http://digitalmedia2012.globalblogs.org/2012/05/08/password-protecting-content-on-i5/#comments</comments>
		<pubDate>Tue, 08 May 2012 11:48:20 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Dynamic Web Development]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://digitalmedia2012.globalblogs.org/?p=230</guid>
		<description><![CDATA[There are many ways in which you can password protect content on a website.  The most secure methods involve sending information over a secure socket layer (SSL) and handling the login via a server side script, but that&#8217;s beyond the &#8230; <a href="http://digitalmedia2012.globalblogs.org/2012/05/08/password-protecting-content-on-i5/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are many ways in which you can password protect content on a website.  The most secure methods involve sending information over a secure socket layer (SSL) and handling the login via a server side script, but that&#8217;s beyond the scope of this course!</p>
<p>Here are a few methods that you can use to do this &#8211; note that each one relies on a different strategy and has its own pros and cons depending on what you&#8217;re trying to secure.</p>
<p><strong>Strategy 1 &#8211; JavaScript</strong></p>
<ul>
<li>Difficulty:  Very easy!</li>
<li>Security:  Hardly any!</li>
</ul>
<p>With this method you simply need to copy and paste some code into the head of an HTML document to handle password protection. The user will be presented with a dialog box that will ask them for a password.  If they type it correctly they will be redirected to another HTML page that contains the &#8220;secure&#8221; content.</p>
<p>Note that the user could easily break this method by viewing the source of your page.  They could also get around it completely if they know the absolute URL to your protected page.</p>
<p>With that said, this is a good &#8220;quick and dirty&#8221; solution if you need to prevent casual users from accessing content on a page.</p>
<p>Here&#8217;a  tutorial on how to get started: <a href="http://www.javascriptkit.com/script/cut10.shtml" target="_blank"> http://www.javascriptkit.com/script/cut10.shtml</a></p>
<p><strong>Strategy #2 &#8211; PHP</strong></p>
<ul>
<li>Difficulty:  Intermediate</li>
<li>Security:  Pretty good</li>
</ul>
<p><span style="line-height: 24px;">For this method you need to create a new PHP page on your site that contains some dynamic code that asks the user for a password.  The password is hidden on the server side and is never displayed the user, making it impossible to view if you use the &#8220;view source&#8221; technique above. With that said, an advanced web user who is &#8220;sniffing&#8221; your web traffic could see your password attempts when you click the submit button.</span></p>
<p>Setup is fairly straightforward &#8211; you create a new PHP script on the server that defines your password.  If the user supplies it correctly then the PHP page will display some HTML content of your choosing.  You would need to paste all of your content into this one page to make everything work.</p>
<p>Here&#8217;s a tutorial on how to get started:  <a href="http://www.stevedawson.com/article0014.php" target="_blank">http://www.stevedawson.com/article0014.php</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://digitalmedia2012.globalblogs.org/2012/05/08/password-protecting-content-on-i5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finals week office hour schedule</title>
		<link>http://digitalmedia2012.globalblogs.org/2012/05/06/finals-week-office-hour-schedule/</link>
		<comments>http://digitalmedia2012.globalblogs.org/2012/05/06/finals-week-office-hour-schedule/#comments</comments>
		<pubDate>Sun, 06 May 2012 13:41:58 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Announcements]]></category>

		<guid isPermaLink="false">http://digitalmedia2012.globalblogs.org/?p=228</guid>
		<description><![CDATA[Hi everyone, Hope you are having a nice weekend. I will be holding office hours during the following times this week: Monday 5/7 &#8211; 2pm to 3pm Wednesday 5/9 &#8211; 10am &#8211; 11:45am In addition, we will also spend our &#8230; <a href="http://digitalmedia2012.globalblogs.org/2012/05/06/finals-week-office-hour-schedule/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi everyone,</p>
<p>Hope you are having a nice weekend. I will be holding office hours during the following times this week:</p>
<ol>
<li><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">Monday 5/7 &#8211; 2pm to 3pm</span></li>
<li><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">Wednesday 5/9 &#8211; 10am &#8211; 11:45am</span></li>
</ol>
<p>In addition, we will also spend our class time on Monday 5/7 reviewing for the final exam and going over any issues you may have had while building out your interactive Flash project.</p>
<p>And, as always, feel free to drop me a line if you have any question.  Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://digitalmedia2012.globalblogs.org/2012/05/06/finals-week-office-hour-schedule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Final Exam Review Sheet</title>
		<link>http://digitalmedia2012.globalblogs.org/2012/05/02/final-exam-review-sheet/</link>
		<comments>http://digitalmedia2012.globalblogs.org/2012/05/02/final-exam-review-sheet/#comments</comments>
		<pubDate>Wed, 02 May 2012 14:56:38 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Final]]></category>

		<guid isPermaLink="false">http://digitalmedia2012.globalblogs.org/?p=214</guid>
		<description><![CDATA[Our final exam, which will be held on Monday May 14, 2012 from 10:00am &#8211; 11:50am in WWH 1302 and will cover a variety of topics, including those listed below.  To prepare for the exam you should review assigned course readings, assignments &#8230; <a href="http://digitalmedia2012.globalblogs.org/2012/05/02/final-exam-review-sheet/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Our final exam, which will be held on Monday May 14, 2012 from 10:00am &#8211; 11:50am in WWH 1302 and will cover a variety of topics, including those listed below.  To prepare for the exam you should review assigned course readings, assignments as well as the terms and concepts outlined below.</p>
<p>Flash</p>
<p>- What is it?<br />
- What can you create with Flash?<br />
- Support for different types of media (bitmapped images, vector art, audio, etc)<br />
- Working with Flash assets (building shapes, organizing layers, etc)<br />
- Types of tweens (motion, shape, armature / poses)<br />
- The Flash library<br />
- Types of symbols (MovieClips, Buttons, Graphics)<br />
- Working with the timeline (keyframes, frames, empty keyframes, etc.)<br />
- naming symbol instances</p>
<p>Animated GIFs<br />
- What are they?<br />
- How do they work?<br />
- Limitations of animated GIFs<br />
- GIFs vs. SWFs<br />
- RGB color basics</p>
<p>DreamWeaver<br />
- What is it?<br />
- Code view vs. WYSIWYG view – when to use each<br />
- Setting up a site in Dreamweaver<br />
- The CSS box model<br />
- Internal vs. Eternal styles<br />
- Hyperlinks (text based, image based, image map, absolute vs. relative, etc.)<br />
- Table basics<br />
- Frames basics<br />
- HTML basics (tag pairings, basic structure, etc.)</p>
<p>Audacity<br />
- What is it?<br />
- Working with sound files<br />
- Producing sounds</p>
<p>Podcasting / XML<br />
- What is a podcast?<br />
- What kinds of devices can play a podcast?<br />
- General structure (XML document that links to audio files)</p>
<p>CSS Basics<br />
- What is CSS?<br />
- Syntax of a CSS “rule”<br />
- Placement of CSS rules in a document<br />
- Using CSS rules on multiple pages throughout a site</p>
<p>HTML<br />
- What is HTML?<br />
- HTML Syntax (tag structure, head tag, body tag, etc.)<br />
- Debugging a HTML document</p>
]]></content:encoded>
			<wfw:commentRss>http://digitalmedia2012.globalblogs.org/2012/05/02/final-exam-review-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: Hack this code &#8211; Build your own video game</title>
		<link>http://digitalmedia2012.globalblogs.org/2012/05/01/hack-this-code-build-your-own-video-game/</link>
		<comments>http://digitalmedia2012.globalblogs.org/2012/05/01/hack-this-code-build-your-own-video-game/#comments</comments>
		<pubDate>Tue, 01 May 2012 21:27:37 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://digitalmedia2012.globalblogs.org/?p=206</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://digitalmedia2012.globalblogs.org/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-206">Password:<br />
<input name="post_password" id="pwbox-206" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://digitalmedia2012.globalblogs.org/2012/05/01/hack-this-code-build-your-own-video-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Generic Menu Template</title>
		<link>http://digitalmedia2012.globalblogs.org/2012/04/30/flash-generic-menu-template/</link>
		<comments>http://digitalmedia2012.globalblogs.org/2012/04/30/flash-generic-menu-template/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 13:16:14 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://digitalmedia2012.globalblogs.org/?p=203</guid>
		<description><![CDATA[I’ve created a sample template that you can use to get started – here’s how it works: Begin by downloading the Generic Menu template FLA file (Flash CS4 version) Open up this file and test it (Control -&#62; Test Movie). &#8230; <a href="http://digitalmedia2012.globalblogs.org/2012/04/30/flash-generic-menu-template/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I’ve created a sample template that you can use to get started – here’s how it works:</p>
<ol>
<li>Begin by downloading the <a href="http://digitalmedia2012.globalblogs.org/files/2012/04/generic_menu_cs4.fla_.zip">Generic Menu template FLA file</a> (Flash CS4 version)</li>
<li>Open up this file and test it (Control -&gt; Test Movie). You should see a screen that looks like the following:<object width="640" height="480" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://digitalmedia2011.globalblogs.org/files/2011/12/generic_menu.swf" /><embed width="640" height="480" type="application/x-shockwave-flash" src="http://digitalmedia2011.globalblogs.org/files/2011/12/generic_menu.swf" /></object></li>
<li>All of the necessary ActionScript and behaviors have been set up for you in this template. Each item has a unique name, and all code is on Frame #1 on the “Actions” layer. Here’s an overview of each symbol:
<ol>
<li>button_1 – bottom left, controls the visibility of movie_1</li>
<li>button_2 – middle, controls the visibility of movie_2</li>
<li>button_3 – bottom right, controls the visibility of movie_3</li>
<li>movie_1 – shape tween</li>
<li>movie_2 – motion tween</li>
<li>movie_3 – bone tool / IK Joint Pose</li>
</ol>
</li>
</ol>
<p>You can easily replace each of the movies and buttons with your own content. Here’s how to get started:</p>
<ol>
<li>Build all of your content in a new Flash movie. Make sure you have a symbol in your library for each item you want to replace. For example, if you want to replace movie_1, movie_2 and movie_3 you will want to create three new Movie Clips. Make sure to name them something different (i.e. mymovie_1, mymovie_2, mymovie_3)</li>
<li>Make sure you have both the Generic Menu Template and your Source Movie open a the same time</li>
<li>View your source movie and open up the Library panel</li>
<li>Highlight the clips you want to use in your menu project. Right click and select “copy”</li>
<li>View the generic menu movie and open up the Library panel</li>
<li>Right click in the Library and select “paste”</li>
<li>On the stage, click on movie_1. Open the Properties panel and click the “Swap” button. Find the movie you want to “swap” in — this will replace the generic movie_1 clip with your own clip.</li>
<li>Repeat the process for the other two clips</li>
<li>You won’t need to change any ActionScript – Flash will automatically use your new artwork in the menu system</li>
<li>Here’s a video that shows this process in action:</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://digitalmedia2012.globalblogs.org/2012/04/30/flash-generic-menu-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Interactivity Resources</title>
		<link>http://digitalmedia2012.globalblogs.org/2012/04/30/flash-interactivity-resources/</link>
		<comments>http://digitalmedia2012.globalblogs.org/2012/04/30/flash-interactivity-resources/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 13:14:56 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://digitalmedia2012.globalblogs.org/?p=201</guid>
		<description><![CDATA[Click here to access a ZIP file that contains a number of interactive Flash demos, including: 01-simple_menu.fla – A simple 2 button menu that toggles the visibility of two different movie clips 02-simple_menu_audio.fla – An extension of the simple menu &#8230; <a href="http://digitalmedia2012.globalblogs.org/2012/04/30/flash-interactivity-resources/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://cims.nyu.edu/~kapp/wp-content/uploads/2011/05/v22_flash_interactivity.zip">Click here to access a ZIP file that contains a number of interactive Flash demos</a>, including:</p>
<ul>
<li>01-simple_menu.fla – A simple 2 button menu that toggles the visibility of two different movie clips</li>
<li>02-simple_menu_audio.fla – An extension of the simple menu that incorporates an audio “soundtrack” into one of the movie clips</li>
<li>03-simple_menu_audiobuttons.fla – An extension of the simple menu that plays audio when the user “rolls over” the navigation buttons</li>
<li>04-drag_drop.fla – A simple demo on how to let users drag and drop items around on the screen</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://digitalmedia2012.globalblogs.org/2012/04/30/flash-interactivity-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Animation Techniques</title>
		<link>http://digitalmedia2012.globalblogs.org/2012/04/25/flash-animation-techniques/</link>
		<comments>http://digitalmedia2012.globalblogs.org/2012/04/25/flash-animation-techniques/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 13:12:21 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://digitalmedia2012.globalblogs.org/?p=191</guid>
		<description><![CDATA[Here’s a quick redux on the animation topics we have covered so far. Shape Tweens &#160; A shape tween is used to move simple shapes around the stage Shape tweens can “morph” a shape from one form to another Shape &#8230; <a href="http://digitalmedia2012.globalblogs.org/2012/04/25/flash-animation-techniques/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here’s a quick redux on the animation topics we have covered so far.</p>
<p><strong>Shape Tweens</strong></p>
<p><strong><object width="550" height="100" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://cims.nyu.edu/~kapp/wp-content/uploads/2011/04/shapetween.swf" /><embed width="550" height="100" type="application/x-shockwave-flash" src="http://cims.nyu.edu/~kapp/wp-content/uploads/2011/04/shapetween.swf" /></object></strong></p>
<p>&nbsp;</p>
<ul>
<li>A shape tween is used to move simple shapes around the stage</li>
<li>Shape tweens can “morph” a shape from one form to another</li>
<li>Shape tweens must begin and end with a keyframe</li>
<li>Here’s how to construct a new shape tween:
<ul>
<li>Create a new Flash ActionScript 3.0 file (FLA)</li>
<li>Add a new layer to your timeline (Insert -&gt; Timeline -&gt; Layer)</li>
<li>Click on this layer inside the first frame</li>
<li>Draw a simple shape (rectangle, oval, etc)</li>
<li>Click somewhere further on in the timeline (i.e. frame 50)</li>
<li>Insert a keyframe (Insert -&gt; Timeline -&gt; Keyframe)</li>
<li>Modify the shape in some way in this frame (move it somewhere else, replace it with a new shape, recolor it, etc)</li>
<li>Click somewhere in-between these two keyframes on your timeline and click on Insert -&gt; Shape Tween</li>
<li>Play your moving using Control -&gt; Play</li>
<li>You can adjust either of the keyframes to change how the animation unfolds — you can also add new keyframes anywhere within the shape tween to “break up” the animation into another segment</li>
</ul>
</li>
</ul>
<p><strong>Motion Tweens</strong></p>
<p><strong><object width="550" height="100" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://cims.nyu.edu/~kapp/wp-content/uploads/2011/04/motiontween.swf" /><embed width="550" height="100" type="application/x-shockwave-flash" src="http://cims.nyu.edu/~kapp/wp-content/uploads/2011/04/motiontween.swf" /></object></strong></p>
<ul>
<li>A motion tween is used to move “complex” objects around the screen</li>
<li>In order to be moved using a motion tween the object in question MUST be in the Library of your FLA</li>
<li>Motion tweens must begin with a keyframe — you will be able to add in additional keyframes to your animation after you have set things up</li>
<li>Here’s how to get started with creating a motion tween:
<ul>
<li>Create a new Flash ActionScript 3.0 file (FLA)</li>
<li>Add a new layer to your timeline (Insert -&gt; Timeline -&gt; Layer)</li>
<li>Click on this layer inside the first frame</li>
<li>Next we need to import an image into the library of your movie. You can do this by clicking on File -&gt; Import -&gt; Import to Library</li>
<li>Open up your library panel – you will see that two symbols will show up. One will be called the name of your file (i.e. myimage.jpg) and the other will be called ‘Symbol 1′ or something simliar. Right-click on the Symbol 1 item and rename it something more meaningful.</li>
<li>Drag a copy of this new symbol onto the stage</li>
<li>Next, you need to define how long your animation should last. Click somewhere on the timeline (i.e. frame 50) and insert a frame (Insert -&gt; Timeline -&gt; Frame)</li>
<li>Click somewhere in the newly extended frame bar for this layer and click on Insert -&gt; Motion Tween — the frame bar should turn blue</li>
<li>You can now move your object anywhere you’d like at any frame within this blue bar — Flash will automatically “tween” your item to that position. You can also change other properties on your item, such as its rotation, size and opacity / transparency.</li>
</ul>
</li>
</ul>
<p><strong>Library Symbols</strong></p>
<p>In the previous example (Motion Tweens) we imported graphics directly into your Library. You can also create new library symbols that incorporate both imported and hand-drawn objects. Here’s how to get started:</p>
<ul>
<li>Click Insert -&gt; New Symbol</li>
<li>Type in a name for your symbol, select ‘MovieClip’ as the symbol type and then click OK</li>
<li>You will notice that you are in “edit” mode for this symbol because the name of the symbol appears next to the ‘Scene 1′ hyperlink at the top left side of the screen.</li>
<li>You can now draw your own objects and add in shape tweens on the timeline for this symbol. This timeline is separate from the “main” timeline and allows you to create “movies inside of movies” in Flash.</li>
<li>You can also import graphics from outside Flash by clicking on File -&gt; Import -&gt; Import to Stage</li>
<li>When you are finished you can click on the ‘Scene 1′ hyperlink to return to your main movie. You can then drag copies of your newly created symbol onto the stage and animate it using a Motion Tween.</li>
</ul>
<p><strong>The Bone Tool</strong></p>
<p><object width="550" height="100" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://cims.nyu.edu/~kapp/wp-content/uploads/2011/04/bone.swf" /><embed width="550" height="100" type="application/x-shockwave-flash" src="http://cims.nyu.edu/~kapp/wp-content/uploads/2011/04/bone.swf" /></object></p>
<ul>
<li>The Bone tool lets you set up “bones” and “joints” within your shapes and movie clips. Once established, these structures let you “bend” your objects in ways that can’t easily be done using a simple shape or motion tween</li>
<li><a href="http://youtu.be/h814ob7nCxo" target="_blank">Here’s a great video tutorial to get you started</a>!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://digitalmedia2012.globalblogs.org/2012/04/25/flash-animation-techniques/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to Flash</title>
		<link>http://digitalmedia2012.globalblogs.org/2012/04/22/introduction-to-flash/</link>
		<comments>http://digitalmedia2012.globalblogs.org/2012/04/22/introduction-to-flash/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 19:33:09 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://digitalmedia2012.globalblogs.org/?p=183</guid>
		<description><![CDATA[Basic 2D digital animation can be likened to “flip-book” animation. In order to simulate the illusion of motion it is necessary to draw an individual “frame” of animation that depicts each discrete state of the movement you are attempting to &#8230; <a href="http://digitalmedia2012.globalblogs.org/2012/04/22/introduction-to-flash/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="style1">Basic 2D digital animation can be likened to “flip-book” animation. In order to simulate the illusion of motion it is necessary to draw an individual “frame” of animation that depicts each discrete state of the movement you are attempting to convey. After this has been accomplished, the images are assembled together into a self-contained package that can easily be inserted into a web page.</p>
<p class="style1">The most common type of basic animation is the animated GIF file. Some examples can be seen below:</p>
<div id="attachment_109" class="wp-caption alignnone" style="width: 98px;">
<p><a href="http://digitalmedia2011.globalblogs.org/files/2011/12/book.gif"><img class="alignnone size-full wp-image-271" title="book" src="http://digitalmedia2011.globalblogs.org/files/2011/12/book.gif" alt="" width="88" height="92" /></a></p>
<p class="wp-caption-text">Animated Guest Book Graphic (~18K)</p>
</div>
<div id="attachment_110" class="wp-caption alignnone" style="width: 98px;">
<p><a href="http://digitalmedia2011.globalblogs.org/files/2011/12/pumpkin.gif"><img class="alignnone size-full wp-image-272" title="pumpkin" src="http://digitalmedia2011.globalblogs.org/files/2011/12/pumpkin.gif" alt="" width="58" height="60" /></a></p>
<p class="wp-caption-text">Animated Pumpkin Graphic (~8K)</p>
</div>
<p class="style1">The advantage to using animated graphics like the ones above is easily seen – they are mildly engaging and easily inserted into existing web sites in the form of an image file. However, animated graphics by nature are much larger than their “static” cousins. This occurs because you are effectively adding an additional graphic (or frame) for each bit of motion you wish to simulate. Animated graphics do not allow for any interactivity, nor do they allow you to incorporate any additional media capabilities, including an audio track.</p>
<h3 class="style1"><strong>What is Flash? </strong></h3>
<p class="style1">The current state of the web imposes a stringent set of limitations on potential applications, none the least of which is bandwidth. It takes time to transmit information across the Internet, so the larger the amount of information, the longer it will take to transmit.</p>
<p class="style1">Flash came into being to attempt to fill the long vacant niche of web based animation. Traditional computer generated animation came along with the price tag of huge file sizes, mainly due to the fact that they stored graphical information as a series of bitmaps. For every individual pixel, one or more bits had to be allocated to store a color value. Flash stores information as a set of vectors, or mathematical equations. This allows a significant reduction in the amount of space needed to store a graphical object. Consider the following example:</p>
<p class="style1"><a style="line-height: 24px;" href="http://digitalmedia2011.globalblogs.org/files/2011/12/smallcircle.gif"><img class="alignnone size-full wp-image-273" title="smallcircle" src="http://digitalmedia2011.globalblogs.org/files/2011/12/smallcircle.gif" alt="" width="15" height="15" /></a></p>
<p class="style1">The graphic above is a bitmapped circle. The computer must store a set color values for each discrete point on, around, and inside the circle. When the circle expands in size, so do the points, and thus quality is lost.</p>
<p class="style1">The computer must allocate a 15×15 grid of pixels to store the circle. That’s 225 individual pixels. If we were using 8 bit color (256 colors), we need exactly 1,800 bytes to store the image above.</p>
<p class="style1">A vector based rendition of this circle would contain the following:</p>
<p class="style1">4 = x2 + y2 , 0000FF</p>
<p class="style1">All we need to do is to store the mathematical equation for a circle and the color value of the object. This equates to a significant reduction in the amount of space needed to store the circle. And, as an added bonus, vector based images are fully scalable. As you increase their size, their edges do not get “pixilated” due to the enlarging on individual pixels. The mathematical equation simply gets recalculated using higher values to generate the same smooth curve.</p>
<p class="style1">The other feature that makes Flash so suitable for web delivery is that it also has a built in ability to create “streaming” animations. A Flash movie will begin playing before the entire file has downloaded. The remaining portion of the movie will download in the background automatically, thus freeing the end user from a lengthy download.</p>
<h3 class="style1"><strong>Anatomy of Flash</strong></h3>
<p class="style1">Go ahead and open up Flash. The Flash application interface is similar to that of Photo Shop. Along the left side of the screen you’ll see a series of drawing tools, and to the right you will see an a white box which is called the ’stage.’ At the bottom of the screen you will see the ‘Properties’ panel for editing specific aspects of a selected object and at the right you will see a space for docking specialized editing panels. So far, so good. The main difference between the Flash interface and that of a 2D image editing program is the ‘Timeline’ that runs along the top of the screen. The timeline allows you to define changes in your images over time and thus gives you the ability to create scenes that animate.</p>
<p class="style1"><a href="http://digitalmedia2011.globalblogs.org/files/2011/12/2009-02-02_2251.png"><img class="alignnone size-full wp-image-277" title="2009-02-02_2251" src="http://digitalmedia2011.globalblogs.org/files/2011/12/2009-02-02_2251.png" alt="" width="869" height="719" /></a></p>
<h3 class="style1"><strong>The Timeline</strong></h3>
<p class="style1">The timeline is arguably one of the most important areas of the Flash interface. All visible graphics, animations, sound and video objects must appear on the timeline in order for the end user to see and / or interact with them (with the exception of graphics generated via ActionScript, but we’ll get to that in a bit!) The small rectangular boxes that extend out from the left side of the interface are called “frame” markers. Frame markers are numbered along the top of the screen for reference purposes – you will be referring to them quite often when designing animation sequences. These numbers represent time – the larger the number, the farther away the frame marker is from the beginning of the movie.</p>
<p class="style1">In general Flash movies run at 24 frames per second (FPS.) You can change this value by clicking on the stage and setting a new number in the ‘Frame rate’ box in the Properties panel. Under this system you can divide the total number of frames you are using by 12 to determine how long in seconds your animation will last. For example, a 36 frame animation will last 3 seconds.</p>
<p class="style1">We need to create some content on the timeline before we can start animating in Flash. Content can be drawn from within Flash or can be brought in from another source, such as an image, video or sound file. Content must be put into a “keyframe” on the timeline. Keyframes denote that something “new” is happening on the timeline. For example, If you wanted a ball to appear in your animation at frame 5 you could place a keyframe on frame 5 and draw a ball. If you wanted to have the ball exist for 5 frames and then disappear you would create a blank keyframe on frame 10. That way Flash would know that there was a “change” on frame 10 and that the ball was no longer to be displayed. Keyframes become very important in animation as they allow you define the “start” and “end” point of an animation sequence. Keyframes appear as little circles within a frame. If the circle is white it means that the keyframe is blank. If it is shaded it means that there is something in that frame.</p>
<p class="style1">You will need to create multiple layers on the timeline if you’d like to have more than one thing happen at the same time. Flash can only support one animation per layer. You can add new layers by using the ‘Insert layer’ icon in the timeline panel. Layers can be renamed and can be organized into folders for easier access.</p>
<h3 class="style1"><strong>Animation Techniques </strong></h3>
<p class="style1">There are two basic animation techniques in Flash – Shape Tweening and Motion Tweening. The easier of the two – Shape Tweening – should be used in the following circumstances:</p>
<ol class="style1">
<li>To move simple shapes across the screen</li>
<li>To “morph” simple shapes into other simple shapes</li>
</ol>
<p class="style1">Keep in mind that all animation in Flash requires that the animation take place on its own Layer, which is similar to a PhotoShop layer. If you have Flash open you should already have a layer to work with in the Timeline area named ‘Layer 1′. If you need to make more you can always click on INSERT-&gt;TIMELINE-&gt;LAYER.</p>
<p class="style1">Click on the small white box on layer 1 that has a small circle in it. This is Flash’s symbol for a keyframe and it tells Flash that something new exists in this frame of animation. After you’ve clicked here go ahead and use the drawing tools to draw a blue ball on the stage. You can do this by looking for the Rectangle Tool (the 8th icon down in the drawing toolbar), positioning your mouse over tool and holding down the left mouse button. After a second or two a sub-menu will appear – select the oval tool and draw a ball similar to the one below. Selecting a color using the swatches at the bottom of the drawing toolbar will cause the ball to be drawn with the fill color of your choice.</p>
<p class="style1"><a href="http://digitalmedia2011.globalblogs.org/files/2011/12/2009-02-02_2258.png"><img class="alignnone size-full wp-image-276" title="2009-02-02_2258" src="http://digitalmedia2011.globalblogs.org/files/2011/12/2009-02-02_2258.png" alt="" width="869" height="720" /></a></p>
<p class="style1">Now we want to move the ball across the stage. To do that we need to first tell Flash how long this animation should take. We measure how long animations last in Flash in terms of how many frames they take to execute. As stated above, the default speed of a Flash movie is 12 frames per second, so let’s have this ball take 2 seconds to move across the stage. Click your mouse inside Frame 24 on Layer 1 and choose INSERT-&gt;TIMELINE-&gt;KEYFRAME. Your screen will look as follows:</p>
<p class="style1"><a href="http://digitalmedia2011.globalblogs.org/files/2011/12/2009-02-02_2300.png"><img class="alignnone size-full wp-image-278" title="2009-02-02_2300" src="http://digitalmedia2011.globalblogs.org/files/2011/12/2009-02-02_2300.png" alt="" width="870" height="719" /></a></p>
<p class="style1">Now we’ve told Flash that there’s something going on in Frame 1 (a ball at the top of the screen) – we’ve also told it that nothing is happening from frame 1 to Frame 24 (as can be seen by the standard gray frames that exist on the timeline). Frame 24 has a keyframe in it, which means that something can change in the animation here. Let’s move the ball now. Make sure that you’ve got Frame 24 selected and move your ball to the bottom right of the screen. Try playing your movie now and see how it works (CONTROL-&gt;PLAY MOVIE)</p>
<p><span class="style1"> <object width="550" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01.swf" /><param name="src" value="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01.swf" /><embed width="550" height="400" type="application/x-shockwave-flash" src="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01.swf" data="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01.swf" /></object></span></p>
<p class="style1">See how choppy this is? In order to make it smoother we have to tell Flash to animation the frames in between the two keyframes. To do that click anywhere in-between those frames on the timeline and choose SHAPE from the TWEEN menu at the bottom of the screen. Playing your movie now will result in the following:</p>
<p><span class="style1"> <object width="550" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-2.swf" /><param name="src" value="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-2.swf" /><embed width="550" height="400" type="application/x-shockwave-flash" src="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-2.swf" data="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-2.swf" /></object></span></p>
<p class="style1">Note that you can change any aspect of the animation by modifying what’s going on in the keyframes. If you wanted to move the ball to the top right instead of the bottom right just move the ball in Frame 24. Playing your movie again will show the change in your animation. If you’d like the animation to take longer you can click and then click-drag the keyframe in frame 24 to a higher frame, thus adding more time in between the two keyfames. Likewise if you’d like to make it shorter you can drag the keyframes closer together.</p>
<p class="style1">Shape tweens also allow you to take advantage of Flash’s ability to work with vector based objects and perform what is called a ’shape morphing’ – to see this in action let’s modify your movie a bit. Click into your first frame and select your ball using the black arrow tool. Then delete the ball and replace it with a red square. Running your animation again will result in the following:</p>
<p class="style1"><object width="550" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-3.swf" /><param name="src" value="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-3.swf" /><embed width="550" height="400" type="application/x-shockwave-flash" src="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-3.swf" data="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-3.swf" /></object></p>
<h3 class="style1"><strong>Symbols &amp; Motion Tweening</strong></h3>
<p class="style1">Flash also allows you to move more complex objects across the stage, though if you were to try and move a complex object (one with many shapes, colors, etc) using the Shape Tweening technique you would be presented with a weird image morph effect going on all the time. To allow objects to ’stick together’ we have to group them in some way.</p>
<p class="style1">To start, open up a new Flash movie. Then click on INSERT-&gt;NEW SYMBOL. We’re going to create a ‘Movie Clip’ symbol of a Snowman, so type ‘Snowman’ into the Name blank. Then click the OK button. You’ll notice that your screen changes slightly to indicate that you are editing a symbol (see below):</p>
<p class="style1"><a href="http://digitalmedia2011.globalblogs.org/files/2011/12/2009-02-02_2313.png"><img class="alignnone size-full wp-image-279" title="2009-02-02_2313" src="http://digitalmedia2011.globalblogs.org/files/2011/12/2009-02-02_2313.png" alt="" width="871" height="715" /></a></p>
<p class="style1">The “breadcrumbs” above the timeline indicate that you are currently inside Scene 1 of your movie, editing the ‘Snowman’ symbol. You can get back to Scene 1 by clicking on its name (it acts similarly to a hyperlink.) You can also use the ‘Library’ on the right side of the screen to edit symbols – just double click on symbol to go into “editing” mode.</p>
<p class="style1">Okay, so we’re in editing mode for our little Snowman. Go ahead and draw a snowman similar to the one below on the stage:</p>
<p class="style1"><a href="http://digitalmedia2011.globalblogs.org/files/2011/12/2009-02-02_2322.png"><img class="alignnone size-full wp-image-280" title="2009-02-02_2322" src="http://digitalmedia2011.globalblogs.org/files/2011/12/2009-02-02_2322.png" alt="" width="870" height="718" /></a></p>
<p class="style1">Click on the ‘Scene 1′ hyperlink to get back to scene 1 of your movie. Click on the keyframe on layer 1 and drag a copy of your Snowman out of the library and onto the stage. Go to frame 24 and create a frame — then right click in the range and select CREATE MOTION Tween. Move the Snowman across the screen on the last frame — this will automatically add in a keyframe to the layer. Your movie should look something like this:</p>
<p class="style1"><object width="550" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-4.swf" /><param name="src" value="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-4.swf" /><embed width="550" height="400" type="application/x-shockwave-flash" src="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-4.swf" data="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-4.swf" /></object></p>
<p class="style1">You have some additional options at your disposal for motion tweens that can be defined using the properties panel. For example, if you want the snowman to rotate while moving you can use the ‘Rotate’ drop down to define which direction and number of rotations to apply to the tween. You can also modify the symbol at either keyframe to change how the animation takes place – for example, a popular effect is to “scale” the snowman down to a smaller (or larger) size to simulate the object getting bigger (or smaller) over time. You can also click on the symbol and use the ‘Color’ dropdown to change color aspects – the most popular effect here is to change the Alpha (opacity) of the image to simulate it fading in or out as can be seen below:</p>
<p class="style1"><object width="550" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-5.swf" /><param name="src" value="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-5.swf" /><embed width="550" height="400" type="application/x-shockwave-flash" src="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-5.swf" data="http://digitalmedia2011.globalblogs.org/files/2011/12/lesson01-5.swf" /></object></p>
<h3 class="style1"><strong>Using Sound and Music</strong></h3>
<p class="style1">Flash makes it easy to include sound and music in your projects. The first step to using audio is to obtain a music file. Flash works best with MP3 files, but you can use other files in a pinch. Keep in mind that adding lots of music to your movies will cause the final file size to increase dramatically. A good place to find audio files is at the <a href="http://www.flashkit.com/loops/" target="_blank">Flash Kit Loops Library</a>. This library of audio files are designed to be “looped” over and over to provide a seamless background track for your movie.</p>
<p class="style1">Once you have a file downloaded to your machine you can bring it into Flash by clicking on FILE -&gt; IMPORT -&gt; IMPORT TO LIBRARY. The audio file will appear in your library listing and you can use the ‘Play’ button over in the library interface to preview the sound.</p>
<p class="style1">Sounds need to go onto the timeline just like everything else in Flash. I like to create an entirely separate layer for sounds. Once you have a layer you can drag the file out onto the stage – it won’t show up as a visual object there, but you’ll know you did it right if the timeline indicates that there is a “waveform” present on the layer. Click on this waveform and look at the properties panel. The ‘Sync’ property allows you to define how the sound will play within your movie. Setting this to ‘Event’ will play the sound as a high quality sound but will not guarantee that the sound will always synchronize with the animation that is happening on other layers. Changing this to ‘Stream’ will force the sound to synchronize with the timeline, though the quality may be slightly less than if you set it to ‘Event.’ For purposes of the Music Video assignment you should use the ‘Stream’ property.</p>
<h3 class="style1"><strong><strong>Testing Your Movie</strong></strong></h3>
<p class="style1">The best way to test your movie is through the CONTROL -&gt; TEST MOVIE command. This command lets you see how your movie will appear once it is “published” (see below). It also removes “housekeeping” items, such as motion guides, and crops the edge of your movie so that you only see objects that are actively on the stage. From this point forward when we will be using this technique in lieu of the CONTROL -&gt; PLAY command.</p>
<h3 class="style1"><strong>Publishing Your Movie</strong></h3>
<p class="style1">When you’re all done you’ll probably want to do something with your movie other than watch it within Flash. Thankfully Flash exports itself into a number of very compatible formats. To export your movie you should first save it and then click on FILE -&gt; PUBLISH SETTINGS. HTML and SWF should be checked – these are the default web compatible formats. You can also export Flash as a Quicktime movie if you’d like to import it into a more comprehensive video editing package, or use the Windows or Mac projector file to create a self executable file that can be played without any special software (SWF files need the free Flash plug in in order to play).</p>
<p class="style1">Once you’ve published your file you can link it to your web site fairly easily depending on your preferred web publishing package.  In Dreamweaver you can open up an HTML page and click on Insert -&gt; Media -&gt; SWF and then browse to find your SWF file.  The file will be copied to your site directory and will be embedded onto the current page.</p>
<p class="style1">If you&#8217;re not using Dreamweaver you can still easily import a Flash SWF onto your page.  For example, popular web-based content management systems (such as WordPress) contain a ‘Insert Embedded Media’ button in their authoring interface. If you selected HTML in the Publish Settings menu you will also be given a “wrapper” document that contains all the HTML code necessary to to put your Flash creation on a website. You can copy and paste this code onto your own site (don’t forget to upload the SWF file as well!) – you could also just upload the HTML file and SWF files to your site and create a link to the HTML file.</p>
]]></content:encoded>
			<wfw:commentRss>http://digitalmedia2012.globalblogs.org/2012/04/22/introduction-to-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animation on the Web</title>
		<link>http://digitalmedia2012.globalblogs.org/2012/04/22/animation-on-the-web/</link>
		<comments>http://digitalmedia2012.globalblogs.org/2012/04/22/animation-on-the-web/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 19:30:17 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Animation]]></category>

		<guid isPermaLink="false">http://digitalmedia2012.globalblogs.org/?p=181</guid>
		<description><![CDATA[The table below outlines the basic differences between the three types of animation methods we have discussed in class so far this semester. Animated GIF Video File Flash SWF Motion Graphics Yes Yes Yes Bitmap animation Yes Yes Yes Vector &#8230; <a href="http://digitalmedia2012.globalblogs.org/2012/04/22/animation-on-the-web/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The table below outlines the basic differences between the three types of animation methods we have discussed in class so far this semester.</p>
<table width="100%" border="1" cellspacing="10" cellpadding="10">
<tbody>
<tr>
<td width="33%"></td>
<td width="33%"><strong>Animated GIF</strong></td>
<td width="33%"><strong>Video File</strong></td>
<td width="33%"><strong>Flash SWF</strong></td>
</tr>
<tr>
<td>Motion Graphics</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Bitmap animation</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Vector animation</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Images degrade as animation is scaled up</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes, but only bitmap content</td>
</tr>
<tr>
<td>Transparency</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>File size based on length of content</td>
<td>Largest</td>
<td>Variable</td>
<td>Small</td>
</tr>
<tr>
<td>Interactivity</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Plugin Requirement</td>
<td>None</td>
<td>Video Player *</td>
<td>Adobe Flash Plugin</td>
</tr>
<tr>
<td>Audio Support</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Mobile Deviee Support</td>
<td>Yes</td>
<td>Yes</td>
<td>No **</td>
</tr>
</tbody>
</table>
<p>* with the widescale adoption of HTML5′s &lt;video&gt; tag it will soon be possible to render video in a browser without any external plugin</p>
<p>** mobile versions of the Flash player exist for the Android operaitong system, but not for Apple’s iOS. Mobile Flash content is best distributed as a stand-alone app, which can be produced by Flash Professional CS5.5</p>
]]></content:encoded>
			<wfw:commentRss>http://digitalmedia2012.globalblogs.org/2012/04/22/animation-on-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic Web Development &#8211; PHP</title>
		<link>http://digitalmedia2012.globalblogs.org/2012/04/18/dynamic-web-development-php/</link>
		<comments>http://digitalmedia2012.globalblogs.org/2012/04/18/dynamic-web-development-php/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 13:37:50 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Dynamic Web Development]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://digitalmedia2012.globalblogs.org/?p=178</guid>
		<description><![CDATA[PHP is a programming language that lets you construct web sites that can be dynamically generated. This means that you can have a site that can contain elements that change based on user feedback (just like Facebook and other sites &#8230; <a href="http://digitalmedia2012.globalblogs.org/2012/04/18/dynamic-web-development-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>PHP is a programming language that lets you construct web sites that can be dynamically generated. This means that you can have a site that can contain elements that change based on user feedback (just like Facebook and other sites that present personalized content to an active user).</p>
<p>There is an entire course that focuses on PHP design and development, but here are some basic techniques that you can use to get you started:</p>
<ol>
<li>PHP code can only run on pages that have the extension “.php”. You can’t place PHP code on standard HTML pages. To create a new PHP page in Dreamweaver simply click on File -&gt; New -&gt; Blank Page -&gt; PHP</li>
<li>Once you create a new PHP page you will notice that it looks almost identical to a standard HTML page in “code” mode. PHP is considered an “add on” language — it lives inside of HTML code and allows you to set up portions of the page that should be generated dynamically.</li>
<li>You can set up your page to render PHP code by placing a special set of tags on the page. Here’s an example that picks a random number between 1 and 10 for the user. Every time they visit the page the PHP code inside the special &lt;?php / ?&gt; tags will run and generate a different answer for each user.&lt;strong&gt;I’m going to pick a lucky number for you!&lt;/strong&gt;
<p>&lt;?php</p>
<p>print rand(1,10);</p>
<p>?&gt;</li>
<li>PHP requires that your web hosting provider has the PHP language installed on the server. These days most hosting providers come with PHP pre-installed, but you generally should check before you start working on a site.</li>
<li>One simple way to use PHP on a website is to set up standard headers &amp; footers. For example, say you had a standard navigation structure that you wanted to display at the bottom of 100 web pages. You could copy and paste the HTML for that onto each page, but making changes to that kind of structure would quickly become unmanageable. PHP allows you to “include” an external file – much like linking an external stylesheet. Here’s how you can get started:
<ol>
<li>Build a mock-up page that contains the desired HTML element (i.e. build a page that has the standard header / footer on it)</li>
<li>Go into Code view in Dreamweaver and copy the HTML you wish to duplicate across multiple pages</li>
<li>Create a new Text document (File -&gt; New -&gt; Other Text)</li>
<li>Paste in the HTML code</li>
<li>Save it with a meaningful name (i.e. site_footer.txt)</li>
<li>Create a new PHP page (File -&gt; New -&gt; Blank Page -&gt; PHP)</li>
<li>Place the following PHP code where you would like to include the standard footer:&lt;?php
<p>include (“site_footer.txt”);</p>
<p>?&gt;</li>
</ol>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://digitalmedia2012.globalblogs.org/2012/04/18/dynamic-web-development-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

