Solved

Moving filmstrip in Flash MX2004

Posted on 2007-11-29
5
1,555 Views
Last Modified: 2012-06-27
I probably should have added this to another question, but hopefully the new sample file I posted will be easier to work with :  http://www.designamania.com/Ex-Ex/filmStrip1.fla

What I want to achieve is this:
- All 6 pictures move from left to right.
- As the far right picture ("pic6") moves offscreen to the right, it reappears on the left
- when pic6 has moved 20 px to the right, the rightmost 20px of pic6 is now visible on the left
- when pic6 has moved 40 px to the right, the rightmost 40px of pic6 is now visible on the left
      etc., etc.  
I'm just looking for something really slick that enables me to easily add other features like making the strip change directions, or slow down or speed up with mouse over, etc.

Thanks!
John

0
Comment
Question by:gabrielPennyback
[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
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
Tom Ray earned 500 total points
ID: 20375780
0
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 20376021
Hi sibgig,

That looks like it ought be just the thing. I'll try it as soon as I get home tonight.

Thanks,
John
0
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 20380136
This is definitely the thing I was looking for. Thanks. Having fooled with it a little bit, I'm realizing that what I really need is to have the motion stop whenever the mouse is directly over the movie clip.
 I want to do that because I want the user to be able to click on any one of the pictures (each of which is a button two levels down from the main timeline), and trigger an action. That's for another question.

But for now, how do I modify the code to make it stop whenever the mouse is directly over the movie clip?  If you can't tell me how to do that, let me know, and I'll just award the points now.
Below is the code as I have customized it from the tutorial.

Thanks!

John

onClipEvent (load)
{
   xcenter=360;
   speed=1/60;
}
onClipEvent (enterFrame)
{
   var distance=_root._xmouse-xcenter;
   _x+=(distance*speed);
   if (_x > 0) _x=-720;
   if (_x < -720) _x=0;
}

Open in new window

0
 
LVL 11

Expert Comment

by:Tom Ray
ID: 20383061
interesting....

not sure off the top of my head on exactly how to do that.

i think we would need to incur 'condition' statement with a 'hitTest' in there to get it to stop, but i'm just thinking out loud. i'd have to play around and try.

you can leave this question open or close it doesn't really matter to me. however, i feel you may get a faster response if you were to ask a new question. either way, when i have time, i'm going to try and solve it, but i won't have that kind of time to dedicate to it till later on this weekend.
0
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 20473525
Hi siibgig,
I posted the new question here: http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_23024293.html
Please have a look.
Thanks,
John
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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…

734 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