thanks a lot Henry.
Actually, i have many questions about openlaszlo. Maybe, these are so simple
questions, but anyway i will ask in my next post :)
Regards.


2010/2/8 Henry Minsky <[email protected]>

> You would pass a hash table with the attribute values, as the second value
> to the constructor (first
> value is the parent that the instance will become a child of), so an
> example is this instance
> would become a child of the canvas view
>
> var foo = new lz.myclass(canvas, {x: 200, y:300, visible: false, flavor:
> chocolate, ...})
>
>
>
> On Mon, Feb 8, 2010 at 7:37 AM, cem sonmez <[email protected]> wrote:
>
>> hi all
>> for axample, i have class named : *MyClass* and extends from window.
>> And in another class definetion, i m trying to create an instance of
>> myClass class with : *var myClass= new lz.MyClass();*
>> And while creating the object, i want to pass the attribute values to
>> myClass object. e.g (x=200, width="300") without writing
>> myClass.setAttribute('x',200);
>> trying to use like *var myClass= new lz.MyClass('x=200'); . *Is there any
>> way like this syntax. * *I hope, I could explain what i m trying to do.
>>
>> Kind regards
>> --
>> Cem SONMEZ
>>
>
>
>
> --
> Henry Minsky
> Software Architect
> [email protected]
>
>
>


-- 
Cem SONMEZ

Reply via email to