I'm building a flash app that pulls images from flickr and removes the white background. I'm doing this using threshold and I get a really ragged outcome. Is there any way to get a better and smoother color key?
I'm trying to use threshold to change the colours in a bitmap image according to a lookup table. I've tried the following line of code to convert each colour to another, but without any luck:
Code: bmd.threshold(bmd, bmd.rect, new Point(), "==", originalColour, newColour);
I have not had much luck so far, I've only managed to generate a black and white image, or nothing at all.
I'm trying to use threshold to change the colours in a bitmap image according to a lookup table. I've tried the following line of code to convert each colour to another, but without any luck:[code]
I have a movieclip that I want to be resized when a button is clicked. I want the animation to be smooth as if it had weight though. I read the tutorial on this but I need something slightly different, I would rather it where I can just refer to a function that is set in another movieclip. That way I could easily refer to it again and just set the height, width, and if possible, x, and y.
And my second question, is how to keep the border of my movieclip that is going to be resized the same thickness. I want the inside to be resized but the sides to stay the same width but move to stay on the edge.
I am stuck with a requirement to display a horizontal line on a ColumnChart to indicate a threshold level. I have the data to the Chart as an ArrayCollection.
Is it possible to get the location of a value that is shown on the y axis? I think I will be able to place a line or 1px high canvas on top of the Chart to achieve this. Or better, is there any built in functionality that i may have overlooked or is there some open library that can achieve something like this?
I want to do as follows: * click a "red" button write in textarea with red color font click "blue" button * write in textarea with blue color font Isn't this possible in flash 10 using AS3 I tried using setTextFormat but the problem is i have to have text before inserting format on that.
What I am trying to do is to have the button color change to a different color when it is on the page. The color only changes when I roll over it or hit it. Once I am on the page it changes back to the color it is on the up state.
i have a button, with instance name lightblue_color. I am assigning a color to its color field like this: lightblue_color.transform.colorTransform.color = 0x65ffff; then i am adding an eventlistener to the button like this: lightblue_color.addEventListener(MouseEvent.CLICK, ChangeColor); Then, in the function: public function ChangeColor(evnt:MouseEvent):void {trace(evnt.target.transform.colorTransform.color);} It prints 0. Why is that? Shouldn't it print 0x65ffff or do i need to do some type conversions?
I am using Flash - Actionscript 3.0 - to load image paths (and ultimately the images) from an XML file and then I am using the Tweener class to animate the tweens to scroll across the header. The problem: The scroll is not smooth, its quite choppy and I can't figure out why. I've read around the web that enabling bitmap smoothing works but I don't know how to do that with images loaded from XML. Need to know some common reasons for this choppy tween. You can check out the scroll at one of our pages such as... [URL]
Code: import fl.transitions.Tween; import fl.transitions.easing.*; import fl.transitions.TweenEvent; import caurina.transitions.* var imageLoader:Loader; var currentLoader:Loader; [Code] .....
Can someone show me how to make this sort of photo gallery on flash.[url]...
after clicking on this link, select family and click the link saying 'click to view harshith and amita's family photo'. From this, you will see the photo gallery which i will like to design
what I want and currently have is a main swf that loads in assets based on buttons pressed. I have 3 external SWFs (for the sake of this example, lets call the initial loaded swf "indexExt.swf", file two" f02.swf" and file three, " f03.swf") and in each of them,there's one layer that goes from frame 1 to frame 10. On frame 1, there's an "intro" label, on frame 5, an "outro" label, and on frame 10, an " end" label. indexExt.swf is loaded on initial load of the main swf. as for my buttons, I gave my buttons on the main swf stage, instance names that are the same name as the external swfs so that with this line event.target.name + ".swf" I can call em in without having to re-write code for every button etc..
I started known about FLASG a few day ago. I am very, very interesting about its. My boss want i make a text display in bottom screen and scrolling from right to left (same as display on TV). But, i used to keyframe to solved this solution but they are slowly and not smooth. Now i want text display running smoother. I not good at Flash .I am programmer , C# is my programming language.
I'm using Flash CS5.5 and have got swipe gestures responding on my iPad. The only problem is that they don't animate and I'm wondering if anyone has had any luck in replicating the smooth iOS swipes using Actionscript 3.0. I found a solution using ENTER FRAME but it was really slow and jerky.
i have to create a movie where a text string move in horizontal.
the problem is that in the movie (800px wide) the text should go from right to left in about 7 seconds (so it have to go about 400px to the left in 7 sec).
i created a motion-tween with ease for my "text" and the tween is long (at 30fps) 30*7=210 frames.
the result is that the text DON'T MOVE FLUID... it's not a uniform movement... it's too visible the fact that it moves X pixel each x frames. it's the exact opposite of SMOOTH MOVEMENT.
How can i obtain a smooth slow-motion text movement?
I wrote this repel function (below) for 2 movieclips and I call it from a timer instead of an enter_frame listener (speed), but it has the tendency to jerk and not be very smooth. How can I smooth the movements?
function repel(mover2, mover) { var xdiff:Number = mover2.x - mover.x; var ydiff:Number = mover2.y - mover.y; var dist:Number = Math.sqrt(xdiff*xdiff + ydiff*ydiff);
I wanted a suggestion from you guys regarding drawing and scrolling performance. The requirement is - I have to draw a graph with sound volume's values updated at 30 fps. And I need to draw this graph and simultaneously scroll to fit in the new values. So the length(width) of the graph is unlimited.
I need to do a flash banner, where are 3 images (i had to cut down 2 images off from file, to be able to attach it)(all of them have text, contact button (clickable) and background box).When hoverover image:
-image changes to another -image and background zooms to a bit bigger -text changes to new
When hoverout, image changes back to it's original form.At the moment, I made buttons, of those 3 images.It works quit well, but transition to mouseOver is quit ruff..
I have an issue working with the setStyle() on the modalTransprancyColor property. The module did not run on different variations of hexadecimal code, only one that seems to work is 0xDDDDDD. Anything else, this line of code will crash Flash.
I am noticing a lot of stuttering on my Flash videos viewed over the internet, Win 7 64bit and IE 8, Opera & Chrome.[URL] I am a video producer who shoots, edits, encodes and manages a few websites. I am very familiar with bitrates and encoding.
The videos I am seeing stuttering on are created from HD content and were encoded in Adobe Media Encoder at a bitrate from 775kbps down to 400kbps. When I play these through my 6meg DSL connection there is a constant random stutter like the video is stuggling with a low buffer. This happens even after the download bar shows the entire video is downloaded.
So am I expecting too much from Flash video? Will it always be an "internet" experience and not smooth?When I double-click the .swf files in Windows Explorer they play just fine, very smooth. Maybe a SWF Publishing setting?The Flash player is the latest which was uninstalled and re-installed.
I'm building a simple white board app in ActionScript 3. Most white board or painting apps in ActionScript tend to use an interval, timer, mouseMove event, or enterFrame event to track the mouse position and paint lines or brushes in between the tracked points.
What I'm trying to achieve is the nice smooth painted line that a program like Photoshop can render while painting with the brush tool. In Photoshop, no matter how fast you move the mouse around the canvas, the painted lines always end up with a nice smooth curved edge. In my app, using any of the methods mentioned prior, there is always latency between the function calls that render the brush to the stage. Thus, using any of those techniques can result in a sharp cornered line when moving the mouse very quickly in a circular manner.
This is no surprise to me, I just have no idea how I could achieve a smoother line like Photoshop's brush tool. Mind you, the brushes for my app are mostly based on shapes and do not or cannot use the drawing API to draw continues lines. In other words, graphics.curveTo() is not an option. I am also rendering the Sprites or Shapes generated by the brushes to a BitmapData instance.
how to emulate Smooth font rendering option from Photoshop in Flash/Flex?'ve tried different settings for advanced rendering (antiAliasType, gridFitType and friends) but not much luck so far.