675 posts
  • Exclusive Author
  • Won a Competition
  • Most Wanted Bounty Winner
  • Sold between 10 000 and 50 000 dollars
  • Philippines
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
+1 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!

1676 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 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
  • Exclusive Author
  • Won a Competition
  • Most Wanted Bounty Winner
  • Sold between 10 000 and 50 000 dollars
  • Philippines
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
+1 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
  • Bought between 1 and 9 items
  • Brazil
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
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

3747 posts
  • Won a Competition
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Spain
  • Referred between 200 and 499 users
+5 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
  • Bought between 1 and 9 items
  • Brazil
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
tsafi says

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

1676 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 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
  • Exclusive Author
  • Won a Competition
  • Most Wanted Bounty Winner
  • Sold between 10 000 and 50 000 dollars
  • Philippines
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
+1 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.

5311 posts The Dude Abides
  • United States
  • Exclusive Author
  • Has been a member for 5-6 years
  • Elite Author
  • Bought between 100 and 499 items
  • Referred between 100 and 199 users
  • Author had a Free File of the Month
+5 more
CodingJack says
I also have a similar problem with 3d rotation thats bugging me :)

What 3D are you using?

675 posts
  • Exclusive Author
  • Won a Competition
  • Most Wanted Bounty Winner
  • Sold between 10 000 and 50 000 dollars
  • Philippines
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
+1 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.

by
by
by
by
by
by