Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

Using spark components in a .fla

$
0
0

I'm trying to use Spark components in a Flash Professional CC project. I've added AIR 14 to Flash CC:

flash properties.png

 

and I've adjust my preferences to use Apache Flex SDK and pointed it to paths of Flex additional libraries:

 

Flash preferences.png

 

Now, I can add spark components to my project:

 

import spark.components.Button;

 

var btn:Button = new Button();
btn.label = "Test";
btn.x = 300;
btn.y = 300;
this.addChild(btn);

 

but when I run it, it doesn't show them. What it's wrong?

 

 

PD: Sorry about my poor English


Viewing all articles
Browse latest Browse all 13519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>