Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-05-2003, 07:33 PM   PM User | #1
CyberScout
New Coder

 
Join Date: Jul 2002
Location: pa
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
CyberScout is an unknown quantity at this point
Cool NAVIGATOR with Flash

I saw this site:

http://batman.kemcogames.com/versus.html

and was hoping someone knew of a way to create that effect in flash or maybe new of a place to download that kind of navigator. I would like to use it for a map on some pages I do.

(I am of course talking about their scrollable Tournament Chart)

Thanks in advance
CyberScout
__________________
Tall and Proud he stands
Desert sun his only friend
The Jumbo Cactuar
CyberScout is offline   Reply With Quote
Old 02-06-2003, 07:03 AM   PM User | #2
ionsurge
Senior Coder

 
Join Date: Aug 2002
Location: A 4D universe
Posts: 1,337
Thanks: 0
Thanked 0 Times in 0 Posts
ionsurge is an unknown quantity at this point
Have a look around www.flashkit.com and www.ultrashock.com
__________________
http://www.mudsplat.com - Web design, print, and marketing solutions.
ionsurge is offline   Reply With Quote
Old 02-07-2003, 05:22 AM   PM User | #3
mouse
Regular Coder


 
Join Date: Jun 2002
Location: North East England
Posts: 853
Thanks: 0
Thanked 0 Times in 0 Posts
mouse is an unknown quantity at this point
It's a question of tracking one dragable movie clip and binding its co-ordinates to another. That one's quite simple actually. You need to get to know your way around flash and Actionscript.

I've not used Flash MX or even 5 for about a year but for a draggable object (in F5) you needed to create a button symbol with the StartDrag() stuff in and put it inside a movie symbol which will be dragged.

Not very hard but you need to get to know your symbol capabilities (ie the button can't be dragged, only the movie clip around the buton. The movie on the other hand can't interact with the mouse and so can't be selected for dragging). And learn about instance names too.


** It's possible non of this can be applied to Flash MX, a program I've no experience of and which is substantially different from F5.
__________________
[+] Computer/PC issues [+] Silverpaw3D
------------------------------------------------
Never buy a dwarf with learning disabilities...

...it's not big, and it's not clever.
mouse is offline   Reply With Quote
Old 02-07-2003, 11:43 AM   PM User | #4
Mhtml
Senior Coder

 
Mhtml's Avatar
 
Join Date: Jun 2002
Location: Sydney, Australia
Posts: 3,531
Thanks: 0
Thanked 1 Time in 1 Post
Mhtml is an unknown quantity at this point
It can be applied in MX. For the most part actionscript in MX is backwards compatible. Well except for the unsupported commands like the save file command for saving text files. Those were only in the app for dev reasons.
__________________
Omnis mico antequam dominus Spookster!
Mhtml is offline   Reply With Quote
Old 02-09-2003, 02:01 PM   PM User | #5
oat
New Coder

 
Join Date: Feb 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
oat is an unknown quantity at this point
hi,
in effect, this navigation is basically a "loose" scrollbar.. i.e. it works in the same way as a scrollbar but the object being scrolled isnt constrained on the x axis.

As I see it, there are two ways of doing this.. The first, the sloppy way is to drag your scroller clip (several ways to do this in flash), and constrain to the particular area. startDrag() as mouse says is the best way of dragging, you can set the boundaries of the drag as parameters. Now, the only potentially tricky part to this is obtaining the ratio with which to scroll the other clip. i.e. 2ndclip._x=-1stclip._x*ratio; indicating how much to scroll the second clip relative to the first (e.g. 2:1 pixels). You need this ratio to make sure the second clip doesnt scroll too much or too little. Why i said "sloppy method" as the first is that you can use trial and error the obtain the ratio, or you can calculate it based on the sizes of 1)draggable clip, 2)visible scroll area, 3)size of second clip (the "proper way"). Off the top of my head, this equation is something like:
Code:
posn of content clip = currentdragclipposn*-((underclipsize-visiblescrollarea)/(visiblescrollarea-dragclipsize));
where underclipsize is the size of your content clip, currentdragclipposn is the position of your draggable clip visible scrollarea is the scroll area size, and drag clipsize is the size of the scroller clip. Note you would need to do this in both x and y coordinates of course.
like i say this may be slightly wrong, but u get the idea.

so, you can either spend time messing about with this stuff (if you do get this figured out you will have obtained a pretty decent knowledge of flash), or as ionsurge suggests, visit www.flashkit.com, somebody will have done this before..

hope this helps

oat
__________________
UK web design & development
http://www.luminate.org.uk/
oat is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:18 AM.


Advertisement
Log in to turn off these ads.