Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

simple switch to bypass data...javascript ?



somebody can help me ?

I want to set the position of a sprite with mouse :
1/ on mouse clic the sprite take the position of the mouse
2/ on mouse release clic the sprite stay in the new position

i try to find a patch to do that (sort of switch) but no success.
so i plug the x position of a mouse controler in the inputs[o] , and the output of left button on
the inputs [1] of a javascript patch and write this basic javascript :


if  ( inputs[1] = 1 )
{
outputs[0] = inputs[0]
}

but the sprite is definitly traking the mouse with or without mouse clic...
i'am not a code guru...just a javascript french newbie...


where is my error ?


Thanks

best regards


yanomano. _______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.