[virtualcommons-svn] SF.net SVN: virtualcommons:[345] mentalmodels/trunk/flex/src/custom/ FisheryEx
Status: Beta
Brought to you by:
alllee
From: <see...@us...> - 2009-10-28 23:13:26
|
Revision: 345 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=345&view=rev Author: seematalele Date: 2009-10-28 23:13:18 +0000 (Wed, 28 Oct 2009) Log Message: ----------- Figured out the problem with birth year. The problem was it was sending 0 every time. So, changed the line newStudent.birthYear = ((obj as SocioDemographicPage).getYear()) as int; To newStudent.birthYear = (int)((obj as SocioDemographicPage).getYear()); Modified Paths: -------------- mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml Modified: mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml 2009-10-28 21:13:44 UTC (rev 344) +++ mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml 2009-10-28 23:13:18 UTC (rev 345) @@ -189,9 +189,9 @@ private function newLocation(maxCapacity:Number,growth:Number):Location { var newLoc:Location = new Location(); - newLoc.maxCapacity = maxCapacity; + //newLoc.maxCapacity = maxCapacity; newLoc.growthRate = growth; - newLoc.initialPopulation = maxCapacity / 2.0; + //newLoc.initialPopulation = maxCapacity / 2.0; return newLoc; } @@ -501,7 +501,7 @@ expiredContent.addChild(obj); var newStudent:actionscript.Student = new actionscript.Student(); - newStudent.birthYear = ((obj as SocioDemographicPage).getYear() as int); + newStudent.birthYear = (int)((obj as SocioDemographicPage).getYear()); newStudent.gender = (obj as SocioDemographicPage).getGender(); newStudent.major = (obj as SocioDemographicPage).getMajor(); newStudent.semester = (obj as SocioDemographicPage).getSemester(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |