Setting the Flex Recording Mode

You can instruct VuGen how to generate a script from a Flash Remoting session using the Flex and Web Protocols.

Example

Use Web HTTP technology to generate web_custom_request functions with the Flash Remoting information.

Example: 
web_url("flash", 
    "URL=http://<HOST>:<PORT>/flash/", 
    "Resource=0", 
    "RecContentType=text/html", 
    "Referer=", 
    "Snapshot=t1.inf", 
    "Mode=HTML", 
    EXTRARES, 
    "Url=movies/XMLExample.swf", "Referer=", ENDITEM, 
    "Url=movies/JavaBeanExample.swf", "Referer=", ENDITEM, 
    LAST);
web_link("Sample JavaBean Movie Source", 
    "Text=Sample JavaBean Movie Source", 
    "Snapshot=t2.inf", 
    EXTRARES, 
    "Url=XMLExample.swf", "Referer=", ENDITEM, 
    "Url=JavaBeanExample.swf", "Referer=", ENDITEM, 
    LAST);
web_custom_request("gateway", 
    "URL=http://<HOST>:<PORT>/flashservices/gateway", 
    "Method=POST", 
    "Resource=0", 
    "RecContentType=application/x-amf", 
    "Referer=", 
    "Snapshot=t3.inf", 
    "Mode=HTML", 
    "EncType=application/x-amf", 
    "BodyBinary=\\x00\\x00\\x00\\x01\\x00\\x10amf_server_debug\\x01
                \\x00\\x00\\x00`\\x03\\x00\ncoldfusion\\x01\\x01\\x00
                \namfheaders\\x01\\x00\\x00\\x03amf\\x01\\x00\\x00
                \\x0Bhttpheaders\\x01\\x00\\x00\trecordset\\x01\\x01
                \\x00\\x05error\\x01\\x01\\x00\\x05trace\\x01\\x01
                \\x00\\x07m_debug\\x01\\x01\\x00\\x00\t\\x00\\x01
                \\x00/flashgateway.samples.FlashJavaBean.testDocument
                \\x00\\x02/1\\x00\\x00\\x004\n\\x00\\x00\\x00\\x01
                \\x0F\\x00\\x00\\x00* 
<TEST message=\"test\"><INSIDETEST /></TEST>",         LAST);