ActionScript 3.0 :: Recreate A Dragable Object That Will Blur Anything Behind It?
Feb 12, 2009I have flash and i wat to recreate a dragable object that will blur anything behind it.
View 3 RepliesI have flash and i wat to recreate a dragable object that will blur anything behind it.
View 3 RepliesSo I'm using PixelFume's Active Blur class to recreate the effect, though somewhat simpler so I rewrote some of it and it seem screwed up to me. I have it on the first frame of an .swf that gets loaded into and container clip in the main .swf via loadMovie. It does what I want it to do, but everytime you load the page it comes up slower and slower. If you click the button to load it like 15 times, it's pretty much 1fps.
The code is as below:
Code:
import flash.filters.BlurFilter;
import flash.display.BitmapData;
import flash.geom.Point;
var bottom = bg.getDepth();
this.createEmptyMovieClip("bgBlur", bottom+1);
[Code] .....
I have a box that i made dragable by clicking at it. I would like a green line attached to a point in the frame and the other end of the line attached to the movieclip being dragged. Hope i made it clear lol.
How would i go about to achive this effect? If possible without having the line itself being within the dragable movieclip (because the dragable box is in more than one frame and i only want the line in one frame)
I've got tree movieclips called: greenpip(this is the dragable object, which is visable), greenpip_target(which is invisible, but becames visible when greenpip hits it, and grrenpip is becaming invisible) and then the third one: greenpip_flask (which is the animation I want to play when the greenpip hits the greenpip_target).
Everything works but I don't know how to make the greenpip_flask play, when grrenpip hits the greenpip_target. This scenario takes place three times with three sets of objects
How to blur 3d object? (Papervision 3d) And save created new object as new 3d model? (can help in sky/clouds generation)Like in 2d picture I've turn rectangel intu some blury structure
View 3 RepliesMotion Blur per object, does anyone have some new examples for as3 ?
View 5 RepliesProblem 1: Flash crashes when a Blur filter is applied to a TextLine object.
Correction: It was not the Blur filter but this line, which caused a crash:
trace(tb.findNextWordBoundary(5));
whereby tb is a TextBlock element.
Now I know I can use the MCTween classes for this, but I want to figure it out myself
I have
Code:
MovieClip.prototype.blurTo = function(strength, size) {
//Blur and tween fn.
var myBlur = new flash.filters.BlurFilter(size,size,strength);
[Code].....
What I can't figure out for the life of me, is how to disable the blur when the object being tweened comes to a halt?
What I want to do is link the blur filter with the coordinates of an object I have in a movie.Like as the x coordinate of an object gets larger the blur amount increases as well, and decreases as the x coordinate gets lower.
View 1 RepliesI am looking for some help on a specific effect. I was pretty good in the old days in flash but I have fallen behind badly and the new action script and such is making my head spin a bit. The effect I am looking to do is like the FETblur,first one on the page, [URL]...
View 1 RepliesI am trying to recreate an xml through php as I am pulling information from a database. I know the problem is with the php code as the actionscript code works with a normal xml file[code]...
View 0 Repliesi'm trying to recreate gravity. this is what i have so far:
[AS]G = 0.005;
m1 = ball1._width;
m2 = ball2._width;
scrnW = 550
scrnH = 400
[code]....
the script looks alright to me but when run, the effect is wrong...
Im trying to convert my company's logo from a jpg to a flash movieclip...I need to do this because the jpg has a static background of white...but I need the background to be transparent so that only the text graphix show up above everything else...assuming I can get a hold of the font used for the logo...how would I do all the fancy shading/lighting with the "bent horizon" look across it? I am by no means a designer...merely a wannabe developer...so I know nothing as far as the pretty part of flash is concerned...here is the logo I am trying to duplicate..
View 2 RepliesI want to load in external swfs into an mc on the root called 'holder'.In As2, I would just do loadMovie("whatever.swf", this.holder); And if I loaded another swf into that same holder it would replace the contents with the new swf.
But now, I'm trying As3 and doing..var i =new Loader();i.load(new URLRequest("contact.swf"));this.holder.addChild(i)
When I repeat this code, for another external swf, I want it to replace the first one, but it appears to not be doing that. I fear that this addChild, is simply adding more mc's within my main holder mc.
So I don't know how to match the functionality that I liked from As2.
I'm trying to recreate the sky with a rotating clip in the shape of an arc. I've tried the built-in timer that changes the rotation, I've tried the TweenMax class, and I've tried hand-building the animation with a motion tween. In all cases, the movement is jerky--smooth for about five frames, then a sudden jerk of motion. What can I do to make this animation smoother? Clip is about 2400px wide, 400px high, with a reg point about 3000px away that it rotates around.
View 3 RepliesI've been looking all over with no luck for a way to code the pen tool in AS3. What i want is, in the flash application, the pen tool as it functions in Flash itself. So, for example, i push Ctrl + Enter and test my program, then can use the mouse to click and create a point, click again and it connects with a straight line, or click and drag to create a curve. I don't need anything like hinges where you can go back and edit curves, i just want the click/click drag line functionality.
View 6 RepliesDoes anyone know how to recreate the TV snow effect, you know when you're trying to tune in a tv channel and all you get is the 'fuzz'?
View 10 RepliesIm working on a project where i have 5 buttons on one side and a blank window in the middle of the screen. when a button is clicked an external swf is loaded with movieclips of text based on each catergory. 2 of these movieclips of text are long and a request for an index at the top of the page has been made. everything in the movie is working so far except the page index. i wanted to create this similiar to the way an html index works with page anchors.
i have made all the letters and converted them to movieclips. ive added event listeners to those buttons so that the main window's y position is moved when they are clicked. the main swf window will jump down to the desired position but the scroll button remains at the top and theres no way to scoll back up to the top of the page.
I came a across a really sharp intro effect I'd like to try and create in jQuery, mootools or prototype[url]... (Just the spin in effect) So in a sense, I want to spin in the main content div of the page.
View 3 RepliesI have been trying to recreate the rollOver swapdepth effect (above). Works OK but slow using mc's on the main timeline using the swapDepth behaviors.It appears (on the [URL]) that each swf is loaded independently on top of the main with their own preloaders.This seems vastly more complicated than just swapping depths on a single timeline.
View 1 RepliesHow I can make a dragable thing like this? [url]...
View 5 RepliesI'm new in actionscript 3, and I'm trying to make a dragable map. a Map that the user can drag, something like google earth with zoom in. But I can't find the way to make the margins work.
View 4 RepliesHere, I have draggalble box but I need to drag in limitation. just say position of x and y is greater than 30 and less than 130 . But have no idea to do limitation.
package {
import flash.display.Sprite;
import flash.display.Shape;
[Code]....
I have a mc which you can drag. The user can drag the mc and drop it to a place and then press a check-button to see if the place is the right one. After the user has pressed the check-button I don't want the mc to be dragable any more. How can I do this?
View 4 RepliesOkay I've gone through a good hundred posts on this site and some others but I can't seem to find what I want (Or I just simply don't understand the code.)First thing first. I have no idea how to code what so ever. I just copy and paste stuff into other stuff and hope it works.Objective; Birdseye view perspectiveOkay so I have this background layer, in that background layer is a "Table top spinner" which I've set as a movie clip. What i'm trying to achieve is when you click the movie clip it will trigger a simple animation (spinner on it's side into spinner upright) You are then able to drag the spinner in a set space on the stage (Table) Whilst you are dragging it the spinner will rotate (I've tried animating a rotation but it just looks clunky) and when you release the drag the spinner will start to slow down and come to a stop triggering another animation which will revert it back to it's side
View 0 RepliesI'm currently working on a flash puzzle game and I was wondering if anyone knew of an easy way to keep my puzzle pieces from being able to be drug out of frame?
View 1 Repliesi want to send an object and its properties (that have been manipulated) to my server. I then plan to re-create this object and automatically create a screenshot of the object (i do not want to do this client side). i'm planning to use POST and some php for each property as its changed, and then load this data into a server side as3 script. i would like this server side script to take the object in automatically, and create an image server side - is there anyway to doing all this while not prompting for any input (from what i've learnt, flash needs a prompt before saving a file)? i haven't used flex, could it be used here?
View 10 RepliesEffect is generally in mostly vertical with slight horizontal offsets looks like: often used by paintors in sky painting like here
View 1 RepliesI've recently created a Super Text Transition class - its pretty much perfect, except theres on thing that niggles me.
It works by splitting up dynamic textfields into many movie clips, one for each letter - but I cant work out how to position the newly created letter movie clips (each containing a dynamic textfield with only one letter in them) in the right way so it looks exactly like the original text would in the textfield.
Im assuming Im not taking into account certain variables - between textWidth/textHeight, _width and _height of the letter movie clips, leading, letterSpacing blablabla. know the variables to use to recreate a text field with lots of letter mcs?
I am trying to recreate the following website except using different graphics but with the same navigation elements and the same motion and tweening and animation effects going on in the stage.[URL]
View 1 Replies