ActionScript 2.0 :: Movement In A Figure 8 / Infinity?

May 27, 2004

I'm trying to write a script that will move a mc in a figure 8, kinda like the way that water flows from side to side inside a container... flowing in one direction and rising, then hitting the wall and ebbing as it flows back the other way... slowing down over time To say that I'm not that mathematically inclined is an understatement, but i think it can be done using trigonometry, like sin and cos...??

I found this page on here - [URL]- this is similar to what i want to do, except when the clip passes the center to move away in a figure eight and then back, instead of just going around in a circle. And i think i want the mc to come to rest in the middle over time, so the figure eight is gradually reducing in size.

There's also a method that looks like it could be adapted to do what i want using elasticity -[URL], bottom example. i've put up a page on my site with a bit of a visual representation of what i want it to do:[URL]

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Separating Three-figure Integer Into 3 Single Figure Integers?

Apr 26, 2011

Is there anyway of changing an integer of 100, into a 1, 0 and another 0?In context, I've got game with a score. Every time you pick up a coin, it adds 10 to the score, there's 20 coins (so a max score of 200 possible). I've got numbers 0-9 as seperate images. The score currently is a single three digit integer, and I need it to be represented as three single digit integers so I can assign those to an image.

View 4 Replies

ActionScript 2.0 :: Calculation Of Infinity?

Dec 28, 2002

I have a actionscript calculation that initially calculates a value of infinity. Is there a "if" statement you can perform until the calculation actually calculates a real number (0-100)?

View 14 Replies

ActionScript 2.0 :: Way To Display Infinity Symbol

Nov 24, 2009

I have a counter (number) to display. When the counter exceeds limit (counter > 100) it should display "infinity" symbol.How to do this in AS2 ?

View 2 Replies

ActionScript 2.0 :: Rotate A Clip Into Infinity?

Jul 22, 2003

i need to rotate a clip into infinity... what are the actionscripts needed?

View 3 Replies

ActionScript 3.0 :: Infinity Paradox - Showing Output NaN

May 3, 2011

ActionScript Code:
if(Number.POSITIVE_INFINITY == Number.POSITIVE_INFINITY){
trace(Number.POSITIVE_INFINITY/Number.POSITIVE_INFINITY);
} if(5 == 5){
trace(5/5);
}

Outputs:
NaN
1

View 4 Replies

ActionScript 3.0 :: Flash Preloader Returns Infinity

Mar 16, 2011

i can test in flash and load complete 100% but in my website can't load

and return infinity %

this is my code

[Code].....

View 1 Replies

ActionScript 2.0 :: Play First Frame As Intro Then Loop Second One (to Infinity)

Mar 6, 2009

I made a 2 frame flash. The first frame has a container that holds the movie clip, masks, audio & transitions for the intro. This frame I only want to play once. Then I want it to advance to frame 2 upon completion. Frame two is a leader/score board that will hold score tallies (it is linked to a TXT file that is linked to an ASP, which has not been completed yet), and therefore, it needs to loop into infinity. When I have the FLA open and I press CTL + Enter the intro plays then automatically advanced to the 2nd frame which loops to infinity.

(This is perfect -- this is how I want it to perform). When I go to the folder where the SWF and EXE are published, and I double clidk to open either one of them up, the intro keeps looping and never advances to the 2nd frame. I have to manually press next frame on the pull down menu -- and that is not feasible since this leaderboard will inevitably end up on a big monitor with an audience. Here is the link to the file: [URL].

View 3 Replies

ActionScript 3.0 :: Lower Boundary Doesn't Work / Panel Continues To Scroll Into Infinity

Aug 12, 2009

Trying to recode a scrolling thumbnail panel I found as an example of the web into AS3 mostly for educational purposes but getting stuck in a couple of places. The panel works but my problems are:

1) lower boundary doesn't work, panel continues to scroll into infinity.

2) as it is written, the mouse event that activates the scrolling is MOUSE_MOVE, which is kind of a pain as the scrolling is kind of "jerky", I have tried to make it an MOUSE_OVER event, but I think it may be conflicting with the prior MOUSE_OVER event.[code]

View 0 Replies

ActionScript 3.0 :: Flex Mindmap Tooltips - Set HideDelay To Infinity So The Tooltips Don't Disappear?

Mar 18, 2010

I am trying to adapt Ruben Sweringa's Flex-based interactive mindmap [URL] and I've got most of it sussed out. I'm just having a little difficulty with the tooltips and I was hoping someone/some people might be willing to help me out or offer some guidance on these three things:

1) How and where do I set hideDelay to Infinity so the tooltips don't disappear? I think that because Ruben's model uses FXCToolTip and FXCHTMLToolTip to extend ToolTip and ToolTipManager, if I try to modify ToolTipManager.hideDelay in the mxml, the value is ignored.

2) Is there a way to enable HTML formatting in the tool tips? FXCHTMLToolTip looks like it's supposed to read this code, but whenever I add such coding, Flex says "Error: XML is invalid" and the whole mindmap fails.

[Code]...

View 7 Replies

ActionScript 2.0 :: Circular Movement To Linear Movement - Carousel To Conveyer Belt?

Jul 9, 2010

I've been playing with carousel code, and was wondering how to change it from circular animation (carousel) to left/right linear (conveyer belt) style animation, how to change the mover code and 't.angle = i * ((Math.PI*2)/numOfItems);'

[Code]....

View 1 Replies

ActionScript 3.0 :: Can't Even Figure Out How To Learn 3.0

Jun 21, 2009

I had a complete interactive application built in ActionScript 2.0, and now need to revise and update it -- which means converting the old code to 3.0. The first scene is a preloader for the entire application that loads and intro animation before launching the application. I went to the help section figuring that once I had some actionScript in the file, I could delete and experiment with the code until I began to understand (I did take a semester long course in Java, but not much has been retained). If you couldn't tell already, I'm a designer and not a programmer.
 
I copied the ActionScript from the help section, and pasted it into my Flash document. I went to test movie and got the following error message: "1037: Packages cannot be nested" I can't even figure out what that means! I have nothing else in my document.

[Code]...

View 5 Replies

ActionScript 2.0 :: Can't For The Life Of Figure Out The Formula?

Oct 19, 2009

I have a little math problem with a game I'm making, and I can't for the life of me figure out the formula needed to accomplish something..Say, there's a sniping game, and a BIG image that must scroll from left to right according to the mouse movement.

Something like this:[URL]... In that example, the scene is 550 pixels wide, and the image is 1100, exactly two times the scene, so the formula is kinda easy..

[Code]...

the center of the image would be at x 1500, way over to the right of the scene, outside it, but it would fit inside the screen, like this (the blue square represents the real size of the scene):[URL]..Then when the mouse is at the far right side, that is 550 x, the image center should be at -950 x, like this:[URL]...

View 3 Replies

Cannot Figure Out How To Make Buttons Work?

Nov 29, 2009

I have a 3 screen project and there are two buttons on each screen that have to be able to enable the user to jump to the appropriate screens when clicked on. I am totally new to flash and I have tried off and on for a couple weeks to figure this out in various books and online. I just can't figure out what I'm doing wrong.

View 1 Replies

ActionScript 3.0 :: Can't Figure Child Is Undefined?

Aug 17, 2011

I'm trying to remove a child from the display list from a different class than I added it in but it keeps coming up that the parameter child is null. I traced it and it says undefined, but it is still on the stage.Here's what it looks like in the class where I added it:

[Code]...

View 3 Replies

Flash :: Fill Figure With JSFL?

Feb 14, 2010

I draw figure in Flsh ID with JSFL methods, for example

// draw rectangle
doc.addNewLine({x:0, y:0}, {x:2000, y:0});
doc.addNewLine({x:2000, y:0}, {x:2000, y:500});[code]....

how can I fill it, because this way doesn't work doc.setFillColor('#0000ff');

View 1 Replies

Flash :: FMS Server And How Does It Figure Into Requirements

May 20, 2010

I had a project requirement which was to stream video to people across the globe (max 100 simultaneous connections) and i was under the impression that a single HTTP server is sufficient. However, a friend of mine said i will have to use an FMS server. How does this basically work ?

If i record video from my webcam and store it for future consumption, where will it be stored ? On my site server ? or on the FMS server What is so special about an FMS server ? Can i turn any server into an FMS server I read somewhere that streaming video via my own server does not allow the user to jump to a particular part in a video. Is this true If the requirement is to stream live video to people, how does this work ? Does the video from the source (webcam) get transferred to my server and then to the FMS server or directly to the FMS server I'm pretty confused about the FMS server concept and some articles or links would really help too, however your expert answers will be invaluable

View 1 Replies

Figure Down The Class Structure Of Flex?

Jun 10, 2011

I want to figure down the class structure of flex. Where can i get the assumption diagram of Flex framework?

View 1 Replies

ActionScript 3.0 :: Figure Out A Circular Alignment?

Jul 28, 2009

I am currently trying to figure out a circular alignment problem. so if you look at the following code, it works perfect without the positioning section. All the data is being loaded from a database and when the user clicks on the mc which houses this code in its second frame, it accesses the database and if there are more rows in the database whose owner column matches the name of the clip it will add more circles to the stage and then use other data received from the database to edit it such as its colour. But what I am also trying to do is align the newly added circles in a circular pattern around the mc (when clicked the mc will be centred on the stage.

[Code]...

View 3 Replies

ActionScript 2.0 :: Matching A Figure And Remove?

Feb 7, 2006

I am trying to create a game where random figures are revealed. These random figures relate to a list of monetary amounts on the same page. As a number is revealed the corrisponding amount on the page is then deleted, hopefully with a bit of fade, movement, jazzed up a little.I cannot work out a code in order to do it. The code below is how I randomise the hidden amounts via a button.

on (release) {
deck0 = "1p";
deck1 = "10p";
deck2 = "50p";

[code]....

The random amounts are hidden behind a button, when clicked reveals that amout.

View 1 Replies

ActionScript 2.0 :: Matrix To Tween From Figure 1 To 2?

Dec 4, 2006

Don't laugh... [URL] Should I use the Matrix to tween from figure 1 to 2 via ActionScript?

View 3 Replies

ActionScript 3.0 :: Button Code Cant Figure It Out?

Oct 12, 2010

ok so all i want to do is have a simple button blinking back n forth, on rollover, it stops blinking, and on roll out, it starts again

[Code]...

im sure its stupid but hmmm im still learning this PAIN as3! edit* on top where it says "playit" theres no space in the word...for some reason i cant seem to remove it...

View 1 Replies

ActionScript 2.0 :: Flowing Mc Movement Opposite Of Mouse Movement

Feb 12, 2003

I have a mc (fStrip) which looks like a piece of filmstrip with thumbnail images in it. I want this mc to move when the users mouse is positioned over it, but I only want it to move only along it's x-axis and in a direction opposite that of the mouse. And I want it to move or flow smoothly.

I've been trying to figure this out (see my lame attempt below) but without much luck.

onClipEvent (mouseMove) {
buffer=20 //movement buffer
mousePos=_root.fStrip._xmouse //store mouse position
if (mymouse!=_root.fStrip._xmouse){ //if the mouse has moved

[Code].....

View 3 Replies

ActionScript 2.0 :: Ants Movement (based On Snow Movement)?

Jun 22, 2004

I wish to get the effect of ants scuttering across the screen or up a tree, I have not decided which direction yet. I started with the tutorial code for the snow effect from kirupa, and changed it around to fit the little vector ant I created. The way I have it now looks pretty good, but the movement is a little too fluid. They obviously move in sinusoidal paths bc the code tells them to. I have about 20 copies of the main obj, and they're all a little different in size and specs (speed, transparency, etc) but what I was wondering was if there is any way I can change the code to make it a little more hectic, or erratic, not so fluid. If there is no way of doing so, it looks pretty good right now. If there is, however, I think it could look awesome. here's the code I'm using for the object.

onClipEvent (load) {
//stage
movieWidth = 850;
movieHeight = 50;

[code]....

View 5 Replies

ActionScript 1/2 :: Can't Figure Out - Put A Login Form On Site?

Jan 17, 2010

I have a site that I created in flash and I need to add a login to a site caleld sharefile.  This form works correctly in html but I can't get it to work in my flash file.Here is the code snippet:

[Code]...

I have the input text ready with one input box labeled username and the other labeled password in flash and on the submit button I have the script: When I publish the file it takes me to the right website but it does not log me in.  It just acts as if I just put a regular link to the sharefile login page.  I figured this was too simple. 

View 1 Replies

ActionScript 3.0 :: TypeError: Error #1009: Can't Figure Out Getting

Aug 8, 2011

i'm getting the above error, Error #1009: Cannot access a property or method of a null object reference.and cant figure out why I'm getting it. I'm getting it in the last line of the following function:

[Code]...
 
when I trace the (_bigTurrShot._missile.bitmap) I get [object bitmap] so it's not coming up as null when it is traced. Everything seems to be correct in the other code I have for it,

View 9 Replies

Figure Out The Encoding Of The Below Post Response Text?

Dec 16, 2009

I am trying to figure out the encoding of the below post response text. I thought it was amf, but not I am not sure. Please help me identify the encoding type and if you may, show me how to decode the response.

[Code]...

View 1 Replies

Flex :: Tool To Figure Out Memory Occupies By Swf?

Oct 18, 2010

Well i am not asking about the tool to compress or measure the size of swf file , i need a tool that can show me how many bytes or mbs, my swf is using ??

View 1 Replies

ActionScript 3.0 :: Getting A Couple 1084 Errors Can't Figure Out?

Jun 28, 2010

am getting a couple 1084 errors I can't figure out:

THE CODE:
//listener for the ProgressEvent when a download of the new
version is in progress

[code]....

View 2 Replies

ActionScript 3.0 :: Figure Out Which Type Of Parameter To Pass In?

Aug 16, 2010

Code:
<mx:Script>
public function dtFunc(hd:HitData):String {
return hd.item.Month + ":<B>$" +
hd.item.Profit + "</B>";
}
</mx:Script>

[Code]...

My dataTipFunction does not define what data type to pass in. How does flex automatically know it's a HitData type? Is there any other possible data type that actionscript accepts?

View 1 Replies







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