“Be inspired, enjoy your work, keep learning and never forget to play.” — gskinner

Check by code what SDK version are you using in the as3 project

Posted: July 20th, 2011 | Author: Ivan Valadares | Filed under: Actionscript3, Adobe Flex | 1 Comment »

import mx.core.UITextField;
import mx.core.mx_internal;

var version:String = UITextField.mx_internal::VERSION;
trace(version);

-------------------------------
result = 3.6.0.12937


One Comment on “Check by code what SDK version are you using in the as3 project”

  1. 1 Piergiorgio Niero said at 8:17 am on July 21st, 2011:

    Actually, mx_internal::VERSION is a static constant declared in mx.core.Version.as.

    Version.as is included by all core base classes (FlexSprite, etc) so, in a flex based project you simply have to write mx_internal::VERSION from any piece of code of your project with flex depencies.


Leave a Reply