Re: Is there a container for all the currentlayer I see in baseDrawPaint.lzx, ... (inside tools -> base -> whiteBoard)

2010-10-06 Thread seba.wag...@gmail.com
yes sure to iterate through all objects of the whiteboard: for (var i=0;i > So please reply to my questions: > is there a way to refer to all the objects (I mean the lines) at the > same time? > Is there a layer that contains every single object I draw? > Thank you :) > > > > > > On Oct 6, 3:36 p

Re: Is there a container for all the currentlayer I see in baseDrawPaint.lzx, ... (inside tools -> base -> whiteBoard)

2010-10-06 Thread Netbuilder
So please reply to my questions: is there a way to refer to all the objects (I mean the lines) at the same time? Is there a layer that contains every single object I draw? Thank you :) On Oct 6, 3:36 pm, "seba.wag...@gmail.com" wrote: > Hallo Netbuilder, > > I cannot see any *canvas._drawarea

Re: Is there a container for all the currentlayer I see in baseDrawPaint.lzx, ... (inside tools -> base -> whiteBoard)

2010-10-06 Thread seba.wag...@gmail.com
Hallo Netbuilder, I cannot see any *canvas._drawarea.getDisplayObject()._y* in that file. Also actually (except for that hack about x/yscale) you should never use that, always use the setAttribute method to change the y value. Sebastian 2010/10/6 Netbuilder > I'm becoming mad.. :(( > I'm in w

Re: Is there a container for all the currentlayer I see in baseDrawPaint.lzx, ... (inside tools -> base -> whiteBoard)

2010-10-06 Thread Netbuilder
I'm becoming mad.. :(( I'm in whiteboard/base/basedrawObject.lzx. I'm modifying the method "remoteObjectUpdate". How can I refer to all the objects (I mean the lines) at the same time? I'd like to change their y property. canvas._drawarea.getDisplayObject()._y is not correct because it change the

Re: Is there a container for all the currentlayer I see in baseDrawPaint.lzx, ... (inside tools -> base -> whiteBoard)

2010-10-02 Thread seba.wag...@gmail.com
no you need to calculate the current zoom based on the values: canvas._drawarea.getDisplayObject()._xscale and canvas._drawarea.getDisplayObject().width Sebastian 2010/10/2 Netbuilder > > Fantastic! it works! > is there a global var to know the current zoom level (like > canvas.zoomlevel)? > T

Re: Is there a container for all the currentlayer I see in baseDrawPaint.lzx, ... (inside tools -> base -> whiteBoard)

2010-10-02 Thread Netbuilder
Fantastic! it works! is there a global var to know the current zoom level (like canvas.zoomlevel)? Thank you seba.wag...@gmail.com wrote: > Hi Filippo, > > to build the zoom in/out function is very easy. > > > > canvas._drawarea.getDisplayObject()._xscale = z; > canvas._drawarea.getDisplayObj

Re: Is there a container for all the currentlayer I see in baseDrawPaint.lzx, ... (inside tools -> base -> whiteBoard)

2010-10-02 Thread seba.wag...@gmail.com
Hi Filippo, to build the zoom in/out function is very easy. canvas._drawarea.getDisplayObject()._xscale = z; canvas._drawarea.getDisplayObject()._yscale = z; Sebastian 2010/10/2 Netbuilder > Hi again. > Is there a sort of container (ie canvas._layers, ...) that contains > all the

Is there a container for all the currentlayer I see in baseDrawPaint.lzx, ... (inside tools -> base -> whiteBoard)

2010-10-02 Thread Netbuilder
Hi again. Is there a sort of container (ie canvas._layers, ...) that contains all the object I see in each "this.currentlayer"? I'm not yet able to understand where to find the structure of the project and I feel stupid. I'm sorry, but I have to build the zoom in and out of the whiteboard objects