标题:flash放完最后一首为何不回到第一首循环呢?
只看楼主
sznt
Rank: 2
等 级:论坛游民
帖 子:161
专家分:20
注 册:2005-8-4
结帖率:66.67%
 问题点数:0 回复次数:1 
flash放完最后一首为何不回到第一首循环呢?
Private Sub Timer1_Timer()
Static a As Long
Static b As Integer
Dim OBJ As Object
  
Set OBJ = IIf(playform.Visible = False, Me.Flash1, playform.ShockwaveFlash1)

b = IIf(a = OBJ.CurrentFrame, b + 1, 0)
If b > 80 Then OBJ.Playing = True
      
      Caption = b
     If b > 200 Or a + 1 >= OBJ.TotalFrames Then
        b = 0
        If File1.ListIndex < File1.ListCount Then
            File1.Selected(File1.ListIndex + 1) = True
          Else
            File1.Selected(0) = True
        End If
            OBJ.Movie = Dir1 + "\" + File1.FileName
     End If
   a = OBJ.CurrentFrame
   
Set OBJ = Nothing
Exit Sub
Err:
     b = 0
     Set OBJ = Nothing
End Sub
搜索更多相关主题的帖子: flash 
2008-05-07 10:46
sznt
Rank: 2
等 级:论坛游民
帖 子:161
专家分:20
注 册:2005-8-4
得分:0 
不好意思,虽为弱身体质,姑且强顶一下吧,抱歉。
2008-05-07 21:11



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-212910-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.133923 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved