IDE :: Sine Waves And Stuff?

Aug 4, 2009

I have a specific request or a general pondering really.I know you can create a sine wave type thing with as, could you then perhaps create movie clips, letter by letter that would move along and up and down on this sine wave?could you then, instead of setting the size and scale of the sine wave have it react to the input levels of a mic.i've been hunting for something that will help for a while and have drawn a blank

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Sine Waves - Create A Wind Variable To Make A Kite Fly

Jul 17, 2009

With Keith Peter's "Actionscript 3.0 Animation" book it's dead easy to make one that oscillates smoothly between two fixed values but I need one that varies it's oscillation randomly (within reason of course). Imagine the teeth of a saw, up-down-up-down-up-down, very dull. What I want is more like a range of mountains, the same smooth change in height but less regular.

View 8 Replies

ActionScript 3.0 :: Rotating Stuff Around Other Stuff?

Jun 29, 2011

So what I'm looking to do now is to actually get that movie clip - in this case an arrow -to rotate around another object - a ship - at a radius of 150 pixels and facing the mouse.This basically means to get the arrow to follow where the mouse goes around the ship - limited by the 150 pixel radius circle it can follow.p.s. This is the code so far:

ActionScript Code:
theArrow.x = theShip.x
theArrow.y = theShip.y

[code].....

View 4 Replies

ActionScript 3.0 :: How To Create Transverse Waves

May 31, 2011

How to create transverse waves using flash ActionScript3?

View 1 Replies

ActionScript 3.0 :: Converting Sound To Info (Numbers To Draw Waves)

May 20, 2009

I'm working a project for school in which I'm using the sound spectrum. Only problem is, I only know Action Script 2, which does not use it. I'm currently using this code to create sound waves and it works fine.

var url:String = "[URL]";
var request:URLRequest = new URLRequest(url);
var s:Sound = new Sound();
s.addEventListener(Event.COMPLETE, completeHandler);
s.load(request);
var song:SoundChannel = s.play();
[Code] .....

How to turn the sound into numbers (which are then usually used to draw waves).

View 5 Replies

ActionScript 2.0 :: Create Some Letter Effects Like Waves / Cascades / Ripple

Jun 5, 2007

I'm trying to create some letter effects like waves, cascades, ripple etc.I saw these effects years ago in the old Flash MX/AS1 but I need to create them in AS2.

View 1 Replies

ActionScript 2.0 :: [FMX] Create Those Antenna Waves As In Making Alpha Go To 10% Or So In A Continuous Loop?

Jun 25, 2003

posting after a long while, so i thought i'd actually follow the rules for posting,.. I am trying to get this waves thing done, here is the sketch [URL]I am trying to create those antenna waves as in making alpha go to 10% or so in a continuous loop....

View 3 Replies

ActionScript 2.0 :: Move On Random Sine Wave?

Jun 30, 2010

I want to make a movieclip move on random sine wave. (sine path)I m trying to do this for a week and cant get it good.I want to make the curves random. and acceleration too.(it will be a fish like character swimming)Like as in this game : http:[url]..........(the small character which swim and move smoothly)this is the portion of code im using now.

var tempEnemy:MovieClip = _root.attachMovie("enemy1","enemy_1,1);
tempEnemy._x = 500;
tempEnemy._y = 0;[code]..........

View 1 Replies

ActionScript 3.0 :: Create A Sine Wave Using Flash?

Jun 1, 2011

how to create a sine wave using flash as3?and how to add changes to the wave based on changing frequency and wavelength using a slider.

View 2 Replies

ActionScript 2.0 :: Sine Wave Picture Effect?

Jun 11, 2004

how do i make this sine wave picture effect ,wave on the horizontal insted of the vertical

)
( vertical as it is now
)

[code]....

View 11 Replies

ActionScript 2.0 :: Sine Wave/blob Effect?

Jun 8, 2006

I have a logo that I made in Fireworks, and it looks decent, but I was wondering if anyone could mimic it with movement. For example, if someone could use actionscript to make it "wiggle" or wave like a flag in the wind, that would be awesome.

Notice how the blue line itself stays at about the same thickness (it barely starts getting thicker), but the shading around it thickens as it goes more and more to the right.

Here's the image (ignore the text):

View 1 Replies

ActionScript 3.0 :: Generating A Sine Wave And Playing It As A Sound?

Jul 10, 2009

