ActionScript 3.0 :: Setting X Coordinates To Move Mask (Fast And Slow)

Jan 28, 2010

I have a small mask that I need to animate across the stage in response to clicking various buttons. It has to go a different distance each time depending on which button is clicked along the x axis. I can get at the starting and ending x co-ordinates. I need to develop a set of x coordinates so that the mask starts moving fast and slows down as it gets nearer - kind of like the easing effect. I figured using some sort of simple 1/x^2 expression and have spent an hour or so fiddling in excel. Trouble is its a LONG TIME since I did maths, and I can't remember what formula to use. Have tried google with "parabola", "simple curves" etc.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Slow And Fast Motion

Nov 24, 2010

I need flash player with can play flash video in slow and fast motion. Is it possible to use only ActionScript to build this one?

View 5 Replies

ActionScript 1/2 :: Hittest Approaching Fast OK Slow Not OK?

Apr 28, 2009

The player chooses the right figure(A) and hits another figure(B) and then a movieclip should start to play.What happens is that if figure A is moved slowly to B the hittest seems to be not noticed - nothing happens.If the movement is normally or fast it works and the movieclip starts to play.

View 9 Replies

Inconsistent (Fast Or Slow) Playback In Some Browsers?

Jan 16, 2009

Here's the problem: In some browsers, the navigation bar at the top works how I want it to. The "slider" moves over the various buttons rapidly. This is the case for Firefox and Safari on my PC. In others, namely Internet Explorer on my PC, or Firefox on my Mac, the "slider" moves much slower than I would like. Check it out. It might go fast for you, it might go slow.I've programmed before, in other languages, and I have found Flash to be challenging but not impossible. One thing you'll notice right away is that my code is very very messy. I haven't got all the efficient ways down pat just yet.At any rate, here's the entirety of the code involved:

Code: Select all////////////// BEGIN CODE ////////////////////////
stop();
var mcButtons:MovieClip;
var vLmc:URLRequest;[code]............

View 3 Replies

ActionScript 3.0 :: Flash SLOW In Chrome And Fast In Other Browsers?

Feb 18, 2011

The sfw goes like lightening in explorar (yes) and in firefox and like a tortoise in chrome. Do I need to download a plugin for chrome or is there a problem with flash and chrome. It's important as I am about to release an important program in schools.

View 3 Replies

ActionScript 2.0 :: Fast / Slow Buttons For Frame Rate Speed

Feb 19, 2004

I'm trying to create a button that when pressed, will increase the frame rate speed, and when clicked again, will slow it back down. Is this possible and how it can be accomplished?

View 1 Replies

ActionScript 3 :: Playing Slow Motion / Fast Forward And Rewind On Audio

Mar 16, 2012

I googled "as3 audio slow motion fast forward rewind" and found only this of relevance: playing slow motion, fast forward , rewind in a video player in flash video player, which briefly talks about how to fast forward and rewind a video as well as two options for doing slow motion on video. I only need audio, though. I think I might be able to do fast forward and rewind by stopping the SoundChannel and then playing the sound at a different position using addEventListener (Event.ENTER_FRAME, ~), but I'm completely lost on how to apply the advice regarding slow motion. I use Flash CS5.5 and all the sounds I want to operate on are already in the library.

View 1 Replies

ActionScript 2.0 :: Sliding Menu - Speed Slow At Center And Fast At Sides

Nov 12, 2003

I am trying to make a sliding menu whose speed is responsive to _xmouse (slow at the center and fast at the sides...) does it need to exist in two pieces? The problem is that it seems impossible to define 0(zero) as anything but just that...

View 3 Replies

ActionScript 3.0 :: Erase Mask Running Slow On IOS

Jul 27, 2011

I'm trying to get this effect [url].. on a iPad app I'm working on in Flash. The thing is it is running very slow. Is their a way I can speed up this script?[code]...

View 1 Replies

ActionScript 3.0 :: AIR Erase Mask - Running Slow On IOS

