I think the problem is, you're trying to use a Delegate in the global scope. On that line, 'this' == 'global'. I'd try rewriting your <script/> into an LZX <class/> that uses <method/> instead of function() {...} - then it should work much better. Let me know how it goes!

Regards,
Max Carlson
OpenLaszlo.org

On 6/1/10 5:51 AM, Phoenix Hawk wrote:
Hi guys,

I need a simple line charting solution to do a proof of concept to demo
that OpenLaszlo is the platform a potential project can be built on (to
help a non-profit org helping patients with terminal illnesses) - the
admins to track the case history and display some data like temp, pulse,
etc.

I am a total n00b to Flash, have been working on OpenLaszlo a little,
mainly working on the java xmlrpc part to retrieve the dataset for OL.

I am trying to port spoco2's code here so that it can compile to swf10:
http://forum.openlaszlo.org/showpost.php?p=42682&postcount=55
<http://forum.openlaszlo.org/showpost.php?p=42682&postcount=55>

I got stuck with the error:
"ERROR @lib/fusioncharts.lzx≈39: TypeError: Error #1034: Type Coercion
failed: cannot convert glo...@c6fa731 to LzEventable. "

My code for lib\fusioncharts.lzx is here:
http://textsnip.com/035139

The error occurs here:
var delLoadNext = new LzDelegate( this, "_loadNext" );

I have no idea how to reference a flash script in the LzDelegate, or is
this even possible?

I would appreciate if someone could help take a look.

Sample codes that works would really help too, I have been stuck on this
for a couple of days. It's really driving me nuts :P

I have taken a look at open flash charts but have no clue how to get
that to work in OL.

Any pointers/criticisms is really appreciated.

Thank you.

pH.

Reply via email to