? I saw this several times here and there, and I became curious.

What is the purpose of "fb: purpose" in Flex <fx: Script>?

I saw this several times here and there, and I became curious.

 <fx:Script fb:purpose="styling">
    //script stuff
 </fx:Script>

Until now, I have not seen any difference with him and without her. I also do not get any compilers. How is a script with fb: purpse different from a script without? What are the implications for not including fb: target and what are the benefits for including fb: target?

+5
source share
4 answers

In the Flex 4 documentation:

Spark . , , , . , fb: purpose = "styling":

<fx:Script fb:purpose="styling">

Flash Builder. Flash Builder, . , Flash Builder . , Flash Builder .

+5

flashbuilder .

, , FlashBuilder - Flex Adobe.

, ( ) script, , .

+2

If you create a new MXML skin using Flash Builder (File> New> MXML Skin), you can clear the "Delete style code" checkbox, which means that Flash Builder must remove the script block that defines fb: purpose = "style".

+1
source

As Yaba said, it allows you to check or uncheck the "Delete ActionScript style" box when creating a new MXML skin by copying another Skin class.

+1
source

All Articles