Page 1 of 1

Question about limitations of demo version

Posted: Wed Oct 25, 2006 12:07 am
by GuyWithDogs
I grabbed the 3.0 demo, dumped the files over the older demo I had, and tried out some of the samples. I can compile and run them.

So I tried creating my own application. All I did was drop a TFlashPlayerControl onto a form, assign a filename to Movie in Object Inspector, and set Playing to TRUE. It doesn't play. I added to OnShow

Code: Select all

FlashPlayerControl1.Movie := 'c:\banking.swf';
FlashPlayerControl1.Play;


Still nothing. What am I doing wrong?

Re: Question about limitations of demo version

Posted: Wed Oct 25, 2006 11:07 am
by Softanics
GuyWithDogs wrote:I grabbed the 3.0 demo, dumped the files over the older demo I had, and tried out some of the samples. I can compile and run them.


And all samples included in the demo version runs correctly?

Re: Question about limitations of demo version

Posted: Wed Oct 25, 2006 3:07 pm
by GuyWithDogs
Softanics wrote:And all samples included in the demo version runs correctly?


I've compiled and run the Sample1_SWF_And_FLV_Player and Sample3_StandalonePlayer. Those seem most similar to what I'm wanting to do.

In my own test program, I didn't use any resources. I simply dropped the component on the form and tried to launch a SWF file by assigning a value to Movie and calling Play.

Re: Question about limitations of demo version

Posted: Wed Oct 25, 2006 4:46 pm
by Softanics
GuyWithDogs wrote:
Softanics wrote:And all samples included in the demo version runs correctly?


I've compiled and run the Sample1_SWF_And_FLV_Player and Sample3_StandalonePlayer. Those seem most similar to what I'm wanting to do.

In my own test program, I didn't use any resources. I simply dropped the component on the form and tried to launch a SWF file by assigning a value to Movie and calling Play.


Sample1_SWF_And_FLV_Player plays a movie.swf from the application directory...

Re: Question about limitations of demo version

Posted: Wed Oct 25, 2006 4:50 pm
by Softanics
GuyWithDogs wrote:
Softanics wrote:In my own test program, I didn't use any resources. I simply dropped the component on the form and tried to launch a SWF file by assigning a value to Movie and calling Play.


I did the same. It plays well...

What version of Delphi you use?

Do you get the same result with every movie?

Re: Question about limitations of demo version

Posted: Wed Oct 25, 2006 6:56 pm
by GuyWithDogs
Softanics wrote:I did the same. It plays well...

What version of Delphi you use?

Do you get the same result with every movie?


I'm using Delphi 7 Pro. I actually removed FlashPlayerControl and reinstalled it. Still can't get the movie to play.

However, I can change the movie being played by the demo and it plays my movie. What I end up with is a white section on my form that says "DEMO VERSION".

Re: Question about limitations of demo version

Posted: Wed Oct 25, 2006 8:07 pm
by Softanics
GuyWithDogs wrote:However, I can change the movie being played by the demo and it plays my movie.


Another words, sample #1 plays your movie without any problems (.Movie = path_to_your_movie then .Play)... I can't understand, what is the difference between this sample and your test project. If you set the Movie property in the OnCreate event, it plays well. If you set the Movie property in Object Inspector, it doesn't play. Am I right?... I'm really need your help to resolve this problem.

Posted: Wed Oct 25, 2006 9:08 pm
by GuyWithDogs
I've posted a test program to http://www.uploading.com/files/AS8HLMER/fpc3test.zip.html. The file will disappear after 30 days of not being downloaded.

The program tries to load movie.swf from the directory that the .exe file is in. Unzip everything into one directory and try it. Let me know what I'm doing wrong. Or that it works on your machine and it doesn't work on mine...

Posted: Thu Oct 26, 2006 6:37 am
by Softanics
I downloaded and run it. Included EXE really doesn't play movie.swf. But if I rebuild the project, the EXE plays movie.swf well...

Posted: Thu Oct 26, 2006 3:42 pm
by GuyWithDogs
Softanics wrote:I downloaded and run it. Included EXE really doesn't play movie.swf. But if I rebuild the project, the EXE plays movie.swf well...


This makes no sense to me. I tried my project again, adding code to display the version of Flash being used. It showed 9.0.16.0. But t still didn't play the video.

I then opened your sample SWF_Embedding_and_FLV_Embedding into D7, clicked the "Run with Debug" icon, and it worked with no changes.

I'm completely baffled.

Posted: Thu Oct 26, 2006 4:58 pm
by Softanics
GuyWithDogs wrote:This makes no sense to me. I tried my project again, adding code to display the version of Flash being used. It showed 9.0.16.0. But t still didn't play the video.

I then opened your sample SWF_Embedding_and_FLV_Embedding into D7, clicked the "Run with Debug" icon, and it worked with no changes.

I'm completely baffled.


SWF_Embedding_and_FLV_Embedding loads movie from resource. Does Sample #1 work well?...

Could you completely remove the component. Then close Delphi, open again and install the component (demo version 3). And tried again with your project...

To all: does anybody have the same problems?

Posted: Thu Oct 26, 2006 7:25 pm
by GuyWithDogs
OK - I got it working. Turns out that I didn't have the FlashPlayerControl\Delphi7 directory on my search path. The .dpr in the Samples directory has that, so it worked. When I added the directory to my project, then it works.

What puzzles me is why I got as far as I did without that path. Must be something strange on my system...

Thanks for your help and patience...

Posted: Fri Oct 27, 2006 7:13 am
by Softanics
GuyWithDogs wrote:Thanks for your help and patience...


Thank you!