Solved

scrolling content in Flash

Posted on 2011-03-08
4
368 Views
Last Modified: 2012-05-11
Hey there

I'm working on a banner advertisement which loads XML content into a movieclip.  I need this movieclip to slowly scroll from bottom-to-top BUT if the user hovers the mouse over the clip i'd like it to stop.  I'd also like to add scroll-up and scroll-down buttons which scroll in either direction quicker so that they can scan the items for sale.

I'm new to Flash and just getting the XML loaded, as simple as it was, was a fairly laborious thing for me to do.  Any help would be much appreciated!
0
Comment
Question by:duder78
  • 3
4 Comments
 

Author Comment

by:duder78
Comment Utility
Here is a link to an archive will all related files.  I've got the content scrolling using an onEnterFrame event...now I just need :

1 - the content to stop when the mouse moves into the advertisement
2 - the content to start scrolling again on mouseout and finally..
3 - content scrolls up or down if up/down button is scrolled over (these buttons don't exist yet.)

Please be aware...for some reason, the content just freezes after awhile when I test within flash.  If I publish the file and view it in a browser, this freeze does not occur.  Just a heads up.

Here's the link :

Project Files
0
 

Author Comment

by:duder78
Comment Utility
I've made a few attempts at implementing the scrolling but to no avail.  I tried using setInterval and couldn't get it to work properly.  Ahhhhhh.  Anyways, i've added the UP and DOWN arrows on the right side but they don't do anything.  Here's an updated link to the source files :

Project Files
0
 
LVL 20

Accepted Solution

by:
ChristoferDutz earned 500 total points
Comment Utility
Well I would suggest to use Tweener to take care of the motion and to use a Mouse-Over/Out event to stop/continue the animation.

http://code.google.com/p/tweener/
0
 

Author Closing Comment

by:duder78
Comment Utility
That's just what I needed.  I've found that the built in tweening class in AS3 is a bit buggy...i'll definitely be using this one from now one.  Thanks alot.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now