Jump to content
Search Community

mspanish

Members
  • Posts

    86
  • Joined

  • Last visited

Everything posted by mspanish

  1. Hey Carl this is a really newbie thing to ask - but how the heck do I tween something in and just leave it there? My client thinks they want the text to fade in 1 paragraph at a time and leave them there, rather than fading out. I guess I'd need to combine autoAlpha and visible? var timeline:TimelineMax = new TimelineMax({paused:false, overwrite:true}); var tween:TweenMax = null; CustomEase.create("page1Ease", [{s:0,cp:0.21,e:0.316},{s:0.316,cp:0.422,e:0.424},{s:0.424,cp:0.426,e:1}]); timeline.append(TweenMax.to(page1, 5, {x:0, y:0, autoAlpha:1, ease:CustomEase.byName("page1Ease"), onInit:initSlide1} ) ); timeline.addLabel("page1", timeline.duration) timeline.append(TweenMax.to(page1, 5, {x:0, y:0, visble ease:CustomEase.byName("page1Ease"), onInit:initSlide1} ) ); timeline.append(TweenMax.to(page2, 4, {x:0, y:0, autoAlpha:1, delay:.8, onInit:initSlide2})); timeline.addLabel("page2", timeline.duration) timeline.append(TweenMax.to(page3, 10, {x:0, y:0, autoAlpha:1, delay:.8, onInit:initSlide3})); timeline.addLabel("page3", timeline.duration) timeline.append(TweenMax.to(page4, 5, {x:0, y:0, autoAlpha:1, delay:.8, onInit:initSlide4})); timeline.addLabel("page4", timeline.duration) timeline.append(TweenMax.to(page5, 10, {x:0, y:0, autoAlpha:1, delay:.8, onInit:initSlide5, onComplete:timeStop})); timeline.addLabel("page5", timeline.duration)
  2. Thanks Carl - hey for command line compiling you can check out my own tutorial on Active Tuts:) http://active.tutsplus.com/tutorials/workflow/batch-creation-of-swfs-using-dos-and-the-flex-command-line-compiler/
  3. Still researching sliders - although Carl's awesome split text tutorial convinced me to become a Shockingly Green member in order to ditch my other letter by letter animation, which was also causing weird slowness in the slideshow. Thanks!
  4. Yes you are right, I will look at that link and try to do just that - I'll post any failure or success here.
  5. Ah I found the answer from the master himself: Maybe I'll look on ActiveDen.net...
  6. Can I use a Flexlib component in a pure SWF project? I'm using the Flex compiler but this isn't a Flex app and I'm not using the Flex framework, just AS3. I should know the answer to that myself as I've developed plenty of Flex apps but I always used Flex Builder for those
  7. Hey thanks I'll look at that right away! Got to fix this slider before I go nuts I will definitely let you know.
  8. The big problem is that the MouseEvents aren't responding when you hover/drag/release the Slider - the Alerts I set up to test the MouseEvents are not being fired. slider.lowVal = 0; slider.startVal = 0; slider.highVal = timeline.totalDuration; slider.enable(); slider.addEventListener(SliderUIEvent.ON_PRESS, thumbDragHandler); slider.addEventListener(SliderUIEvent.ON_RELEASE, thumbReleaseHandler); slider.addEventListener(SliderUIEvent.ROLL_OVER, stopHandler); function stopHandler(event:SliderUIEvent):void { timeline.gotoAndStop(timeline.currentTime); Alert.show("ROLL OVER currentTime is " + timeline.currentTime, {buttons:["OK"]}); } function thumbDragHandler(event:SliderUIEvent):void { Alert.show("i got pressed ", {buttons:["OK"]}); } function thumbReleaseHandler(e:SliderUIEvent):void { Alert.show("onRelease currentValue is " + e.currentValue, {buttons:["OK"]}); timeline.currentTime = slider.currentValue; timeline.resume(); } function updateSlider(event:TweenEvent):void { slider.currentValue = timeline.currentTime; } Probably time to just ditch this slider and not waste any more time...
  9. Dear Carl - thanks so much for spending your time looking at my file; it was a lot to ask and you are a kind soul! I started out using gs. structured platform from Greensock but I did download and import the main package when I decided to use TimelineMax - so eliminated the reference to the old package that uses the com.greensock.* structure. Perhaps I should go for a new slider - is there a way to import the regular Flash component when you are using the command line compiler from the Flex SDK? Then I could use a nice example for a slider that I found on this forum, which isn't set up as a pure actionscript class, but rather in a .FLA. Thanks again for your help, I'm a bit blown away by how cool the Greensock stuff is and how generous the developer as well as the others like yourself are on this forum. warm wishes from Alaska Stacey
  10. oops sorry forgot images, I just added them although you'll have to correct the PATHS for embedding in the class file if you want to compile, as well as your path to the Verdana font.
  11. I've built a slideshow using 5 movieclip pages using TimelineMax and TweenMax. Works great! I had the idea to use a slider for navigation, to make it easier for people to go forward and backward, as using a forward/backward button is a bit clunky. I borrowed a little code I found on the forum, and tried integrating that with an AS3 slider class I found online. Since I"m doing this all via the command line using the Flex SDK compiler, I can't use the slider component from Flash CS4 or CS5. I have to do this via the command line, as I'll be generating hundreds of SWFs with this code. My slider does update along with the timeline, but I can't seem to interact with the slider at all. Mouse events (hover, press, release) don't register at all. I've attached a sample of my slideshow (the timeline stuff is still a work in progress!), as well as the .as file for my SWF, as well as the relevant class files. If anybody has an idea why my slider is failing to react to mouse events I'd be super appreciative!! In case anybody would like to compile directly from the folder, you can just change the path to your own Flex SDK in the .bat file, and click to compile the SWF.
×
×
  • Create New...