Skip navigation
mellusan
Currently Being Moderated

Access to d:userLabel in Flash Builder

Oct 14, 2009 8:07 AM

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!

 
Replies
  • Currently Being Moderated
    Aug 26, 2010 4:50 PM   in reply to mellusan

    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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points