ActionScript 1/2 :: Globe Rotation Script?
Aug 18, 2009
I've created a 2D globe in Flash which automatically rotates clockwise very slowly using actionscript. On the globe there are sign posts which rotate with the globe, each sign post will link to another url. I would like to allow the user to spin the globe faster when they click the left mouse button while moving the mouse in a downward motion but once they've spun the globe faster it should then gently slow back down to its original speed.
View 5 Replies
Similar Posts:
Mar 17, 2011
I created a 3D globe in 3DS Max, put on render and would like to now be able to this object using the mouse to offend 360 degrees on one axis. Unfortunately, I do not know how to go about it.
View 0 Replies
Nov 30, 2009
I have created a globe that rotates with no problem, but what I am trying to do is to control the direction of the rotation based on the mouse position. For example, if the mouse is to the right of the globe, it rotates towards the right and if the mouse in on the left, the globe rotates left. When the mouse is over the globe, it should stop.
View 1 Replies
Jul 10, 2006
my boss gave me the difficult project. he wants me spin the globe.now i can spin the globe forward and backward. but has one error that the globe cannot play backward continuous when my mouse is move more than 1/2 of stage width.it's should be
forward :: frame 1, 2, 3, 4, ..., 24
backward :: frame 24, 23, 22, 21, ..., 1
no have error when play on frame 1 - frame 23
find the error when play frame 24
it is forward :: frame 1, 2, 3, 4, ..., 24 and not play backward and the problem can found when play until the last frame.here is code
Code:
stop();
//forward
MovieClip.prototype.playForward = function() {[code]........
View 1 Replies
Jul 2, 2009
I have done globe in papervision - basically sphere + material (image of political map) over it.Now, I need to make every country on my globe interactive, what means, I need somehow create event listeners for lots (at least 15) of small areas on my globe, and if I click those areas, something will happen (say, additional info windowwill come out)I googled a lot and found a lot of things describing some realted stuff (hotspots?), but since I am quite new in flash/actionscript/papervision, could I, please, get some introductory idea how my problem might be solved?
View 1 Replies
Feb 14, 2009
I am trying to develop a Flash globe carousel and I need some help in doing so.A normal carousel moves along a circle.I am trying to develop a Flash carousel that moves in every direction along the lines of a globe. You can see attached a normal carousel that I have created. I have tried to upgrade it to a globe carousel but I am having problems in doing so.It is not easy but I am sure that there are people here that understand trigonometry and can point me in the right direction.
View 1 Replies
Jan 7, 2010
I have a movieclip and when I do 3D rotation from Transform panel, It rotates perfect, center is in the middle of image, and when I apply mc.rotationY, rotation center is in left of the image, aren't 3D rotation from Transform panel and mc.rotationY from AS same? what's up?
View 2 Replies
Mar 23, 2011
I'm trying to do some augmented reality projects with flartoolkit . I can now put simple 3d objects on my marker and it works fine , but I wanna give my project some events that the user can interact with. I'm trying to trace the rotation of the marker. there's a container:DisplayObject3D which my application uses to add the 3d objects , I traced this :"trace(container.rotationZ)" but it's just returning 0 . I studied another AR application's source code and it was using the rotation of it's container object without problem .and I think I should mention that I'm using the exercise file of seb lee delisle papervision3d course from [URL]. anyone has any experience with flartoolkit? the main functions of my my code is as below:
[Code]...
View 1 Replies
Dec 16, 2010
I'm about to make an animation where a whole world map separates from globe/ball. Kind of coating/jacket that opens from 3d ball to plain 2d surface.
View 1 Replies
Aug 11, 2010
Is it possible to have the child movieclip rotate separate of the rotation properties assigned to the parent? so ultimately giving the child element it's own axis?I've customized Lee Brimelows (gotoandlearn.com) 3D carousel to spin on the x axis to make it a vertical carousel. I've also rotated that by 45 degrees on the y axis to see all the items, and wrote a snippet of code to hide the left portion of the carousel. The entire carousel is contained within the 'container' movieclip, and inside of that are my carousel items (as seen below), with the larger item being the item in focus.
On rollover of the item in focus, I want to rotate it so it faces the viewer (as seen below),basically removing the 45 degree rotation applied to the container.The problem i'm running into is when you rotate the container (changing the rotationX of the container), the axis basically rotates with it, so when i rollover the next item 'in focus', the following happens..(in the example where it appears how it want it to, the carousel is at a rotationX of 0, so it works fine)
View 2 Replies
Jan 26, 2011
I've made a particle system snow globe and right now I have snow blowing across the stage, but I want to have the snow blow around only within the snow globe which is placed in the middle of the stage. I made a movie clip (area_mc) that I want to use as the boundary for where the particles can float.
View 0 Replies
Oct 10, 2011
Is there a way in flash to make the letters come from around the globe just like on the Universal intro? [url]...
View 1 Replies
Jun 21, 2009
I've got a globe which I'm adding markers too and then I allow the user to spin the globe by click-dragging it. Actually, the globe and markers don't move, the camera moves around them. Anyways, what I need is to be able to spin the camera around to a markers position when it's clicked on.
Code:
package {
import flash.display.BitmapData;
import flash.display.Loader;
import flash.events.Event;
import flash.events.MouseEvent;
[Code] .....
View 2 Replies
Apr 21, 2009
Program A has a cannon that aims to line up with where-ever the mouse is pointing, in 360 degrees, and fires when the mouse is is clicked. Program B has an eye instead of a cannon that should in theory do similar functions when the capslock key is toggled, but instead only has a 90 degree range of motion from the Right of the eye toward the bottom (quadrant 4 only). Where did the ther 270 degrees of rotation disappear to?
[Code]...
View 4 Replies
Aug 11, 2006
i.m trying to create a 3d rotation much like the widely used carousel only the rotation i desire consist of four upright(90 degrees) movieclips resting on a slanted, 30 degree plane which rotate onEnterFrame or following a tween on a oval like path - then pause for a given number of seconds at the four movieclips positions equal in distance on the plane
function around() {
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = this._y /(centerY+radiusY);
[code]....
View 7 Replies
Feb 23, 2009
Why isn't there the Z, rotation X and rotation Y fields in my motion editor panel?
View 1 Replies
Jul 9, 2009
I made an interactive rotating globe that shows all the continents (using CS3 and AS3). The globe rotates automatically. When the user mouses over the globe is stops rotating and they can use left/right arrows to rotate it manually to get to a continent. When the mouse rolls over a continent (Australia for instance) it changes color and should be clickable and go to a website but it's not working. It doesn't return any errors. The basic structure of it is this:
[Code]...
View 3 Replies
Aug 3, 2009
I'm trying to create a flash application which displayes 20 locations on a U.S map. Right now I have a satellite image of the U.S, and if you click on a location it zooms and you see a close up. I am achieving this effect by playing a short flv video captured from google earth.The first frame is identical to the map image, then it rapidly zooms in (about 1 second) to the location, the last frame is the same as the satellite imagery of the location.It looks pretty good, but each zoom video is 1 to 2mb to achieve video quality which matches the satellite imagery and looks good with such extreme movement.The problem is the flash presentation is too large with all the videos, can I achieve the same affect with images?Something like a deep zoom effect?Is an image zoom technique practical considering I'm zooming into the whole country image way beyond a single pixel of the image all the way down to satellite imagery?
View 1 Replies
Dec 10, 2010
I made a spinning globe with Away 3D which sits in front of a 2D graphic in a specific spot. The swf is going to exist as part of a web-page. When a user hits "zoom in" or "zoom out" on there browser (looked at FF and IE) and refreshes the page, the 2D graphic is zoomed and stretched. The spinning globe is also magnified, but falls out of position... in this case, down and to the right. I put my original re-jiggering steps to put the globe in place in an onResize() method, called by stage.addEventListener(Event.RESIZE, onResize);
[Code]....
Even if I wanted the globe to stay dead center on the stage, I don't know how to do this. What kind of calculation do I need to make in my onResize() method? Do I move the view or do I need to move something else? Can someone explain what is happening to the viewport or the camera when the stage is resized?
View 3 Replies
Oct 8, 2009
I am watching the tutorial on the motion editor and when he opens the motion editor to edit the Rotation X and Rotation Y values I'm in trouble.My motion editor now only shows Rotation Z but, no Rotation X or Rotation Y. What am I doing wrong?
View 1 Replies
Dec 2, 2008
I am trying to do a simple "pseudo 3D" rotation of a movie clip. The clip would "flip" on to the screen. I have created the effect using PaperVision3D, however, the final SWF is about 64k and my project requires a smaller file size. I tried to create the flip effect manually by creating skewed versions of the clip and tweening between them, except this doesn't work because the shape is not tweaked along the vanishing point as it should be. It looks like perhaps I could accomplish what I want to do using the MatrixTransformer but I've not had much luck so far.
View 3 Replies
Oct 3, 2006
I'm trying to pause my rotation on rollover of a movieclip and restart rotation on rollout of the movieclip. Here is my current code,
[Code]...
View 1 Replies
Oct 30, 2011
I have found an excellent tutorial and source file for a 3D image gallery. However I would like to make the thumbnail click thorugh to a url link when pressed rather than loading the image into the gallery.
Currently the images load in through actionscript. Is there a way to amend this script so you can specify that a thumbnail clicked links through to a url, like you would with a normal button instance rather than loading the image. Here is a link to the file and tutorial. The actionscript is on the top layer within the file.[URL]...
View 9 Replies
Oct 24, 2010
I've been experimenting with this and I haven't been able to come up with an adequate solution. Hoping one of you Mathletes can point me in the right direction. I'm building a Snow Globe in ActionScript 3 and I need to come up with a set of equations to control two level of snowflakes - one level random, and the other interactive where a user can click on them.For the random snow, I need to have it create certain number of random x/y positions at the bottom of the globe, which is a circle with a radius of around 300. Then when the shake action occurs, They should randomly float toward the top, then fall back to a random position at the bottom of the circle again.
For the interactive snow, I need it to randomly layout, but I don't want flakes to overlap so that its easier to interact with them.
View 1 Replies
Oct 30, 2011
I have found an excellent tutorial and source file for a 3D image gallery.However I would like to make the thumbnail click thorugh to a url link when pressed rather than loading the image into the gallery.Currently the images load in through actionscript. Is there a way to amend this script so you can specify that a thumbnail clicked links through to a url, like you would with a normal button instance rather than loading the image.Here is a link to the file and tutorial. The actionscript is on the top layer within the file.URL...
View 9 Replies
Mar 13, 2009
I have a pointer that rotates with this code (on the MC):
Code:
onClipEvent (enterFrame) {
_rotation += 0.2;
}
This works fine but now I would like to have another pointer but with an starting angle of 60degrees. Is there an easy way to ad a starting degree or angle value on this code?
View 1 Replies
Apr 4, 2009
How can I control the center of rotation when manipulating CS4's 3D properties? --I mean in code, that is. I've set the 3D Center Point in the Transform Panel, and if I rotate the MovieClip in the IDE, it rotates correctly... but when I manipulate rotationY via code, that 3D Center Point is not used.
View 3 Replies
Dec 23, 2010
So I've found numerous tutorials on rotating to face the mouse, and none of the rotation equations work properly for me. I made my own that worked but then it just over complicated things such as bullet direction and the likes so I want to figure out what's going wrong.
Code:
var radians:Number =Math.atan2(mouseY-ME.y,mouseX-ME.x)
var degrees:Number = (radians/Math.PI)*180;
[code].....
View 2 Replies
Oct 13, 2011
I can rotate it, or modify>transform>rotate +/- value
but what is the manual equivilant to simply object.rotation=0;
View 4 Replies
Apr 11, 2007
I have a client that wants a product to rotate around its axis for a full 360 degree view of the product. The final view needs to be draggable - so a user can use their mouse to turn it left or right. I took photos of the product in 10 degree increments and created a movie clip - but I can't figure out how to get it so a user can control the view: turning the product left or right.
View 3 Replies