Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-15376

The Application's frameRate property always returns NaN.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • mx: Application
    • 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>

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: