ActionScript 2.0 :: Controlling Timeline Via Mouse X Position?

Feb 10, 2010

how to controll the timeline via moving the moiuse in x (left to right ).basicly i wsant to shocase a sculpture of mine in a seemingly quicktime vr fasion. so i will take lots of images of the sculpture in difrent agles to get the 360 degreemovie. then import intoflash timeline. Then somehow i need a script to control the scrub the timeline images (to create the quicktime vr look )

View 17 Replies


Similar Posts:


ActionScript 3.0 :: Controlling Sound Of Movie With Mouse Position?

Nov 26, 2009

is there a way in as3 to mute a video inside a movie clip if the mouse x position equals less than, say 200px?

View 1 Replies

ActionScript 2.0 :: Control Timeline With Mouse Position?

May 21, 2007

Does anyone know how to control an mc's timeline with the mouse position? So, when you click and drag right it plays the timeline forward and vice versa? I know how to do it with a slider, but I'm stuck on replacing the slider position with the coordinate where you click your mouse...if that makes any sense.

View 2 Replies

ActionScript 2.0 :: Controling Timeline Via Mouse X Position?

May 15, 2005

i want to know if anyone can tell me how to controll the timeline via moving the moiuse in x (left to right basicly i wsant to shocase a sculpture of mine in a seemingly quicktime vr fasion. so i will take lots of images of the sculpture in difrent agles to get the 360 degreemovie. then import intoflash timeline. Then somehow i need a script to control the scrub the timeline images (to create the quicktime vr look )

View 3 Replies

ActionScript 3.0 :: Timeline Controls Based On Mouse Position?

May 25, 2009

I'm trying to make a faux 3D rotation animation where if the user mouses to the right the object rotates right and if the user mouses to the left the object rotates left. Depending on how far they move the mouse the rotation should speed up or slow down.I spent a lot of time making an object in 3d studio max and importing the animation of rotation as JPEGs onto the timeline. I figured the most efficient way to go about this would be to make the mouse control the timeline instead of the object itself.

View 4 Replies

ActionScript 3.0 :: Controlling A Timeline W/in A Timeline?

Feb 15, 2012

Main_mc has a movie with a button movie and an animation movie. I want the button_mc to control my main_mc timeline. I want a btn when rollover play up to frame a and stop. Rollout play to end. If btn is clicked play and stop at frame a.

View 5 Replies

ActionScript 2.0 :: Mouse X Position To Control Movie Position?

Feb 1, 2006

Basically the x position of the mouse should control the play position of a movie. Do I need something like an event handler (I'm not sure exactly what these do, but I've seen similar scripts that seem to use them).

View 2 Replies

IDE :: Cursor Position Not Mouse Position In Input Text Box

Nov 12, 2009

I have an Input Text area that users can edit and then submit. I need to be able to show, on screen, the cursor's current position as they type. I don't need to know where the mouse is but all work-arounds I've found so far can only tell me the mouse position. The font for the text is 'courier' or 'courier new' and the Input Text area is scrollable.

View 8 Replies

ActionScript 2.0 :: Controlling Mc.'s Position On Screen?

Jan 19, 2004

I have a mc w/ an invisible button attached to my main stage called mc.return.Attached to the mc.return is the following script:

[AS]on (release) {
mc.blkqueen._x = 275.3;
mc.blkqueen._y = 461;
}[/AS]

The mc.blkqueen has startDrag and stopDrag actions attached to it (which works fine). It has also been instanciated as mc.blkqueen.Seems logical to me that pressing mc.return should place mc.blkqueen at 275x461 - but nothing happens when I test it.

View 1 Replies

ActionScript 2.0 :: Controlling Mc's Position On Screen

Jan 19, 2004

I have a mc w/ an invisible button attached to my main stage called mc.return. Attached to the mc.return is the following script:

[AS]on (release) {
mc.blkqueen._x = 275.3;
mc.blkqueen._y = 461;
}[/AS]

The mc.blkqueen has startDrag and stopDrag actions attached to it (which works fine). It has also been instanciated as mc.blkqueen.

Seems logical to me that pressing mc.return should place mc.blkqueen at 275x461 - but nothing happens when I test it.

View 1 Replies

ActionScript 2.0 :: Tween From One Position To Mouse Position?

Mar 28, 2010

tween from one position to mouse position

View 1 Replies

ActionScript 2.0 :: Controlling The Menu's _x Position Dynamically

Apr 13, 2010

I have a 1200 px wide scrolling menu movie clip which is placed on a stage that is 650 px wide (mc menu is approx 2X wider than the movie). It is aligned left to the stage and whenever a user moves the cursor over it - it scrolls itself around _x axis (inverted x axis). Here is the code that works:

ActionScript Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
//take mouse position and invert it

[Code].....

But sometimes during aggressive mouse movement over the menu mc, the mouse position variable goes beyond it's limits (I don't know why, latency error?) by 20-30 px. This makes the menu go way beyond its limits/bounding box and almost completely exits the screen.

