Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Run the sample code below. Note that scriptRecursionLimit is set to 50.
2. Click the button to trace the scriptRecursionLimit.
Actual Results:
It returns 0.
Expected Results:
To return the correct value.
Workaround (if any):
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" scriptRecursionLimit="50">
<mx:Script>
<![CDATA[
import mx.core.Application;
import flash.display.Stage;
private function getScriptRecursionLimit():void
{ trace("Application.application.scriptRecursionLimit: " + Application.application.scriptRecursionLimit); }]]
>
</mx:Script>
<mx:Button label="Get scriptRecursionLimit" click="getScriptRecursionLimit()" />
</mx:Application>