<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Qantm Major Project</title>
	<atom:link href="http://jolypoly89.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jolypoly89.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 03 May 2010 06:30:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jolypoly89.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Qantm Major Project</title>
		<link>http://jolypoly89.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jolypoly89.wordpress.com/osd.xml" title="Qantm Major Project" />
	<atom:link rel='hub' href='http://jolypoly89.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Week 12 &#8211; Reflections</title>
		<link>http://jolypoly89.wordpress.com/2009/11/30/week-12/</link>
		<comments>http://jolypoly89.wordpress.com/2009/11/30/week-12/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 05:37:05 +0000</pubDate>
		<dc:creator>jolypoly89</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jolypoly89.wordpress.com/?p=169</guid>
		<description><![CDATA[This week I have simply made small improvements and fine adjustments to my major work project. The past 27 weeks have been filled with solid planning, scoping, researching, developing and testing have been a great learning curve which I have thoroughly enjoyed. Surprisingly it was not a very stressful process as my sheduling and planning [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=169&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This week I have simply made small improvements and fine adjustments to my major work project. The past 27 weeks have been filled with solid planning, scoping, researching, developing and testing have been a great learning curve which I have thoroughly enjoyed. Surprisingly it was not a very stressful process as my sheduling and planning and project plan documentation were well thought out and I allowed sufficient cushion time in-between deliverables to accommodate for any mishaps which I would inevitably experience. This is because most of the ActionScript 3 coding, including the saving functionality using a database and the game play, were all new and I was researching and developing as I went. Without any help I managed to finish the Roulette game and implement saving functionality for only one user only using txt files. The only help I needed from my teacher was to implement multiple-user saving functionality, for which I required a database.</p>
<p>Because of a bug in Flash, you cannot place an object, such as a Roulette poker chip, directly below the mouse pointer. Unfortunately you cannot place anything on top of the mouse pointer as it&#8217;s always automatically placed above all layers on the timeline. For the mouse to work, all objects must be a fair distance away to accommodate for any movement between frames. For best performance it is recommended that the frame rate should be no higher than 12 fps. As the frame rate is so low, the mouse pointer has the potential to travel considerable distance in-between frames. For this reason I have been forced to offset the position of the betting chips. After researching online there seems to be no solution to this problem except by deliberately avoiding it by offsetting any objects which may otherwise overlap with mouse pointer.</p>
<p>I have truly enjoyed this process and feel that I have gained a considerable amount of experience, skill and knowledge throughout.  I believe I am now capable of not only being a designer but also a Flash ActionScript developer. I finish my degree this coming Friday and am confident that I will get employed by the start of next year.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jolypoly89.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jolypoly89.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jolypoly89.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jolypoly89.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jolypoly89.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jolypoly89.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jolypoly89.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jolypoly89.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jolypoly89.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jolypoly89.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jolypoly89.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jolypoly89.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jolypoly89.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jolypoly89.wordpress.com/169/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=169&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jolypoly89.wordpress.com/2009/11/30/week-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21cf72b45f07f32fd2f787c402d7a889?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jolypoly89</media:title>
		</media:content>
	</item>
		<item>
		<title>Week 11 &#8211; Multiple saving functionality implemented!</title>
		<link>http://jolypoly89.wordpress.com/2009/11/24/week-11-multiple-saving-functionality-implemented/</link>
		<comments>http://jolypoly89.wordpress.com/2009/11/24/week-11-multiple-saving-functionality-implemented/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 04:34:37 +0000</pubDate>
		<dc:creator>jolypoly89</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jolypoly89.wordpress.com/?p=159</guid>
		<description><![CDATA[With help from my teacher at Qantm, my teacher and I altered the saving feature of my game to use a database to store the saved games rather than using multiple txt files. Instead of creating a whole new database, we simply created an additional entity within the ExpressionEngine database. This enabled the ability to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=159&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With help from my teacher at Qantm, my teacher and I altered the saving feature of my game to use a database to store the saved games rather than using multiple txt files. Instead of creating a whole new database, we simply created an additional entity within the ExpressionEngine database. This enabled the ability to allow multiple saves by using session variables to distinguish between different users. Storing saved games using a database also allowed me to be able to create an event listener that could detect when the database query had been completed and the saved game was successfully stored. This solved the major problem I had with using txt files.</p>
<p>In previous weeks, as a temporary fix, I simply had extended the length of the timeline so that after 20 seconds or so a message would appear quoting that the score had been saved. If this game was being saved over a slower broadband speed, the txt file would corrupt if a button in Flash was clicked as not enough time had been given. It is such as relief to have the saving functionality working as it should and making use of the more secure advantages of a database.</p>
<p>Unfortunately the Roulette game still has a few small bugs. One of these are caused by a missing ‘mouseEnable = false’ statement.  Such minor inconsistencies and logical errors within the code are very easy to fix. So far I’ve been busy working on other more crucial areas of the project, so I simply haven’t scheduled myself enough time to fix the very few rare and occasional errors that do exist. Almost all of the bugs mentioned in previous blog entries have been fixed so even now the game play is almost perfect and error free. The most frequent error simply skips the presentation of your score and proceeds with the next round with the Roulette wheel spinning. The error only lasts one round and game play continues as per normal with results properly presented at the end of each round.</p>
<p>Last week my teacher offered to help me again later this week to fix up some potential security flaws regarding to the connection and transfer of data between ActionScript 3 and PHP. Even with the introduction of just a password, the database should be fairly well protected from any possible threats such as attempts to corrupt, break or overload my database.</p>
<p>I still feel fairly relaxed with the current state of the major work. All minimum requirements are filled. All I&#8217;m doing now is just making small improvements and adjustments to the interface and code to further enhance the gaming experience. Earlier this week, following some great advice from my intern supervisor and another  employee from Massmedia Studios, I redesigned my business card and resume. Besides my presentation and internship report cards, I now only have the CD version of my portfolio website to complete for my entire degree!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jolypoly89.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jolypoly89.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jolypoly89.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jolypoly89.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jolypoly89.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jolypoly89.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jolypoly89.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jolypoly89.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jolypoly89.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jolypoly89.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jolypoly89.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jolypoly89.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jolypoly89.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jolypoly89.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=159&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jolypoly89.wordpress.com/2009/11/24/week-11-multiple-saving-functionality-implemented/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21cf72b45f07f32fd2f787c402d7a889?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jolypoly89</media:title>
		</media:content>
	</item>
		<item>
		<title>Week 10 &#8211; Only multiple saving functionality to go!</title>
		<link>http://jolypoly89.wordpress.com/2009/11/16/week-10-just-about-finished/</link>
		<comments>http://jolypoly89.wordpress.com/2009/11/16/week-10-just-about-finished/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 06:00:31 +0000</pubDate>
		<dc:creator>jolypoly89</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jolypoly89.wordpress.com/?p=153</guid>
		<description><![CDATA[Although I have done a great deal of work this week, I haven&#8217;t really felt much stress at all. As I have paced myself well and followed my schedule, I only feel a sense of excitement as, in three weeks; I will have finished my full-time study and degree! By the end this week, my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=153&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Although I have done a great deal of work this week, I haven&#8217;t really felt much stress at all. As I have paced myself well and followed my schedule, I only feel a sense of excitement as, in three weeks; I will have finished my full-time study and degree!</p>
<p>By the end this week, my schedule requires me to have the major work at state ready to be handed in. Obviously I will continue to work on it as I have been regardless of whether or not all the in-scope requirements have been filled so to aim for as higher mark as possible. Even if I consider it completely finished, there are heaps of extra highly desirables in outside of the scope that I would love to implement. These include being able to specify how much you would like to bet rather than always having to bet the set amount of $100. Among many things I can improve graphics, navigational interface and revamp the PhotoShop design for the website.</p>
<p>Last week I included some html code into my game html page to disable the browser from storing cache. This was so that once the score had been saved into the txt file, it could be reread. After researching I found that Internet Explorer demands at least 64K of buffer and to do so will ignore the code I had written.  As a solution I simply copied the code I had written from the header section and copied it into a second header section just after the body tag. Google Chrome however requires a couple of extra lines of code. I was surprised, considering how recent Google Chrome was released, hadn&#8217;t followed the standards set by all other leading browsers.</p>
<p>I also managed to send variables to PHP from Flash. The &#8216;currentScore&#8217; variable is sent via post to PHP and this variable replaces the value currently saved. Unfortunately this saving process takes quite a long time &#8211; approximately 20 seconds with high speed Internet broadband. The saving functionality works successfully! All that is needed now is to introduce the saving functionality for multiple saved games.</p>
<p>After trying to implement a basic PHP fan blog in ExpressionEngine I found that the PHP functionality was not working. It seems that the PHP document must be within a relative folder structure of the file, such as the txt file, you are accessing. Modifying the appropriate links to absolute links did not solve this problem. Instead of storing the blog page and the add_blog page as templates in ExpressionEngine, I simply created it amongst the rest of the site files. The PHP blog is now working.</p>
<p>As mentioned before I hadn&#8217;t properly organised the site content into weblogs and embed templates. This week I finished everything as mentioned and required in ExpressionEngine to make the website as efficient and editable from within the ExpressionEngine control panel as possible.  This included embedding common html content into embed templates, dividing up all content into editable weblogs and installing all required extensions and plug-ins such as LG TinyMCE (v.1.3.3) and File, by Mark Huot (v.3.1.1). These two extensions integrate a WYSIWYG editor and file upload capability respectfully. In addition I converted all static content into editable weblogs and created an administrator-only blog on the contacts page. Now there are two blogs &#8211; one public and one for myself as administrator where I can announce news which is placed under the contact details on the &#8216;Contact&#8217; page.</p>
<p>For additional functionality I also added in a PHP web counter which displays how many times the &#8216;Game&#8217; page has been loaded which has been placed just under the Roulette game swf file. Each time this counter is incremented, an email is sent to me quoting the name of the page and the web counter no.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jolypoly89.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jolypoly89.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jolypoly89.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jolypoly89.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jolypoly89.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jolypoly89.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jolypoly89.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jolypoly89.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jolypoly89.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jolypoly89.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jolypoly89.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jolypoly89.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jolypoly89.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jolypoly89.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=153&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jolypoly89.wordpress.com/2009/11/16/week-10-just-about-finished/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21cf72b45f07f32fd2f787c402d7a889?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jolypoly89</media:title>
		</media:content>
	</item>
		<item>
		<title>Week 9 &#8211; Game finished except for saving functionality</title>
		<link>http://jolypoly89.wordpress.com/2009/11/10/week-9-game-finished-except-for-saving-functionality/</link>
		<comments>http://jolypoly89.wordpress.com/2009/11/10/week-9-game-finished-except-for-saving-functionality/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 04:33:27 +0000</pubDate>
		<dc:creator>jolypoly89</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jolypoly89.wordpress.com/?p=128</guid>
		<description><![CDATA[The past week I&#8217;ve been steadily working on my AS3 Roulette game. At this point the game, besides the saving functionality, is finished and all known bugs or opportunities to cheat during game play have been fixed. It took me most of the past week just to eliminate bugs and small logical errors. According to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=128&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The past week I&#8217;ve been steadily working on my AS3 Roulette game. At this point the game, besides the saving functionality, is finished and all known bugs or opportunities to cheat during game play have been fixed. It took me most of the past week just to eliminate bugs and small logical errors. According to schedule I was required to complete the game entirely by the end of week 8, last Saturday three days ago. As mentioned in previous entries this is not crucial to the success of completing this major work on time. I have until December the 4th till I will be presenting this major work along with my portfolio. This gives me just under four weeks. All that is required to complete from now till the due date is the saving functionality and PHP blog. All other in-scope requirements have been completed.</p>
<p>From the end of last week I began working on the saving functionality of the game. For testing purposes I created a save game button which sends a simple request to savegame.php. This request overwrites the content of money.txt, which is where the saved game score is initially loaded from during game play. To my surprise the txt file was overwritten correctly without a new tab or window loading. I didn&#8217;t realise you could run a PHP script without having to load the PHP file visibly in a browser! This huge breakthrough has saved me so much extra coding and time as I had taken into consideration the possibility of having to navigate to the savegame.php page and then back again, displaying the menu and prompting the user to login once more. If this was the case I was going to write additional coding allowing the user to automatically login using either cookies or session variables. </p>
<p>Currently I am yet to learn how to send variables from ActionScript 3 to PHP as the content which is overwritten is not yet dynamic and depended by the local variables in the Flash game. There is also another issue concerning refreshing the reading of txt files. For Flash to read from the txt file, the cache and Internet temporary files need to be deleted. It is necessary to be able to read from the txt file more than once so you continue your saved game.</p>
<p>My aim for this week is to finish the saving functionality. Once this is finished, only the PHP blog is left as a requirement. I have already implemented this functionality before in my portfolio website so this should be no hassle at all.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jolypoly89.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jolypoly89.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jolypoly89.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jolypoly89.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jolypoly89.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jolypoly89.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jolypoly89.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jolypoly89.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jolypoly89.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jolypoly89.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jolypoly89.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jolypoly89.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jolypoly89.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jolypoly89.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=128&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jolypoly89.wordpress.com/2009/11/10/week-9-game-finished-except-for-saving-functionality/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21cf72b45f07f32fd2f787c402d7a889?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jolypoly89</media:title>
		</media:content>
	</item>
		<item>
		<title>Week 8 &#8211; Objective: Finish game by Saturday, Week 8</title>
		<link>http://jolypoly89.wordpress.com/2009/11/03/week-8-objective-finish-game-by-saturday-week-8/</link>
		<comments>http://jolypoly89.wordpress.com/2009/11/03/week-8-objective-finish-game-by-saturday-week-8/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 04:28:06 +0000</pubDate>
		<dc:creator>jolypoly89</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jolypoly89.wordpress.com/?p=112</guid>
		<description><![CDATA[Currently it is only Tuesday so I have until Saturday to finish the Roulette game and to remain right on schedule. I have four weeks after this week before the major work is due so it isn&#8217;t compulsory to finish by this week. However if I do not finish fairly soon, I will not leave [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=112&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Currently it is only Tuesday so I have until Saturday to finish the Roulette game and to remain right on schedule. I have four weeks after this week before the major work is due so it isn&#8217;t compulsory to finish by this week. However if I do not finish fairly soon, I will not leave myself sufficient time to improve graphics, work on the navigational interface, tidy up the code, organise and restructure the ExpressionEngine website for efficiency, write out game play instructions, etc. Although I have a lot of work to get through this next week, I am astonished at how much progress I have made since the beginning of last week. At this rate, I will easily reach my target this coming Saturday.</p>
<p>During the first half of the week I had some trouble making variables globally available throughout the whole timeline. The &#8216;currentScore&#8217; variable, which locally stores the current score, is created on the &#8216;Place Bets&#8217; frame. After the roulette wheel has been spun and the results have been accessed, it is crucial this variable is accessible so any necessary alterations to the score can be made. I was even unable to return a variable via the trace function. </p>
<p>In ActionScript 2 this is easily fixed by adding the prefix &#8220;_global&#8221; to the name of the variable as you a defining it. In ActionScript 3 according to online resources, you must import packages and classes, storing them in individual .as files. Luckily I was prompted by a comment made in a forum to realise that I&#8217;d declared this variable within a function, automatically defining them as private functions. I had realised this before and unsuccessfully solved the problem because this variable is required to convert a string to a number therefore it had to be defined specifically as a number rather than a generic variable. This was a very simple mistake and was fixed by simply adding the number definition and moving this line of code above and outside the function. No classes and packages were required as this is, as I found out later, only necessary if multiple files are being using. Once this problem was fixed I made incredible advances in progress during the second half of the week.</p>
<p>Due to a bug in the coding, it was possible to place a betting chip down and pick it up again, but it was impossible to place back down on the same area. This was fixed by adding an event listener each time the function that handles this functionality was run. There were also another couple of lines of code that handled the functionality of the counters of automatically returning back to their initial position if the chips were incorrectly placed. There is also some other code that prevents the chips from automatically returning allowing the user to click again if the chip was wrongly positioned. Strangely this conflict did not initiate any warnings or errors so I had to debug the code myself.</p>
<p>I went on to create this fully working functionality for almost every position of the board according to the multiple official types of bets (i.e. Straight bet, Red or Black, Basket bet, Dozen bet, etc). The specific location where the chip is located is detected by a MOUSE_UP function and with the value of &#8220;this.event.currentTarget.name&#8221; is returned to a variable. Another bug allowed you to, after the results were shown, move the chip once more to the appropriate position, making it possible to win prize money each round. This was fixed by implementing a &#8216;mouseEnabled = false&#8217; attribute until the final results are shown. </p>
<p>Once your score reaches 0, you are redirected to a &#8220;You lose&#8221; page. The spin button is replaced with a menu button which allows you to start a brand new game. A small amount of money is provided so you can place bets once more. You are now rewarded according to the ratio of chance according to the official rules of Roulette (e.g. assuming you bet $100 on an individual number, are rewarded with $3600 if you bet correctly as the theoretical chance ratio is 36:1).</p>
<p>I also had trouble with refreshing the dynamic text fields in Flash so that they display an updated version of the score. Before researching I was worried that I may not be able to refresh the displayed scores. Such considerations were a priority during the planning of the project as I had to design an effective shedule that allowed sufficent time to implement backup plans if the worst outcomes became reality. In relief, all that is required is to add &#8220;moneyI.text = currentScore;&#8221; on every frame after any changes to the &#8216;currentScore&#8217; variable had been made.</p>
<p>Each time after each spin and reward of prize money, you are navigated back to the &#8216;Place bets&#8217; frame. The Spin button remains unclickable until you place a chip on the board initiating your bet. The mouseEnabled function, as mentioned above, allowed me to do this. </p>
<p>I also made a significant improvement in navigational system. Instead of navigating back to &#8220;Place bets&#8221; frame, you can simply change bet on &#8220;Results&#8221; page before pressing the &#8220;Spin&#8221; button. This saves the user one click each round and also allows the user to spin again with the betting chip in its current position.</p>
<p>All of code has been written from scratch entirely by myself. I haven&#8217;t used any swf decrypting software or any method to copy or gain access to anyone else&#8217;s code. All reference material and code examples were either found from online forums, the Flash in-built help or &#8216;ActionScript 3 Bible&#8217; PDF. As of yet I haven&#8217;t needed any technical assistance from a teacher and the entire game is basically finished except for the saving PHP functionality.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jolypoly89.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jolypoly89.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jolypoly89.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jolypoly89.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jolypoly89.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jolypoly89.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jolypoly89.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jolypoly89.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jolypoly89.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jolypoly89.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jolypoly89.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jolypoly89.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jolypoly89.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jolypoly89.wordpress.com/112/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=112&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jolypoly89.wordpress.com/2009/11/03/week-8-objective-finish-game-by-saturday-week-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21cf72b45f07f32fd2f787c402d7a889?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jolypoly89</media:title>
		</media:content>
	</item>
		<item>
		<title>Week 7 &#8211; Aim: Finish Roulette game by end of week 8</title>
		<link>http://jolypoly89.wordpress.com/2009/10/25/week-7/</link>
		<comments>http://jolypoly89.wordpress.com/2009/10/25/week-7/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 02:26:10 +0000</pubDate>
		<dc:creator>jolypoly89</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jolypoly89.wordpress.com/?p=103</guid>
		<description><![CDATA[I put together my beta PowerPoint presentation and presented my major work project to the class. During the presentation I discussed and illustrated the development process and the reasons behind the decisions I had made. I also compared my current progress with the scheduled progress required by my project plan&#8217;s official timesheet documentation. I concluded [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=103&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I put together my beta PowerPoint presentation and presented my major work project to the class. During the presentation I discussed and illustrated the development process and the reasons behind the decisions I had made. I also compared my current progress with the scheduled progress required by my project plan&#8217;s official timesheet documentation. I concluded that I was half a week behind schedule as my PHP blog on the ExpressionEngine website was the only deliverable due that wasn&#8217;t completed. </p>
<p>In reconsideration, although not compulsory, I realise that I haven&#8217;t embedded common components of each template page into their own templates within ExpressionEngine. This doesn&#8217;t affect my website&#8217;s appearance or functionality in any way but does organise the html code much better in the backend and increases loading efficiency as the browser does not have to reload common components unnecessarily. As the Roulette Flash game is priority I will focus my energy and time into implementing the betting functionality and saving/loading system. </p>
<p>According to my project plan timesheet, the game should be finished in two weeks at the end of week 8. This will be very difficult to complete within this time because each will be the most complex and difficult components to implement. I also have never done anything so complex with Flash before so it will definitely be a challenge. As mentioned last term I want to challenge myself to significantly increase my knowledge and experience. There is no point in setting myself an easy project that I will not learn or benefit from. I have no regrets in setting myself such a large and complex project. Although is hard work and at times stressful, I really do enjoy learning and furthering my skills within this great industry working on this project.</p>
<p>If I do not manage to complete the Flash game within this two week period, the project is will not be affected. This is because I have allowed myself a four week grace period before the project has to be handed in and completed. I have plenty of time to complete this project but the real challenge for me will be keeping on schedule. I will need to continue working harder, scheduling more time towards completing this game. It will be a great relief once all of the game&#8217;s functionality is working.</p>
<p>This week I haven&#8217;t had much of a chance to work on my major work. All I was able to do was make a start on the PHP blog. Now that the presentation is over and my internship report assessment is handed in, I can now get straight to work. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jolypoly89.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jolypoly89.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jolypoly89.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jolypoly89.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jolypoly89.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jolypoly89.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jolypoly89.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jolypoly89.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jolypoly89.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jolypoly89.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jolypoly89.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jolypoly89.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jolypoly89.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jolypoly89.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=103&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jolypoly89.wordpress.com/2009/10/25/week-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21cf72b45f07f32fd2f787c402d7a889?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jolypoly89</media:title>
		</media:content>
	</item>
		<item>
		<title>Week 6 &#8211; Development for Beta Presentation</title>
		<link>http://jolypoly89.wordpress.com/2009/10/15/week-6-development-for-beta-presentation/</link>
		<comments>http://jolypoly89.wordpress.com/2009/10/15/week-6-development-for-beta-presentation/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 06:21:53 +0000</pubDate>
		<dc:creator>jolypoly89</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jolypoly89.wordpress.com/?p=90</guid>
		<description><![CDATA[This week has been hectic trying to get ahead of schedule so I have impressive progress to show during the beta presentation. Last week all I had was a fresh install of ExpressionEngine on my server. This week I sliced up my PhotoShop design (after tweaking the design a little) and integrated it into the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=90&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This week has been hectic trying to get ahead of schedule so I have impressive progress to show during the beta presentation. Last week all I had was a fresh install of ExpressionEngine on my server.</p>
<p>This week I sliced up my PhotoShop design (after tweaking the design a little) and integrated it into the ExpressionEngine template setup. After watching some JavaScript and Flash tutorial videos, I modified my rollover buttons to present a JavaScript fade effect using the &#8216;Behaviours&#8217; window in Dreamweaver. I also learnt how you can load an swf with a transparent background . If my website wasn&#8217;t dependent on the fact the Roulette game is in Flash, these techniques could be used in a future project to allow extra compatibility with iPhone browsers as, in this instance, Flash is avoided for all crucial elements of the website. The header background image would still be visible however the Flash animation on the top would be missing. Because the background image is still there underneath, no white space would be left and there would be no evidence that anything is missing. As for the JavaScript buttons, the animation would be visible on almost all browsers including the iPhone. However if there were a problem such as if the files could not be read, the functionality would still work as if they were image rollovers. Only the animation would be missing. I accidentally tested this first hand when I had initially forgotten to link all Spry assets and JavaScript files. If these buttons were created in Flash and were incorrectly linked, only an empty white space would have been left. None of the functionality would have existed.</p>
<p>Once navigation was complete and some content html was edited, I altered the Roulette Flash game&#8217;s background image and embedded it into ExpressionEngine. After testing with multiple versions of the txt file during play of the Roulette game, I found that to refresh the value of the txt file, all that is needed is to navigate from one frame to another.  Although I tested this manually, I could set up an automated mini loop between an additional frame and the return to the &#8216;Place Bets&#8217; frame. This can be done by using  a gotoAndPlay() function after the result of the Roulette spin is stored to a &#8216;saving&#8217; frame which  plays a short animation then is navigated back via a gotoAndStop() to the &#8216;Place Bets&#8217; frame. This approach discovered after researching and testing is a lot more simpler than what I anticipated it to be. I was planning to navigate to a seperate PHP page and then back again but then the user may have to log in again.</p>
<p>To view the ExpressionEngine website, visit <a href="http://www.joeldobbinsdesigns.com/cashout" target="_blank">www.joeldobbinsdesigns.com/cashout</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jolypoly89.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jolypoly89.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jolypoly89.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jolypoly89.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jolypoly89.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jolypoly89.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jolypoly89.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jolypoly89.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jolypoly89.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jolypoly89.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jolypoly89.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jolypoly89.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jolypoly89.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jolypoly89.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=90&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jolypoly89.wordpress.com/2009/10/15/week-6-development-for-beta-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21cf72b45f07f32fd2f787c402d7a889?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jolypoly89</media:title>
		</media:content>
	</item>
		<item>
		<title>Week 5 &#8211; Final PhotoShop Designs and ExpressionEngine Install</title>
		<link>http://jolypoly89.wordpress.com/2009/10/11/week-5-final-photoshop-designs-and-expressionengine/</link>
		<comments>http://jolypoly89.wordpress.com/2009/10/11/week-5-final-photoshop-designs-and-expressionengine/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 05:32:17 +0000</pubDate>
		<dc:creator>jolypoly89</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jolypoly89.wordpress.com/?p=83</guid>
		<description><![CDATA[This week I spent most of my scheduled time creating several additional PhotoShop designs for the website. I have finished nine completely separate designs so far, with the ninth being the one I am most satisfied with. I&#8217;ve found it hard to create a design that worked well with the gambling theme. Initially I was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=83&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This week I spent most of my scheduled time creating several additional PhotoShop designs for the website. I have finished nine completely separate designs so far, with the ninth being the one I am most satisfied with. I&#8217;ve found it hard to create a design that worked well with the gambling theme. Initially I was aiming for an intensive casino style with a colour palette promoting the flashing lights and energy of the casino. I also did some designs promoting freedom and cutting edge youthful lifestyle, but my final design focused on the fashionable upper-class and formal-styled elegance as the appeal. I believe this is most effective technique to promote this game, as it creates a new niche and class for the game of Roulette which, I believe, is often stereotyped ineffectively. It isn&#8217;t quite finished yet but the theme, fonts, design layout, colour palette etc have all been finalized. I can effectively start implementing this design into ExpressionEngine right now.</p>
<p>This said, I have successfully uploaded the install files for ExpressionEngine in a new directory of my website. I created a new database file (which my web-host provider unfortunately limits me to 10) and used this information to successfully install ExpressionEngine. I deleted the demo website and created a new template group. All I need to do now is to cut up my PhotoShop file into div box sections and upload. I should have plenty of time to implement the website with basic functionality by the beta presentation in about 1 1/2 weeks. Once this is implemented, all I have to worry about is further developing the game and implementing the functionality of sending the money variable to PHP to write this to the external txt file.</p>
<p>After some further research I have discovered that when sending variables to PHP, the PHP page that recieves these and writes these to the txt file needs to open in the browser over the top of the previous tab or window where the game is played. This should also fix the problems of the swf refreshing and rereading from the txt file as it&#8217;s PHP page is closed and replaced with a seperate PHP page. In order to begin play, you must navigate back to the game playing PHP page where the swf will be opened once more displaying the updated scores.</p>
<p>Unfortunately I am forced to reinstall Vista on my personal PC, due to some unfixable problems including the inability to use wireless networking to connect to the Internet, which is crucial for use of ExpressionEngine. Luckily I&#8217;m ahead of schedule with my assessments and they aren&#8217;t due till 1 1/2 weeks so this problem shouldn&#8217;t impact my critical path of deliverables for this project in any way.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jolypoly89.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jolypoly89.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jolypoly89.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jolypoly89.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jolypoly89.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jolypoly89.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jolypoly89.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jolypoly89.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jolypoly89.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jolypoly89.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jolypoly89.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jolypoly89.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jolypoly89.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jolypoly89.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=83&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jolypoly89.wordpress.com/2009/10/11/week-5-final-photoshop-designs-and-expressionengine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21cf72b45f07f32fd2f787c402d7a889?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jolypoly89</media:title>
		</media:content>
	</item>
		<item>
		<title>Week 4 &#8211; Researching writing back to external files</title>
		<link>http://jolypoly89.wordpress.com/2009/10/05/week-4/</link>
		<comments>http://jolypoly89.wordpress.com/2009/10/05/week-4/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 09:22:18 +0000</pubDate>
		<dc:creator>jolypoly89</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jolypoly89.wordpress.com/2009/10/05/week-4/</guid>
		<description><![CDATA[For the majority of my time spent this week doing my internship, all current work had been completed and there was no work available. It wasn&#8217;t until during the last few hours I had work to do. During this free time I worked steadily on my major work. After some continued research I found out [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=72&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For the majority of my time spent this week doing my internship, all current work had been completed and there was no work available. It wasn&#8217;t until during the last few hours I had work to do. During this free time I worked steadily on my major work.</p>
<p>After some continued research I found out an easy to implement way to slow down the ball just before it stops. This is done by slowing the actual frame rate of the entire document, and then restoring it after it stops. This way the roulette wheel also slows down as well if it hasn&#8217;t already, this depending on the position of the random number on the wheel. After the testing was completed, I commented out several &#8216;trace()&#8217; outputs, so to improve efficiency of gameplay as it doesn&#8217;t pass slightly when previewing.</p>
<p>After discussing the progress of the game with friends, I came across a problem. My plans were to have four saves that are saved on the server. This means that everyone on the Internet would have to share these four saves and each will find that their saved game had been restarted or continued. This means either the txt file is to be saved locally or I set up multiple saves on the server and perhaps a login and password to protect individual user&#8217;s saves. I could even save the user&#8217;s username as the name of the variable where the value of the money is stored.</p>
<p>Next week I will have to finish the aesthetics of the game so I can move towards creating the website PhotoShop design. This is so I&#8217;ll have more content to present during the beta presentation in week 6. I believe that only my unfinished Roulette game will be insufficient to present.</p>
<p>Regarding PHP&#8217;s requirement to write to external txt files, I conducted further research and realised that I need to use an internal to Flash variable to take care of the score. This is because Flash doesn&#8217;t read the values of txt fields at real time. In other words it reads the value once when the swf is opened. I only need PHP to write to the txt file if the user navigates to another html page or the user exits from the game altogether. There may be a way to manually refresh Flash and force the swf to reread from the txt file. Currently the score is read directly from the file but then a local variable controls the display on screen. Currently for testing purposes, Flash reads the value stored in the txt file and is returned to a local variable. One hundred is added and this amended value is correctly displayed. There are many methods I can use to overwrite this variable back to the txt file. Some methods include the use of PHP writing to an XML file rather than a txt file, PHP via the GET method, Flash Remoting or an XMLSocket server with Python or Ruby . However I will have to conduct further researching until I come to a decision and begin implementing.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jolypoly89.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jolypoly89.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jolypoly89.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jolypoly89.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jolypoly89.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jolypoly89.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jolypoly89.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jolypoly89.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jolypoly89.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jolypoly89.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jolypoly89.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jolypoly89.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jolypoly89.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jolypoly89.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=72&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jolypoly89.wordpress.com/2009/10/05/week-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21cf72b45f07f32fd2f787c402d7a889?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jolypoly89</media:title>
		</media:content>
	</item>
		<item>
		<title>Week 3 &#8211; Making progress but need to pick up the pace slightly</title>
		<link>http://jolypoly89.wordpress.com/2009/09/28/week-3/</link>
		<comments>http://jolypoly89.wordpress.com/2009/09/28/week-3/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 02:23:02 +0000</pubDate>
		<dc:creator>jolypoly89</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jolypoly89.wordpress.com/?p=48</guid>
		<description><![CDATA[I managed to get the ball to stop at the predicted random number on the board. I have been testing this by tracing the value of the variable and returning it to the output window. The only trouble is the ball does not slow down at all before it stops. The ball continues to spin [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=48&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I managed to get the ball to stop at the predicted random number on the board. I have been testing this by tracing the value of the variable and returning it to the output window. The only trouble is the ball does not slow down at all before it stops. The ball continues to spin at a constant rate until it reaches the frame where the ball is directly over the number randomly generated.</p>
<p>I also created a text file called money.txt. Withing this text file there is a variable called currentMoney returning a value of, for testing purposes, 5000. Within the ActionScript 3 coding, I&#8217;ve set up a URL loader that can access the variable stored within that txt file. This value is printed to a dynamic text area so now, with the help of a static text field,  &#8220;Money $5000&#8243; appears on the screen.</p>
<p>After researching I discovered that Flash can only read the variable of a txt file and cannot edit it. According to some tutorials I&#8217;ve just came across, the only way to edit it is to send the variable by the post method to a php file (which hopefully could simply just be the page that embeds this finished Flash game). Using php we can amend the txt file and replace the value with the value sent and/or send the variable back again to Flash. I&#8217;ve used php to write to files before so I shouldn&#8217;t have any troubles once the the variable is sent from Flash. Although I&#8217;ve successfully written to text files on my online portfolio for both the blog and the web counter, I&#8217;ve never tried to send variables to and from Flash. This means I cannot put an accurate time frame around this so I&#8217;ll have to work fast and hopefully I&#8217;ll be able to implement this by the end of next week.</p>
<p>I&#8217;m also struggling to find a suitable background picture for the game. Ideally I&#8217;m hoping to find a picture with green felt table with people crowded around. The camera angle must be looking down from the bird&#8217;s eye perspective. If worse comes to worse I can simply take my own photo of our pool table and then simply edit a crowd of people in.</p>
<p>In summary, I&#8217;m making a lot of progress but at the same time am realising that more and more is involved (ie. having to use php to write to txt files). I&#8217;m going to have to get the Flash game finished by week 6 if no other web development/design can be progressed on.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jolypoly89.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jolypoly89.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jolypoly89.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jolypoly89.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jolypoly89.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jolypoly89.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jolypoly89.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jolypoly89.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jolypoly89.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jolypoly89.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jolypoly89.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jolypoly89.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jolypoly89.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jolypoly89.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jolypoly89.wordpress.com&amp;blog=8041478&amp;post=48&amp;subd=jolypoly89&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jolypoly89.wordpress.com/2009/09/28/week-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21cf72b45f07f32fd2f787c402d7a889?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jolypoly89</media:title>
		</media:content>
	</item>
	</channel>
</rss>