I'm generating a sine wave and playing it as a sound. But When I call  SoundMixer.StopAll() it's causing a click when sounds stops. I think its because it's cutting the sound off in the middle of the wave, I was wondering of a way to make the sine wave slowly ripple out before i stop it. Is there already functions to do this in Action Script 3 or is my sine wave function i need to modify here is my code for the wave.
  
function sineWave(event:SampleDataEvent):void {       var sample:Number    for (var i:int=0; i<8192; i++)      {        sample = Math.sin((i+event.position) * ((2 * Math.PI)/44100) * freq); // freq is just any frequency        event.data.writeFloat(sample * .15);        event.data.writeFloat(sample * .15);     }    }

View 8 Replies

Flex :: Move An Object Along A Spline Or Sine Function?

Jan 20, 2011

I am trying to create a similar effect to what is used in CityVille for dropping coins and experience icons, they do a custom move animation and it first moves a little bit up and then down. It looks like it is following a spline or a sine function.

View 2 Replies

Flash :: Moving And Rotating Objects Along A Sine Wave?

May 27, 2011

There are a couple of problems i'm having with this - the first is how to work out how to find where the tip of each sine curve is (ie the frequency) and the second is to work out how to rotate each object so that it slides sideways along the sine wave(note file is 800 x 600)here's my code: CarouselTest.as:

package
{
import com.greensock.easing.Sine;

[code].....

View 1 Replies

ActionScript 3.0 :: Create A Sine Wave With Any Given Angle Between 2 Points?

Jan 24, 2012

As you can tell from the title I am not very good at math ( sigh ).

Is there a way I can create a sine wave with any given angle between 2 points ?

View 3 Replies

ActionScript 2.0 :: Make A Movie Clip Go In A Sine Wave?

Jun 3, 2004

I am sooooooooo lost. I need help in making a movie clip go in a wave motion with only action script. basically I am trying to make a game and I am so lost on how to make the enemy come in and fly in a wave motion from the left to the right in an up and down motion. I thought it would be easy but I must be using the wrong code since my enemy plane is just fly from left to right and not going up and down.

View 8 Replies

ActionScript 2.0 :: [Flash MX] Draw Sine And Other Functions Using The Drawing Api?

Sep 17, 2003

how draw sine and other functions using the drawing api ? so far all my efforts have yielded amazing random designs but not the desired functions.

View 5 Replies

ActionScript 3.0 :: Rotate A Sine Wave To An Arbitrary Angle?

Aug 5, 2011

I want to be able to take a general sine wave y=Math.sin(x) and rotate it around some other angle, so instead of going strictly left-to-right, I'd like to go from, say, the top left corner toward the "center," or from the bottom right to the center, or any other arbitrary angle. Like this: I want to be able to use that wave as a "path" for enemies in a game, but I cannot seem to wrap my head around it. I've tried matrix transformations, but I was missing something there, too, because the origin was wrong.

View 1 Replies

ActionScript 2.0 :: Make A Movie Clip Go In A Sine Wave

Jun 3, 2004

I need help in making a movie clip go in a wave motion with only action script. basically I am trying to make a game and I am so lost on how to make the enemy come in and fly in a wave motion from the left to the right in an up and down motion.I thought it would be easy but I must be using the wrong code since my enemy plane is just fly from left to right and not going up and down.

View 8 Replies

ActionScript 2.0 :: Dynamic Text On Sine Curve Path?

Mar 16, 2005

Basically I need to have text from a dynamic/input textfield to appear in a wavy line pattern automatically. Now I'm pretty sure it can be done fairly easily with the right knowledge but I unfortunately lack that knowledge.

The idea I had was that a string is broken into individual letters and each is placed along a sine curve of a set length/width - the string/characters are repeated if necessary in order that the full width of the curve is covered. Also note that the text need not be rotated to match the lines, only _x and _y values need to be adjusted.

I have to produce a design with dynamic text similar to this (my ascii art skills are crap so please imaging that these are wavy lines rather than zig zags):

/////////////////
/////////////////
/////////////////
/////////////////
/////////////////

I have nothing to offer apart from the satisfaction of producing a wavy text pattern and from knowing that you have saved me from a breakdown.

View 3 Replies

ActionScript 2.0 :: Create A Loop Which Generates A Single Series Of Sine Results Ranging From 0 To 1 Based On 100 Loops?

Jan 20, 2006

I'm trying to create a loop which generates a single series of sine results ranging from 0 to 1 based on 100 loops ( ie 0 ,0.011 ,0.1111........up to 1 in a single run)The results I want start at 0 and increment in a series up to 1 and then stop. I suppose this would be one half of a sine wave I have tried the following but it goes from 0 to 1 ,1 to 0 , 0 to 1 etc whereas I want a single straight run of 100 values from 0 to 1

I tried :

for(var i:Number=0;i<=100;i++){
trace((0.5*Math.sin(i)) + 0.5);
}

This does not work.

View 1 Replies

ActionScript 3.0 :: Create Sine Wave And Its Speed Will Change Depends On Change In Freequency And Wavelength

Jun 3, 2011

i want to create a sine wave and its speed will change depends on change in freequency and wavelength . and stop the wave movement when we click stop button.[code]

View 0 Replies

Get Stuff To Stop When Using ENTER_FRAME?

Feb 6, 2010

I have a one-frame .fla with script on one layer and a movie clip on another. The movie clip has an instance name of "titleBar," which moves from left to right using dynamic tweening.The tween code moves it from an X position of 200 to a X position of 820.Then I have a function called "xChange," which waits for titleBar's X value to be 820. Once it does, I'd eventually want to load an external swf but I'm just running a trace for now.Again, Here's the code.

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;

[code]....

View 4 Replies

ActionScript 3.0 :: XML And Dynamic Stuff In AS3

Apr 28, 2010

I've generated sample xml file:[code]This works ok. What the code is doing - its assigning each node of the xml file to one of the boxes in the fla file.My question is if we can assign to each of the node one box dynamicly? So bassicaly if i will have 5 nodes the code will -draw???- a box and putted the name of the node in the box.And so on, for each of the nodes? And if i will have 6 nodes, then it will draw 6 boxes and so on..

View 6 Replies

ActionScript 2.0 :: How To Do Stuff In Flash

Oct 27, 2005

I know how to do stuff in flash. Ok, so here's what I want to know..on this guessing game, I want the person to enter in their 1 - 3 digit guess, the the number they need to guess is 577 (later I want to make this random whenever they go to play it). If they guess under 577, I have a box to say their guess is too low. If they guess over 577, it says their guess is too high. However, I am not sure how to make it so that what they put in the text box, it takes it as the new variable. I know this may sound confusing, but here is the .fla file.URL...

View 5 Replies

IDE :: Return Scope Stuff?

Nov 16, 2009

I have a function, and inside of it is a LoadVars object to load a variable. The problem is that I need the outer function to return the results of the LoadVars' return.

View 2 Replies

ActionScript 3.0 :: How To Remove Stuff In Flex

Oct 9, 2009

but this is my first time using flex, and I am kindof confused on how to remove stuff.Say I use <mx:Panel title="test panel"></mx:Panel> to add a panel, alongwith some textfields and such to create form.....now how do I remove all this entirely and create something new like a tabbed navigator?

View 1 Replies

ActionScript 3.0 :: Accessing Stuff In A Child Swf?

Jul 20, 2009

I have a swf named home.swf  on the stage of home.swf I've added a Sprite with this code
var onStage:bc_sprite = new bc_sprite();addChild(onStage);another swf called menu.swf  loads home.swf into a loader which is added to a MovieClip named currentPage which is on the stage thusly.currentPage.addChild(swfLoader);

View 5 Replies

ActionScript 3.0 :: Loading Stuff From External SWF

Nov 14, 2009

Have a little homepage, where I load some of the stuff from external swf's. But I have some buttons which is gonna be on top of the external load content, but when I export it the buttons doesn't appear anymore. Underneath I have some AS which I use to load the the external content, and to control my buttons.

stage.addEventListener(MouseEvent.CLICK, clickHandler_contact);
function clickHandler_contact(event:MouseEvent):void{
if (event.target.name!=null){
switch(event.target.name) {
case "contact_back_btn": gotoAndStop("index");
[Code] .....

View 9 Replies

Actionscript 3 :: Get XMLList Stuff Dynamically?

Jul 17, 2010

I've a XMLList like:

<parent>
<one>
<child id="1" />
<child id="2" />

[Code]....

Where the _loc_1 would be "one" or "two". Is this possible with the getDefinitionByName() to do this?

View 1 Replies







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