flash question
- Started
- Last post
- 10 Responses
- tjw0511
when making a slideshow how do you make a smooth transition from the last image back to the first image without getting a pause?
possibly at the last frame put a
gotoAndPlay(1)?????
- lvl_130
sure, that is one way to do it.
the possibilities are endless!
- dbloc0
fade into first image at the end of timeline then gotoAndPlay(1)
- PonyBoy0
skt... lvl...
... i'm really not pushing - like ornj said... the timeline is a crutch... for the LONGEST time I hacked around 'bull-shitting' my way via the timeline... so the first thing I'll encourage is get off the timeline for something like this... or suffer the 'pause' in the transition as he's talking about - because I can't think of any other way to do what he's asking... can you? :)
- ^^ haha... outside of that
:D
That will work, dbloc.PonyBoy - if he has no coding experience, and this is just being setup manually on a timeline, fake it by copying the first image to the end of the timeline, perform the fade transition there (again), then just gotoAndStop() to the first image.angrybear
- of the timeline, perform the fade transition there (again), then just gotoAndStop() to the first image.angrybear
- ^^ haha... outside of that
- WeLoveNoise0
i put part of the transition on the end on the first slide, use the script then _parent.nextframe()
> and then put the other part at the beginning of the next slide
- PonyBoy0
the timeline solution for something like this is painfully convoluted... horrid to build / load if you have a ton of images etc... then there's the load time for the end user...
... there's loads of tutorials out there that'll help you get off the timeline for something like this...
- skt0
you can do perfectly smooth transitions on the timeline.. but it doesn't help having no idea what he is talking about...
you are right though, pulling in jpgs (or at least mc's from the library) and using mcTween or similar to animate is a better solution.
BUT with that comes for loops, counting, possibly setInterval etc etc... and I just can't see him being up to it if he can't loop a movie on the timeline.
- PonyBoy0
^^using TweenMax or mcTween - take advantage of the callback function...
... you could easily dump all your jpgs on one frame of the timeline, have all their initial settings set to invisible (_visible = false and _alpha = 0). Set up one function and call the same Alpha Fade for each image via whatever tweening class method you choose to go with (mcTween etc)... those tweening classes all have 'delay' and 'onComplete' parameters... set up your fades via the delays - on the very last fade... use the callback function (onComplete w/TweenMax and mcTween I think) and call that initial function again...
... no intervals to clear - the tweening engine's all handle that.
I recommend TweenMax over mcTween now... much easier on the processor... overwrite parameters etc... very 'easy' to use. I know a couple of non-flash guys who utilize it for flash banners etc or just to mess around...
http://blog.greensock.com/ - new version out too... give it a shot! :)
- +1KarlFreeman
- aye, fair enough... but it is
only easy when you understand _visible and _alpha and callbacks, and includes...skt - but you're right, it's an ideal solution.skt
- well a better solution anyway.skt
- yeah... still keeps all those images on the timeline forcing a full load as apposed to individual loads... but easier...PonyBoy
- ... to manage the transitions and timeline at least.PonyBoy
- tjw05110
thanks guys, ill definitely give it a shot, because YES the timeline = PAIN IN THE ASS