PDA

View Full Version : Can't import SWF null


Zanzamar
11-19-2007, 10:40 AM
I am trying to import an SWF as a resources in a laszlo application we created.

The application utilizes version lps.3.3.3

The utility that has been compiled is afcomponents.com gmap component.

I guess the first question is can lps.3.3.3 handle actionscript version 2.0

Second, if it can, here are the errors in the logs (specifically the unknown tag errors):

ompiler
19 Nov 2007 13:30:36 (71.208.171.241 30) DEBUG compiler.FileResolver - Resolving pathname: resources/gMap_final.swf and base: /home/laszlo/lps-3.3.3/Server/dev4
19 Nov 2007 13:30:36 (71.208.171.241 30) DEBUG compiler.FileResolver - Trying /home/laszlo/lps-3.3.3/Server/dev4/resources/gMap_final.swf
19 Nov 2007 13:30:36 (71.208.171.241 30) DEBUG compiler.FileResolver - Resolving resources/gMap_final.swf to /home/laszlo/lps-3.3.3/Server/dev4/resources/gMap_final.swf
19 Nov 2007 13:30:36 (71.208.171.241 30) DEBUG cm.DependencyTracker - addFile Path is /home/laszlo/lps-3.3.3/Server/dev4/resources/gMap_final.swf
19 Nov 2007 13:30:36 (71.208.171.241 30) DEBUG compiler.SWFWriter - Importing resource yahooMapSwf
19 Nov 2007 13:30:36 (71.208.171.241 30) DEBUG flash.Generator - Unknown tag 45 found
19 Nov 2007 13:30:36 (71.208.171.241 30) DEBUG flash.Generator - Unknown tag 4b found
19 Nov 2007 13:30:36 (71.208.171.241 30) DEBUG flash.Generator - Unknown tag 49 found
19 Nov 2007 13:30:36 (71.208.171.241 30) ERROR compiler.SWFWriter - Can't get resource /home/laszlo/lps-3.3.3/Server/dev4/resources/gMap_final.swf
19 Nov 2007 13:30:36 (71.208.171.241 30) DEBUG compiler.Compiler - compiling element with class org.openlaszlo.compiler.ResourceCompiler


Any ideas or thoughts would be greatly appreciated.

trucker_
11-19-2007, 11:06 AM
the swf must be in swf7 format, 8 does not work

Zanzamar
11-19-2007, 11:36 AM
I tried saving it down as swf 7 as well as doing an swf 7 with actionscript level 1, and I still get errors, It did however remove one of the unknown errors and it now is down to the following errors:

19 Nov 2007 14:31:27 (71.237.64.117 37) DEBUG flash.Generator - Unknown tag 4b found
19 Nov 2007 14:31:27 (71.237.64.117 37) DEBUG flash.Generator - Unknown tag 49 found

What about upgrading to lps-4.0.6... WOuld that help at all? How much work do you think it would be to migrate my whole applicatino to 4.06 (its a pretty large application, There are over 7,000 lines of code....) (i did a quick linux wc -l).