Well, we need to decide on the rules for preferred resource and how to fall back<div>to alternatives.</div><div><br></div><div>Should we do something like this?</div><div><br></div><div>If runtime is SWF10:</div><div><br></div>
<div> If resource named "foo.swf" exists AND is of type SWF10, use it, else look for PNG files</div><div><br></div><div>If runtime is SWF8:</div><div> </div><div> If resource named "foo.swf" exists AND is of type SWF8, use it, else look for PNG</div>
<div><br></div><div>If runtime is DHTML:</div><div> </div><div> If resource named "foo.swf", look for PNG files</div><div><br></div><div>?</div><div><br><div><br></div><div><br><br><div class="gmail_quote">On Mon, Jan 25, 2010 at 4:07 PM, Max Carlson <span dir="ltr"><<a href="mailto:max@laszlosystems.com">max@laszlosystems.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Shouldn't the swf10 compiler automatically prefer the .png alternative? That doesn't seem to magical to me...<br>
<br>
I suppose in this case you could switch to using .pngs explicitly but that doesn't fix the larger issue.<div class="im"><br>
<br>
On 1/25/10 12:42 PM, Henry Minsky wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
The problem is that the debugger app uses single monolithic .swf files<br>
in it's resource declaration, e.g.,<br>
<br>
<br>
<resource src="images/buttons/prefsbtn.swf" name="prefsBtn_rsc" /><br>
<br>
, so the flash 10 compiler is using just the single swf8 file, which<br>
won't operate properly as a multiframe flash 10 swf.<br>
<br>
I guess we could make the LZX compiler smarter, and if it sees a swf8<br>
resource being<br>
included into a swf10 app, it would try to use the .png preferentially,<br>
but that seems like<br>
too much magic.<br>
<br>
<br>
<br>
On Mon, Jan 25, 2010 at 3:32 PM, Max Carlson <<a href="mailto:max@laszlosystems.com" target="_blank">max@laszlosystems.com</a><br></div><div><div></div><div class="h5">
<mailto:<a href="mailto:max@laszlosystems.com" target="_blank">max@laszlosystems.com</a>>> wrote:<br>
<br>
Shouldn't the swf10 compiler be using the .png resources automatically?<br>
<br>
<br>
On 1/25/10 7:30 AM, Henry Minsky wrote:<br>
<br>
I just noticed that when you mouse over or click on the debugger's<br>
buttons in swf9/10, they don't change their<br>
resources. This is because the button resource is a regular old swf8<br>
file, and the different frames don't get<br>
parsed out automagically by the compiler for flash 10. We<br>
already have<br>
.png files built in the autoPng directory<br>
for each frame of each button. Should I change the resource<br>
declarations<br>
to refer to these?<br>
<br>
I.e.,<br>
<br>
Change the declaration of buttons in the debugger.lzx from<br>
<br>
<resource src="images/buttons/prefsbtn.swf" name="prefsBtn_rsc" /><br>
<br>
to<br>
<br>
<resource name="prefsBtn_rsc"><br>
<frame src="images/buttons/autoPng/prefsbtn0001.png" /><br>
<frame src="images/buttons/autoPng/prefsbtn0002.png" /><br>
<frame src="images/buttons/autoPng/prefsbtn0003.png" /><br>
</resource><br>
<br>
Or maybe we should just hoist those autoPng files up to the<br>
images/buttons directory, and get rid of the monolithic swf8 .swf<br>
multiframe resource files altogether?<br>
<br>
<br>
<br>
--<br>
Henry Minsky<br>
Software Architect<br>
<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a> <mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>><br></div></div>
<mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a><div class="im"><br>
<mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>>><br>
<br>
<br>
<br>
--<br>
Regards,<br>
Max Carlson<br>
OpenLaszlo.org<br>
<br>
<br>
<br>
<br>
--<br>
Henry Minsky<br>
Software Architect<br>
<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a> <mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>><br>
<br>
<br>
</div></blockquote><div><div></div><div class="h5">
<br>
-- <br>
Regards,<br>
Max Carlson<br>
OpenLaszlo.org<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br><br>
</div></div>