ActionScript 3.0 :: Make A Movieclip Randomly Slowly Float Around Within A Certain Specified Area On The Page?

May 28, 2009

how I can make a movieclip randomly slowly float around within a certain specified area on the page? The way I'm doing it now.. is I use TweenMax.. set a bezier, and have the object tween randomly every 20 seconds to a random spot using the Timer class. This is looks okay.. but I'm sure there's a better way to do it so I can control the area which I want it to float within more easily.

View 14 Replies


Similar Posts:


Flex :: Float Movieclip Over Textarea To Make It Appear Like It's Part Of Text?

May 29, 2009

Take a look at this demo, how do they accomplish the Inline Changes feature? To me it looks like they are floating a movieclip over the textarea. What I can't figure out is how they anchored the movieclip to stay in the correct position. If you type something before the movieclip it moves position along with the text, the movieclips even move to the next line when the text word wraps. Does anyone have an idea?

View 1 Replies

Actionscript 3.0 :: Making Movieclip Randomly Move Around A Constrained Area

Mar 11, 2010

I have an array of display objects that are simple scattered circles on the stage. My goal is to have them move around randomly within, say, a 5/10 pixel radius/range from their original x and y. Sort of like fireflies, but not as jittery and fast, I'm looking for something real smooth. What I have now is something like this:

Code: Select allfor (var g=0; g < total_circles; g++)
{
circle = new DrawCircle( 3, 0xFFFFFF );
circle.x = random; circle.y = random;
addChild(circle);
jitter = JitterCircle( circle, 10 );
}

So as you can see for each circle I call a class JitterCircle and pass it two values: the actual display object and the range I want my circle to fly around in.
Inside JitterCircle I have this:

[Code]...

View 2 Replies

ActionScript 3.0 :: Make Movieclip Width Slowly Expand?

Sep 10, 2009

I have a movieclip, powerMeter, that I need to slowly expand until it's width is 80. I using
Code:powerMeter.width -= 80; to make it shrink, but I need a way to slowly make it scale back up.

View 3 Replies

ActionScript 2.0 :: Make Mc Drop Another When It Is Inbetween Certain Area Of Page?

Mar 29, 2011

I want have a mc called LDL travelling across the page and as soon as it comes into a specific range on the page ( drops the cholesterol off at a random point in this range) I want the cholesterol molecule to fall and build up on the bottom of the page and on top of eachother.

I managaned to get the LDL moving and the cholesterol molecules falling when I select the no and press the button, but only 1 cholesterol ball stops, the rest just pass through.

View 2 Replies

ActionScript 3.0 :: Load The .swf With The Exact Stage Size So The Graphic Elements Do Not Float Outside The Loaded Movies Stage Area?

Sep 7, 2010

I'm making a mockup for a client and I need to Load the .swf with the exact stage size so the graphic elements do not float outside the loaded movies stage area. [URL]Basic load code I'm using...

Actionscript Code:
import flash.display.*;var adLoader1:Loader = new Loader();adLoader1.load(new URLRequest("100828_budlight_texas_fight_728x90_jn.swf"));adLoader1.x = 313;adLoader1.y = 162;addChild(adLoader1);var adLoader3:Loader = new Loader();adLoader3.load(new URLRequest("100828_budlight_texas_fight_300x615_jn.swf"));adLoader3.x = 738;adLoader3.y = 0;addChild(adLoader3);

View 3 Replies

ActionScript 2.0 :: Flash8 Movieclip Area Movement - Restrict The Area In Which The Movieclip Can Actually Move ?

Apr 24, 2009

I have made a movieclip and gave the frame this actionscript:

------------------------------------------------------------
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {[code]........

it moves fine and stuff but i was wondering how can i restrict the area in which the movieclip can actually move ? my flash file is 550px X 400px and i want to make it so that it can only move in 300px X 200px of the file if you understand ?

View 1 Replies

ActionScript 2.0 :: Make A Movieclip (or Button) Appear On Coordinates Randomly When Loading Flash?

Nov 25, 2010

i can't seem to figure out this:

I have 3 coordinates on a stage.
Coordinate1 (x50;y50);
Coordinate2 (x150;y150);
Coordinate3 (x250;y250);

How to make a movieclip (or button) appear on one of theese coordinates randomly when loading flash?

Coordinates don't change but movieclip (or button) goes to one of theese positions upon flash movie starting.

View 6 Replies

ActionScript 2.0 :: Make MovieClip That Containes Some Buttons / Input / Dynamic Text Area

Apr 3, 2006

it is possible to make a movieClip that containes some buttons, input/dynamic text area, but the action script to be taken from an external actionscript file (.as)?I ask this because i have some buttons that calles me movieClips who have actionscript applyed in them, i see that i have some error's because of the actionscript (the .swf file blockes at one moment, and i don't know why ) and i want to call the actionscript file (.as) to button when i press one button that displays me the movieClip attach to him.

View 5 Replies

