Flash Scrollpain.
This could be MM's greatest invention or the worst. Whichever it is, it is a pain to use, as i've heard from many of my peers.
There are a couple of key points you have to do before scrollpane will do what's supposed to do:
1. Create an empty movie clip, create linkage of course, say "Empty"
2. If loading a big image inside, you have to call invalidate() at the END of the loading. (say onLoadInit())
3. Point the contenpath of the pane to Empty: s.contentPath = "Empty";
3. to load the image (or anything) in, you have to create an empty movieclip (container) by s.content.createMovieClip("cont", 1);
NOTE: it have to be s.content. Otherwise it'll ignore you.
4. NOW, it's time to load in your stuff.
Well... i've invested many hours into it before, now once again, when i come back to it, it's still not a smooth process.... *sigh*... MM got some great minds in flash.
0 Comments:
Post a Comment
<< Home