|
|||
|
Hi,
I need to run an asynchronous method on an Object that was created in AS private function installSmartcardControl():Void{ var temp:Object=SWFKit.Global.createControl("smartcard .ClientAlert", 0, 0, 0, 0); _smartcardControl=new SmartCardEXE(temp.activex); //temp.window.hide(); _smartcardControlInstalled=true; } I need to run it asynchronously because the process takes a long time and the 15 seconds flash player error appears. I just need to be able to access the activeX object in ffish after it has been created in as2 I'm passing the identifier to FFish so I can access the control var id=FlashPlayer.getVariable("identifier"); trace("id " + id) var ax = new ActiveXObject(id); trace("ax " + ax ) ; since this is what is being done in "fromID" in the ActiveXObject class I thought this could work. Thank you for your help |
|
|||
|
No, you cannot do that. In the current version of swfkit, you cannot access an ffish script object constructed in actionscript. However, you can call as methods from ffish script, so you may access it indirectly.
|
|
|||
|
Thank you for the answer.
Will i still be able to maintain the asynchronous aspect of the ffish call when calling an AS method (from within swfkit) avoiding the Flash Player error? I'm doing things this way because maintaining code in FFish is more difficult than AS files (SVN), also code is much tidier when using SWFKit Classes. Is it possible to make an asynchronous call in any other way than an fscommand (ffish_asynrun)? Can I do things like AS2 ExternalInterface.addCallback("response",this,call ResultHandler) ExternalInterface.call("ffish_asynrun","startActiv eX") call "response" in ffish and maintain the asynchronous aspect so the player doesn't hang? |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|