Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

NEED HELP TWEAKING THIS IMAGE SCROLLER

Posted on 2004-03-23
6
Medium Priority
?
203 Views
Last Modified: 2010-04-03
Need a lot of help on this one, I have a few things that I can't figure out.  I have 30 MLB logos in an image scroller, trying to make it so that the initial speed is pretty slow like if you position the mouse one logo width off center.  I wanna keep the frame rate at 12 so that the flash peice doesn't kill a slow processor, but be smooth.

1. I want to have it start out scrolling right to left instead of left to right
2. I would like to get rid of the mouseover effect where it increases in speed as you mouse away from the middle.
3. When the mouse enters the logo area, i want the scroller to stop.
4. I would also like to add an arrow on each side of the scroller, when you click the arrow once, the scroller will move one logo space in that direction or if you hold down the mouse, it would scroll a lot faster than initial speed.
5. If the user doesn't click on a logo and they mouse out of the scroller, then it should continue to scroll normally, where it left off.
6. Also wondering if there is a way to make it easier to duplicate a new scroller without a lot of effort, where I would just create the movieclip containing logos, pics, etc naming the movieclips from 1 to n, and then have flash put them in a strip by calling the movieclips.  I'm also currently doing a lot of extra work to put in the mouseover highlight and to make a change, I need to do it 30 times in each movieclip.  Someone HELP!

Here's the current files:

http://dev.fusionapps.com/matt/test2.html
http://dev.fusionapps.com/matt/test2.fla

I know I'm asking a lot so I will open multiple questions to award more points.  Any help would greatly be appreciated.  



0
Comment
Question by:madasczik
  • 4
  • 2
6 Comments
 
LVL 9

Expert Comment

by:j3one
ID: 10660484
One suggestion I immidiatly saw was you might want make the movie size taller so thay have more room to place the mouse and it effect wich direction they are traveling. that is concidering the logos will stop as soon as you mousover one of them.
0
 

Author Comment

by:madasczik
ID: 10660611
The height is pretty much set, have 75px to work with in the webpage layout, any bigger will distract too much attention away from the rest of the webpage.  Here's what it will look like. http://dev.fusionapps.com/olp/new_layout4.jpg  I guess I could make the whole footer with the blue strips in flash, giving 100px to work with.

One other thing I forgot to mention was that I will need to make two scrollers one for MLB and one for NFL so if I can import a swf containing the logos into a master swf that does all the scrolling work, that would be optimal to save on size.  Not sure how to do that though.
0
 
LVL 9

Expert Comment

by:j3one
ID: 10674242
Gotcha, well I will see what I can come up with. bytw, what version of flash are you using?

-> once you get the scroll bar right you should be abble to use it for both...
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Accepted Solution

by:
j3one earned 2000 total points
ID: 10674647
One way I got it to start out scrolling right to left is....

-> on your frame with actionscript for the loop in it, right click and select "create motion tween"

-> then right click and select "copy frames" go down about 15-20 frames down and right click and select "paste frames"

-> go back and delete the actionscript from the first frame and in the script on the last keyframe, add  <-- stop() --> as below...

stop()
// duplicate movie clip
m = 0;
tmi = 2;
while (m<(tmi*2)-2) {
      m++;
      dup = 'image' add m;
      _root.logos.image.duplicateMovieClip(dup, m+1);
      _root.logos.image1._x = _root.logos.image._x+_root.logos.image._width;
      _root.logos.image2._x = _root.logos.image._x-_root.logos.image._width;
}

-> now, select the last key frame with the action script, then grab your image, hold down shift to constrain, and move it to theright (right to left) a little bit. you will have to experiment as I did to get it right.

-> If you make it move too far too fast it seems to have problems. you want it to mach the speed of your loop. if you do it right, it seamlesly scrolls from the right to the left- untill you mouse over it, in wich case it acts normaly.

Hope that helps a bit-> j3one
0
 
LVL 9

Expert Comment

by:j3one
ID: 10674653
explanation of what I just told you to do... your basicaly manualy animating the first part of the scroll to jumpstart it right...
0
 

Author Comment

by:madasczik
ID: 10677826
thanks, will give it a try, im using flash mx 2004
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question