Hello!
Is there a way to access the d:userLabel attribute in Flash Builder?
I want to use a number of different files created from Illustrator -> Catalyst -> Flash Builder
looks like this:
<fx:DesignLayer d:id="2" d:userLabel="A1">
<s:Rect d:userLabel="R_1"
x="150" y="200" width="500" height="300" ai:knockout="0">
<s:fill>
<s:SolidColor color="0xffffff"/>
</s:fill>
</s:Rect>
<s:Rect d:userLabel="R_2"
x="150" y="200" width="80" height="60" ai:knockout="0" >
</s:Rect>
...
</fx:DesignLayer>
Now the question:
Can I access the "userLabel" with a scriptfunction?
Something similar to getElementByID ?
I want to change for example the fillcolor of a rect or path with that function.
Because I have no id here I can't do something like: R_1.fill = blue
and I don't want to manually change the files from Illustrator.
Thanks!
According to the documentation, "Flex ignores anything in those namespaces".
I'm +1 on this idea though. It would radically improve the utility of the FXG format to have a standard means for addressing objects within the graphic.
North America
Europe, Middle East and Africa
Asia Pacific