Hi people,
I am trying to get this code working --
var loader;
$(function() {
loader = new air.HTMLLoader();
loader.addEventListener(air.Event.COMPLETE, complete);
loader.load(new air.URLRequest('http://www.lilpirate.net/blog'));
});
function complete() {
$(loader.window.document).ready(function(){
$("#texts").val($("#header",loader.window.document).val());
alert("Complete!");
});
}
After compiling it using adl, the window opens and all goes as expected, but in the terminal I get the message
Error : Adobe Flash Player error: could not load cURL library
I get the Complete! alert message, but the textarea with id texts is not updated with the data in #header which is on http://www.lilpirate.net/blog
I think this is happening because of the error message adl is throwing.
I'm running Fedora 13 x64 and have installed flash player correctly(firefox test). I also have libcurl and libcurl-devel packages installed.
Help!