<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">It seems that it would be nice to add these layers in k.init<br>
just like we add sounds and images. I think the way that u add sounds<br>
and images is very intuitive. It would be nice to use the same mechanism<br>
for the layers as well.<br><br>
then it would look like<br>
k.init ( ......<br>
layers : [<br>
{ id: "inline1", canvas:"inlineCanvas1"},<br>
{id:"inline2", canvas:"inlineCanvas2"},<br>
{id:"card1", width:250, height:250}<br>
]<br><br>
sounds :<br><br>
images :<br><br>
)<br></blockquote>
I like your idea, it's a initializing method <br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">then it would be nice to iterate thru the layers w/ similar syntax to<br>
iterating thru the images or sounds<br><br>
$.each(library.layers, function ....);<br><br>
I realize I can now iterate thru the layers w/<br><br>
$.each(layers, function ...);<br><br>
but perhaps it would be easier to remember as library.layers because<br>
that is how we also access the sounds and images.<br><br>
What u think?<br></blockquote>
mm, I'm not so sure<br><br><div id="result_box" dir="ltr">I think the library should contain only objects that can be instantiated,<br>ie. the library should store the "original" object, then, you could instantiate several copies of it, I don't see how to instantiate several klayers<br>
</div><br><br><div class="gmail_quote">2009/9/4 Bryan Berry <span dir="ltr"><<a href="mailto:bryan@olenepal.org">bryan@olenepal.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
i have been looking at the method for adding layers --<br>
<br>
k.layer( {id:"inline1", canvas:"inlineCanvas1"} );<br>
k.layer( {id:"inline2", canvas:"inlineCanvas2"} );<br>
k.layer( {id:"card1", width:250, height:250} );<br>
k.layer( {id:"card2", width:250, height:250} );<br>
k.layer( {id:"card3", width:250, height:250} );<br>
<br>
It seems that it would be nice to add these layers in k.init<br>
just like we add sounds and images. I think the way that u add sounds<br>
and images is very intuitive. It would be nice to use the same mechanism<br>
for the layers as well.<br>
<br>
then it would look like<br>
k.init ( ......<br>
layers : [<br>
{ id: "inline1", canvas:"inlineCanvas1"},<br>
{id:"inline2", canvas:"inlineCanvas2"},<br>
{id:"card1", width:250, height:250}<br>
]<br>
<br>
sounds :<br>
<br>
images :<br>
<br>
)<br>
<br>
then it would be nice to iterate thru the layers w/ similar syntax to<br>
iterating thru the images or sounds<br>
<br>
$.each(library.layers, function ....);<br>
<br>
I realize I can now iterate thru the layers w/<br>
<br>
$.each(layers, function ...);<br>
<br>
but perhaps it would be easier to remember as library.layers because<br>
that is how we also access the sounds and images.<br>
<br>
What u think?<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Bryan W. Berry<br>
Technology Director<br>
OLE Nepal, <a href="http://www.olenepal.org" target="_blank">http://www.olenepal.org</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Felipe López Toledo<br>