How do you handle states and the includeIn tag in ActionScript? For instance:
var newState:State = new State(); var comp:Group = new Group(); comp.includeIn = newState;
This is invalid code, but this is what I would like to do.
From Adobe Help: About Spark skins
http://help.adobe.com/en_US/flex/using/WSC8DB0C28-F7A6-48ff-9899-7957415A0A49.html
Quote:
The properties excludeFrom and includeIn can only be set in MXML. You cannot set the values โโof these properties in ActionScript.
, , includeIn/excludeFrom AddChild/RemoveChild. , , :
var newState:State = new State(); var comp:Group = new Group(); newState.overrides = [new AddChild(this, comp)];
Source: https://habr.com/ru/post/1755057/More articles:Is there any effect on using one large tag ? - coldfusionDifference between UINavigationBar and UIToolbar render process - iphone"File contains invalid .pdata tabs" when creating 64-bit dll - c ++xforms: how to prevent xxforms: default from over inputting user input - xformsGWT RequestBuilder - xmlhttprequestFrequent "No such file or directory" when saving files via "Clip" - ruby โโ| fooobar.comConvert XML to Object Using Reflection - reflectionHow to change a parameter value using jQuery? - javascriptSugiyama Layout Algorithm Extension for a Multiple Input Block - algorithmvim: a plugin that allows me to switch from opening a div to closing a div in HTML? - vimAll Articles