I've tried adding mc that registers the movie area, limiting _x axis in the IF statement, but whatever script I make it either: glitches, doesn't move or just goes all over the place.

How can I make the menu mc move only in specified movie area?

View 0 Replies

ActionScript 1/2 :: Focus On Mouse Position When Zooming Movie Clip Using Mouse Wheel?

Oct 29, 2009

I have a map application that when I use the mouse wheel the map will scale up or scale down. The next thing I want to do is to focus on the mouse pointer while zooming on the part of the map.

I have this code...

function focusMousePosition(){    onMouseMove = function (){        Stage.width = _root._xmouse;        Stage.height = _root._ymouse;        updateAfterEvent();    }}
var mouseWheelListener = new Object();var wheelNum:Number;
mouseWheelListener.onMouseWheel = function(wheelNum){    focusMousePosition();    if (wheelNum > 0){        map._xscale *= 0.9;        map._yscale *= 0.9;    }else{        map._xscale *= 1.1;        map._yscale *= 1.1;    }}Mouse.addListener(mouseWheelListener);

View 3 Replies

ActionScript 1/2 :: Xml % Controlling Timeline?

Jan 25, 2010

Well, I have a project where I would need a XML with a % range from 0-100 to controll a timeline. The concept is to fill a bottle. So the timeline would animate from empty to full. But must be controlled with a XML number and its all in AS2...

View 18 Replies

ActionScript 3.0 :: Controlling SWF Timeline?

Nov 29, 2010

I never seem to get any answers on these forums lately but surely someone can answer this. I've loaded an AS2 based SWF in to an AS3 SWF. I want to gotoAndPlay a frame in the AS2 SWF when a button is clicked thats inside the AS3 SWF.

View 2 Replies

ActionScript 2.0 :: Controlling A MC's Timeline?

Nov 26, 2009

if its possible to control a movieclips timeline a bit more than the simple play, stop functions.

I was hoping by pressing a button, it would make the MC's playhead not just jump to frame 20, but play to it.

So if the movieclip's timeline is on frame 60, I press a button and it scrubs all the way back to frame 20. Click another button and it scrubs to frame 40, etc..

View 3 Replies

ActionScript 2.0 :: Controlling MC From Timeline?

Mar 27, 2004

I have a MC in my movie. I want to control it's properties in different frames in the main timeline. For instance

at the 1. frame change it's position
at frame 50 change it's alpha
at frame 100 change it's scale

until now I have done all this by motion tweening but I know AS is the best way.

View 3 Replies

ActionScript 2.0 :: Loading SWFs Into Scenes - Controlling Position On Screen

Dec 4, 2002

I have several buttons, that link to several scenes, containing swf files. Using the loadmovie command I can get these swf's playing on-screen. That's good.

