Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-05-2003, 05:04 PM
Junior Member
 
Join Date: Jan 2003
Posts: 12
Default Problem of load jpg?

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?


Reply With Quote
  #2 (permalink)  
Old 01-05-2003, 07:34 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Problem of 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);
SWFKit 1.05 can pack any additional files. We will release it on Monday.
Reply With Quote
  #3 (permalink)  
Old 01-06-2003, 10:05 AM
Junior Member
 
Join Date: Jan 2003
Posts: 12
Default Re: Problem of load jpg?

How about if I want to dymanic load a jpg to a movieclip? ???
Reply With Quote
  #4 (permalink)  
Old 01-06-2003, 12:48 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Problem of load jpg?

In ActionScript:

Code:
loadMovie(path, load_target);
In FFish Script

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);
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 01:52 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.