flash 调用 脚本_Flash脚本-DNA双螺旋
flash 調用 腳本
Download the sample files here.
在此處下載示例文件 。
1. Create a movieclip from an object as shown below. Give it a instance name "dna1".
1.從一個對象創建一個動畫片段,如下所示。 給它指定一個實例名稱“ dna1”。
2. Create a new layer. We will insert the actions into this layer.
2.創建一個新層。 我們將動作插入這一層。
3. The idea is to dulicate the movieclip with a little diversion each time, then apply that diversion again and again.
3.想法是每次將動畫片段都稍微轉移一下,然后將其轉移一次又一次。
4. In the first keyframe insert the action:
4.在第一個關鍵幀中插入操作:
for (i=2; i<30; i=i+1){ ?
duplicateMovieClip ("/dna1", "dna" add (i), i); ?
setProperty ("/dna" add i, _rotation, getProperty("/dna" ?
add (i-1), _rotation)+11); ?
setProperty ("/dna" add i, _x, getProperty("/dna" ?
add (i-1), _x)+10); ?
} ?
setProperty ("/dna1", _visible, "0");
5. In the second keyframe, insert the action:
5.在第二個關鍵幀中,插入操作:
for(i=2; i < 30; i = i+1){ setProperty ("/dna" add i, _rotation, getProperty("/dna" ?
add i, _rotation) + 5); ?
}
6. In the third keyframe use the action
6.在第三個關鍵幀中使用操作
gotoAndPlay (2);7. Play the movie: you will get the effect shown above!
7.播放電影:您將獲得上面顯示的效果!
翻譯自: https://www.sitepoint.com/script-dna-double-helix/
flash 調用 腳本
總結
以上是生活随笔為你收集整理的flash 调用 脚本_Flash脚本-DNA双螺旋的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 嵌入式系统与通用计算机系统的区别,嵌入式
- 下一篇: 自由市场经济、社会主义和大数据