ActionScript 2.0 :: Making A Circle Larger, And Then Smaller

Jun 14, 2002

I want a circle to get large. No problem:

onClipEvent (enterFrame) {
if (_xscyle<200) {
_xscale+=10;
}
}

but now: when the circle has reached the desired size I want him to shrink back to e.g. 150

onClipEvent (enterFrame) {
if (_xscyle>150) {
_xscale-=10;
}
}

I have problems because at a certain time both if-conditions would be fullfilled and nothing happens.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Making Text Larger And Smaller By Buttons

Feb 13, 2007

I want to accomplish this. I want to have two buttons and my piece of text. When the user clicks the plus button the text gets larger. When the user clicks the minus button the text gets smaller.

View 3 Replies

ActionScript 2.0 :: Text Larger Or Smaller?

Jan 16, 2005

How i can to, knowledge, my text is smaller or larger of the value? If my text1.text the value is 10 and my text2.text is 20, how i can to flash detect if is smaller or larger?

View 1 Replies

ActionScript 1/2 :: Embedded .swf -- Load A Larger .swf File (#2) Into A Smaller One (#1)?

Aug 30, 2010

I have 2 .swf files.#2 will be dynamically loading into #1.

Lets say the stage size of #1 is 600x400.

Lets say the stage size of #2 is 800x600.

Is it possible to load a larger .swf file (#2) into a smaller one (#1), and somehow see the whole thing? As in, not crop the embedded file to the dimensions of the smaller "containing" file?

View 2 Replies

ActionScript 2.0 :: Load Movie - Set The Parameters Of A Smaller Mc To Be Placed On Top Of A Larger Mc

Jul 20, 2002

How can I set the parameters of a smaller mc, to be placed on top of a larger mc, and not have the active ingredients (such as some random floating objects) roam outside of the smaller mc? The problem I am having at the moment, is my objects will not stay inside the smaller mc, but instead, roam all over the larger mc below it. So I'm thinking I need to set up some solid parameters for the smaller mc. I was up late, late last night on all sorts of actionscript boards, and still haven't found the answer. I am using flash 5, and the small mc is, once again, on TOP of a larger mc.

View 3 Replies

ActionScript 3.0 :: Scale World Larger And Smaller To Effective Zoom In And Out?

May 22, 2010

For lack of a better description, I have a world of bitmaps, but some are outside the boundaries of the stage. How can I scale my world larger and smaller to effective zoom in and out?

View 7 Replies

ActionScript 3.0 :: Copying Matrix Rotation From Larger To Smaller Object

Aug 18, 2011

Background: Sorry for the complex title, but can't think of a better way to describe this. So I have an image which is constantly moving and rotating (using matrix rotation around a specific point) on the stage. Problem: So I'm looking for a way that, when the user presses a button, a smaller image (exactly the same as the original one, only 3 times smaller) to position itself so that the smaller image's location is proportional to the the larger one's location. This means that the exact point of the larger image where it is rotating should be the corresponding part of the smaller image, thereby causing a kind of zoom out effect.

The truth is, I'm finding it even difficult to match just the x and y positions so they correspond, ignoring rotation, assuming the position is relative to the rotation point. Even this would be useful.

View 5 Replies

ActionScript 3.0 :: Grid Slider Gallery - Grow Larger And Make The Other Items A Little Smaller

Jun 24, 2010

im trying to create a grid gallery that when you rollover an item it grows larger and makes the other items a little smaller, and moves them to compensate for the larger image and on rollout it shrinks to its original size, and so does the other items. if someone could point me in the right direction (tutorials, etc.) or how i would go about build it,

View 1 Replies

ActionScript 3.0 :: Create A Radar Effect (a Looping Circle Which Gets Larger)?

Apr 6, 2009

I'm trying to create a radar effect (a looping circle which gets larger). Now, the way i do this with other programming languages is to draw a rectangle as the background with a low alpha amount. Then draw the circle growing on top of the background, then draw the background again in the loop.I've got it working like this in flash but it gets really slow after a very short time since I am adding children each time the loops goes through.

Code:

var radarSize:Number = 1;
stage.addEventListener(Event.ENTER_FRAME, loop);
//-----------------------------------------------

[code]....

View 2 Replies

ActionScript 3.0 :: Flash MouseOver - Larger Image To Appear ONLY When Mouse Is OVER The Smaller Image?

Nov 4, 2010

I created a simple mouseover (like this one http:url... )with one small image that grows to a LARGER image directly on top of the smaller image when mouse is OVER the smaller image. When user mouses OVER the smaller image the larger image appears correctly.Problem is that even when user mouses OVER the "boundries" of where the LARGER image WILL appear, that also causes larger image to appear. What I want is for the larger image to appear ONLY when mouse is OVER the smaller image.

View 2 Replies

ActionScript 2.0 :: Button Larger When Roll Over And Smaller When Roll Out?

Feb 19, 2002

I just want to design a button when the mouse roll over the button will gradually become larger (to a fixed size) and gradually comes to the originally size when roll out. I try to use "Adding Buttons to Movie Clips" method, ie, one MC with two layers, an amimation MC (tween from small to big and then big to small) and a button. Add script as follows:
on the first frame:

if (Playing eq "True") {
        play ();
} else {[code]....

When I roll over the MC tween small to big and big to small and when roll out the MC gradually small. What I want is when I roll over the MC tween small to big and keep it is except when I roll out.

View 1 Replies

Flash - Making Smaller SWF In Browser (Internet Explorer)

Apr 1, 2012

Is there a way to change the size of swf, (in the example the size is 750 X 750) to 500 x 500 but only when the browser is IE6, IE7, IE8, IE9?

<script type="text/javascript" src="swffit.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.allowfullscreen = true;
[Code] .....

View 1 Replies

IDE :: Making The CS3 Checkbox Component Larger?

Jul 23, 2007

Relative newcomer to Flash, and I have (what should be) a simple question: how does one go about making the CS3 checkbox component larger? I'm not talking about the bounding box (checkbox + label); I'm talking about the checkbox itself. I've looked all over the place, and I'm stunned that this doesn't appear to be as easy as I thought.

View 1 Replies

Professional :: Making Stage Size Larger Than 2880x2880

Dec 6, 2010

I have a presentation work and the size that i have to work is larger than 2880 pixels which is the maximum value flash cs5 allows. So, is there any way that i can make the stage size larger? (approximately 3900 pixels)

View 2 Replies

ActionScript 3.0 :: Making A Website Larger Than Screen Scrollable?

Sep 16, 2009

i am making a flash website and need to know how to make the site 4 times the size of the screen and when the user gets to the edge it pans the site.

View 3 Replies

IDE :: Making Text Size In Inputtext Field Larger?

May 6, 2009

thats all i need to do. anyone know how??

View 1 Replies

ActionScript 2.0 :: Photo Gallery - Make The Image Window Smaller And The Overall Movie Smaller?

Jun 25, 2004

I found this really neat photo gallery on flashkit but there is no support or readme included. how to size this thing.. the AS code does have comments but I am not a coder.I'd like to make the image window smaller and the overall movie smaller. 325x325 or so

View 10 Replies

ActionScript 3.0 :: Making A Circle Countdown Timer Class?

Jul 29, 2009

I am making a circle countdown timer class. It works fine, however, the startAngle variable isn't really working the way I wanted it to. It seems to start at 45 degrees even though I have it set to 0. I want it to start at the top and work it way around like a clock. So it would start at 12 and end at 12. Here is my class

Code:
// Create an instance of the class in an empty FLA
import com.ronnieswietek.utils.CircleTimer;
var counter:CircleTimer = new CircleTimer(15,0xff0000,0x000000);

[Code].....

View 1 Replies

ActionScript 3.0 :: Duplicate MovieClip Method - Making New Circle

Oct 27, 2009

I know AS3 doesn't have a duplicateMovieClip method anymore so how is this done? I tried the following with little success. Circle is a movieClip on the stage with instance name of circle. myEmptyClip is a movieClip in the library with the linkage set to myEmptyClip.

Code:
circle.addEventListener(MouseEvent.CLICK, makeNewCircle);
circle.buttonMode = true;
function makeNewCircle(event:MouseEvent):void {
var newCircle:myEmptyClip = new myEmptyClip();
newCircle.x = 300;
newCircle.y = 100;
addChild(newCircle);
}

View 14 Replies

ActionScript 2.0 :: Roll Over Moving Image - Making Image Larger?

Feb 21, 2012

I need the ActionScript (2.0): 1) When rolling over a moving image (like a filmstrip), I want the image to stop and then it zooms into a larger image. 2) Then when you click on the larger image, it goes to another URL page in my webiste.

View 9 Replies

ActionScript 2.0 :: Calculate The Direction And Speed A Circle Has After Colliding With A Static (non-moving) Circle?

Mar 8, 2005

I'm developing a game atm, and I need some help on the mathematics/coding of colliding circles (and their change in x/y speed). What i need to know is how to calculate the direction and speed a circle has after colliding with a static (non-moving) circle. I know how to detect a collision between the two, but I'm not sure about the maths I need to give the circle the right speed and direction after the collision

If i do know how far away the two circle-points (in the middle of each) are to each other (in both x and y coords) would it be easy for me to find the new speed and direction of the large circle in the example above? I know that I somehow should use the angles to pretend the circle hits a flat "wall" (as it only hits one point), and then calculate the new speed/direction. My only problem is that I'm not sure how to decide the angle of this flat "wall" and how x and y speeds should change when colliding with a wall that is angled. Does anyone here have any insight, links or tips on how I can du this?

View 6 Replies

ActionScript 2.0 :: Make One Circle Follow The Mouse Cursor Inside Another Circle

Sep 30, 2005

i want to make one circle follow the mouse cursor, inside another circle. Similar to an eye looking at the cursor. Ive attached an example.

View 4 Replies

ActionScript 2.0 :: If Statement / Variable - Say If Circle Shows Up Change It To Circle (french)

Nov 5, 2008

I have text in a dynamic field showing up as circle. I want to say if circle shows up change it to cercle (french).

[Code]...

View 1 Replies

ActionScript 2.0 :: Calculate Direction And Speed Circle Has After Colliding With A Static Circle?

Mar 8, 2005

What i need to know is how to calculate the direction and speed a circle has after colliding with a static (non-moving) circle. I know how to detect a collision between the two, but I'm not sure about the maths I need to give the circle the right speed and direction after the collision.If i do know how far away the two circle-points (in the middle of each) are to each other (in both x and y coords) would it be easy for me to find the new speed and direction of the large circle in the example above? I know that I somehow should use the angles to pretend the circle hits a flat "wall" (as it only hits one point), and then calculate the new speed/direction. My only problem is that I'm not sure how to decide the angle of this flat "wall" and how x and y speeds should change when colliding with a wall that is angled.

View 6 Replies

ActionScript 3.0 :: Graphics - Paint (change Color) Inside Of Circle When A User Draw A Circle

Aug 24, 2009

I`m working on a app that you can draw lines.....like circles, rectangles... my problem is when a user draw a circle for example....i wanna be able to paint (change color) inside of this circle. I`ve tried working on Shapes with cacheAsBitmap = true and Bitmaps with BitmapData but it doesn`t seens to work.

View 4 Replies

Actionscript 3 :: Change Shape Of Circle By Dragging Point On Circle

Mar 16, 2012

I want to create circle, and put 8 points on it. So, user can drag each point in order to change it's shape.

Is there any way to do this in flash?

I have some following code:

Ref. - How to draw a continuous curved line from 3 given points at a time

package{import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.geom.Point;

[Code].....

So, can anyone convert these three point curve line to 8 points circle?

View 1 Replies

ActionScript 2.0 :: Drawing A Circle - Circle Diameter Has To Be Controlled By A Button

Oct 6, 2009

I have to draw a circle using action script. The Circle Diameter has to be controlled by a button.

View 0 Replies

ActionScript 3.0 :: Circle Circle Frame Independant Collision Reaction?

Apr 10, 2010

Trying to do circle circle collisions via math which I'm really having trouble with. One circle (player) just moves from keyboard. The ball reacts to the player. All the code shown is in my players class and I passed in a reference to the ball.

On my enterframe I have:

Code:
var xmov1 = xSpeed;
var ymov1 = ySpeed;
var xmov2 = ballRef.xSpeed;
var ymov2 = ballRef.ySpeed;

[code]....

Perhaps I'll go with a box2d equivalent instead of trying out my own physics shenanigans.

View 2 Replies

ActionScript 2.0 :: Start Drawing First Circle And When First Circle Is On Half Way?

Sep 19, 2004

Here I what i need is : Start drawing first circle and when first circle is on half way, Start second circle.same way second and third circles. and after completing 3 circles, just gotoAndPlay 2nd Frame .

View 3 Replies

Professional :: Circle No Longer A Circle On Publish?

Feb 18, 2010

I have a simple three ring animation where the three rings fade in and out.On the stage the rings are a perfect circle, in the publish preview they look fine, but once I publish the SWF, all of the sudden the rings are not perfectly round anymore.
 
They are almost perfect but right at the top and bottom there is just a small portion which has sort of "flattened out"...

View 2 Replies







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