Jul 27, 2011

I'm using the script below to erase an image from the screen. On an iPad. On my computer it's running fine. On the iPad it's very slow.

[Code]...

View 1 Replies

ActionScript 3.0 :: Game App Runs Fast In Simple Loader And Slow In Other Loader?

Apr 28, 2010

I'm feeling a bit low now as I have been suffering this for months. A simple loader loads my simple game and runs VERY FAST on even slow pcs BUT when I build this other loader, it goes quite slowly and I don't know where the app is going wrong. WHERE is the processing consumptoin coming from out of my app.

[Code]...

View 1 Replies

ActionScript 3.0 :: Buttons Freaking Out And Move Very Fast Up And Down

Mar 25, 2009

I have four buttons across the bottom of my scene. When hovered, the buttons "should" animate upwards to reveal more of the button that is hidden. It should stay there until you mouse-out then it should animate to its original position. My problem is it seems that the buttons active area moves with the up and downward animation making it freak out and move very fast up and down as if it is being told to animate back down then triggered to animate back up at the same time. So it looks very bad and unusable. I'm not really sure why it's doing this. It's a little hard to explain so here's a url to download my FLA.

[Code]....

View 5 Replies

ActionScript 2.0 :: If Click Two Buttons Fast Enough They Both Move ?

Nov 13, 2003

when i click some button it move and stays there, until i click another one, so its working fine..but if you click two buttons fast enough they both move ? how can i manage to stop this?

View 2 Replies

Flash - How Does Google Video Allow For Slow Motion And Fast Motion

Oct 10, 2010

I have been searching far and wide for a solution on how to offer slow motion and fast motion options for users that upload video to my webstie. There is an implementation on Google Video that has exactly what I am looking for: the option to speed up or slow down the video and continue to play the audio. The screenshot is below. I know that Flowplayer has an option to slow down or speed up video when implemented with Wowza server. However, when using that approach, there is no sound.

I have also seen the option from Enounce called MySpeed that allows video to be slowed or quickened, but this requires a browser plugin which is too much of a barrier for our users. How does Google do it? How can you add an option to a flash player to slow down or speed up video?Here is a screen shot. You can see the option to change the speed of the video to 1.5x. It also has options to go to 0.5x, 1.25x, 1.5x, 1.75x, 2.0x, 2.5x, and 3.0x.

View 1 Replies

ActionScript 3.0 :: Setting Module X And Y Coordinates

Mar 12, 2010

I'm pretty baffled by the lack of information I've found about this and even more baffled that it doesn't look like there's support for this functionality.

I'm building a custom module loader and I want to send x, y, width, height coordinates for each module I'm loading so I can dynamically place modules where I want them.

I have my moduleReadyHandler as such but when I set the x, y coords the modules placement is unaffected

