PDA

View Full Version : Scrolling effect


lalitendu_ray
09-05-2007, 10:48 AM
I am working on flash business presentation which is designed in such a way that, one can view the animation in the animation pannel and the description will flow in description pannel.
Descriptions are very long.So I designed it scrollable.

But my client need that scrolling description should move up n down automatically according to the animation.

I need the script or any idea to do so..Plz help

Regards,

Lalit............

ds.pixeled
09-05-2007, 04:25 PM
Well if you want the tween to be dynamic then you should do it via script:
var easeType = mx.transitions.easing.Regular.easeInOut;
myTween/*name your transition*/ = new mx.transitions.Tween(my_mc/*instance of mc to tween*/, "_alpha"/*property to tween*/, easeType, 0/*start variable*/, 100/*end variable*/, 10/*simulated number of frames*/);
myTween.onMotionFinished = function() {
//insert a command to execute on finish, you don't need this but it's useful.
}

Any of the properties, instance names, or numbers can be replaced by a variable or formula and the entire thing can be placed inside a function.

miketkong
09-06-2007, 07:59 PM
I was going to go into something about controlling the position of the content to be scrolled using actionscript to control a scrollpane component, but the solution to your problem may be much simpler. If you don't need your users to be able to scroll the content and scrolling the text will be controlled based on the location in the sequence of an animation, you could just have your text in a movie clip, have that masked to give the illusion of the text scrolling within it's text area, then have the scrolling done via tweens. Put stops in between the tweens and put plays in your controlling animation telling the text movie clip when to play and go to the next scroll point. You may want to use fade in and fade outs of the text though if the user doesn't really need to be controlling/scrolling the text directly. Just some ideas.