Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-02-2008, 09:22 AM
Junior Member
 
Join Date: Jun 2008
Posts: 6
Default accessing in FFish a control (ActiveX) created in AS

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

Reply With Quote
  #2 (permalink)  
Old 12-03-2008, 09:50 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: accessing in FFish a control (ActiveX) created in AS

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.
Reply With Quote
  #3 (permalink)  
Old 12-03-2008, 02:01 PM
Junior Member
 
Join Date: Jun 2008
Posts: 6
Default Re: accessing in FFish a control (ActiveX) created in AS

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?

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 05:29 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.