ToolTipsFactory |
Insert a list of AnimationFrames at a specified position in the frames-list of the Animation.
[Visual Basic] Public Sub InsertFrames(ByVal Frames As Collection, Pos As Integer)
[C#] public void InsertFrames(Collection frames, int pos);
Parameters
Pos
The position in the zero-based sequence of AnimationFrames, where the Frames should be inserted.
Description
This method is used to insert a list of AnimationFrames into the Animation-object at the specified position (Pos) of the frames-sequence.
'Create a new Animation...
Dim myAnimation As Animation = New Animation
'Load an existing Animation from file
myAnimation.Load("C:\Temp\GoneWithTheWindows.afx")
'Lets inject some commercials (1 minute duration) into the
'middle of the movie...
Dim myMacAd As Image = LoadMacintoshAd()
Dim myLinuxAd As Image = LoadLinuxAd()
Dim macFrame, linuxFrame As AnimationFrame
macFrame = New AnimationFrame(myMacAd)
linuxFrame = New AnimationFrame(myLinuxAd)
'create a collection with Frame-objects
Dim ads As New Collection
ads.Add(macFrame)
ads.Add(linuxFrame)
'insert the frames-collection (ads) with
'one line of code between frame 311 and 312...
myAnimation.InsertFrames(ads,311)