ActionScript 2.0 :: [Flash 8] Make Float From Bottom To Top

Dec 27, 2008

I just started learning Flash Actionscript.

this._y = random(Stage.height)-(this._height/2)-Stage.height-200;

I got it from a code that make ball falling from top to bottom and i analysis that is this code that make it work. I wanted to change the code to make float from bottom to top.

View 3 Replies

ActionScript 2.0 :: Randomly Place Mc On Stage EXCEPT For One Area?

Jul 3, 2006

I want to load some mcs randomly on the stage, except for a footer area at the bottom of the stage. Is there a way to exclude just a certain part of the stage using something like Math.random()*Stage and then specifying the bottom 300 pixels as off limits?

I'm using the whole stage because the swf is embedded 100% across the browser, so I can't restrict the dimensions.

Code:
onClipEvent (load) {
x = this._x=Math.random()*Stage.width;
y = this._y=Math.random()*Stage.height;
}

View 14 Replies

ActionScript 1/2 :: Decrease Hit Area - That Mouse Out Of To Make The Drop Down Area Pull Back?

Jul 28, 2009

i have a drop down menu am working on and each button tab (although they are not button instances !) when clicked opens up the "drop down" section which you can mouse over to choose another specific button etc - if you mouse out of that drop down area then it pulls back up to the original tab state ..  what do i change to the code below to decrease the area that you mouse out of to make the drop down area pull back .....at the moment it at least two inches on the screen below and to the right of boundaries of the drop down box before it pulls up - i want to it pull up as the mouse leaves the boundary box .... hope this makes sense .... there is some part of the actionscipt below that controls this but can work out which bit and how to change it !!! (am guessing the x mouse and y mouse bits - but how to change it ???)

[Code]...

View 1 Replies

Html :: Flash " Float Left < Stretch > Float Right "?

Jan 19, 2012

is there way make swf like this : http:[url]......

View 1 Replies

ActionScript 2.0 :: Make The MovieClip Named "fish" Go To A Randomly Generated Spot?

Apr 6, 2004

I am trying to make the movieClip named "fish" go to a randomly generated spot. I tried using the tutorial, but I didn't understand the math, so I tried it with my own code. I'm not as much interested in getting this to work as I am knowing why it doesn't work.

PHP Code:

