ActionScript 3.0 :: Rotate From Current Position - Papervision 3D

Dec 9, 2011

So what I'm trying to do is rotate from the current position the model is in.

I know the basic stuff like this:

[Code]....

But now the model jumps to the rotationY according to the mouseX (which is obvious because you can read it in the code ) But I don't know how to change this to use currentYRotation.

View 11 Replies


Similar Posts:


ActionScript 2.0 :: Move Punto_mc From Current Position To Random Position After Release?

Aug 29, 2009

how to make an actionscript to move punto_mc from current position to random position after release, and then from this new position to mevo to another randon position after release?

View 2 Replies

Actionscript 3 :: Tween Position Relative To Current Position?

Jan 23, 2010

I have a tween set on a timer:

var manTimer:Timer = new Timer(1000,14);
manTimer.addEventListener(TimerEvent.TIMER, moveMan);
function moveMan(e:TimerEvent):void {[code]....

I just need to make the tween's position relative to it's current position, as opposed to starting at the stage's 0 position then moving the the stage's -40 position. It needs to start at its current position the move -40 from that position.

View 1 Replies

ActionScript 3.0 :: Record The Current Position Of Any Of The Items Item In Order To Use That Data To Change The Position Of The Item After The User Clicks?

Jan 2, 2010

If I have several items that move across the screen but the user can click any of them at any time, how do I record the current position of any of the items item in order to use that data to change the position of the item after the user clicks?

This is what I am doing: I have 11 images that slide accross the screen. The user can click any of them at any time. When he clicks one I am scaling the image so it looks like it is comming forward (z axis) and then the rest of the images are scaled down so it looks like they are going back on z axis. So what I am trying to do is get the current position of the image when the user clicks the image so that I can use that to correctly estimate the scaling and moving of the image to make it look like it scales from the center and not from the top left corner. So if have a variable that gets the current position of the image being clicked I'm thinking I can change its position using something like: x = currentposition + -45;

View 9 Replies

Actionscript 3 :: Load A Papervision/Flex Application (SWF) As A Material On A Papervision Plane?

Mar 24, 2011

I am trying to build a portfolio application similar to the used by Whitevoid. I am using Flex 4 and Papervision3D 2. I have everything working except for one issue. When I try to load an external SWF as a material on one of the planes, I can see any native Flex or Flash components in their correct positions, but the papervision objects are not being rendered properly. It looks like the viewport is not being set in the nested swf. I have posted my code for loading the swf below.

private function loadMovie(path:String=""):void
{
loader = new Loader();
request = new URLRequest(path);

[Code]....

Below I have posted two pictures. The first is a shot of the application running by itself. The second is the application as a MovieMaterial on a Plane. You can see how the button created as a spark object in the mxml stays in the correct position, but papervision sphere (which is rotating) is in the wrong location.

View 1 Replies

ActionScript 2.0 :: Rotate Wheel To Specific Position?

Nov 1, 2006

I have searched the forum and could not find anything specific, so if you do, please show me the link. Let me set some theoretic environment for the question. let's take a circle that is like an anolog clock but only has 8 numbers; 12 o'clock, somewhere around 1:30, 3 o'clock, 4:30, 6, and so on.

I want to have each number, a button, and when clicked will rotate to the top of the circle.NOTE this is a static image, so the numbers will upside down, etc...the do not need to stay rightside up, as they will rotate with the circle image.

Every time a number is clicked, it will rotate the circle until that number is at the top, and can move either left or right depending on which number is clicked. I thought of doing this in design time, but there are many combinations, and it would be too weighty.

I do not know how to rotate it in actionscript and then have it stop at a certain position, which I assume I could plan out in degrees, and possibly use flags to tell which had been clicked in which position,

View 3 Replies

ActionScript 3.0 :: Rotate On Drag Not Mouse Position?

Feb 24, 2009

i have some script that creates a rotating video wall/carousel effect that rotates left and right depending on where the mouse is.I want the carousel to only rotate when the mouse is down and dragging - but just can't seem to work out what i need to change.how do I define the drag action instead of the current +x & -x co-ordinates?here is the full script for the entire carousel

Code:
*/
import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;

[code]....

View 4 Replies

Starting From Current Y Position?

Sep 22, 2011

i have a text area that can be swiped using a touchevent....

var myText:TextField = new TextField();
myText.width = 300;
myText.x = 0;

[code].....

View 7 Replies

Actionscript 3 :: Rotate Movieclip On Different Axis On Mouse Position?

Mar 27, 2011

I am looking for direction to this old UFC effect - [URL] that appears on the main page. It is movieclips rotating on different axis based on the mouse position. So far I have found this script:

stage.addEventListener(MouseEvent.MOUSE_MOVE,EnterFrame);
function EnterFrame(e:Event)
{
mc.rotation = (180*Math.atan2(mouseY-mc.y,mouseX-mc.x))/Math.PI + 90;
}

But this only rotates on x and y. What's a way to approach this effect?

View 1 Replies

ActionScript 2.0 :: Controlling Movie Clip Like Sclae , Rotate, Position?

May 22, 2007

I have started a project for a t-shirt store with a similar featurescan any one tell me how he is controlling the designs and text rotation and scaling inside the target area

View 2 Replies

ActionScript 2.0 :: Having A Movie Clip Rotate Back To Its Original Position

Feb 27, 2010

I created a movie clip, an aircraft compass which rotates till the button is pressed but I would like it to return back to its original position in opposite direction of smooth rotation and stop. I already have the following script on the clip.

onClipEvent(enterframe) {
if(spin) {
_rotation -= 2;

[Code]....

View 2 Replies

ActionScript 2.0 :: Rotate A Symbol In A Continuous Full 360 Degree At One Position?

Sep 5, 2002

i'm trying to create an actionscript where i can rotate a symbol in a continuous full 360 degree at one position. i know it has to do with degree/pi, but i can't come up with the correct formula for it. if i can try to remember, is it 2(pi) for a full rotate? how to put it in the actionscript?

View 8 Replies

ActionScript 2.0 :: Checking Current _x Position With A Loop?

Apr 3, 2009

I have this tween function that moves an object 100 pixels as soon as it enters the frame.

if (currentValue % 15 == 1) {
var rab1:MovieClip = rabbit1._x;
var myHoriTween:Tween = new Tween (rabbit1,"_x",Regular.easeInOut,rab1,(rabbit1._x = rabbit1._x + 100),2,true);
myHoriTween.onMotionFinished = function (){
this.stop()
}

My idea is to set up a loop to watch the tween, once it advances its 100 pixels from where it started I want to do a few things before I go to the next frame. Right now I'm using a timer, but it limits my ability to control the playhead.

I've been trying to create a loop to check the current _x and trace it so I can see it advancing as its tweening but it's simply too advanced for me.

View 1 Replies

ActionScript 2.0 :: Get The Current Cursor Position In TextField?

May 31, 2008

I want to get the current cursor position in text field while typing

View 1 Replies

ActionScript 2.0 :: [mx] Storing The Current Position Of An Object

Sep 4, 2003

I've always wondered if there was a way to retrieve and store the current position of an object. i am trying to develop a background slideshow using penners equations. but i get into trouble because you have to define the start position. so let's say you click button 1, and the object moves from x =0 to x = 200. Now when i press button 2, i want the object to move from x = 200 to x = 400. and if i then press button 4, i want it to move from x=200 to x=800 and so on. So i need to go from the current position to any of the new positions. i could do this simply using the normal inertia code.

[Code]....

View 7 Replies

ActionScript 2.0 :: CS3 Tracing Current Array Index Position?

Apr 9, 2009

Is there any way of getting the current active index position from an array? As an example, something like this:

j=0;
current = myArray[index];
my_btn.onPress = function(){

[code].....

View 3 Replies

ActionScript 3.0 :: Set Current Frame Based On Mouse X Position?

Mar 26, 2009

I am attempting to create 360 degree spin-around product viewer. So far I have a movie clip with 24 frames, each one with a different 15 degree angle shot of the product. Upon playback of the movie, the product appears 3D, spinning 360 degrees.

That was the easy part. Now what I need is to be able to click and drag the product to change which view you are seeing (or which frame in the mc you are on) thus producing a spinning effect. How can you code, in AS3.0, that when the mouse is clicked and drug, go to a certain frame based on the current X position of the mouse?

View 21 Replies

Swfobject - Get Current Position From Embedded Flash Videos?

Mar 11, 2011

I'm using SWFObject to embed Flash Videos. Is there a way to get notified as soon as the user hits some specific time marks of the embedded video? I.e. get a notification from the Browsers Flash Plugin?

My goal is to change the page content at specific times of the embedded video.

View 2 Replies

ActionScript 3.0 :: Determine Current Pen Position In Graphics Object?

Jan 3, 2010

Is there a way to determine the current position of the pen in a graphics display object. Something similar to what is discussed in this thread but for AS3?

View 4 Replies

ActionScript 3.0 :: Get The Current X Position Value Of The Tween Object During The Animation?

Oct 14, 2009

I want to know how do you get the current x position value of the tween object during the animation? I want to move a movieclip across the stage, but at a certain x position, i.e. x=600, a new movieclip is added to the stage and chases behind the first one. My current code looks like this:

[Code]...

View 4 Replies

ActionScript 2.0 :: Overwrite The Current AttachMovie MCs With A New Set Of MCs At The Same Position And Location

Oct 4, 2004

I am using attachMovie function to dynamic attached MCs depending on the database. How can I overwrite the current attachMovie MCs with a new set of MCs at the same position and location after a click on a next button?

View 4 Replies

Actionscript 3 :: Get Word Under Current Cursor Position In Textarea In Flex 4

Oct 2, 2011

I'm using flex4 for creating an editor. There I need to get word under current cursor position. say for example, this is the text in textarea, "Hi, this is a sample" and cursor under "this" word. If I click a button, then this "this" word must be returned. All this I need to implement in flex4 and actionscript3.

View 1 Replies

ActionScript 3.0 :: Find Nested Movieclips Current Position Relativ To Stage

Oct 6, 2009

I have a movieclip, which attaches to another movieclip, which scrolls.On click I want to be able to drag that movieclip away from the one it was attached to. When I just removeChild it, it's position changes. I want it to stay in the same spot until it's dragged.Any suggestion, on how I can give it that same position, when not attached?

View 1 Replies

ActionScript 3.0 :: Track / Trace Current Position Of Sound File While It Is Playing?

Aug 18, 2010

does anybody maybe know how to track/trace the current position of a sound file while it is playing?So that it is updated every frame or second?I figured something with trace(sound.position) onEnterFrame, but didn't succeed in realizing this yet.

View 1 Replies

ActionScript 3.0 :: Custom Video Player - Jump Ahead Of Their Current Download Position

Dec 23, 2008

I have a custom video player that I built with AS3. When people are viewing the videos I want them to be able to jump ahead of their current download position so that they don't have to wait until the video downloads to watch that portion.

View 7 Replies

ActionScript 3.0 :: Making A Code That Automatically Writes The Mouse's Current X And Y Position As Text?

Jul 6, 2009

I have trouble making a code that automatically writes the mouse's current x and y position as text every frame.

View 3 Replies

ActionScript 3.0 :: Tween Movieclip From Current Position After Previous Tween

Mar 17, 2011

I am working on to slide a movieclip across the stage.The movie clip is five times the width of the stage and I am using the Tween  Class to move it across the stage when a button is pressed.The interaction I want is that when the button is pressed the movie clip moves a certain amount.If the button is pressed again it moves further.The script I have come up with though is taking the movieclip back to the original position of the movieclip and then moving it as opposed to moving it from the position it reached after the first button click.I have tried a few things but nothing is working.The script I am using at present is:[code]

View 5 Replies

ActionScript 3.0 :: Enemy Animation Sequence - Rotate + Move, Then Stop Then Shoot Then Rotate Back And Move Off Screen

Aug 10, 2009

I am having some dificulty making a path for this enemy i'm trying to create... cause i want him to rotate + move, then stop, then shoot, then rotate back and move off screen... Its easier if you see it.. you can download the swf file in the zipped archive to demonstrate what i mean. I did it there with tweens. Anyway.. i tried and make it but i'm a little stuck on the stopping part... you can also see what i did in the fla file attatched...

View 1 Replies

ActionScript 3.0 :: Car Skidmarks In Papervision

Oct 19, 2009

I asked this question in papervision 3d forums, but nobody replied. So. I am writing a 3D application with actionscript 3 and papervision 3D. But I have stuck on one problem, I can't figure out, how to place skidmarks (decals?) on an object. The only method I can think of is drawing directly to BitmapData (texture). What would you suggest to draw a textured skidmark on ground (plane primitive)?

View 1 Replies

Actionscript 3.0 :: Globe Done In Papervision

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







Copyrights 2005-15 www.BigResource.com, All rights reserved