ActionScript 2.0 :: Expanding Circle To Act As Mask To Reveal Banner?

May 3, 2005

Code:
for (i=0; i<200; i++) {
circle.duplicateMovieClip("circle"+i, this.getNextHighestDepth());
randX = Math.floor(random(Stage.width));
randY = Math.floor(random(Stage.height));
this.banner.setMask(this["circle"+i]);
this["circle"+i]._x = randX;
this["circle"+i]._y = randY;
}
Circle is a movieclip that has a circle starting at 2px by 2px and expands to 100 by 100. Banner is just a movieclip, but I would like these expanding circles to act as a mask to reveal the banner. This should work, but isn't, I know I am overlooking something.

View 2 Replies


Similar Posts:


IDE :: Make A Banner That Expands Over The Website It Sits In To Reveal More Content?

Sep 20, 2007

i have to make a banner that expands over the website it sits in to reveal more content. i've never made one before so i was wondering a few things.

1) is there anything special i'd have to do to the flash to make it work?

2) it looks like the banner sits in a css layer that's over top the rest of the site, is that correct? [URL]

View 8 Replies

Flash :: Make An Expanding Banner?

Aug 27, 2008

I know that people don't generally like expanding flash banners, but my motive is simply to provide additional details for the sponsors of my forum[url]...

As you can see, in the upper right hand corner, I have a very simple rotating flash banner that shows the local companies that keep it going. I'd like to provide an additional service for people that are interested in using them, where each sponsor gets a drop-down menu that has a map, address, directions and contact information IF the user clicks on it, and wants to see the information for that sponsor.

Now I know enough about flash on how to create the actual banner itself, but for the life of me, I simply cannot make it extend over the rest of the page. It always ends up displaying the entire .swf file, no mater whether I make half of it transparent or not.

I've tried using several banners, including the Double-Click Ad Kit and some other expample flashes, but for the life of me, and through very extensive googl searching I can't find any clear cut instructions on how to make it extend OVER the rest of the body. I've found some pages that sorta mention how to do it, but I really have had no luck in duplicating it.

View 2 Replies

ActionScript 2.0 :: Top Down Falling Particles Reveal Dynamic Mask/logo?

Apr 7, 2009

I have plenty of ways of creating falling snow like effects, but a client has just comitted me to an effect as a test of my ability without talking to me first, that I am a little stumped by. use AS2 or AS3 for this project because of the filters and tween effects available to me.I need to have a top down falling snow effect (its actually supposed to be flour falling from a sieve but hey...). All the snow effects I know, fall down sideways on, from top to bottom, and then they disappear off the page (the flakes).I need the particles (movieclips) to fall downwards from a birds eye view, and 90% of them to disappear, but the remaining 10% to gradually (over about 5 seconds) build up a white logo (shape) in the middle of the screen.So I am guessing that I am going to have to be clever with dynamic masks to get the shape appearing a little bit at a time, and then I also need some random motion, and scaling as the particles fall downwards (and away) from the eye.

View 1 Replies

ActionScript 3.0 :: Preloader Using Mask To Slowly Reveal Target Object

Nov 25, 2008

I have a preloader using a mask, set to slowly reveal the target object from the bottom up as the movie loads. But there is something off with the code and I'm not a programmer.

View 8 Replies

ActionScript 2.0 :: Sweeping Mask - Using Image To Move Over Layer And Reveal Another

May 25, 2011

I have a question, and I find it hard to find resources on it. I have two layers, and another layer with an image of a broom on it. I want to use the broom to move over layer2, and reveal the layer beneath it. Kind of making a sweeping game. Frankly my search efforts on google have only come up with alot of masking, but I am sure you need actionscript to make the broom move with the mouse.

View 1 Replies

Actionscript 2.0 :: Top Down Falling Particle Effect To Reveal Dynamic Mask / Logo

Apr 8, 2009

I have plenty of ways of creating falling snow like effects, but a client has just comitted me to an effect as a test of my ability without talking to me first, that I am a little stumped by.I need to have a top down falling snow effect (its actually supposed to be flour falling from a sieve but hey...). All the snow effects I know, fall down sideways on, from top to bottom, and then they disappear off the page (the flakes).I need the particles (movieclips) to fall downwards from a birds eye view, and 90% of them to disappear, but the remaining 10% to gradually (over about 5 seconds) build up a white logo (shape) in the middle of the screen.So I am guessing that I am going to have to be clever with dynamic masks to get the shape appearing a little bit at a time, and then I also need some random motion, and scaling as the particles fall downwards (and away) from the eye.

Before I jump in at the deep end, has anyone got any ideas on this, even just part of it (the falling particles or the revealing dynamic mask part) would be a great help.Please let me know if you can help with ideas and input in anyway, and I'll give you credit on the final project when complete, as well as much help as I can with game related scripting and deisgn/URL...

View 2 Replies

Reveal And Un-reveal Text Upon Clicking With Animated Transition?

Mar 1, 2010

I want to create a simple script in AS2 that can reveal and un-reveal some text upon clicking (and any additional graphic), preferably with a simple transition (likely a tween). How would I go about achieving this?

