The problem is that the debugger app uses single monolithic .swf files in it&#39;s resource declaration, e.g., <div><br></div><div><br></div><div> &lt;resource src=&quot;images/buttons/prefsbtn.swf&quot; name=&quot;prefsBtn_rsc&quot; /&gt;</div>
<div><br></div><div>,  so the flash 10 compiler is using just the single swf8 file, which won&#39;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">&lt;<a href="mailto:max@laszlosystems.com">max@laszlosystems.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Shouldn&#39;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&#39;s<br>
  buttons  in swf9/10, they don&#39;t change their<br>
resources. This is because the button resource is a regular old swf8<br>
file, and the different frames don&#39;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>
&lt;resource src=&quot;images/buttons/prefsbtn.swf&quot; name=&quot;prefsBtn_rsc&quot; /&gt;<br>
<br>
to<br>
<br>
&lt;resource name=&quot;prefsBtn_rsc&quot;&gt;<br>
&lt;frame src=&quot;images/buttons/autoPng/prefsbtn0001.png&quot; /&gt;<br>
&lt;frame src=&quot;images/buttons/autoPng/prefsbtn0002.png&quot; /&gt;<br>
&lt;frame src=&quot;images/buttons/autoPng/prefsbtn0003.png&quot; /&gt;<br>
&lt;/resource&gt;<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> &lt;mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>&gt;<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>