Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

scrolling content in Flash

Posted on 2011-03-08
4
Medium Priority
?
412 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 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.

715 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