View unanswered posts | View active topics



Reply to topic  [ 3 posts ] 
Sharing few snippets + question 
Author Message
Member

Joined: Sun May 11, 2008 3:01 pm
Posts: 895
Reply with quote
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.



Sat Apr 04, 2009 2:57 pm
Profile
Member

Joined: Wed Dec 06, 2006 3:12 pm
Posts: 187
Location: Leipzig, Germany
Reply with quote
where did you find all those tags?
i'm playing around with them lately, but it's quite hard to find out what they do, especially if you only use as3 ...

greetz
back2dos


Mon Apr 06, 2009 2:29 pm
Profile
Member

Joined: Sun May 11, 2008 3:01 pm
Posts: 895
Reply with quote
Most of them are documented in here:
http://livedocs.adobe.com/flex/3/html/e ... tml#181779
http://livedocs.adobe.com/flex/3/html/h ... ata_3.html
And the undocumented tags are from different sources, it'd hard to find now each source...

_________________
http://www.couchsurfing.com/people/wvxvw


Tue Apr 07, 2009 10:53 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.