|
|||
|
I created a simple flash movie with 2 statements.
_root.loadMovie("brush.jpg"); stop() And Use this movie to test dymanic load jpg between flash and swfkit. When I build the project without option "Pack movies". It works fine. ;D But if build it with option "Pack movies". The exe file can't load jpg anymore!!!! ??? :'( Is that means swfkit can't create a single executable file that have the function to dymanic load jpg? ![]() |
|
|||
|
SWFKit can load jpg dynamically. The problem is the movie cannot find the proper location of the jpg. You should specify the full pathname of the jpg.
SWFKit 1.0 cannot pack the jpg. You cannot create a single executable file contains the jpg. To get the pathname of the jpg, you can use the getAppDir method. It's more convenient to load the jpg in the FFish Script like this: Code:
var path = getAppDir() + "\\brush.jpg"; FlashPlayer.loadMovie(path); |
|
|||
|
In ActionScript:
Code:
loadMovie(path, load_target); Code:
//bind the Action Script variable
FlashPlayer.bindData("path");
FlashPlayer.path = getAppDir() + "\\brush.jpg";
//update the Action Script variable
FlashPlayer.updateData(false);
//Call the Action Script
FlashPlayer.targetCallFrame(your_target_name, your_frame_number);
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|