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 &quot;foo.swf&quot; 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 &quot;foo.swf&quot; 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 &quot;foo.swf&quot;, 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">&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 automatically prefer the .png alternative?  That doesn&#39;t seem to magical to me...<br>

<br>
I suppose in this case you could switch to using .pngs explicitly but that doesn&#39;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&#39;s resource declaration, e.g.,<br>
<br>
<br>
&lt;resource src=&quot;images/buttons/prefsbtn.swf&quot; name=&quot;prefsBtn_rsc&quot; /&gt;<br>
<br>
,  so the flash 10 compiler is using just the single swf8 file, which<br>
won&#39;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 &lt;<a href="mailto:max@laszlosystems.com" target="_blank">max@laszlosystems.com</a><br></div><div><div></div><div class="h5">
&lt;mailto:<a href="mailto:max@laszlosystems.com" target="_blank">max@laszlosystems.com</a>&gt;&gt; wrote:<br>
<br>
    Shouldn&#39;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&#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<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>
        &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>
        <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></div></div>
        &lt;mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a><div class="im"><br>
        &lt;mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>&gt;&gt;<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> &lt;mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>&gt;<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>