You must be logged in to post Login Register
Search 

3d xml image carousel – speed issue

User Post

1:25 pm
February 9, 2010


goltoof

New Member

posts 1

1

First off, thank you so much for the awesome script.

I'm trying to use this in a project file that's bigger in size than the dimensions in the tutorial. The project I put it into is 962 pixels wide, the carousel itself is about 400 pixels wide, I want it positioned on the right half of the project, so I put the code in a blank movie clip and positioned it on the right.

It works fine, but the problem is the rotation gets crazy fast as the mouse moves to the left side of the stage, because there's so much more space on the left then there is on the right. I only want for it to stop gaining speed when the mouse leaves the carousel area.

Any idea how to address this in the code? Two solutions I can think of, set a maximum speed for the rotation, or make it stop listening to mouseover listener somehow when not in the carousel area. Not sure how to go about this though.

It's almost done, but this issue makes it completely unusable for me.  Any tips appreciated.

2:14 pm
November 9, 2010


buzcajun

New Member

posts 2

2

Did you ever find a solution?

This is what I did:


angleSpeed = (mouseX – 640)/ stage.stageWidth * 0.1;


My stage is 1280, so if mouseX goes past middle it rotates the other way.


I have other questions on this script. I need the rotation to stop at certain angles. I have it going to coordinates but its not a smooth transition.

2:19 pm
November 9, 2010


buzcajun

New Member

posts 2

3

This is what I would like to do, Does anyone know how they did this?

http://miniusa.com/#/learn/FAC…..Features-s


The rotating Featrue Boxes, around the Mini. I need the same interactivety. With links and text inside Flash. I am having issues with layering and links from the XML driven menu list. I also need the boxes to be animated MC's.

Thanks in advance.

Topic RSS 
Search