Jump to content


  • Posts

  • Joined

  • Last visited

un4given's Achievements



  1. I'm using TweenMax, I also tried using TweenLite and the plugin. I'm using superScrollorama, the tween itself works if I dont try to get the path using BrezierThrough. The only problem I'm having is with this line: var beziers = BezierPlugin.bezierThrough([{x:0, y:0}, {x:250, y:400}, {x:500, y:0}]); The full JS: $(document).ready(function() { var beziers = BezierPlugin.bezierThrough([{x:0, y:0}, {x:250, y:400}, {x:500, y:0}]); var controller = $.superscrollorama({ triggerAtCenter: false, playoutAnimations: false }); var e1 = $("#foo"), e2 = $("#foo2"), e3 = $("#foo3"); controller.addTween('#container', (new TimelineLite()) .append([ TweenMax.staggerTo([e1,e2,e3],50,{css:{bezier:{curviness:1, values:[{x:0, y:0},{x:500, y:0},{x:500, y:100}, {x:0, y:100}], autoRotate:true},ease:Linear.easeNone}},0.5) ]) , 500, -300); });
  2. I cant seem to get accsess to the BezierPlugin, I get a undefined error. My aim is to draw the line my object moves along using bezierThrough, do you know of any simple tutorials/examples of this? I found a few but they are quite confusing.
  3. un4given


    Yep, that worked! thanking you.
  4. un4given


    I saw my mistake of positioning right after posting but wasn't overly concerned about that, thanx though. My code for transformOrigin: ----css----- .origin{ position: absolute; width: 50px; height: 200px; left: 500px; top:20px; background-color: blue; } -----js------ var origin = new TimelineMax({repeat:-1}) var o = $(".origin"); origin.to(o, 2, {css:{rotation:"360", transformOrigin:"center bottom"}}); origin.to(o, 2, {css:{rotation:"0", transformOrigin:"center bottom"}});
  5. un4given


    No I was/am defining as a string, not a number. Also updated the JS files. The problem seems to be if I use transformOrigin. everything else work, well apart from rotations act like I am rotating a background images and the div is set to overflow:hidden. Is TranformOrigin meant to work, or is it wishful thinking?
  6. Im not sure I understand what you mean when you use the word "class". Do you mean how one goes about importing and using the js scripts?
  7. un4given


    I am getting the error "invalid argument" from TweenMax.min.js line 16 in IE9 simulating IE8. Im trying to test my TweenLite code in IE8 &> but cant get past this error. Any help would be appreciated. -----update----- changed from TweenMax to TweenLite + CSSPlugin but now the error is popping up in the CSSPlugin script, line 14, character 12005. D
  8. Hello, Does anybody know why the progress of the selfloader in my queue doesnt show? The imageloader works fine. import com.greensock.loading.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.ImageLoader; import com.greensock.*; stop(); var queue:LoaderMax = new LoaderMax({name:"mainQueue",onProgress:progressHandler,onComplete:completeHandler,onError:errorHandler}); queue.append( new SelfLoader(this, {name:"self",container:this}) ); queue.append( new ImageLoader ("100_6867.jpg", {name:"image",container:image,x:0,y:0,width:220,height:274.85})); queue.load(); function progressHandler(event:LoaderEvent):void { trace("progress: " + event.target.progress); var site_loader_progress:int = 100 * event.target.bytesLoaded / event.target.bytesTotal; mc_txt.text = site_loader_progress + "%"; } function completeHandler(event:LoaderEvent):void { trace(event.target + " complete"); TweenLite.to(white,1,{alpha:0}); } function errorHandler(event:LoaderEvent):void { trace("error occured with " + event.target + ": " + event.text); }
  9. Would I be able to load the swf via: ?
  10. Is there a way to dynamically create SWFLoader vars at runtime? I am about to start a project where I will need to load and unload a lot of external swfs. So can I dynamically create: var page1loader:SWFLoader = new SWFLoader("pages/page1.swf",{name:"p1",container:pagecontainer,onComplete:completeHandler}); var page2loader:SWFLoader = new SWFLoader("pages/page2.swf",{name:"p2",container:pagecontainer,onComplete:completeHandler}); var page3loader:SWFLoader = new SWFLoader("pages/page3.swf",{name:"p3",container:pagecontainer,onComplete:completeHandler}); var page4loader:SWFLoader = new SWFLoader("pages/page4.swf",{name:"p4",container:pagecontainer,onComplete:completeHandler}); ...ect If someone knows how, your friend I shall be.
  11. One more question. is it possible to find out which SWF is loaded and unload it? rather then: page3loader.unload(); is would be for my nav which consists of a lot of links
  12. Carl!! again you have saved ones bacon. I really need to repay you somehow! Damon
  13. I tried the codee ou have suggested but got the error: Scene 1, Layer 'Layer 2', Frame 1, Line 14 1119: Access of possibly undefined property name through a reference with static type Class. below is the code I have used var page1loader:SWFLoader = new SWFLoader("page1.swf", {name:"pone", container:this}); var page2loader:SWFLoader = new SWFLoader("page2.swf", {name:"ptwo", container:this}); page1loader.load(); button.addEventListener(MouseEvent.CLICK, gogo); function gogo(evt){ if (SWFLoader.name == "pone") { page1loader.unload(); page2loader.load(); } else if (SWFLoader.name == "ptwo") { page2loader.unload(); page1loader.load(); } }
  14. I have a pre loader that loads in a swf and in the preloader is a NAV bar and a forward and previous button. Is there a way to change the function depending on which swf is loaded? like: if SWF "page1" is loaded forward_btn = function. I think this makes sense..
  15. I have loaded a video on to my stage and created a play and pause button. My question is, is it particularly hard to create a scrub bar?