|
wvxvw
Member
Joined: Sun May 11, 2008 3:01 pm Posts: 891
|
 Sharing few snippets + question
Code: /** Embed SWF */ [Embed(source="$$(source).swf", mimeType="application/x-shockwave-flash", scaleGridTop="$$(scaleGridTop=1)", scaleGridBottom="$$(scaleGridBottom=1)", scaleGridLeft="$$(scaleGridLeft=1)", scaleGridRight="$$(scaleGridRight=1)", symbol="$$(symbol)")] private var _$$(source)_$$(symbol)SWF:Class;
/** Embed Binary */ [Embed(source="$$(source)", mimeType="application/octet-stream")] private var _$$(source)BIN:Class;
/** Embed Image */ [Embed(source="$$(source)", mimeType="$$(image/gif,image/jpeg,image/png)", scaleGridTop="$$(scaleGridTop=1)", scaleGridBottom="$$(scaleGridBottom=1)", scaleGridLeft="$$(scaleGridLeft=1)", scaleGridRight="$$(scaleGridRight=1)")] private var _$$(source)IMG:Class;
/** * Embed Font * fontSharpness = -400 > 400 * fontThickness = -200 > 200 */ [Embed(source="$$(source)", sourceList="$$(sourceList)", mimeType="$$(application/x-font,application/x-font-truetype)", fontName="$$(fontName)", systemFont="$$(systemFont)", fontStyle="$$(fontStyle=normal,italic,oblique)", fontWeight="$$(fontWeight=normal,bold,heavy)", advancedAntiAliasing="$$(advancedAntiAliasing=true,false)", flashType="$$(flashType=true,false)", fontGridFitType="$$(fontGridFitType=pixel,none,subpixel)", fontSharpness="$$(fontSharpness=0)", fontThickness="$$(fontThickness=0)", unicodeRange="$$(unicodeRange)")] private var _$$(source)FNT:Class;
/** Embed MP3 */ [Embed(source="$$(source).mp3", mimeType="audio/mpeg")] private var _$$(source)MP3:Class;
/** Embed SVG */ [Embed(source="$$(source)", mimeType="$$(image/svg,image/svg-xml)", scaleGridTop="$$(scaleGridTop=1)", scaleGridBottom="$$(scaleGridBottom=1)", scaleGridLeft="$$(scaleGridLeft=1)", scaleGridRight="$$(scaleGridRight=1)")] private var _$$(source)SVG:Class;
/** ArrayElementType */ [ArrayElementType("$$(class=int)")]
/** Bindable */ [Bindable(event="$$(eventname=change)")]
/** DefaultProperty */ [DefaultProperty("$$(defaultProperty)")]
/** Deprecated */ [Deprecated(message="$$(message)", replacement="$$(replacement)", since="$$(since)")] /** Effect */ [Effect(name="$$(name)", event="$$(event)", deprecatedMessage="$$(deprecatedMessage)", deprecatedReplacement="$$(deprecatedReplacement)", deprecatedSince="$$(deprecatedSince)")]
/** Event */ [Event(name=="$$(name)", type="$$(type=flash.events.Event)", deprecatedMessage="$$(deprecatedMessage)", deprecatedReplacement="$$(deprecatedReplacement)", deprecatedSince="$$(deprecatedSince)")]
/** Exclude */ [Exclude(name="$$(name)", kind="$$(kind=property,event,style)")]
/** ExcludeClass */ [ExcludeClass]
/** IconFile */ [IconFile("$$(iconFile)")]
/** Inspectable */ [Inspectable(category="$$(category=Other,Common,Effects,Events,Layout Constraints,Size,Styles)", defaultValue="$$(defaultValue)", enumeration="$$(enumeration)", environment="$$(environment=none,Flash,MXML)", format="$$(format)", listOffset="$$(listOffset=0)", name="$$(name)", type="$$(type=String,Array,Boolean,Color,Font Name,List,Number,Object,String)", variable="$$(variable)", verbose="$$(verbose=1)")]
/** InstanceType */ [InstanceType("$$(type=mx.core.UIComponent)")]
/** NonCommittingChangeEvent */ [NonCommittingChangeEvent(name="$$(name=change)")]
/** NonCommittingChangeEvent */ [RemoteClass(alias="$(Package).$(FileName)")]
/** Style */ [Style(name="$$(name)", type="$$(type=Class)", arrayType="$$(arrayType)", format="$$(format=Number,Color,Length)", enumeration="$$(enumeration)", inherit="$$(inherit=yes,no)", states="$$(states)", deprecatedMessage="$$(deprecatedMessage)", deprecatedReplacement="$$(deprecatedReplacement)", deprecatedSince="$$(deprecatedSince)")]
/** Transient */ [Transient]
/** --------------- UNDOCUMENTED --------------- */ /** SWF */ [SWF width="$$(width=800)", height="$$(height=600)", widthPercent="$$(widthPercent=100)", heightPercent="$$(heightPercent=100)", scriptRecursionLimit="$$(scriptRecursionLimit=225)", scriptTimeLimit="$$(scriptTimeLimit=15)", frameRate="$$(frameRate=30)", backgroundColor="$$(backgroundColor=0xFFFFFF)", pageTitle="$$(pageTitle)"]
/** Frame - maybe missing arguments */ [Frame(factoryClass="$$(factoryClass=mx.managers.SystemManager)")]
/** MaxChildren */ [MaxChildren($$(MaxChildren=0))]
/** Mixin */ [Mixin] public static function init(root:DisplayObject):void
/** PercentProxy */ [PercentProxy("$$(PercentProxy)")]
Here're the snippets I have for different meta-tags, though, I wonder... can you wrap metatags? (some of them are not just long... they may be huge...) Are there any bugs connected to it? + correct me if some of the parameters are irrelevant (I don't know for instance about font' flashType, the compiler didn't complain about that, but I couldn't see any change when set to true / false...) EDIT: There was a "unverified" InitializeGUI tag - it appeared to be custom (not SDK-related) metadata, so, removed from the list.
_________________ http://www.couchsurfing.com/people/wvxvw
Last edited by wvxvw on Sat Dec 19, 2009 1:16 pm, edited 2 times in total.
|