Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

FLASH in Delphi (Cycle)

Posted on 2002-06-20
4
332 Views
Last Modified: 2010-04-04
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
Comment
Question by:waipahu
  • 2
4 Comments
 
LVL 9

Expert Comment

by:ginsonic
ID: 7097805
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
 
LVL 9

Accepted Solution

by:
ginsonic earned 50 total points
ID: 7097807
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
 

Expert Comment

by:CleanupPing
ID: 9343180
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
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 9453460
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question