Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





Pages (2): [1] 2 »   Last Thread  Next Thread
Author
Thread Post New Thread   

Re: A scroll...
 

AmbientSmiley




quote this post edit post

IP Loged report this post

Old Post  02-25-06 - 03:16 AM  
Allright... I'll try to simplify... How do you create an object that the use
r can move about with the mouse?


Post Follow-Up to this message ]
Re: A scroll...
 

michael novia




quote this post edit post

IP Loged report this post

Old Post  02-25-06 - 03:16 AM  
track the mouses _x and _y.. on your webSITE.




Post Follow-Up to this message ]
Re: A scroll...
 

AmbientSmiley




quote this post edit post

IP Loged report this post

Old Post  02-25-06 - 03:16 AM  
I got no idea what you mean by that... hehe... :P
Explain?

(site is correct, sight is cool... :P)


Post Follow-Up to this message ]
Re: A scroll...
 

tralfaz




quote this post edit post

IP Loged report this post

Old Post  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 ]
Re: A scroll...
 

AmbientSmiley




quote this post edit post

IP Loged report this post

Old Post  02-25-06 - 11:14 AM  
I just entered your fan club.
Thank you! :)


Post Follow-Up to this message ]
Re: A scroll...
 

AmbientSmiley




quote this post edit post

IP Loged report this post

Old Post  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 ]
Re: A scroll...
 

AmbientSmiley




quote this post edit post

IP Loged report this post

Old Post  02-28-06 - 03:15 AM  
Allright... I'll rephrase. Straight foreward question...

How to I create an animation the user can scroll through by hand?


Post Follow-Up to this message ]
Re: A scroll...
 

tralfaz




quote this post edit post

IP Loged report this post

Old Post  02-28-06 - 08:15 AM  
"AmbientSmiley" <webforumsuser@macromedia.com> wrote in message
news:du06fl$f2i$1@forums.macromedia.com...
> Allright... I'll rephrase. Straight foreward question...
>
> How to I create an animation the user can scroll through by hand?

Hmm.. the rolling scroll ends.. I think I would do a bitmap animation
in Photoshop instead of doing it in Flash.  Maybe get some photos of
the scroll ends and do something with that.

In flash, if scrolling to maximum down position is 0% and scrolling to
maximum up position is 100%, then if you have an animation that is 100
frames long then you can send it to a place on it's timeline that
corresponds to the percentage of the scroll position.  IE.. If your
timeline is 50 frames long..

mc.gotoAndStop(scroll percent / 2);
or 25 frames long..
mc.gotoAndStop(scroll percent / 4);

I can't explain stuff very well.  Maybe an example would be easier..
http://members.cox.net/4my5cats/scroll.html
tralfaz




Post Follow-Up to this message ]
Re: A scroll...
 

AmbientSmiley




quote this post edit post

IP Loged report this post

Old Post  02-28-06 - 08:15 AM  
Thx, man! Exactly what I was after! :)

Yeh, I knew it had to be done as frame-by-frame in adobe (got some work ahea
d
of me, eh?). Well, I've come this far. This is gonna be one lovable webpage
(gimmick wise).
-Just how to create the function that listened in on the scroll's position.
Damnit... Not a project for little old me, hehe...

But do you suppose I can create just a 25 frame animation that loops? Some
scrolling lengths will be longer than others, and I dunno, but some might
become rather marathon-like... Eh... Why am I asking? Of course it is :P

And thx a bunch! :)

Cheers! :D





Post Follow-Up to this message ]
Re: A scroll...
 

tralfaz




quote this post edit post

IP Loged report this post

Old Post  02-28-06 - 08:15 AM  
"AmbientSmiley" <webforumsuser@macromedia.com> wrote in message
news:du0itr$ro$1@forums.macromedia.com...
> Thx, man! Exactly what I was after! :)
>
> Yeh, I knew it had to be done as frame-by-frame in adobe (got some
> work ahead
> of me, eh?). Well, I've come this far. This is gonna be one lovable
> webpage
> (gimmick wise).
> -Just how to create the function that listened in on the scroll's
> position.
> Damnit... Not a project for little old me, hehe...
>
> But do you suppose I can create just a 25 frame animation that
> loops? Some
> scrolling lengths will be longer than others, and I dunno, but some
> might
> become rather marathon-like... Eh... Why am I asking? Of course it
> is :P
>
> And thx a bunch! :)
>
> Cheers! :D
>

If you make the instance names match and change the top and bottom
limit numbers to the length of your scroll you will be able to use
that code.
The length of the scrolls won't matter because it's a calculation of 0
to 100% rather than a fixed size.
If your animated roller is 25 frames then use
gotoAndStop(scrollPercent / 4);
HTH
tralfaz






Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 05:10 AM. Post New Thread   
Pages (2): [1] 2 »   Previous Last Thread   Next Thread next
Flash Site Design archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top