675 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+6 more
dexterous says

Hi,

I tried for quite long hours and also tried to find the answer online. But my problem is not getting solved, so I am asking it here:

The problem is that I have curves in my movieClip and size is determined at runtime ( so scale 9 works perfectly fine ).

But when I tween my MC using the caurina tweener, it appears that as if the MC is getting cached as bitmap – after this, the edges are distorted and also the border lines are not smooth.

Is there is a way to tell the flash player to forget about the cache after tweening ??

I tried following but none of these worked:

set cacheAsBitmap to false

Change width/height after tweening so as to rebuild the cache.

remove and apply filters again

remove the object itself and add it again (using remove Child and add child)

If nothing work, I guess only other solution is to draw an entirly new MC again (note this MC is just a BG element and there is nothing inside it apart from a rounded rectangle and a hairline border.

Still, if any of you have faced such issue before , and know how to resolve it, please let me know (by posting here).

Thanks and cheers!

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+5 more
Tean says

If you have filters applied to your object, cacheAsBitmap is forced to true and I dont think you can turn this off. Maybe you can try to create a BitmapData with smoothing turned on and then draw() the object into that BitmapData and tween that.

Also, have you tried without scale9grid if the situation allows it, and make 2 shape layers, one behind the other, to ‘act’ as a stroke. Sometimes this works fine, sometimes it doesnt…

675 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+6 more
dexterous says

Thanks tean, removing the stroke an placing it n a layer behind, id marginally better .. but still having no border (stroke) doesn’t appear so much of distortion.

Some more input – it happens only when I change any of the 3D rotation (x , y , or z) property while tweening for other props like, x, y, etc, it does not appear cached or distorted.

and also shadow blur is not correct after doing the tween .. I guess I will have to think of other transition :-|

4140 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Located in Brazil
+3 more
tsafi says

Well when Using cacheAsBitmap = true; allows faster rendering than the default use of vectors that’s all, many people think by using cacheAsBitmap or smooth it’s a magic medicine for all there Bitmap rendering problem which is completely not the case (bed time stories on Bitmap maybe on other time ) When you Tween Bitmap on vector base movieClip round edges are very sensitive even so when shifting your objected (copy) from Fla to other Fla (I guess you want to sell this App` here) edges are distorted or shifting a little since the Tween motion cant clear graphic on each pixel.

I didn’t see your code but really if its basic vector shape with round edges, best way is doing it in AS., Shape as graphic and the holder is sprite or Movieclip .

So if you want you can post your main core code and i can look at this, if its AS2 don’t even bother me when it comes to Bitmap.

Ps .

if its vector shape you draw and you have round line edges border make sure you convert your line to fill by doing modify-Shape-Convert Lines to fills

Edit – just notices its CS4 – well there is a great vector class with Fp 10

3752 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Located in Spain
  • Has sold $125,000+ on Envato Market
  • Helped several times protecting Envato Market against copyright violations
+9 more
pezflash says

Maybe this answer is far away from the solution, but it worked for me in a similar situation time ago. Tweener does not tween round number variables, even if the “final” destination is rounded, sometimes it makes mcs became blurry in borders and lines.

As this is a matter of seconds, try it if you want. Place “rounded:true” at the end of your tweener function:

Tweener.addTween(yourMC, {_x:100, _y:100, time:1, rounded:true});

<”}}><

4140 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Located in Brazil
+3 more
tsafi says

Pezlino – is right + you can try Gs(I never tested in Cs4) or Tweensy for fp10 you will see dramatic change

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+5 more
Tean says

I also have a similar problem with 3d rotation thats bugging me :)

After object is rotated text inside becomes blurry.

Its a dynamic textfield, font is embeded, and on the full pixels as usual. Anti alias is set for readability because I want clean and readable text. If I set it to Animation then text looks bad from the start…

Top picture is non ratated, bottom after a rotation:

damn it :D

675 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+6 more
dexterous says

thank you for all your suggestions guys.

I Removed the stroke (converted to fill). Adding the shadow programatically after the tween is finished. still the quality is not that good.

Also the biggest problem was that it appeared different before tweening and different after tweening, so immediately after loading I rotated it a bit and then rotated back (now it looks same after tween and also before tween) – just a little blurred in both :-) ..

I will see if quality can be improved further ..

but one more question .. after the MC is cached as bitmap (which is done automatically by the payer as I am rotating in the 3d space) .. is there a way to ask player that please do not display the cached one any more and redraw the vectors ? (Something like invalidate display list in flex) ?

but anyway thanks again.

5403 posts The Dude Abides
  • Located in United States
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+9 more
CodingJack says
I also have a similar problem with 3d rotation thats bugging me :)

What 3D are you using?

675 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+6 more
dexterous says
I also have a similar problem with 3d rotation thats bugging me :)
What 3D are you using?

Don’t know about him, but I am using rotationY property.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by