|
|||
|
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(); 5. help to find the correct way please ! Thanks, Kitroh. |
|
|||
|
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 |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|