ActionScript 3.0 :: Avoid Blurred Sprite When RotateY?
Dec 8, 2009When I rotate a sprite - it ends up blurred - or smoothed.
Code:
// rotate sprite
_person.rotationY = 180;
How can I avoid this?
When I rotate a sprite - it ends up blurred - or smoothed.
Code:
// rotate sprite
_person.rotationY = 180;
How can I avoid this?
I've googled out a lot of different stuff on this matter but nothing seems to work. I have a Sprite object which is used as a main container for other objects.The lowermost child of this sprite is a Bitmap which represents a background, the upper ones are MovieClips. These movie clips contain bitmaps. There are also DropShadow filters applied to these movie clipsThe problem is that when the main container moves, e.g. 1.3 pixels to to the right or to the left (doesn't matter) all those objects (movie clips contained inside of it) move like they snap to pixels. Well,it's obvious, they do. But is it possible to avoid pixel snapping for movie clips and sprites?I tried to set pixelSnapping of the bitmaps inside those MovieClips to "never", but it doesn't work. Removing all filters or drawing movie clip to bitmapdata doesn't help either.
View 3 RepliesClassA passes a reference of a Sprite instance to ClassB.
Code:
//This is inside of ClassA
classBInstance.referenceSprite = parent as Sprite;
If I do not use "as Sprite", I get error 1118.I understand the error, and know that the code above fixes the error, but my question is: Is this bad practice? Is this a sign that my design could be changed to avoid using the "as Sprite" portion?
I've recently began using Flash, and came across an error which I'm afraid I've yet to resolve.While animating some text with the use of masks, it becomes blurred, like this: URL..As you can see, the first text - videos - has no problems, while the second text appears blurred. In the animation, the same happens.
View 1 RepliesI am trying to saturate a flash animation from left to right with a blurred wipe. I am attempting to do this by creating duplicate movie clips, with one of the movie clips having a filter to completely desaturate the color. I am hiding the saturated movie clip with a mask (basic rectangle) that I am animating to move out of the way revealing the "color". I would like my desired effect to "fade" in by adding a horizontal "x" blur to the mask. I have been successful at wiping in the saturation, but Flash seems to be ignoring the blur on the mask I have created.
View 7 RepliesI have a Flash CS3 movie (AS2) wich uses pixel fonts. The text is within a movie clip that uses the tween class to move with ease. Whe I publish it, everything OK, the text looks very crispy. But I want this movie to be centered in the browser window so I've used the tags <center> </center> in the html file as you can see below. When you play the movie it plays in the center but... with IE8 the text is blurred if the browser window is maximize, but crispy if you minimize the window!! With other browsers it works well with all windows sizes, IE7, Firefox, Safari...
Here is an exemple: [URL]
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>test2</title>
[Code].....
I am using MX 04 and I have a rather large background for my movie 2046x396 and I made it into a mc to pan right to left... it looks ok in the designer and plays fine in the library, but with I testrun the movie it looks like the image is getting smeared on the screen... the movie speed is 60fps and the background mc I have tried from 100 to 300 frame motion tween.
View 0 RepliesI have a Flash CS3 movie (AS2) wich uses pixel fonts. The text is within a movie clip that uses the tween class to move with ease. Whe I publish it, everything OK, the text looks very crispy. But I want this movie to be centered in the browser window so I've used the tags <center> </center> in the html file as you can see below. When you play the movie it plays in the center but... with IE8 the text is blurred if the browser window is maximize, but crispy if you minimize the window! With other browsers it works well with all windows sizes, IE7, Firefox, Safari...
Here is an exemple: [URL]
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>test2</title>
[Code]....
Have you ever tried to mask a blurred movieclip? If the mask is made manually and set on stage it works ok, if we use:mc.mask = mask;it seems like the mask is also blurred and it doesn't work as expected! Do you have any idea on how to solve this?
View 8 RepliesI don't know if this would be more appropriate under the 3D forum but it could go either way. I'm having a problem: when I access the 3D rotation properties of a DisplayObject (specifically a MovieClip containing a Loader and some TextFields), it becomes bitmapped and loses its scalability. Is this supposed to happen, and is there a way to regain scalability after rotationX/Y/Z are set to 0.0?
View 1 RepliesI have seen people complain about this, but no work arounds. The blurry eddges I see on the rounded portion of round rectangles is awful. IS there a workaround?
View 5 RepliesURL...but it takes about 5 seconds to go from blurred to focused.can anyone tell me how to speed it up? All done in 2 seconds would be enough.
View 2 RepliesI was wondering if it is possible to have a mask applied through the setMask(); and have 2 out of the 4 edges blurred. That way you can can get kind of a soft wipe transition.
View 9 RepliesWhy do MC's display blurred in IE and not in Flashplayer or Firefox?
View 5 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 RepliesI created a class, extended the sprite class, and now in the constructor I am trying to set the Sprite's width and height properties which are inherited from the DisplayObject. However, after I set this.width and this.height, and print the values, I get 0 for both.
What the heck is going on? When I view the livedocs I see that DisplayObject has width and height listed as public properties. I have been able to instantiate a Sprite directly, and set the width and height after it's been instantiated, so I don't get it.
package {
import flash.display.*;
public class ScrollBar extends Sprite {[code].....
I've got a sprite which I want to temporarily hide... But changing the .visible property doesn't do what I expect. The code looks roughly like this:
[Code]...
I created a new AS3 document (550px by 400px) and added the following code to the first frame.
However, when I run this, I see nothing painted on the screen at all, the screen remains completely white.[code]...
I'm doing a simple rotation on a sprite but there's a weird behavior where the sprite does not rotate around it's top left. I think I'm rotating along the top left of the test class instead of the sprite child. I would like to rotate the rectangle around it's top left corner (kinda like a clock hand). The code is pretty short so I'll let the code + pictures explain my problem:
package
{
import flash.display.Sprite;
[Code]....
I've read a lot of stuff about rotating around a fixed point, I've tried doing it with movieclips instead of sprites, I even copy pasted a tutorial on rotation and nothing works.
[Code]...
Then the numericStepper is drawn as if it is squished to 20% its normal height. If I pre-set mySprite width and height before adding the numericstepper, the trace output is 0,0 after adding it and it is not displayed at all. Is there some way I can make the sprite only adjust to correctly fit the numericStepper OR resize it afterwards without distorting the numericStepper component?
Both of sprite.width and sprite.scaleX can be used for scale a sprite. Is possible sprite.scaleX depends on screen size?
View 2 RepliesIt has been a great resource of the years. No my problem. I am trying to dynamically resize a sprite that has a line drawn into it. Here is my code:
[Code]...
I just recently started playing with cs5 and it's new features. I tried to rotate a textfield with the 3D rotation tool, but when you do this, the textfields gets blurry.And it seems like it's not a vector text anymore, because when you zoom in, it still is blurry.Is there a way to prevent that?
View 5 Repliesfirst i have 2 sprite.. it`s mcproduct sprite and mcproductpane sprite . mcproductpane is a parent of mcproduct sprite.. so inside mcproductpane there a several mcproduct sprite.this is a script of mc prodcut
PHP Code:
[Code]...
The problem is i want to set a button in here(mcproductpane sprite), this button will unload / make dissappear an image that i load using loader class in mcproduct sprite..how can i make this happen?when i want to make a button in mcproductpane sprite which the function of the button it`s to unload/make an image that i load using loader class in mcproduct sprite disappear.
Everytime I google this question I see confusing information about masks and blends, none of which seems to directly apply to what I think should be an easy thing... There are three Sprites involved here...the lowest layer sprite is pretty much a background. I want to overlay a translucent Sprite on top of the background and then I want the third, top-most Sprite to act as a hole, so that the area inside the third Sprite is completely transparent, so that the background sprite is completely visible. How would I go about doing this dynamically (i.e. dynamically drawing the masking sprite and hole using the Actionscript graphics calls)?
View 4 RepliesIs it possible to set the height of the sprite depending on the height of an textfield inside that sprite? I'm creating a box with a textfield inside it, but I want the box to be sized depending of how much text it is in the textfield..
View 9 RepliesHow can I avoid that the ActionScipt error pop-ups appear.
View 4 RepliesIt seems it isn't possible at runtime to change styling defined in CSS files, ex.: colors. This is seemingly because the CSS files are compiled into SWF. Is it possible to externalize styling information in CSS (or any other format) without compiling it to SWF file so that it can be changed easily at runtime just as normal CSS can be changed when it is used in HTML.
View 3 RepliesI have a brick class where I have created a rectangle using flash.display.graphics.I am using this brick class to create a grid of 10 X 10 in another class called grid using new brick() in a for loop.I have another class called ball where I have created a circle with flash.display.graphics.The problem is that I want to remove / destroy individual bricks when the ball hits the bricks on Event.ENTER_FRAME which is not happening.the error I get is shown only for the last brick that is created in a for loop.ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display:isplayObjectContainer/removeChild()
at grid/ball_movement()// my function in enter frame event
The code I wrote in ENTER_FRAME is
[code].....
I have a brick class where I have created a rectangle using flash.display.graphics.I am using this brick class to create a grid of 10 X 10 in another class called grid using new brick() in a for loop.I have another class called ball where I have created a circle with flash.display.graphics.The problem is that I want to remove / destroy individual bricks when the ball hits the bricks on Event.ENTER_FRAME which is not happening.the error I get is shown only for the last brick that is created in a for loop.[code]
View 1 Replies