-How can I control where they appear on my document (I'd guess these require some x or y values, but not sure how this is done) as they all appear in the top left-hand corner.
- When I mouse over another button (link to scene/swf) how can I remove the previous swf from the page, then load the new swf -as they all appear in the same spot/all over each other? Is this an unload movie command?

I was hoping to counter this problem by using different scenes (no luck there) and all I really need to do is remove the previously loaded swf, when the new one is loaded.

View 6 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 :: Controlling Position Of Data Loaded In A Text Field?

May 20, 2002

I have a scrolling text field, data on a text file (externalVariables.txt) and buttons. Data loads upon pressing the buttons using the following method: on the main timeline:

loadVariables ("externalVariables.txt", "_root");
on each button:
on (release) {

[code]......

View 1 Replies

ActionScript 3.0 :: Zoom To Mouse Position Using Mouse Wheel?

Mar 9, 2010

Code:

addEventListener(MouseEvent.MOUSE_WHEEL,mouseWheel);
function mouseWheel(event:MouseEvent) {
Map.scaleX = Map.scaleX + event.delta*.01;
Map.scaleY = Map.scaleX;
}

The problem with this code is that it scales from the registration point (0,0). Due to the other transformations I'm doing to this image at various times, it isn't possible to move the registration point. The image is larger than the stage and the user is able to drag it around. I want the mouse wheel to zoom in on the place the mouse is hovering over (or at a minimum...the center of the "view" they have...aka the stage)I tried doing this:

Code:
internalPoint = new Point(Map.mouseX, Map.mouseY);
externalPoint = new Point(stage.mouseX, stage.mouseY);
var matrix:Matrix = Map.transform.matrix;

[code]....

Which, incidentally, I'm using that whole portion of code to zoom into the state they will be in when they use the mouse wheel.

View 1 Replies

ActionScript 3.0 :: Controlling Timeline With Buttons?

Apr 3, 2010

i have forward/back buttons to control the timeline. what happens in the following code is that if the button is clicked while in the < or > range of frames, it gets buggy. heres the code.

[Code].....

this doesnt seem to go to the exact frame i need if i click while the current sample is still animating in. It would be much better if i could tell flash to a specific frame instead of asking flash to determine a range. that way, if a button is pressed during an animation it wont just advance one frame, it would jump to a specific frame.

I wish i could just do this:

[Code].....

i thought about creating a var that would be a string. i could then add a number to the name of that string each time the button is clicked. then i could make frame labels the name of the string. but i couldnt get my head around it. also, i didnt know how to make the button stop adding to the string name once it reach a certain value (6 in this case). or how to make it play the last sample animation if the user kept clicking the advance button at the end of the samples.

View 1 Replies

Flash8 :: Controlling Timeline From A Movieclip?

Sep 1, 2010

So im creating a site for a friend and I have placed the menu inside a movieclip so the buttons are inside the movieclip. This the script i have tried :

Code:
stop();
natural1.onRelease = function () {

[code].....

View 1 Replies

ActionScript 1/2 :: Slider Bar Not Controlling The Timeline?

Nov 11, 2009

This time I'm attempting to make a timeline, that should control what frame of a movie clip on the root timeline is displayed. So relevant to where the user slides the slider bar, the appropriate information will be displayed inside that movie clip. Now I really have NO idea where to start the coding that will attempt to convert the slider's location on its on slider bar, to what frame is shown on that movieclip.

[Code]...

View 28 Replies

ActionScript 3.0 :: Controlling Timeline Of External Swf?

Jun 3, 2010

Just wondering how to control the timeline of an external swf loaded into the root of your main timeline, from within nested movieclips on your main timeline?I can successfully control it once it's loaded from within the function that assigns the external swf a MovieClip var, but I want to control it from deeper in my main swf.1. I've loaded an external swf into the root of my main swf.2. After loading, I assign the external swf a MovieClip var, and then set up a button to control the timeline of the external swf:
 
function dataOnLoad(evt:Event): void {
var myClip:MovieClip = evt.target.content;
function updateSwf(evt:MouseEvent): void{

[code].....

View 6 Replies

ActionScript 3.0 :: Controlling An Imported Swf's Timeline

Mar 9, 2011

I can't use the normal MovieClip methods on my imported swf.

Code:
package {
import flash.display.MovieClip;
import flash.events.Event;

[Code].....

I've tried waiting for the swf to finish loading

View 5 Replies

ActionScript 3.0 :: Controlling A Movieclip Timeline

Sep 3, 2011

I have buttons that load movie clips when you mouse over them and unload the movie clips when you mouse out.[code]the problem is that the movie clips aren't necessarily playing from the beginning when you mouse over, since their timeline is independent.How can i specify that I want to add the instance of the movie clip to play from frame 1.I've tried using the gotoAndPlay method with the frame number/ label in parenthesis afterwards and got an error message..I've looked through multiple tutorials on controlling symbols using AS, and i still can't get this to 'click' for me.[code]

View 3 Replies

ActionScript 2.0 :: Controlling Timeline From Button Name

Aug 2, 2004

I have a huge timeline with photos, each photo on a different frame, and several buttons, one for each picture on the first frame. My idea is to make a unique action for the buttons that tells the timeline to go to the frame number that is the same as the button instance name.

View 1 Replies

ActionScript 3.0 :: Controlling A Movieclips Timeline From Within Itself?

May 14, 2010

How do I control the timeline from a movieclip from within itself?I made a menubutton for a school assignment. To make it, I created a movieclip of the button's graphic, with on the second frame the button again but with the menu open (haven't added anything in it yet).Opening the menu is as easy as

Code:
menu_mc.addEventListener(MouseEvent.CLICK,openMenu);
function openMenu(evt:Event):void{

[code].....

View 4 Replies

ActionScript 3.0 :: Controlling Timeline Of An Instance?

Apr 4, 2011

have a MovieClip that's called 'enemy1'. It is using a class called 'Enemy'. Is it possible to control my enemy1 MovieClip's timeline from the Enemy class?

For example I want to run an if check and see if current frame inside my MovieClip is currently 15. (I have animation inside my MovieClips)

When I do something like this inside Enemy.as:

Code:
if(this.currentFrame == 15)
{
this.stop();
}

I get error messages like: Line 271119: Access of possibly undefined property currentFrame through a reference with static type Enemy. Line 291061: Call to a possibly undefined method stop through a reference with static type Enemy.

View 9 Replies







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