viaria Posted May 20, 2011 Share Posted May 20, 2011 hi, i have a problem with inserting my game into my gaia site's opening. the problem is after shapes come into places, cubes start rolling, that is the place timelineMax goes crazy. it is working alone normally but gaia site. here is my game alone without gaia http://gricreative.com/clients/toca/cube3/ and here is i made it my gaia site's homepage class. http://gricreative.com/clients/toca/site/ do you have any idea? Link to comment Share on other sites More sharing options...
GreenSock Posted May 20, 2011 Share Posted May 20, 2011 That sounds like a Gaia question - have you asked your question in the gaia forums? I'm not a Gaia user so I'm not quite sure what to advise. Link to comment Share on other sites More sharing options...
viaria Posted May 21, 2011 Author Share Posted May 21, 2011 i know it is about gaia but i hoped. yes the same question there but nobody answers. i have to figure it out. thanks jack. Link to comment Share on other sites More sharing options...
viaria Posted May 21, 2011 Author Share Posted May 21, 2011 hi jack, i guess i got something. my working example using timelinelite v 1.392 and other one that not working uses v 1.66 latest i changed the path to old version and it gives verifing error. VerifyError: Error #1053: com.greensock.TimelineLite -> addChild Link to comment Share on other sites More sharing options...
GreenSock Posted May 21, 2011 Share Posted May 21, 2011 You need to republish your swfs so that they all use the same version (or else use separate ApplicationDomains). Of course I'd highly recommend using the latest version consistently across the swfs. Link to comment Share on other sites More sharing options...
viaria Posted May 21, 2011 Author Share Posted May 21, 2011 tried but i have no idea what went wrong. but the problem seems like objects cant set their simple properties (x,y,z). or overwriting existing properties. Link to comment Share on other sites More sharing options...
viaria Posted May 21, 2011 Author Share Posted May 21, 2011 //so my code. goPlace(cubes[7], ["r","r","r","u","u","r","r"]); private function goPlace(c:CubeSprite, dirs:Array):void{ var total:uint = dirs.length; var i:uint = 0; var sx:Number = c.x; var sy:Number = c.y; var timeline:TimelineMax = new TimelineMax({align:TweenAlign.SEQUENCE}); for(i; i < total; ++i){ switch(String(dirs[i])){ case "l": sx -= SIZE; timeline.append(TweenMax.to(c, .5, {frame:60, x:sx, onInit:setRotation, onInitParams:[c, 180], ease:Linear.easeNone})); break; case "r": sx += SIZE; timeline.append(TweenMax.to(c, .5, {frame:60, x:sx, onInit:setRotation, onInitParams:[c, 0], ease:Linear.easeNone})); break; case "u": sy -= SIZE; timeline.append(TweenMax.to(c, .5, {frame:60, y:sy, onInit:setRotation, onInitParams:[c, -90], ease:Linear.easeNone})); break; case "d": sy += SIZE; timeline.append(TweenMax.to(c, .5, {frame:60, y:sy, onInit:setRotation, onInitParams:[c, +90], ease:Linear.easeNone})); break; default: trace("default dir: "+dirs[i]); break; } } } private function setRotation(c:CubeSprite, r:int = 0):void{ c.gotoAndStop(1); c.rotation = r; } Link to comment Share on other sites More sharing options...
viaria Posted May 22, 2011 Author Share Posted May 22, 2011 i solved it. the problem is gaia changes tweenlite's overwriteManager default settings. so i changed it back to auto default mode . i hope something else will not explode. jack thanks for interest. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now