[Dojo-interest] gfx events tracking

Viswanath V Rao viswanathvrao at gmail.com
Wed Mar 3 03:19:10 EST 2010


Do you mean - I need to put dojo.connect outside the loop ???

if so, how come dojo knows it need to keep track of all "p1".

anyway, I tried your suggestion to move dojo.connect outside the loop.
It responds only for the last "p1".



On Wed, Mar 3, 2010 at 12:26 PM, Eugen Stoianovici <
eugen.stoianovici at gmail.com> wrote:

> p1 does not exist outside of the for loop and i think p1.connect is
> useless because of this.
> Viswanath V Rao wrote:
> > I dont know what u mean by set ?
> >
> > My code goes as follows:
> >
> > p1x=
> > p1y=
> > for (i=1; i<=numberOfSec; i++) {
> >
> >    var p2x=
> >    var p2y=
> >
> >    var p1=surface.createPath ();
> >   p1.setFill (...);
> >
> > p1.moveTo (sx1,sy1);
> > p1.lineTo (p1x,p1y);
> > p1.arcTo (ra,ra,perSecAngle,0,1,p2x,p2y);
> >
> >   p1.connect ("onclick",.......)            // i need help here to
> > find which PIE was clicked
> > }
> >
> >
> >
> >
> >
> > On Mon, Mar 1, 2010 at 7:23 PM, David Leonardi <david at addplus.eu
> > <mailto:david at addplus.eu>> wrote:
> >
> >     just thinking out loud.
> >     you might want to put the arcs n stuff all together into a set, and
> >     then apply to that.
> >
> >     i know that works great for transforms, dont really know about the
> >     rest.
> >     just an idea, no idea if it works as expected.
> >
> >
> >
> >     On Mon, Mar 1, 2010 at 2:20 PM, Viswanath V Rao
> >     <viswanathvrao at gmail.com <mailto:viswanathvrao at gmail.com>> wrote:
> >     > Guys,
> >     > Have a simple question, though I tried at my end  but cant fix it.
> >     > I have multiple arcs (lineTo & arcTo) made with createPath.
> >     > On mouse enter, I need to find the arc properties for ex. Color.
> >     >
> >     > I've tried with, path.connect to a method & fill the arc . but
> >     it always
> >     > fills the last arc.
> >     > how can i found the source of the event ???
> >     > Can somebody pl direct me how to do that ?
> >     >
> >     >
> >     > _______________________________________________
> >     > FAQ: http://dojotoolkit.org/support/faq
> >     > Book: http://docs.dojocampus.org
> >     > Dojo-interest at mail.dojotoolkit.org
> >     <mailto:Dojo-interest at mail.dojotoolkit.org>
> >     > http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
> >     >
> >     >
> >
> >
> >
> >     --
> >     **********************************************
> >     David Leonardi
> >     Consultant
> >
> >     P.I./Tax Number IT-02466620214
> >
> >     GSM[DE] +49 152 2149 2153
> >     GSM[FR]: +33 637 098948
> >     GSM[IT]:   +39 347 8913690
> >     E-Mail:      david.leonardi at gmail.com
> >     <mailto:david.leonardi at gmail.com>
> >     Skype:      David Leonardi (S3thxx)
> >     **********************************************
> >     _______________________________________________
> >     FAQ: http://dojotoolkit.org/support/faq
> >     Book: http://docs.dojocampus.org
> >     Dojo-interest at mail.dojotoolkit.org
> >     <mailto:Dojo-interest at mail.dojotoolkit.org>
> >     http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > FAQ: http://dojotoolkit.org/support/faq
> > Book: http://docs.dojocampus.org
> > Dojo-interest at mail.dojotoolkit.org
> > http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
> >
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20100303/3f17efc2/attachment.htm 


More information about the Dojo-interest mailing list