|
User Details |
message
|
|
Fen4554
post date:
2009-04-06 17:09:50
|
|
Hi, I'm scrolling a movieclip that has multiple frames. Switching between the different frames works great, but I want the scroller to return to the top of the screen when I do this. I hoped I could change the x of the movieclip but I'm guessing that the scroller overrides that. Is there a way to tell the scroller to "reset"?
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2009-04-07 08:29:28
|
Hello,
You can find what you need in the actionscript dictionary of the Scroller. Here’s a link to it : http://www.extendstudio.com/documentation/creative-flash-scroller/documentation/docs/classic-scroller-as-dictionary.html.
I think that you should use VscrollTo method. Go to the methods page and you find more details there.
Best regards,
Andrei Rinciog
|
|
|
Fen4554
post date:
2009-04-07 23:47:49
|
Would you be able to provide an example of it's usage? It seems my AS doesn't extend into using functions this way. I don't see how you would assign the action to a particular scroller.
My first guess was scroller.VscrollTo(p);
And function VscrollTo(p:Number) : Void{} doesn't seem to trigger anything, but I have no idea how to point this command to a scroll box.
Also, trying to reply to your message would warn me to "add more that two character" when I tried multiple times to send and retype the message.
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2009-04-08 11:04:49
|
Hello,
You need to add an instance name to the Scroller component that’s on the stage. To do that, select the component on the stage and in the properties panel insert a name in the “instance name” box.
Once you’ve added the instance name, you can point to it from actionscript. The code should look something like this :
instanceName. VscrollTo(0); ( p = 0 )
Regards,
|
|
|
Fen4554
post date:
2009-04-09 04:18:36
|
**error in documentation**
Thanks again for the quick reply. The simple answer got me on the right track, but it still wasn't working. After playing with the other functions, I realized that the method isn't "VscrollTo" as listed in the documentation. It's "vscrollTo". I realized this only after trying "hscrollTo" and found it was working. A very tiny caps typo with big repercussions.
This appears in both the online and local copy of the docs. You might want to put a sticky about this in the forums until a patch can fix it.
|
|
|
Fen4554
post date:
2009-04-09 04:24:39
|
And in keep of the themes of simple typos...
It's "vScrollTo".. in my previous post I said it was "vscrollTo"
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2009-04-09 04:49:35
|
Hello,
Thank you for pointing this out for us. We will make the change in the online documentation as soon as possible and make the fix when we build the next Scroller package.
Again, we appreciate very much your report. If you have any more problems or questions in the future don’t hesitate to contact us.
Best regards,
Andrei Rinciog
|
|