Difference between revisions of "Talk:Bookclick.as"
From Organic Design wiki
(decrement instead) |
(Compile discontinuity) |
||
Line 5: | Line 5: | ||
::::Yep this works fine now as a test, i'll just get it to reset i after all its iterations. Onwards and upwards :) [[User:Jack|Jack]] 03:13, 20 Dec 2006 (NZST) | ::::Yep this works fine now as a test, i'll just get it to reset i after all its iterations. Onwards and upwards :) [[User:Jack|Jack]] 03:13, 20 Dec 2006 (NZST) | ||
:::::Oh yeah that's a good reason to decrement instead of increment - so that it ends up at zero so it can stop, and also means it auto-resets --[[User:Nad|Nad]] 03:21, 20 Dec 2006 (NZST) | :::::Oh yeah that's a good reason to decrement instead of increment - so that it ends up at zero so it can stop, and also means it auto-resets --[[User:Nad|Nad]] 03:21, 20 Dec 2006 (NZST) | ||
+ | |||
+ | This won't actually compile on the wiki, I know not why, but it compiles in Flash ... [[User:Jack|Jack]] 06:44, 24 Dec 2006 (NZST) |
Revision as of 06:44, 24 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
- Yep this works fine now as a test, i'll just get it to reset i after all its iterations. Onwards and upwards :) Jack 03:13, 20 Dec 2006 (NZST)
- Oh yeah that's a good reason to decrement instead of increment - so that it ends up at zero so it can stop, and also means it auto-resets --Nad 03:21, 20 Dec 2006 (NZST)
- Yep this works fine now as a test, i'll just get it to reset i after all its iterations. Onwards and upwards :) Jack 03:13, 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)
This won't actually compile on the wiki, I know not why, but it compiles in Flash ... Jack 06:44, 24 Dec 2006 (NZST)