RanoraxloaderFlex4 does not pass parameter(s) to swf

Bug reports.
h.ketelaars
Posts: 3
Joined: Tue Sep 28, 2010 7:49 am

RanoraxloaderFlex4 does not pass parameter(s) to swf

Post by h.ketelaars » Tue Sep 28, 2010 8:29 am

Hello,

At this moment i am evaluating Ranorex to use it in combination with a flex application.
To test my application i want to use Ranorexloader. This way i can use the production swf without modification.

My swf needs a parameter and is working in de following HTML context:

<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
</head>
<embed flashvars="test=http://localhost/testplayer/content/xml/test.xml"
src="http://localhost/testplayer/testgenerator.swf"
width="550" height="400">
</embed>
</object>
</html>

I have minimised the HTML to the minimum code needed and i am aware that this is not the most elegant solution. But it works and is for testing purposes OK.

As you can see i use flashvars to pass a file (called http://localhost/testplayer/content/xml/test.xml) to the swf.

When i add the RanorexLoader to the html (see below) the application is not starting anymore.

<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
</head>
<embed flashvars="test=http://localhost/testplayer/content/xml/test.xml"
src="http://localhost/testplayer/RanorexLoad ... erator.swf"
width="550" height="400">
</embed>
</object>
</html>

I have copied RanorexLoaderFlex4.swf to the directory http://localhost/testplayer/.
I can see that my application is started but it can not finish the setup because the content located in the file is not available. Probably because the flashvar is not passed to the swf.

Can you tell me whats going wrong in this situation?

Thanks in advance
Hans Ketelaars

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: RanoraxloaderFlex4 does not pass parameter(s) to swf

Post by Support Team » Tue Sep 28, 2010 10:38 am

Hi,
h.ketelaars wrote:Can you tell me whats going wrong in this situation?
Please can you try if it works with the Ranorex Module. We suggest our customers to use the Module, because the Ranorex Loader loads your application in a container and this could cause limitations. The Ranorex Module will not affect the functionality of your flash/flex application. So please try it with the module.

Regards,
Peter
Ranorex Team