Code:
private function moduleReadyHandler(event:ModuleEvent):void
{
child = module.factory.create() as DisplayObject;

[Code]....

View 1 Replies

Professional :: Setting X And Y Coordinates On A Sprite?

Feb 28, 2011

I need tp set the y coordinate on a sprite's rightmost coordinate. That is, usually when we set the y coordinate that's the lefttmost side of the sprite, and the sprite starts there and goes to the right of that point. I need to reverse that. The reason is because I'm putting text into it and it's going to the rightmost side of a box, so it can't overflow to the right.

View 2 Replies

ActionScript 3.0 :: Setting TextField's 'text' Property Slow?

Apr 1, 2010

Short version:Setting a TextField's 'text' property seems to be quite slow. Any way to optimize this?Long version:For a video player I'm working on, I've rewriting a bunch of code I've written in the past and optimizing where I can, and I've noticed something a bit strange.I have a time readout (the typical "00:00 / 01:00" thing) that I'm updating every frame, and it seems to be gobbling up FPS (I'm using mrdoob's great little Stats class for monitoring).The thread to make the call is a bit heavy -- involving a dispatched custom event from the FLVPlayer class (with the current netStream.time as a property) onEnterFrame, which is passed up 2 parents and then back down via a function call -- but I've isolated each step along the way and everything is totally fine (running at or close to 30fps) right up until that very last call where I set the TextField.text property, which results in about a 10fps drop.

If I comment out the setting of TextField.text it runs great, but even if I set it to something arbitrary (like currentTime.text = "0") -- bypassing the reformatting math -- it just tanks.Anyway, anyone know if there's something I can do about this? I've considered using a Timer set to 100m instead of onEnterFrame, but I actually assumed the overhead would come from the dispatching of and listening to the event as well as the reformatting of the time, but *not* the very last step of setting the .text property, which is something I can't avoid whether I use a Timer or onEnterFrame.

View 1 Replies

ActionScript 3 :: Ball Physics (Fast Move And Small Objects On Path)

Mar 31, 2012

After read a lot about ball physics, watch some examples and few days of trying making pinball with bitmaps, I use simple (easy to work with) and fast performance Physics AS3 engine for bitmaps [URL] but still cant fix problem: if ball is moving too fast and object on path is too small, there will be no collision detection (code works perfect only with bigger objects or if ball is moving slower). I am not good at physics and maths. Here is function code which make physics for ball on every frame rate (but maybe its better to change it to setTimeout):

function showFrame(e:Event) // onEnterFrame{
var collisions:Array = collisionlist.checkCollisions();
if(collisions.length) // if collision{
var collision:Object = collisions[0]; // get collision information
var angle:Number = collision.angle; // get collision angle
[Code] .....

View 2 Replies

ActionScript 2.0 :: Moving Menu - Setting The Mc On The Initial X And Y Coordinates?

Mar 21, 2004

I m having some problems with my menu I m working on.Its weird cus I d already have done the same menu once and worked fine..The selector mark is suposed to "mark" the selection on the menu after a selection is pressed. But I m having problems with the X and y coordinates and scales of the MC and when I click on the option,the MC gets smaller and then bigger to the size I want.Its suposed change scale and position but its not working like it is suposed to work.I m not sure either if I m setting the Mc on the initial x and y coordinates.

View 4 Replies

ActionScript 3.0 :: Breakout Game - Make The Ball Move Fast Without Sacrificing The Accurate Detection Of Collisions?

Oct 27, 2010

I am making a breakout type game where you bounce a ball around and it hits & breaks blocks.The issue im having is with handling the ball after a collision is detected.Every frame the ball checks four points on its surface to see if they are colliding with any of the blocks. The problem occurs when the ball starts moving fast. The ball's radius is 7 pixels. If it is moving upwards at higher than7 px/ frame, then the ball might end up half way into one of the blocks.

In that case the ball detects a collision on its top AND on its side (which is bad -- If the ball is travelling upwards it should detect the collision at the top of the ball)how I could fix this so that I can make the ball move fast without sacrificing the accurate detection of collisions??

View 5 Replies

ActionScript 3.0 :: Using Coordinates To Move MovieClips?

Apr 24, 2011

I've stored a number of x and y coordinates within a 2D array. I would like to use these coordinates to move MovieClip across the stage. I haven't been able to find anything on this all day...

View 3 Replies

ActionScript 2.0 :: Move A Graphic By Coordinates?

Mar 10, 2010

I'm kind of new in flash. the basics are oke, but now i'm trying to make my own website i found out my limits.[url]...

it works fine, but now i try to expand my content, i realise my start wasn't ideal. I started with a'homescreen' and both screens on the side. made with tweens all the animations, the buttons are programmed with a goto(movieframe).so you click, goto the animation, and after it, you go back to a frame with the new screen-content.

for putting new content on my website i have to change screen itself, the screens around it and the animations around it.

View 2 Replies

ActionScript 2.0 :: How To Move Mouse Over Coordinates

Jul 19, 2004

I am looking to create a menu similar to the one found here:All I need to know is how do you get the bar on this site the white rectangle) to go to a specific x-axis location on mouse over?

