Difference between revisions of "Talk:Bookclick.as"

From Organic Design wiki
(animation must be done from per-frame functions)
(Test code animates in Flash)
Line 1: Line 1:
 
You need to reduce all folds to one function first, before any "playing animation" stuff because the animation sequences need to be send a sequence of x,y coordinates to the fold function, and you don't want your sequence-playing function to have to deal conditionally with four fold functions --[[User:Nad|Nad]] 10:26, 9 Dec 2006 (NZDT)
 
You need to reduce all folds to one function first, before any "playing animation" stuff because the animation sequences need to be send a sequence of x,y coordinates to the fold function, and you don't want your sequence-playing function to have to deal conditionally with four fold functions --[[User:Nad|Nad]] 10:26, 9 Dec 2006 (NZDT)
 
:You can't just do a for loop around the drawing routine, you need to make the fold-function work wrt to passed coords instead of mouse, then make your mouse-events and per-frame animation functions call the fold function --[[User:Nad|Nad]] 10:30, 9 Dec 2006 (NZDT)
 
:You can't just do a for loop around the drawing routine, you need to make the fold-function work wrt to passed coords instead of mouse, then make your mouse-events and per-frame animation functions call the fold function --[[User:Nad|Nad]] 10:30, 9 Dec 2006 (NZDT)
 +
::OK this stripped-down test code works fine in Flash with reduce() in Frame 2 and gotoAndPlay(2) in frame 3, :). But where do I put the reduce() function in the Wiki to make it animate?  [[User:Jack|Jack]] 02:07, 20 Dec 2006 (NZST)

Revision as of 02:07, 20 December 2006

You need to reduce all folds to one function first, before any "playing animation" stuff because the animation sequences need to be send a sequence of x,y coordinates to the fold function, and you don't want your sequence-playing function to have to deal conditionally with four fold functions --Nad 10:26, 9 Dec 2006 (NZDT)

You can't just do a for loop around the drawing routine, you need to make the fold-function work wrt to passed coords instead of mouse, then make your mouse-events and per-frame animation functions call the fold function --Nad 10:30, 9 Dec 2006 (NZDT)
OK this stripped-down test code works fine in Flash with reduce() in Frame 2 and gotoAndPlay(2) in frame 3, :). But where do I put the reduce() function in the Wiki to make it animate? Jack 02:07, 20 Dec 2006 (NZST)