|
|||
|
Hi, there
![]() I've tried to use Flash 9 public alpha and SWFKit, but there are some problems. I could manage to create a script that sends variables from actionscript to FFish, but I couldn't send variables from FFish to actionscript.. :'( The reason is that we can't use any methods like "setVariable", even "getVariable". Does anyone have any suggestions? To send variables from AS to FFish, use "fscommand("FFish_Eval","function("+FlashVariables+")")" E.g. //Flash Side arg="Hello World!!"; fscommand("FFish_Eval","msg("+arg+")"); //FFish Side //in Initialize function msg(arg){ Dialogs.msgBox(arg); } |
|
|||
|
SWFKit is compatible with flash player 9, and flash player 9 can improve the performance of the produced exe programs. However, the current version of swfkit does not contain the flash player 9, so you cannot use it now. We will release swfkit v3 in a week or so, which contains the most current version of the flash player. It also has the ability to upgrade automatically. And after we release swfkit v3, we will also update swfkit 2.2 to contain the flash player 9 for the users who do not want to upgrade to v3.
|
|
|||
|
P.S.
In addition, If someone is trying to send variables from FFish to AS, the following may be help. //First, create a MovieClip named "recv" in level0 and one more named "targ" in "recv". //in Initialize FlashPlayer.targetSetProperty("recv.targ",13,"Hell o World!!"); //in SWF Timer1=new Timer(100);//Lower Interval may take more memory and UPU :'( Timer1.addEventListener("timer",handler1); Timer1.start(); function handler1(event):void{ ***if(recv.getChildAt(0).name!="targ"){ ******//recv.getChildAt(0).name="Hello World!!" ***} } *After receiving "Hello World!!" if you want send another, write FlashPlayer.targetSetProperty("recv.Hello World!!",13,"Hello World2!!"); *You can send (maybe) any messages like multibytes letters. ![]() |
|
|||
|
SWFKit v3 will come out on the next Monday. If you are using swfkit pro and need to build your project with flash player 9 right now, please download the patch for swfkit pro 2, which is built for one of our users to add a special feature:
http://www.swfkit.com/forum/thread_1_1219.html |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|