ActionScript 2.0 :: Smooth An Image That Has Been Slightly Angled?
May 30, 2007How do you smooth an image that has been slightly angled?
View 1 RepliesHow do you smooth an image that has been slightly angled?
View 1 RepliesI was wondering if there is a way to find a slightly darker and slightly lighter colour based on a particular value?
I have a MovieClip with 2 nested MovieClips inside. The background movie I set to a certain colour using ColorTransform and the other movie is sort of shading.
What I'm trying to do is make sure that I transform the shadings colour to be a darker shade of the background movie's colour.
I was also thinking could I then have a mid point where if the background colour is really dark have the shading start to be a certain shade lighter?
I set my images at 60% quality JPG files out of photoshop which seems to give a very nice representation. I set up a site to take a full screen, so I expect it to be larger on a bigger screen then what I see on mine. I figured to keep every image actual size at about 25% bigger when the finlal needed size in the layout, so if the site is ever on the bigger screen then images have some stored resolution to be enlarged and accomodate an increase in size. So all of mine images are scaled at about 75%.
Is it a good practise or things don't work this way in Flash? Perhaps it is better to keep the images to 100% (rather than importing intentially enlarges images) but make the maximum quality? Or both ways kind of work out?
I am updating source code I came across to AS 2.0 and I am having problems with the tweens. Here is what I am trying to accomplish in AS2.0:[URL] Here is the part of my updated code I am having problems with:
[Code]...
This is my problem: (1) I want the top image to tween to the right and up in X and Y direction and also slightly rotate. THEN I want it to tween back underneath the other stack of pictures in center of swf. However what is happening is that the depth of the topimage is being set under all the pics right away and the tween takes place under all the pics and not ontop. Is there a way for me to wait until the tweens are done and then execute my swapDepths line? Here are problem lines in detail:
[Code]...
Have set up a file which preloads all of my images from an XML before displaying. However I'm having problems, one is the preload bar flashes slightly at the start, then is visible as I scroll through each image in the galleries. I've attached my fla file >> here <<
View 12 RepliesI'm trying to code a click-and-point adventure game for a class, in which interactive objects glow when you mouse over them.... In the frame I have the background image (in which there is, say, a drawer), and an image of the drawer glowing placed exactly over top of that. The glow image is invisible until you mouse over it, at which point it is supposed to become visible (and disappear upon mouseout). I have the mouseover function linked to the entire glow image (which is a movieclip), but it only seems to work when you mouseover a specific portion of the image (usually a corner). The code looks something like this:
ActionScript Code:
DeskDrawer.addEventListener(MouseEvent.MOUSE_OVER, drawerLightUp);
function drawerLightUp(e:MouseEvent){
DeskDrawer.alpha = 100;
}
when the glow-image is moused over, it moves upward slightly and a small amount of whitespace appears at the top of the image.
I am trying to create buttons on a 45 degree angle. They are simply text. I have tried drawing different hit areas for the button, but when I publish the swf the hit area for the button is always its bounding box (so there is a huge space in the upper left and lower right corner which activates the button).
View 1 RepliesI created a slideshow where the images fade out and in using a motion tween from 0% alpha to 100% alpha in 15 frames. The fading doesn't look right to me it is very jagged. Is there a better way to do this. My files are too big to upload even when I tried to limit them to 3 images.
View 1 RepliesI'm trying to build a tool similar to this.I'm using movie clips for the shapes.I am placing the reflected shape by figuring out the point on the line perpendicular to the original shape's registration point, then using the distance and angle. The part I'm stuck on is how to actually reflect it.It seems that if I was just drawing a shape I could use each point to determine new ones as I did above and redraw it, but I also have to reflect more irregular movie clips like illustrations and bitmaps. I tried rotating and Any insights on the best way to approach this? Is there a way to use a matrix?
View 2 RepliesI'm making a side scrolling platformer and I wonder why image movement is so choppy, especially if velocities arent whole numbers? Images I'm using are: one 320*350, one 500*500 and few of 50*50 all in PNG format with alpha support and cached as bitmap. Framerate is 30FPS.
View 1 RepliesI would like to zoom in and out of images like this
[URL]
Actionscript 1 and or 3?
Is there any way that i can smooth out images that zoom in/out with normal classic tween. they are so jittery it looks terrible. I even have a little bit of easing and frames per second set to 30.
View 5 RepliesI am trying to rotate a PNG image around its centre point so that I can use it as a wait icon. This seems to be the way to go but there is a noticeable delay before the animation repeats.
<s:Parallel id="animateTimer" target="{timerImg}" repeatCount="0" repeatDelay="0" duration="1500">
<s:Rotate angleFrom="0" angleTo="360" autoCenterTransform="true"/>
</s:Parallel>
Why when I have set the repeat delay to 0 does it have a noticeable delay before it repeats?
I have a series of images that merged into one 2400 pixel wide jpg. I want this to loop continuously across the bottom of a website. I have tried using TweenLite and TweenGroup but cannot get that to behave correctly. Is there an Actionscript 3 way to do this? Ultimately this is being added to a Flex site.
View 1 Repliesi have created a slideshow in AS3 scripting to pan images from left to right or right to left. The issue i have on the slideshow is some stutter effects when the set of images are panning from left to right by one after another. Is there anyway to make the panning smoother than the jittery effect.
about using graphic acceleration for smooth effect. What is graphic acceleration and how it helps to achieve the smooth movement of images.
[Code]...
I'm trying add image smooth code to xml gallery (green text):
Code:
package
{
import caurina.transitions.*;
import flash.display.*;
import flash.events.*;
[code]....
I don't know why always first loaded photo is loading with null object error and without of smoothing, but any next photo is loading fine without of any errors and with smooth option enabled.The gallery is loaded into main.swf with Loader class.
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.
Is there an easy way to rotate an "angled" wheel/circle in flash? I played around with the 3D Rotate tool and nothing seemed to do what i wanted.
Attached is an image below that shows a quick mockup of the type of wheel I am going to use. I want to show the lines rotating around the circle.
[URL]
I have 3 buttons slightly overlapping each other, all on one layer. What i'd like to happen, is for whichever button is rolled over with the mouse to show up on top of the other buttons..
View 2 RepliesI'm completely new to flash & digital art. I got a project recently for a christmas card. Basically a digital drawing with some flash animation edited into it. The rough sketch can be seen here: Though I just have a slightest idea based on youtube videos of how to do it. Here's what I think I could do (correct me, if wrong):
1)Make the background image in PS as a digital painting
2)Make the characters into vectors in Illustrator.
3)Make the further frames/moving parts of character in Illustrator as well
4)Export the whole thing into Adobe Flash
5)Make it happend.
a)Does my plan have potential?(Though I can finally be sure of it in practice.)
b)What flash format to use to create it, considerint that it'll be used in web, sent out as emails? (There are a number of things in there -Action Script, AIR etc)
c)Any tips for a beginner?
I have an organization chart with about 40 items on it. Each item will have three options that will show up when moused over. Each of these options will go to a different [URL]... for example.
View 3 RepliesI'm writing in Flex a simple app that allows product personalization, right now I'm working on adding engraving text. Most products are round so I want the text the be slightly curved when placed on the product to give it more realism.
I've looked into text curving/arching in Flex but the solutions I've found seem to be overkill for my requests. Does anyone know how I can slightly curve text in Flex without too much hassle?[URL]..
I�m going to set a cenario with three pictures.
The first one, the background, and two others, smaller.
I�d like to make each one of the images to move slightly as the mouse moves, but each of the images must move in differect speeds and distance, making a pseudo 3d/panoramic illusion.
I just upgraded from a Macbook that was using OS X Tiger to a new Macbook with OS X Snow Leopard. Now, when I open my flash files on the new computer, they are rendering the fonts slightly differently and off position. I am using the same software (Flash CS4) and the same font library.
View 1 RepliesI'm basically looking to create some buttons that once 'rollover'd' grow slightly, and shrink again once 'rollout'd' and I am hoping to add a little bounce (or I believe its called elastic) once it snaps back. I am a beginner, but have created buttons before with rollover, rollout etc but arent sure how to create the motion of it growing in the button. (I am using Flash CS4 and was intending AS3, but happy to use whatever is recommended for this.) I did use this site tutorial [URL], but I wasn't sure which AS or CS it was using. Everything worked but the motion of the growing.
View 8 RepliesI have a series of movieclips containing both bitmaps and text.After applying some 3d transformations and moving in 3d space, my text and bitmaps are slightly blurred. This is AFTER I reset all the 3d coordinates (ie z=0, rotationX=0, rotationY=0) Has anyone else encountered this? Is there a solution to get my crisp text and bitmaps back?
View 3 RepliesWe need to generate around 8,000 nearly identical SWF files with slightly different text. I know about flashvars, but unfortunately, we don't have control over the publishing of these files and can't have flashvars passed in. Ideally what I'm looking for is that we have a flash designer come up with a nice looking template for us with a placeholder text or element in the file. We can then call a command line utility many times to generate 8,000 copies of this with slightly modified text. I've searched for an entire day now and haven't found anything to help us out. Granted, I'm not a flash developer, but it seems like this would be pretty straight-forward.
View 2 RepliesI have a flash application with 1px circle outlines, the bit at the top and bottom are slightly pixalated. How can I correct this?
View 1 RepliesMy first time making anything in flash, so go easy on me. I made a set of navigation buttons for a website I'm building for a friend of mine.
When I make it in Flash, everything looks perfect. When I save it as a movie and run on my computer (in Flash Player 6), it still looks perfect. But when I put it on my website, the "M" in "HOME" gets distorted (on all browsers). See here: [URL]
Using Flash MX, can't afford the upgrade to CS right now!
I've created a holder on my site into which I'm loading individual .swf movies using a separate 'interface' at the side. Each swf is a slideshow of jpeg images, but for some reason they are becoming slightly stretched/distorted (maybe a single line of pixels is repeated) when they appear in the holder. The holder size is 1000x600, each swf has the same size, same dimensions for each jpeg too.
An example code for a button to load the swf into the holder is:
on (release) {
_parent.holder_mc.loadMovie("interface_7_movie.swf ");
}
Is there anything I need to add to prevent the weird distortion?