The problem is that the debugger app uses single monolithic .swf files in it's resource declaration, e.g., <div><br></div><div><br></div><div> <resource src="images/buttons/prefsbtn.swf" name="prefsBtn_rsc" /></div>
<div><br></div><div>, so the flash 10 compiler is using just the single swf8 file, which won't operate properly as a multiframe flash 10 swf. <div><br></div><div>I guess we could make the LZX compiler smarter, and if it sees a swf8 resource being</div>
<div>included into a swf10 app, it would try to use the .png preferentially, but that seems like</div><div>too much magic. </div><div><br></div><div><br><br><div class="gmail_quote">On Mon, Jan 25, 2010 at 3:32 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 be using the .png resources automatically?<div><div></div><div class="h5"><br>
<br>
On 1/25/10 7:30 AM, Henry Minsky wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
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 already have<br>
.png files built in the autoPng directory<br>
for each frame of each button. Should I change the resource 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>
</div></div><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>
</blockquote>
<br>
-- <br>
Regards,<br>
Max Carlson<br>
OpenLaszlo.org<br>
</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>