Solved

scrolling content in Flash

Posted on 2011-03-08
4
406 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 

Author Comment

by:duder78
ID: 35074709
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
ID: 35077612
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
ID: 35080678
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
ID: 35085733
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

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…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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

752 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