[size=0.875]1
[size=0.875]2
[size=0.875]3
[size=0.875]4
[size=0.875]5
[size=0.875]6
[size=0.875][size=0.875]public attribute opmlFilePath : String on replace
[size=0.875] oldPath = newPath {
[size=0.875] if (newPath != null and not "".equals(newPath.trim)) {
[size=0.875] setOpmlFilePath(newPath);
[size=0.875] }
[size=0.875] }
[size=0.875]1
[size=0.875]2
[size=0.875]3
[size=0.875]4
[size=0.875]5
[size=0.875]6
[size=0.875]7
[size=0.875]8
[size=0.875][size=0.875]var opmlViewer = OpmlViewer {
[size=0.875] opmlFilePath : "c:\\google-reader-subscriptions.xml",
[size=0.875] hmax : 200
[size=0.875] hmin : 100
[size=0.875] };
[size=0.875] var feedViewer = FeedViewer {
[size=0.875] feedUrl : bind opmlViewer.selectedFeedUrl
[size=0.875] };
[size=1.0625]分別是 1 秒、1.5 秒和 2 秒。在這 3 個關鍵幀所關聯的時間點到達的時候,都會執行 output[size=0.875][size=1.0625] 方法,該方法會打印出 simpleVar[size=0.875][size=1.0625] 的值。需要說明的是在第三個關鍵幀上,通過 values 聲明瞭 simpleVar 在該關鍵幀中的值是 200,並且是通過線性插值(Interpolator.LINEAR)的方式來計算中間值。因此,在 1 秒和 1.5 秒的關鍵幀中,simpleVar 的值就是根據線性插值的方式計算出來的。
閱讀更多 中電網 的文章