View 1 Replies

ActionScript 3.0 :: Circle Mask With BitmapData - Performance

May 17, 2011

I am looking for the most efficient way to create a circle mask on a BitmapData, so that everything inside the circle is visible and everything outside the circle is black. Here is my current code:

[Code]...

As the radius of this circle is going to be changing rapidly, storing the mask would be useless. how to make this more efficient, preferably keeping to methods that can use GPU accleration?

View 0 Replies

ActionScript 3.0 :: Circle Preloader Mask Not Working?

Dec 21, 2011

So I've made a circular preloader made with some shapes and masks. Everything like this works. What I want to do now is add a movieclip of animations to the stage and make it look like this movie clip is in the progress circle of the preloader. So what I did is create a movieclip container to hold all of the shapes that animate on loading. I then used that movieclip container to mask the movieclip of animations.What happens when published is the movieclip of animations (the particles) loads over the shapes, but all of their masks are gone. So it's as if when I applied the mask to the container, all of it's children and their masks stopped working. Is there a way to correctly do this?

View 2 Replies

ActionScript 2.0 :: [FMX] Make A Radial / Circle Mask?

Mar 24, 2004

Does anyone know how to mask in a circle? To try to clarify: If you had a clock face with the minute hand at 12, as the minute hand sweeps round it reveals a picture. Here is an example of what I'm looking to do (the orange logo at the top)[URL]

View 8 Replies

Actionscript 3 :: Image Circle Mask Using Adobe Flash

Apr 27, 2011

I am wanting to achieve a particular image effect using Adobe Flash (Actionscript 3). I would like an image (width 200px, height 600px) to appear on the timeline by being revealed by different sized circles (varying from 30px-5px). I am thinking of using an image mask and creating seperate circles across the timeline, so that when the movie plays, each random sized circle, one after one, will reveal the image at the end. So this is probably going to be quite time consuming. Also, does anyone know of any flash image effects helpers in general, I'm looking for something similar like green socks except for image effects...

View 2 Replies

ActionScript 3.0 :: Random Growing Circle Mask Revealing An Image

Jun 23, 2009

From this tutorial:[URL] Pretty neat effect, I wanted to use this for a gallery transition, but I have a problem. Does anybody have an idea how to know when image has been completely revealed so I can stop the enter frame listener and remove this growing masks, otherwise this is pretty useless

View 6 Replies

Soft Mask - Stripes Fade Away As They Approach The Right Side Of The Banner?

Sep 7, 2009

it's an animated website header / banner
 
my stage is a long, thin rectanlge, with an asphalt background on a distinct locked layer
 
on the stage i also  have a movieclip of white crosswalk 'stripes' motion-tweened from left-to-right over the asphalt
 
i am trying to have these stripes fade away as they approach the right side of the banner
 
'fade' being the operative word here, i'm trying to create a mask layer in the 'stripes' movieclip that has a transparency gradient
 
 basically, a recatangle moves left-to-right over the stage, and a mask layer above (aligned left), has a left alpha value of 0, so the rectangle disappears behind it. i've seen references to 'soft mask' and also animated AS solutions, masks are always far too complicated.

View 5 Replies

Professional :: Header Banner - Mask Text On Scrolling Background Of Images

Nov 20, 2010

I built a quick and dirty site header banner, with text masking a scrolling background of several images. The text is the mask, so the images show up inside the text. Viewing it works in Flash CS3, but when I publish it, I see the images scrolling from right to left, but they are not masked.

View 3 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

Professional :: Create A Circle With The Circle Tool?

Apr 26, 2011

I bought a Flash video tutorial online for Animating and the FIRST step is to create a circle with the circle tool, and the guy does it online, and it fills itself in. I repeat his actions exactly and I cannot get the same result at all. I just get a circle.

View 5 Replies

ActionScript 2.0 :: Moveable Circle Around Another Circle - No Overlap

Apr 5, 2007

I have two MC's, circular in shape. One of the circles is stationary and you can drag the other. I'm trying to get the moveable circle to be able to move around the circumference of the stationary circle, but not overlap. I'm able to detect when they overlap, not using hittest. I just can't figure out how to code it so that the draggable circle can't be moved over the stationary circle.

View 4 Replies

ActionScript 3.0 :: Circle-circle Collision With Rotation?

Jul 5, 2010

Does anyone know of any tutorial or code example that deals with resolving circle-circle collisions including rotation?

View 2 Replies

ActionScript 3.0 :: Constrain Circle In A Circle On Startdrag?

Jan 6, 2012

I have been trying to get this right for hours now it cant be as hard as I am finding it! but basically I have a circle and in that circle is a circle and all I want is for the inner circle to not be able to leave its parent. that's it but I just cant get it to work.

View 1 Replies

Banner AD - When Someone Clicks The Banner It Takes Them To The Page In A New Window

Oct 13, 2009

I am building a banner ad and I am using Flash CS4. I need it so when someone clicks the banner it takes them to the page in a new window. Its just a a simple URL and I keep getting syntax errors now and I dont know how to do this properly. I have tried these methods.

[Code]...

View 1 Replies







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