Jump to content
Search Community

chrisrushing

Members
  • Posts

    5
  • Joined

  • Last visited

chrisrushing's Achievements

0

Reputation

  1. I sorta got it but... I'd like it to be more exact... it seems like its going larger than the scaleX:1, scaleY:1 part by about 10% TweenLite.to(mc1, 4, {bezierThrough:[{x:410, scaleX:.4, scaleY:.4}, {x:160, scaleX:1, scaleY:1}, {x:-410, scaleX:.4, scaleY:.4}], orientToBezier:true, ease:Expo.easeInOut});
  2. I'm trying to tween an object with the bezier function. But I'd like to have the scale change in the middle of the animation as opposed to only at the beginning and the end. Basically it would be small, large, then small again. Please say this is possible. If there is a better way to do this without using the bezier function, please say so. I'm basically creating the illusion of a coverflow/dock but completely NOT interactive.
  3. I got it... haha images target name was still "images" instead of "ss1" Works perfect now.
  4. I'm going to need to be able to call this thing in an out of "scene" like I would any photo... except in this case its a slideshow. For instance i need to be able to control it like... TweenMax.to(p.ss1, 0, {y:-100, rotationX:-25, blurFilter:{blurX:50, blurY:50}, scaleX:2, scaleY:2, alpha:0}); This is my xml... forgive my newbness... haha I got it from a tutorial.
  5. my code ... var xml:XMLLoader; var ss1images; var current = 0; var previous; function init_ss1(){ LoaderMax.activate([imageLoader]); xml = new XMLLoader("xml/ss1.xml", {name:"ss1", onComplete:onXmlLoaded}); xml.load(); } function onXmlLoaded(e){ ss1images = LoaderMax.getContent("ss1"); nextImage(); } function nextImage(){ TweenMax.from(ss1images[current],1,{alpha:0, onStart:function(){ addChild(ss1images[current]); }, onComplete:function(){ if(previous){ removeChild(ss1images[previous]) } previous = current; if(current current++; }else{ current=0; } setTimeout(nextImage,2000); } }); } init_ss1(); and the error... TypeError: Error #1034: Type Coercion failed: cannot convert XML@4a9a3841 element to flash.display.DisplayObject. at MethodInfo-1313() at Function/http://adobe.com/AS3/2006/builtin::apply() at com.greensock::TweenMax/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() I know the function is firing b/c it keeps repeating the error every 2000 ms. Also once this works... i'm trying to control where the "slideshow" is and animate in in/out of scene. It's part of a larger linear presentation i'm building. Would the best way to handle that ... to have this slideshow be an external swf file and load it into my larger presentation swf file?
×
×
  • Create New...