# Questions about ExternalInterface

**URL:** https://forum.kirupa.com/t/questions-about-externalinterface/332617
**Category:** flash
**Created:** [August 25, 2014, 7:19am UTC](https://forum.kirupa.com/t/questions-about-externalinterface/332617 "2014-08-25T07:19:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dysuk](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@dysuk](https://forum.kirupa.com/u/dysuk)
#### Post date: [August 25, 2014, 7:19am UTC](https://forum.kirupa.com/t/questions-about-externalinterface/332617/1 "2014-08-25T07:19:43Z")

</div>

Takes the value of using the ExternalInterface from C # and try to change the fps of the stage as the value. But I do not seem to work properly.  
Comes to the value of speed values ​​are sent in C #.  
I try to output to screen incoming values ​​in C # I do not know how too.  
The script is as follows:

* * *

this.stage.scaleMode =StageScaleMode.NO\_SCALE;

import flash.external.\*;

ExternalInterface.addCallback(“speed”, getSpeed);

function getSpeed(msg:String)  
{  
this.stage.frameRate = int(msg) \* 30 / 20;  
trace(msg);  
}

* * *

How do we fix this?  
:wasted:
