[Laszlo-dev] .swf files. (delayed message)
Phillip G. Apley
papley at laszlosystems.com
Thu Aug 3 12:56:21 EDT 2006
This message got bounced because I sent it from the wrong account. I guess
Tucker and Max got it anyway.
I agree, though I was thinking of doing the simpler thing first. To do what
you describe we will need to go through all the source and remove the .swf
extensions, and I'm wondering if there might be cases where the extension is
added dynamically, making it insufficient to do a simple text search and
replace for '.swf'.
I wasn't thinking of letting the compiler replace .png for .swf, only the
other way; replace .swf for .png, since .png works in both DHTML and Flash.
on 7/31/06 7:38 AM, P T Withington at ptw at openlaszlo.org wrote:
> [Adding laszlo-dev]
> Should we come up with a syntax where you can say that you want an
> image file and that the compiler/server should pick the 'best' one
> for you? Perhaps there is a image type preferences list and if you
> specify an image src without an extension the compiler/server
> searches for the first match from the preferences list?
> (I don't like the idea that the compiler would automatically
> substitute a .png for a .swf, because there will surely be cases
> where you don't want a substitution.)
> On 2006-07-30, at 16:35 EDT, Max Carlson wrote:
>> Phillip G. Apley wrote:
>>> I¹ve successfully installed flash and Max¹s flash script to
>>> convert swf to png.
>>> I¹m trying to figure out what the next step should be. On the one
>>> hand I could parse all the SWF names out of the source files. I
>>> poked around at the syntax and a trivial way to do this didn¹t
>>> come to mind.
>>> On the other hand, I could automatically create .png versions of
>>> all 3058 .swf files in the installation (that includes legals and
>>> trunk), disallowing overwriting of existing .png files.
>> I think this makes the most sense.
>>> Does it make sense to do this?
>>> This brings me to the next step. Can Tucker tell me what would be
>>> involved in changing the compiler so it simply substituted .png
>>> files for .swf when running in DHTML?
>> You should be able to conditionalize on the runtime flag to
>> prefer .swf for swf runtimes and .png for dhtml (where available on
>> the filesystem of course.)
>> I believe the code is in org.openlaszlo.compiler.ResourceCompiler.java
Phillip G. Apley
Critical Engineering Associates
34 Ridgemont Street
Allston, MA 02134
pga at alum.mit.edu
------ End of Forwarded Message
-------------- next part --------------
An embedded message was scrubbed...
From: Phillip Apley <pga at alienlanding.org>
Subject: Re: .swf files.
Date: Mon, 31 Jul 2006 10:25:41 -0400
More information about the Laszlo-dev