Hello Away3D community again.
I’m currently trying to convert a 3ds model to an as3 class. But I get an error. When I try. I’ve tried to google for an answer. But so far I can’t find anything on it. So I post here.
I’m using the essential guide to 3d in flash book. And I’m at chapter 4 and the part about converting. The code does the following: Using the loaded 3ds file. put it into the converter and put the output (the as3 class) in the clipboard.
This is the code I use
protected function _onClick(ev:MouseEvent):void
{
var exporter:AS3Exporter = new AS3Exporter();
exporter.addEventListener(ExporterEvent.COMPLETE, _onComplete);
exporter.export(_loader.handle, 'planetWinter', 'flash3dbook.common');
}
protected function _onComplete(ev:ExporterEvent):void
{
trace('Export completed');
System.setClipboard(ev.data);
}
The _onClick function is getting triggered by a MouseEvent.CLICK eventlistener that is added when the model is loaded.
And this is the error I get
Error: Error #1502: Een script wordt langer uitgevoerd dan de standaardperiode voor een time-out (15 seconden).
at away3d.exporters::AS3Exporter/checkDoubles()
at away3d.exporters::AS3Exporter/write()
at away3d.exporters::AS3Exporter/parse()
at away3d.exporters::AS3Exporter/export()
at planet2/_onClick()