tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/111-created-two-instance-use-mapsingletonRobotlegs: Discussion 2013-04-28T10:01:13Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/19946162010-06-18T02:23:35Z2010-06-18T02:23:35ZCreated two instance use mapSingleton<div><p>additional: the HttpService have a param:</p>
<p>public function HttpService(path:String = null)<br>
{</p>
<pre>
<code>this.path = path;</code>
</pre>
<p>}</p></div>werslingtag:robotlegs.tenderapp.com,2009-10-18:Comment/19946162010-06-18T08:32:49Z2010-06-18T08:32:49ZCreated two instance use mapSingleton<div><p>This is a known problem in earlier versions of the Flash
Player.<br>
Specifically, the bug causes describeType to return incomplete<br>
information about constructor parameters until the class has
been<br>
instantiated at least once.</p>
<p>As you have already found out, the bug is fixed in Flash Player
10.1.<br>
As SwiftSuspenders (the dependency injection solution used in<br>
Robotlegs) automatically detects if a dummy instance has to be<br>
instantiated based on the information it gets from describeType,
it<br>
doesn't create the dummy instance in the newest Flash Player
versions<br>
anymore.</p>
<p>For more information, please see the section "Problems with<br>
constructor injection" in the SwiftSuspenders readme at<br>
<a href=
"http://github.com/tschneidereit/SwiftSuspenders/#readme">http://github.com/tschneidereit/SwiftSuspenders/#readme</a></p></div>Till Schneidereit