Page 1 of 1

Object Recognition w/i Flash

Posted: Thu Oct 20, 2011 9:26 pm
by swambach
Does Ranorex make use of the External Interface to recognize objects within Flash applications?

I'm trying to debug an issue where Ranorex doesn't recognize that the application has been loaded with the automation swc. I'd like to know if I can try calling any external interface methods from javascript, or if there's another way to figure out what objects cannot be recognized.

Re: Object Recognition w/i Flash

Posted: Fri Oct 21, 2011 12:43 pm
by Support Team
Hi,
Does Ranorex make use of the External Interface to recognize objects within Flash applications?
Which External Interface do you mean?
I'm trying to debug an issue where Ranorex doesn't recognize that the application has been loaded with the automation swc
Are you sure that you correctly included the Ranorex Lib?
Therfore take a look at the following link.
I'd like to know if I can try calling any external interface methods from javascript, or if there's another way to figure out what objects cannot be recognized.
Which external interface methods do you mean?
To determine if Ranorex can find all your elements you can open the Ranorex Spy and identify your application.
Which version of Ranorex are you using, do you have tried to use the new preloader to identify your Flash elements?
If you are using 3.1.1 you can start the Instrumentation Wizard to install the preloader, but please consider that you have to remove the old instrumentation first.
For more information take a look at the following link.

Regards,
Markus
Ranorex Support Team

Re: Object Recognition w/i Flash

Posted: Fri Oct 21, 2011 1:06 pm
by swambach
I mean the actionscript external interface - http://help.adobe.com/en_US/FlashPlatfo ... er_air=2.6

I'm sure that the automation library is included, I compiled the swc in with the application and have also tried the preloader. I think the problem is how our application is deployed, but in trying to debug the issue I wanted to see if there were *Ranorex* methods exposed via the actionscript external interface - said another way, I want to ensure that the appropriate hooks in to the app are being exposed and not consumed somehow by our application.

Ranorex does not identify any objects, thus my question on debugging.

Re: Object Recognition w/i Flash

Posted: Mon Oct 24, 2011 2:39 pm
by Support Team
Hi,

You could use following code snippet to check if Ranorex is loaded
var ranorexClass:Class = ApplicationDomain.currentDomain.getDefinition("Ranorex::RxAutomationBase") as Class;
var test:Object = ranorexClass["autoApp"];				 
if(test != null)
	Alert.show("Ranorex loaded successfully");
else
	Alert.show("Ranorex not loaded");
But this piece of code doesn't work with the PreLoader, because you cannot reach the AppDomain of the PreLoader.

Hopefully this is what you need.

Regards,
Peter
Ranorex Team