actionscript 3 - TweenLite does not work with object -


i got following problem:

i have object called tempscore game.

this object blitted canvas renderer via copypixels method. object not display object. it's score-object (self made). score-object extends object called basicblitarrayobject. basicblitarrayobject extends eventdispatcher (therefore no display object).

i tried apply several different tweenlite-plugins tempscore-object (i.e. transformaroundcenter, colormatrixfilter, etc.). nothing happens. absolutely nothing.

sometimes error messages (when plugin requires display object , object not display object). far good.

according greensock (maker of tweenlite) engine can tween numeric property of object. when plugin transformaroundcenter requires display object tweening have modify plugin working non-display object (tempscore). can't because it's way hard me.

my game rests upon code: http://www.8bitrocket.com/book/ch11_blastermines.zip

try apply tweenlite object called tempmine inside game class blastermines. won't work. help, please?

greensock's claim correct, in it's exactness. you can tween numeric property of object. statement not include application of plugin features.

the reason transformaroundcenter , colormatrixfilter plugins don't work each utilise property or method of displayobject. in case of transformaroundcenter that's displayobject.localtoglobal() , colormatrixfiler it's displayobject.filters.

i have ask why you're applying these plugins not display object? in blitting (as applies as3), basic idea read area sprite sheet bitmapdata object, in turn write bitmap object on stage. both bitmapdata , bitmap extend displayobject, need. higher compatibility should target bitmap object on stage, transformaroundcenter not work correctly object not on stage.

for better answer have post code, , possibly screenshot debugger monster debugger 3 shows expanded display tree.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

jQuery Ajax Render Fragments OR Whole Page -