|
Convenient web based access to our favorite web design Usenet groups
|
 |
This is Interesting: Free Magazines for Graphics designers and webmasters
| Author |
| Thread |
 |
|
|
|
|
|
 |
 |
|
|
 |
|
|
|
  02-25-06 - 03:16 AM
|
"AmbientSmiley" <webforumsuser@macromedia.com> wrote in message
news:dtnsfl$bnh$1@forums.macromedia.com...
>I got no idea what you mean by that... hehe... :P
> Explain?
>
> (site is correct, sight is cool... :P)
Whatever the object is, convert it to a movieclip...
1) Select it with a mouseclick or dbl click it to include an outline
2) Press F8 to convert to a symbol, choose movieclip
3) Click once on the new movieclip to select it
4) F9 Open the Actionscript window
5) Enter this code to make the clip draggable
onClipEvent (mouseDown) {
var top = -50; // how far up to allow
var left = this._x; // don't move in x
var right = this._x;// don't move in x
var bot = 408; // how far down to allow
// when the mouse is pressed, if the mouse is over
// the scroll area, start dragging it..
if(hitTest(_root._xmouse, _root._ymouse))
this.startDrag(false,left,top,right,bot);
}
onClipEvent (mouseUp) {
stopDrag(); // if mouse button is released, stop dragging
}
Modify the numbers above for top and bot to have the maximum position
you want the clip to be draggable to.
X position is fixed at whatever the current position is.
HTH
tralfaz
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
|
|
|
  02-27-06 - 11:17 PM
|
There is one more step in the scroll making proccess I'd like to ask about t
oo
tho. See, as I now have a fully working scrolling sufrace there to chuck tex
t
at, there is one more detail I'd like to incorporate. Namely the two rolls a
t
either end of the scroll there. It doesn't look all too "real" when those tw
o
rolls just sit there on one frame while the user scrolls up and down. I'd li
ke
to throw in an animation on those two rolls to make them roll around as the
user pushes the text up or down. See what I mean?
If not, I'll illustrate a little better. Imagine the jewish tora. Its a scro
ll
with a pin at either end of the scroll you use to fold the paper around as y
ou
go up or down in the text, right? My scroll has these, and I'd like to have
those two rolls of paper animated to show them being rolled around as the us
er
goes up and down the text.
-It needs to be interactive so to speak. A user-based animation, where the t
wo
rolls will follow the speed the user is scrolling at. So the animation must
be
triggered by the mouse movement it self, and not just a triggered movement o
n
"OnMouseRelease" or something like that...
As you might guess, I don't have a single clue. This is my first flash
project, so I ask you, guys. Any code functions I should deploy here that yo
u
know of? :P
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
| All times are GMT. The time now is 05:10 AM. |
 |
|
|
|
|
|  |
|