in brief :
var registerWindow = new lz.registerNewUser(canvas, {x:200, y:300});
=
<registerNewUser x="200" y="300" *?=canvas* />
2010/2/9 cem sonmez <[email protected]>
> I have written a small test that has been attached.
> When i use the placement attribute, element in the class appears on the
> canvas, there is no problem at this point.
> But i donT know that; why when i want to animate the myLoginClass(in the
> example), ItS child(myRegisterClass) also is animating although i have set
> the placement to *canvas*.
> I just want that *myLoginClass* should animate, not both of them.
> I hope you will have a few minutes to have a look at the code.
>
> Thanks.
>
> 2010/2/9 cem sonmez <[email protected]>
>
> Ok, i will look at it as well, thanks a lot.
>>
>>
>> 2010/2/9 Norman Klein <[email protected]>
>>
>> You might also want to pick up a copy of "Laszlo in Action" as
>>> placement is covered in depth. There is a nice example demonstrating
>>> its usage from a visual standpoint and the debugger output is used to
>>> show it from a lexical standpoint.
>>>
>>> Norman Klein
>>> Author: Laszlo in Action
>>>
>>> On Tue, Feb 9, 2010 at 8:00 AM, P T Withington <[email protected]> wrote:
>>> > But don't stop asking your questions! It's good to see what people are
>>> using, and what things are not obvious. Placement is pretty key, but it is
>>> buried deep in the documentation.
>>> >
>>> > On 2010-02-09, at 10:01, cem sonmez wrote:
>>> >
>>> >> I need to read the developer doc. again.
>>> >> Thanks a lot.
>>> >> Kind regards
>>> >>
>>> >> 2010/2/9 P T Withington <[email protected]>
>>> >>
>>> >>> I think you are looking for the `placement` attribute:
>>> >>>
>>> >>> http://www.openlaszlo.org/lps4.7/docs/developers/views.html#d0e68210
>>> >>>
>>> >>> which lets you override the lexical organization of views to place a
>>> view
>>> >>> within a specific other view.
>>> >>>
>>> >>> On 2010-02-09, at 09:24, cem sonmez wrote:
>>> >>>
>>> >>>> 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
>>> >
>>> >
>>> >
>>>
>>>
>>
>>
>> --
>> Cem SONMEZ
>>
>
>
>
> --
> Cem SONMEZ
>
--
Cem SONMEZ