Difference between revisions of "Talk:Bookclick.as"
From Organic Design wiki
(Test code animates in Flash) |
(put the function definition in frame1 with your other function definitions) |
||
Line 2: | Line 2: | ||
: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) | ::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) | ||
+ | :::You put the reduce function '''definition'' in the first (and only) frame along with the others, it will be called at runtime from frame2 every frame |
Revision as of 02:11, 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)
- You put the reduce function 'definition in the first (and only) frame along with the others, it will be called at runtime from frame2 every frame
- 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)