View 3 Replies

ActionScript 2.0 :: Move An Object To X And Y Coordinates?

Jun 27, 2005

What is a good function to simply move an object to X and Y coordinates?I can find is actionscript that does movement plus other animations, like rotate and scale.I just want to let the user drag an object, but when they release it, that object moves back to certain X and Y coordiantes.

View 1 Replies

Flash - Setting Mask For Sprite?

Sep 12, 2010

So i have this sprite that is say arbitrarily 100 x 100 which is added to the stage. Now when content is added to this sprite the sprite expands automatically as it should. I dont want this to happen, what i want is to set a defined boundary i.e. 100 x 100, if too much content is added i can be able to scroll it. My problem is i cannot add a mask to the stage like the conventional way because i have many other boxes like this that vary in dimensions and number. I found a way i can do this but its very inefficient, what i did is i created a movieclip filled it say 100x100 with some color then instantiated it. Next i added the sprite and if content overlaps it wont be visible, only 100x100. I sort of stumbled on this and dont know exactly why this works. Any help is well appreciated, thank you.

[code]...

View 1 Replies

Flex :: Setting MX Image As Mask On Graphic Object?

Feb 22, 2011

I'm having trouble setting up a Graphic object (a solid filled rectangle) to be masked with an image that gets loaded at runtime. I've managed to get it to work with the following code:

<?xml version="1.0"?>
<s:Application xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete="init()"
[Code] .....

Setting the PNG inside the <s:mask> makes the stage render nothing, while adding the mask programmatically in the init() method causes correct behaviour. It took me quite a while to figure this out and I'd like to understand what it is that I'm doing incorrectly in the MXML approach, as that seems to be what is being done in the Cookbook (other than me using an Image and the example using a Group wrapped BitmapImage).

View 1 Replies

Flash :: Items Disappear When Setting A Mask Upon Their Container?

Aug 8, 2011

I dinamically build a menu: this menu is made up of two nested MovieClips:

externalContainer_mc;
itemsContainer_mc (inside externalContainer_mc at 0,0);

itemsContainer loads a dinamic number of MenuItems: they are library objects (extending the MovieClip class).Anything works just fine, but if, when anything is loaded, I put a mask (itemsContainer_mc.mask=my_mask) upon itemsContainer, every MenuItem disappears AND it isn't even clickable anymore. What happens?

View 3 Replies

Actionscript :: Resize, Move, Export Coordinates Of Objects In Flash?

Jan 19, 2011

How would I place objects in flash, moving and resizing them, etc. and then export coordinates/rotation to a text file or something like that?

View 1 Replies

ActionScript 2.0 :: Menu - Give A Specific _x And _y Coordinates For The Menus To Move At When The Other One Is Clicked

Aug 18, 2004

for a menu i use 3 MCs, when you click one of them, the two others MCs will make place for the 'options' of the clicked menu. What i want to do is give a specific _x and _y coordinates for the menus to move at when the other one is clicked (start and arrival, and have a motion tween between them). see what i mean?

View 4 Replies

ActionScript 3.0 :: Mouse Events Fail To Trigger If Mouse Move Too Fast?

Nov 18, 2009

It has been awhile since I have worked in flash.Right now I am working on something where I would like a panel to disappear when someone mouses off the stage.stage.addEventListener(Event.MOUSE_LEAVE, leaveHandler); It usually works fine but if I move my mouse really fast it doesn't fire. I have also tried the same thing using a custom invisible button that surounds the perimeter of the stage and I have tried ROLL_OVER and MOUSE_OVERand again, if I do it too fast my event doesn't fire (I am using trace)I can't find anything on the net about this - is this typical of flash that if you move your mouse too fast you break it? Do I need to increase my frame rate (I would really rather not because I have perfectly timed animations - I am at 30 frames per second)

View 1 Replies







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