I should add that there is a certain magic translation of core class names <br>from LZX to Javascript that is happening, so &lt;view&gt; actually corresponds to<br>the real class named LzView, same for most of the core classes that are
<br>user visible. The magic happens via the static var declaration in a class called &quot;tagname&quot;:<br><br>class LzView extends LzNode {<br>static var tagname = &#39;view&#39;;<br>..<br><br><br>As Tucker said, if you redefine a core class like that, you do so at your own risk, 
<br>all sorts of things will probably break.<br><br><div><span class="gmail_quote">On 7/10/07, <b class="gmail_sendername">P T Withington</b> &lt;<a href="mailto:ptw@openlaszlo.org">ptw@openlaszlo.org</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Welcome to dynamic languages.&nbsp;&nbsp;Yes, it is allowed.&nbsp;&nbsp;If you really<br>wanted to, you could replace the core classes too.&nbsp;&nbsp;And, yes, it will
<br>probably cause a problem if you do.<br><br>In general, Javascript emphasizes flexibility over safety.&nbsp;&nbsp;IMO, Java<br>leans the other way.<br><br>On 2007-07-10, at 13:29 EDT, Pierre Augier wrote:<br><br>&gt; I all !!<br>
&gt;<br>&gt; i &#39;am asking if it&#39;s possible to override core class by inclusion<br>&gt;<br>&gt; i mean something like this :<br>&gt; ----------------------------------------------------<br>&gt;<br>&gt; #file /mypath/view.lzx
<br>&gt;<br>&gt; &lt;class name=&quot;view&quot;&gt;<br>&gt;<br>&gt; // my own view class<br>&gt;<br>&gt; &lt;/class&gt;<br>&gt;<br>&gt;<br>&gt; and later...<br>&gt;<br>&gt; #file /myotherpath/myapp.lzx<br>&gt;<br>&gt; &lt;include href=&quot;/mypath/view.lzx&quot;/&gt;
<br>&gt;<br>&gt; &lt;canvas&gt;<br>&gt;<br>&gt; &lt;!-- use of the overrided class --&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;view name=&quot;lalala&quot; /&gt;<br>&gt;<br>&gt; &lt;/canvas&gt;<br>&gt;<br>&gt; ----------------------------------------------------
<br>&gt;<br>&gt; I&#39;ve tried with &quot;view&quot; and &quot;text&quot; as class name&nbsp;&nbsp;&nbsp;&nbsp; ==&gt;&nbsp;&nbsp;&nbsp;&nbsp; does<br>&gt; not work (compilation error)<br>&gt; then i&#39;ve tried with &quot;menu&quot; or &quot;button&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ==&gt;&nbsp;&nbsp;&nbsp;&nbsp; it
<br>&gt; work althought i get a warning message in debug console<br>&gt;<br>&gt; i guess it&#39;s because view and text are in the LFC, but menu and<br>&gt; button are component ...<br>&gt;<br>&gt; but my question is:<br>
&gt;<br>&gt; except for LFC that sems impossible to override, for the other<br>&gt; class, is this allowed ?? will cause problem ???<br>&gt;<br>&gt;<br>&gt; thanks<br>&gt;<br>&gt; Pierre<br>&gt;<br>&gt;<br><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>