Jump to content


  • Posts

  • Joined

  • Last visited


2 Newbie

About stonestudioprod

  1. This codepen works fine with the cdns, but when I host on my site and link to local versions of Draggable.min.js and ThrowPropsPlugin.min.js The Throwprops does not work. I tried locally too, linking to libraries like this just before the end <body> tag: <script src="js/drag.js"></script> <script src="js/greensock-js/src/minified/TweenMax.min.js"></script> <script src="js/greensock-js/src/minified/jquery.gsap.min.js"></script> <script src="js/greensock-js/src/minified/utils/Draggable.min.js"></script> <script src="js/greensock-js/src/minified/plugins/ThrowPropsPlugin.min.js"></script> I have attached the files I have hosted on my site. Sorry, I am sure it is something simple, but I cannot figure it out spintest.html drag.js
  2. Ok, this seems to work. function playVid(event:MouseEvent):void { resetForMovie(); var targVideo:VideoLoader = LoaderMax.getLoader(event.target.ID); trace("targVideo =" +targVideo); resetForMovie(); choreoButs.gotoAndStop("one"); targVideo.load(); } Now I want to unload the video that is currently playing before loading the targVideo. How do I determine the video that is currentlyplaying? So I will have curVideo and targVideo vars thanks!
  3. I have ten videos that I want to play, pause,scale up, change volume and unload. I created ten vars representing each video. EXAMPLE: var sterling1:VideoLoader = new VideoLoader(“assets/sterling1.mp4”,{name:”sterling1”, container:this, onProgress:progressHandler, onComplete:completeHandler, autoplay:false}); I have ten MCs representing each video, each one with an ID. EXAMPLE: sterlingButs.sterling1.ID = “sterling1”; I created a function called playVid that I want to use to play the videos. function playVid(event:MouseEvent):void { targetMovie=event.target.ID; trace("targetMovie "+targetMovie); VARIABLE_HERE.load(); choreoButs.gotoAndStop("none"); sterlingButs.gotoAndStop("one"); break; ETC… I also have functions representing Rewind, Forward, scaleUp, and ScaleBack. EXAMPLE: controls.RewBut.addEventListener(MouseEvent.CLICK,RewVidHandler); function RewVidHandler(event:MouseEvent):void { trace("Fwd"); trace(VARIABLE_HERE.videoTime); VARIABLE_HERE.gotoVideoTime(VARIABLE_HERE.videoTime-5); I can’t seem to figure out how to cast the variable I get when clicking the button into the VideoLoader instance name. Sorry if this seems too basic, but I just have a hard time with data types.
  4. I created a Flash CS6/AS3 project and used TweenMax to create a motionblur effect tl.insert( TweenMax.from(text1_mc, .5,{x:-600, blurFilter:{blurX:140}})); It looks great when I preview publish on the mac, but when I install the app to my iPad2, there is no motion blur effect. All the other scale, alpha, rotate effects are working great. any ideas? AIR GSAP 11