Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-05-2006, 03:58 AM
Junior Member
 
Join Date: Dec 2005
Posts: 14
Default Playing FLV created with flash 8 media component

Hi,

1. My swf is created with Flash8 FLV player component.
2. I have created swfkit projector and "pack attached files " option is activated.
3. Initializing script is as follows.
Code:
var path = getAdditionalFile();
Application.setBasePath();
4. I'm unable to make my flv active in the projector.
5. help to find the correct way please !

Thanks,
Kitroh.


Reply With Quote
  #2 (permalink)  
Old 01-23-2006, 01:47 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Playing FLV created with flash 8 media component

The setBasePath method does not work with the flv files. The key of this problem is to put the main swf file with the flv files together. Please do as follows:

1. add a swf movie into the movie list in swfkit. Any swf file would be ok. This swf file has no use, just make swfkit thinks there is a main movie.
2. import your flash project into the attachment list swfkit by clicking the "import" button, including all swf files, flv files and other resources. This step ensures that in swfkit the directory structure of your project keeps unchanged.
3. in the "initialize" script, add the following code:

***// extract all attached files
***getAdditionalFile();
***
***// because the "real" main movie is in
***// attachment list, you would have to
***// let swfkit play it instead of
***// the "fake" main movie
***Application.onGetMovie = function (movie)
***{
******// because "playflv.swf" is the real
******// main movie, let swfkit play it
******movie.value = getAdditionalFile("playflv.swf");
******return true;
***}
***
In swfkit 3, this problem will never happen again. Because it will no longer seperate your project files to movie list and attachments. Besides this, it has an amazing feature that encrypts the files such as flv file, swf files and so on. Whether you pack the files into the exe file or not, they cannot be played outside the exe.

A Sample:
http://www.swfkit.com/download/swfkit/flvsample.zip
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:09 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.