Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

goral

Members
  • Posts

    7
  • Joined

  • Last visited

goral's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Thanks for your help, I too had fun messing around with this little project
  2. I still cant get it to work, Ive attached my files... PS: the problem lies with the rotating knob functionality, it should scroll the content div notice line 105 Archive.zip
  3. Hey guys, ive a div that has scroller functionality with the Draggable plugin. Im creating a menu with buttons to autoScroll the scrollable/draggable area. How does one animate the scroller area on a button click? Ive tried: TweenLite.to([Draggable.get("#content")], 1, {y:50}); TweenLite.to([Draggable.get("#content")], 1, {scrollTo:{y:50}}); TweenLite.to(content, 0, {scrollTo:{y:100}}); TweenLite.to(content, 1, {y:50}); <------This animates the whole scrollable area, I just want to animate the content Any help would be greatly appreciated! Go greenSock team! Using the GSAP platform sure beats CSS animation!!
  4. Thanks! Making the function public made things happen. Thanks again
  5. Thanks for the snippet, but it doesnt work for me. Heres my code, im trying to hit "resetSlide" from a sub SWF(contentLoader is a movieClip on the stage that im loading everything into): package { import flash.display.MovieClip; import com.greensock.*; import com.greensock.easing.*; import com.greensock.plugins.*; TweenPlugin.activate([blurFilterPlugin,TintPlugin, GlowFilterPlugin]);import com.greensock.loading.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.display.*; public class container extends MovieClip { var queue:LoaderMax = new LoaderMax({name:"mainQueue",onComplete:completeHandler}); public function container() { init(); queue.append( new SWFLoader("slide_0.swf", {name:"scene0", estimatedBytes:3000, container:contentLoader.scene0}) ); queue.append( new SWFLoader("slide_1.swf", {name:"scene1", estimatedBytes:3000, container:contentLoader.scene1}) ); LoaderMax.prioritize("slide_0.swf"); queue.load(); } private function completeHandler(event:LoaderEvent):void { trace(event.target + " is complete!"); } private function init() { slide1(); } private function slide1() { TweenLite.to(contentLoader.scene0, 1,{x:200}); } private function slide2() { TweenLite.to(contentLoader.scene1, 1, {x:400}); } private function resetSlide(whichSlide) { if (whichSlide == "Slide1") { TweenLite.to(contentLoader.scene0, 0,{x:0}); } else { TweenLite.to(contentLoader.scene1, 0,{x:0}); } } } }
  6. I have a queue from which I load 6 sub SWFs. I want to call a function from the parent/main container. Any help would be greatly appreciated! MovieClip(root).myFunction(); does not work.
×