English 中文(简体)
利用ASDoc与Bendable metatag和mxml
原标题:Using ASDoc with Bindable metatag and mxml
  • 时间:2009-08-31 09:47:52
  •  标签:

我正在利用ASDoc制作我弹性项目的文件,并提出一些有约束力的元件。

  • ASDoc doesn t document public Bindable values unless the Bindable tag has an event name associated with it.

例如:

//This is documented correctly
[Bindable("someEvent")]
/*
* public bindable with event name
* */
public var test1:String;

//This is not documented at all
[Bindable]
/*
* public bindable without event name
* */
public var test2:String;  
  • ASDoc prepends random strings to the names of protected Bindable values if the bindable tag doesn t have an event name associated with it.

例如:

//This is documented correctly as test3  
[Bindable("someEvent")]  
/*  
* protected bindable with event name  
* */  
protected var test3:String;  

//But this is documented as _110251490test4  
[Bindable]  

/*  
* protected bindable without event name  
* */  
protected var test4:String;

总而言之,ASDoc不喜欢Bindable 标签,没有活动名称。 简单的解决办法似乎是,在你宣布可以做些什么时,具体说明一个事件的名称。 But flex docs道: 如果u 具体指明与可变标的一起事件的名称,则“由谁负责制作和发送活动”。 我的项目几乎是完整的,我依靠许多地方的约束力(无事件名称)来回头并改变一切,这是不现实的,因为它的花角需要付出大量努力;此外,我还想说,要制定工作守则,为我提供文件。

将所有<代码>[Bindable] 例改为[Bindable(”blah”)],然后加以改观,这是唯一可以想象的工作。 但我认为应该有更好的办法。

obe bug履带声称,公共变数问题在最近建筑中已经确定,因此我下载了最新的弹性体(3.4),并与随之而来的ASDoc进行了尝试,但结果与我相同。

谁能对这一问题有所了解?

另外,。obe blog 说 ASDoc现在也支持mxml,但当我用最新(flex 3.4)ASDoc进行审判时,我的mxml asdoc评论(载于)出现在生成的html网页上。 任何人都知道是否可以单独下载最新图像?

问题回答

虽然我可以帮助你进行工作,但问题是[Bindable](无事件名称)在财产周围产生包装法(我相信一种单独的财产)。 这部法律显然带有教义。

页: 1

数据和元数据交换的ASDoc变化只在第4号(IIRC)中,我检查了具有约束力的ug。





相关问题
热门标签