fish.onLoad = function() {
generatePoint();
}
fish.onEnterFrame = function() {

[Code].....

View 3 Replies

ActionScript 1/2 :: How To Make Slowly Appearing Line

Oct 28, 2009

I am having a problem with making 1 animation. I want to make a slowly appearing line. The scene is a pencil drawing a line. So as the pen end moves a line is slowly appearing, I couldn't get the technique on doing this?

View 5 Replies

ActionScript 3.0 :: Make A Movieclip The Background To A Flash Page?

Jan 30, 2010

how u make a movieclip the background to a flash page using coding from as3? also, how would u get that movieclip, to be the perfect scale? for example, the movieclip does not stretch, distort, but yet fills the screen of a computer no matter wat the computer's set resolution is.lastly, how do u get a pixelated / halftonish effect on ur movie clips? (the "experiences" page has an example of what i am talking about.)the site below has an example of everything i am describing:

View 1 Replies

ActionScript 3.0 :: My Movieclip Moving Slowly

Jan 15, 2007

I have a game where the FPS are calculated on an On Enter Frame event...

and I have another event that listens for key presses (other for mouse events... but all are disabled...)

And I have game tiles loaded onto a movieclip in the following order.[code]...

I tried cacheAsBitmap... and nothing... I would post the code, but with all the stuff inbetween it... it's like 700 lines long.... i'm giving a general over view... Is the problem based on the fact that I'm using the flex canvas to work off of?? Is there any way I can do my own 'canvas' like mc... that falls under the canvas, and before all the GUI? I tried adding children to the canvas and it didn't work.

View 10 Replies

ActionScript 3.0 :: HitTestObject : Make A Box That Will Bounce Slowly Between 2 And Repeat?

Dec 2, 2010

im trying to make a box that will bounce slowly between 2 and repeat ( i hope that makes sense 0_o) so far the code i have is

import flash.events.Event;
var speed:int = 3;
var hit:Boolean = false;

[code]....

but one it hits wall 1 it moves 3 pixels to the right and stops =/ i tried changing the if(hit == true) to

if(ball.hitTestObject(wall1)){
ball.x += speed;
}

but it does the same thing.

View 4 Replies

ActionScript 2.0 :: Can't Figure Out How To Make The Stars Slowly Decrease

May 31, 2005

I'm using the following code to spin a couple stars on the stage when the mouse rolls over them. Can't figure out how to make the stars slowly decrease in speed after the user rolls off though.

[Code]...

View 8 Replies

Professional :: Make Movie Clip Move Slowly Towards Right After A Few Seconds?

Nov 16, 2010

I have the following code which will bring my Banner_mc onto the middle of my Introduction page with some effects. Now, I want this movie clip to wait for a while and then move to right until it disappear with the same effects. How can I do that?

[Code].....

View 8 Replies

ActionScript 2.0 :: MovieClips Overlaping - Make A Text Fade Off Slowly

Sep 23, 2006

I have to make a text fade off slowly, at the same time a text behind fading on at the same position, Can I do this with different MovieClips or I have to use a simngle text component... Ok, this what I want: (fading on) SomeText (fading off/fading on)Some other text (fading off)

View 4 Replies

Actionscript 3 :: The Framerate Of One Movieclip Slowly Declines Over Time

Apr 10, 2010

I'm creating a flash rhythm game. I have a looping (at a certain frame I have a gotoAndPlay) movieclip that contains the notes that scroll by, which loops for about three minutes. As the level progresses, the movieclip's framerate begins to lag and stutter. As far as the movieclip is concerned, no variables or functions are being called that would cause this. I have no idea how this could occur. It is also worth mentioning that the notes are represented by text (non-rasterized text), if that makes any difference. As far as posting my code goes, I think it would be far too convoluted to be worth your time. I just don't understand how the framerate of this movieclip could drop independent of the rest of the game.

[Code]...

View 2 Replies

ActionScript 2.0 :: Slowly Mute The Sound Gradually Step By Step Up To The Loading Of The Home Page

Nov 7, 2009

I have a flash template in Flash AS - 2 , with a initial sound that triggers at the very beginning in full sound. Now what I want to slowly mute the sound gradually step by step up to the loading of the home page. How can I do that? Worthless. I attached a very simple fla with sound. There is a stop action and at this point the home page is loaded.Now how can I mute the sound slowly upto this point.

View 5 Replies

Professional :: Make A Minute Long Animation Of Two Koi Fish - Slowly Swim In Frame

Feb 21, 2011

I'm trying to make about a minute long animation of two koi fish.

1. Fish slowly swim in frame
2. Fish swim in circle a couple times
3. 4 food pellets drop into water
4. Fish eat them one at a time
5. Fish slowly swim out of frame

I've finished step 2, but now I want to go back and do step 1. I've attatched a picture of my koi and I was wondering if there was any way I could flip the image of them and tween them to make it look like the fish were moving their bodies all in flash.

View 2 Replies

Controlling FLV From A Different Area Of The Page?

Aug 19, 2009

I was wondering if I could assign seperate buttons to play, rewind, stop or pause an FLV in my timeline from a seperate area of the page like a remote control as opposed to using a skin in which the buttons would have to sit under the flv. Do I have to use an events listener? Does anybody have an example of the action script I could use. I am using version 2.0 PS. The flv is a progressive download.

View 1 Replies

Randomly Load Movie Clip When Page Loads?

Mar 29, 2009

I am trying to make what I thought would be a very simple random picture display. I have five movie clips named myClip1, myClip2, etc. All are on the first frame of the timeline. Each has this as a movie clip action:

Code:

onClipEvent(load){
_alpha = 0;
}

The frame also has an action like this:

Code:

nClipMax = 5;
// nClipMax being the number of movie clips
this["myClip" + Math.ceil(Math.random()*nClipMax)]._alpha = 100;

When I test this the background (an image) displays but nothing else, the movie clips stay transparent. I have tried several variations without any luck.I am mainly an asp and net developer that uses flash periodically so be gentle.

View 1 Replies

Make The Buttons On Each Page Load The Next Page (sprite) From The Library?

Jun 29, 2011

My basic aim is to create a newspaper that consists of four pages. Each page i have created and are sitting in the library as sprites. Each page has buttons that need linking so that when pressed it loads the next page or page that i want. This is the part i am confused with =/ how do i make the buttons on each page load the next page (sprite) from the library??

View 2 Replies

Make A Flash Intro Page Continue As The Home Page?

Oct 13, 2009

So I am doing a flash intro page, but the intro becomes the home page, as in all the pieces come together to create the Flash home page, so that there is just one file for the home page that includes the intro from Flash..how do I make it so that all the parts on the page stay there indefinitely, because right now after a certain amount of time, they disappear due to using the timeline in Flash.

View 4 Replies

ActionScript 2.0 :: Make A Kite Fly Randomly In Air?

Jan 25, 2012

I am looking for an actionscript to make a kite fly randomly in the air.

View 6 Replies

Flash 8 :: Make Items Appear Randomly On The Map?

Sep 7, 2011

In the car game i am working on, I now got a point system set up so the car hits different items and the points rise but i want the items to appear in random places instead of 1 place only
 
[URL].. Game link so far - but not published the point system yet. don't provide to straght forward advice such as "copy this code (code here)" etc
 
Please can you provide the code i need. The MC car is called 'car 1', the MC items have different names such as g1, t1, pt1, pb1 and shine. Please tell me where i need to place the codes in the firstplace.Whether i need to click the car or the item and paste the code in frame 1 etc?
 
Over all, all layers have a total of 3 frames. 1 key frame i believe and the other two are normal frames.

View 3 Replies







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