edit :
Bec. I want to override a method of *registerNewUser* object and i can use
it on swf8 with no problem like :
So i think, i need to use *registerNewUser* tag.

2010/2/9 cem sonmez <[email protected]>

> And at last
>
> var registerWindoww = new lz.registerNewUser(canvas, {x: loginScreen.x,
> y:loginScreen.y});
> in the line above, for which attribute *canvas *value is being used.
> for example if i want to create it with the tag
> <registerNewUser x="200" y="300" *?=canvas*>
> </registerNewUser>
>
> Bec. I want to override a method of myclass object and i can use it on swf8
> with no problem like :
>
> registerWindoww.cancel= function () {
>
> }
>
> But on swf10, it is not allowed to create functions dynamically. So i
> think, i need to use *registerWindoww* tag.
>
>
>
>
> 2010/2/8 cem sonmez <[email protected]>
>
> 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
>>
>
>
>
> --
> Cem SONMEZ
>



-- 
Cem SONMEZ

Reply via email to