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 frameRate is set to 2.
2. Click the button to trace the frameRate property.
Actual Results:
stage.frameRate returns the correct value.
Application.application.frameRate returns NaN.
Expected Results:
To return the correct value.
Workaround (if any):
Use stage.frameRate.
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" frameRate="2">
<mx:Script>
<![CDATA[
import mx.core.Application;
import flash.display.Stage;
private function getFrameRate():void
{ trace("stage.frameRate: " + stage.frameRate); trace("Application.application.frameRate: " + Application.application.frameRate); }]]
>
</mx:Script>
<mx:Button label="Get frameRate" click="getFrameRate()" />
</mx:Application>