<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-30079752</id><updated>2011-04-21T17:58:30.970-07:00</updated><title type='text'>Rogue Code</title><subtitle type='html'>A blog designed to share ideas about Flash Actionscript - especially developed using Flash MX 2004.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://roguecode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30079752/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://roguecode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Roguester</name><uri>http://www.blogger.com/profile/03018032920269642663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-30079752.post-115095573935679841</id><published>2006-06-21T22:45:00.000-07:00</published><updated>2006-06-21T22:55:39.366-07:00</updated><title type='text'>Moving a Character With The Arrow Keys</title><content type='html'>The following code when attached to a character will allow the character to be moved using the arrow keys:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;onClipEvent (enterFrame) {&lt;br /&gt;&lt;br /&gt; if (Key.isDown(37)) {&lt;br /&gt;&lt;br /&gt; _x=_x-10;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (Key.isDown(38)) {&lt;br /&gt;&lt;br /&gt;  _y=_y-10;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (Key.isDown(39)) {&lt;br /&gt;&lt;br /&gt;  _x=_x+10; &lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (Key.isDown(40)) {&lt;br /&gt;&lt;br /&gt; _y=_y+10; &lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;** Extra Code to stop character car going through walls:&lt;br /&gt;&lt;br /&gt;if (hitTest(_level0.wall)==true) {&lt;br /&gt;&lt;br /&gt; _x=_x-10;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; if (hitTest(_level0.lft_wall)==true) {&lt;br /&gt;&lt;br /&gt; _x=_x+10;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (hitTest(_level0.lft_wall2)==true) {&lt;br /&gt;&lt;br /&gt; _x=_x+10;&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30079752-115095573935679841?l=roguecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguecode.blogspot.com/feeds/115095573935679841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30079752&amp;postID=115095573935679841' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30079752/posts/default/115095573935679841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30079752/posts/default/115095573935679841'/><link rel='alternate' type='text/html' href='http://roguecode.blogspot.com/2006/06/moving-character-with-arrow-keys.html' title='Moving a Character With The Arrow Keys'/><author><name>Roguester</name><uri>http://www.blogger.com/profile/03018032920269642663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30079752.post-115095508528474390</id><published>2006-06-21T22:41:00.000-07:00</published><updated>2006-06-21T22:44:45.286-07:00</updated><title type='text'>Peugot - Test Your Parking</title><content type='html'>Check this link:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.107.peugeot.co.uk/peugeot.swf"&gt;http://www.107.peugeot.co.uk/peugeot.swf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Great Fun!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30079752-115095508528474390?l=roguecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguecode.blogspot.com/feeds/115095508528474390/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30079752&amp;postID=115095508528474390' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30079752/posts/default/115095508528474390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30079752/posts/default/115095508528474390'/><link rel='alternate' type='text/html' href='http://roguecode.blogspot.com/2006/06/peugot-test-your-parking.html' title='Peugot - Test Your Parking'/><author><name>Roguester</name><uri>http://www.blogger.com/profile/03018032920269642663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30079752.post-115095486134767703</id><published>2006-06-21T22:37:00.000-07:00</published><updated>2006-06-21T22:41:01.346-07:00</updated><title type='text'>Adding Sounds to A Symbol</title><content type='html'>&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;Flash Tutorials – Car Project - How To Install a Horn in Your Car&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;(I am working on a link to the resources for this short tute)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Import the “horn.wav” file to the library&lt;br /&gt;&lt;br /&gt;2. Rename it just “horn”&lt;br /&gt;&lt;br /&gt;3. Right-click on it and select “Export to Actionscript” and name the linkage “horn”&lt;br /&gt;&lt;br /&gt;4. Select the car body on the stage&lt;br /&gt;&lt;br /&gt;5. Press F9 to access the Actionscript pane.&lt;br /&gt;&lt;br /&gt;6. Insert the following Actionscript:&lt;br /&gt;&lt;br /&gt;on (keyPress "&lt;space&gt;") {&lt;br /&gt;            carSound = new Sound(this);&lt;br /&gt;            carSound.attachSound("horn");&lt;br /&gt;            carSound.start();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;7. Now when you run the movie and press the space bar, you should hear the horn.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30079752-115095486134767703?l=roguecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguecode.blogspot.com/feeds/115095486134767703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30079752&amp;postID=115095486134767703' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30079752/posts/default/115095486134767703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30079752/posts/default/115095486134767703'/><link rel='alternate' type='text/html' href='http://roguecode.blogspot.com/2006/06/adding-sounds-to-symbol.html' title='Adding Sounds to A Symbol'/><author><name>Roguester</name><uri>http://www.blogger.com/profile/03018032920269642663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30079752.post-115095450267441324</id><published>2006-06-21T22:33:00.000-07:00</published><updated>2006-06-21T22:35:02.686-07:00</updated><title type='text'>Welcome!</title><content type='html'>Hi Everyone!&lt;br /&gt;&lt;br /&gt;The purpose of this blog is to share ideas about Flash Actionscript. Feel free to share ideas and dowload any flas and docs from the site. All examples are free of copyright.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30079752-115095450267441324?l=roguecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguecode.blogspot.com/feeds/115095450267441324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30079752&amp;postID=115095450267441324' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30079752/posts/default/115095450267441324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30079752/posts/default/115095450267441324'/><link rel='alternate' type='text/html' href='http://roguecode.blogspot.com/2006/06/welcome.html' title='Welcome!'/><author><name>Roguester</name><uri>http://www.blogger.com/profile/03018032920269642663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
