• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 352
  • Last Modified:

FLASH in Delphi (Cycle)

Does anyone know how to cycle flash files in delphi?
I was thinking of doing a loop and playing
different flash files from delphi.

I can't seem to load a new flash file. This
is the statement I'm using:

 shockwaveflash1.LoadMovie(1,'sample.swf');

How would I do a loop and load another file?

Darin
0
waipahu
Asked:
waipahu
  • 2
1 Solution
 
ginsonicCommented:
Read this article :

Displaying Macromedia Flash .SWF files in your Delphi Application

http://www.delphipages.com/news/detaildocs.cfm?ID=38

And look for :

Loop (get or set) - True if the animation loops, false to play once. Same as the MOVIE parameter.
0
 
ginsonicCommented:
You wish to loop or to load a new file at end ? Don't understand .

If wish to load a new file at the end  use

TotalFrames (get only) - Returns the total number of frames in the movie. This is not available until the movie has loaded. Wait for ReadyState = 4.

FrameNum (get or set) - The currently displayed frame of the movie. Setting this will advance or rewind the movie.

When FrameNum=TotalFrames then load and play a new one .
0
 
CleanupPingCommented:
waipahu:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
Lukasz LachCommented:
waipahu,
No comment has been added lately (17 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to ginsonic http:#7097807

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

anAKiN
EE Cleanup Volunteer
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now