trichview.com

trichview.support




InsertControl and reload again


Return to index


Author

Message

Mirko Görgen

Posted: 04/05/2005 20:56:15


Hi


regarding my open question about using Flash on Trichview I tried to solve

it different. I have another Control which can Play Flash. It is possible

to add this control on Richview like this.


        TMemoryStream* stream = new TMemoryStream();

        stream->LoadFromFile("c:\\demo.swf");

        stream->Position = 0;

        TFlashPlayerControl* swf = new TFlashPlayerControl((TComponent *)NULL);

        swf->EmbedMovie = true;

        swf->Quality = 1;

        swf->BackgroundColor = 255;

        swf->Width = 353;

        RichViewEdit1->InsertControl("",swf, rvvaBaseline);

        swf->LoadMovieFromStream(0, stream);

        swf->Play();


        delete stream;



Problem is now, when I try to load the rvf back again, it gives an Error

"Can´t find Class TFlashPlayerControl"


So I guess / hope you have any idea


regards

Mirko





Powered by ABC Amber Outlook Express Converter