Solved

scrolling content in Flash

Posted on 2011-03-08
4
393 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
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SCCM 2012 - Deploy Flash 16 6,957
IE 11 Flash Player issue 7 238
Flash player updates using SCCM 2012 and SCUP 2011 3 420
Virus or Outlook 2007 problem, how to tell? 8 82
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

777 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