ActionScript 2.0 :: 100 Moving Circles Duplicate It And Then Move It In Specific Area?
Apr 26, 2004can i do this in flash?i have a main mc and i want to duplicate it and then move it in specific area.
View 12 Repliescan i do this in flash?i have a main mc and i want to duplicate it and then move it in specific area.
View 12 Replieshow to randomly animate circles moving around inside a bigger circles? the small circles will have a collision effect on each other and on rollover of each individual circle, the name of it will come out in the bottom.. so the big circle will act as a wall preventing them from coming out..
View 1 RepliesCan I do this in flash? which is the best way to do it? I have a main mc and I want to duplicate it and then move it in specific area..
View 12 RepliesI have Particle animation like this this PHP Code:
[Code]...
But i want that Object moving in limited area or masked area. I add masked area like this PHP Code:
[Code]...
But it still not working. Any advice ?? or correction in my script code?
I am trying to code some circles to move around inside one another. I have managed to do the hit test bit, but its getting them to stop at the edge inside one another is what I am having problem with. The aim is so the user can drag the red circle and the yellow stays where it is within the red, but when you drag the yellow circle the red moves with it.
View 2 RepliesI just want to do not allow editing at some area of text area in flex. How it can be done?let suppose text length in text area is 50 characters, i want to allow editing if cursor position is less than 15, and if cursor position in text area is greater than 15 it should not allow user to add more text in text area.If user press any key it should not add any character in text area.[code]
View 1 RepliesKinda of new to all this Flash stuff and need some help working on an animation. I want to have four circles move around the screen randomly. When the user moves his mouse over a circle, I would like it to stop and be bale to use it as a link.
I have used the Flash MX script off the site and can get the circles to move about fine. Just haveing some problems getting them to stop when the mouse is moved over them, and making them into links.
I'm trying to write something like this facebook app [URL] I've already written code to let user to move circles with mouse, but i've got a problem with lines connecting them- sometimes i see old ones, which should have been deleted already. I refresh all lines every time any circle is moved. Here is my code which draws lines
[Code]....
I am trying to make a spaceship game and in order to make it look like my spaceship is moving I need to make my circles in the background move forever. I tried using the Continuous Movement tutorail but it makes my circles get bigger when I move my mouse and when I move my mouse all the way to the right it gets faster and left gets slower does anyone know how to change the actionscript for the circle movie clip to make it not do those things?
[Code]...
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 ?
On the enter frame of my movie I want to take a movie clip in my library and have 3 instances of it move randomly within a small area (~ 50 x 50 pixels). I also want the alpha to change to 0 and back to 100 every couple of seconds. Should I be using duplicateMovieClip or should I use something else? I'm trying to create something similar to how the leaves react on this site [URL].
View 2 Replieshow can I adjust the _x and _y area positioning of this set of duplicate movieclips? 710 x 143 are the dimensions I would like the duplicateMovieClip to take place, but it is not the positioning. How can I fix this?
[AS]
duplicateMovieClip (flower, "mc"+i, i);
setProperty ("mc"+i, _x, random(710));
[code].....
however i'm not able to use eraser, when i select the eraser shape and mode i can see a eraser moving over the area i actually want to erase, but in the end the layer is still there... i did search all criss cross the menu, cannot find, i'm sure it's something funny, how can i apply eraser fully?
View 3 Replieshow do I load video into the movie area like in the pic? where I can click on a box on bottom and the video for that will load in movie area?
View 1 RepliesI have created and added my enemyHolder class with
width:800
height:262
to this class I am adding a bunch of squares using this method
ActionScript Code:
for (var i:int = 0; i < enemyNum; i++)
{
enemy = new Enemy();
[Code]....
I thought this would only add the child within the dimensions of my enemyHolder, but they are being spawned everywhere! I'm sure it's just something with my x and y placements, but I can't figure it out.
Does anyone know how in the world to make the menuItems that appear on right-click be different depending on where the user's mouse is over?
View 2 Repliesanyone know of any tutorials or any codes on how to randomly animate circles moving around inside a bigger circles? the small circles will have a collision effect on each other and on rollover of each individual circle, the name of it will come out in the bottom.. so the big circle will act as a wall preventing them from coming out.. yeah, by the way i have attched the file so more or less u will understand wat im saying.
View 1 RepliesI have a flash cs3 file where I want a mask to move on the y axis (up and down) when the user is scrolling over the navigation area.
In my code, I have:
maskMC.startdrag();
How do I limit the area where the mask will move, then make it return it back to it's original position when the user moves away from the specific area (in this case the navigation).
I would like to export a specific area of the stage. So, for example. My stage is 400 x 400 and I would like to export only 100 x 100 of the stage at xy 0 pos.
View 6 RepliesI'd like to be able to use a pencil image (custom cursor?) to draw in a defined area - its the 'ol pencil drawing a line idea on a pad. I don't know how to define the area? I've tried creating either a btn or mc instance called pad_mc & trying rollOver/Out which confines the pen but not the line. This is what I have so far, which works (ie it draws the line) but obviously it goes everywhere, not just over the mc of the pad.
Code:
createEmptyMovieClip("Line",1);
Line.lineStyle(1, 0x666666, 65);
onMouseDown = function () {
Mouse.hide();
pen_mc.startDrag(true);
[Code] .....
Also, I've got an onClipEvent on my pen_mc to try & define where its allowed to be dragged.
Is possible to add an EventListener to a specific area of a picture ?
View 1 Repliesi am trying to have a change in a property of an object, when this object `touches` the area of another object. Let s say, i have a car; when the car arrives on a ball(bcs i have a path), i want that ball to change the alpha transp. I don t want to use the mouse...so I cant use the Mouse Event listener....
View 3 Repliesam attempting the following:1) Draggable duplicate move clips (got this working fine)2) Reset button to remove all instances of the duplicated movie clips (can't figure this out)
Here is my code so far:
for(i=0;i<100;i++) {
duplicateMovieClip(IED_mc,"IED"+i,getNextHighestDe pth());
[code]......
I've created a widget that that, on roll over, starts an animation and allows the user to jump to a url on clicking the widget. It all works well, except that the whole stage area (209x204 pixels) is sensitive to the roll, and I want to somehow make a specific target area start the animation on roll over.
I've tried putting it into another button and adding a hit state to the button, which did create the specific area I was aiming for, but prevented the movie from playing, creating a weird 'stutter' of the cursor.
So I've recently started working with ActionScript 2.0 at my internship. I am now working on a game, that already had all its graphic interface designed and I am doing all the programming. Basically what I have to do is get some movie clips (randomly) from a different scene and print them on another scene in a designated area (but also randomly). I am not sure the best way to explain my problem, so I made a sketch of how the scene should look. [URL] So basically I want to print the movie clips on the black space, as if they were the red squares. But the movie clips are stored in a different scene in the same project. So I want to know two things: how do I get the movie clips from the different scene? And how do I print those movie clips on the specific area?
View 1 RepliesI have a custom cursor in my Flash document. Now that it is all set up, I want to specify an area that it can be in and nowhere else. Basically, I want to keep it in my navigation area on the top of the stage and not be able to go below it to the rest of the stage.I don't know if it will help or not, but I have the following as my custom cursor code:[code]
View 3 RepliesIs there any way of applying a ColorMatrixFilter to one rectangular area of a DisplayObject, leaving the rest untouched? The DO is a container, and the user interacts with objects in it, so taking snapshots to change its appearance isn't an option.
View 2 RepliesIs there actionscript to enable a screenshot of a specific area of the screen? And possibly display this screenshot at a different stage?
View 1 RepliesI'm making a game where targets popout from behind walls. I have 3 walls, each wall needs to have his own target. I'd like to make the game spawn the targets randomly behind each wall. I'll tween them to make them go up.
I assume I have to link the targets to their own class and delete them from the stage and have the script spawn them instead, right?
I've been using the code below to save the image in my panel.
ActionScript Code:
var bd:BitmapData = new BitmapData(vgrpBottleArea.width, vgrpBottleArea.height);
bd.draw(previewPan);
[code]......