Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flex 4 states and using includein with actionscript

How do you handle states and the "includeIn" tag in ActionScript? For example:

var newState:State = new State();
var comp:Group = new Group();
comp.includeIn = newState;

This is not valid code, but it's what I'd like to do.

like image 520
solerous Avatar asked Apr 10 '26 07:04

solerous


1 Answers

From Adobe Help: About Spark skins

http://help.adobe.com/en_US/flex/using/WSC8DB0C28-F7A6-48ff-9899-7957415A0A49.html

Quote:

The excludeFrom and includeIn properties can be set only in MXML. You cannot set the values of these properties in ActionScript.

like image 179
Robert Avatar answered Apr 12 '26 03:04

Robert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!