Jump to content
GreenSock

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

Search the Community

Showing results for tags 'loader layer'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. Greetings, I've adapted a slide show from code I found on these forums. I am trying to get my head around loading and layers. I have a watermark (mc_overlay) on a layer above a layer containing movie clip (mc_holder) into which I am loading a series of images. The first image does not get the water mark above, but every image thereafter does get the watermark. When it cycles back to the beginning, the first image still appears above the layer I want it to be under (I assume, since there is no mc_overlay in view). layers: 3 mc_overlay 2 mc_holder 1 AS My code: import com.greensock.*; import com.greensock.loading.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.display.*; var loadedImages:Array = []; var curIndex:int = -1; var queue:LoaderMax = new LoaderMax({maxConnections:1, onChildComplete:completeHandler}); queue.append( new ImageLoader("images/ansel_adams/1.jpg") ); queue.append( new ImageLoader("images/ansel_adams/2.jpg") ); queue.append( new ImageLoader("images/ansel_adams/3.jpg") ); queue.append( new ImageLoader("images/ansel_adams/4.jpg") ); queue.append( new ImageLoader("images/ansel_adams/5.jpg") ); queue.load(); //...add preloader here... function completeHandler(event:LoaderEvent):void { var image:ContentDisplay = event.target.content; image.alpha = 0; image.visible = false; loadedImages.push(image); if (curIndex == -1) { //...remove preloader here... showNext(); } } function showNext():void { if (curIndex != -1) { TweenMax.to(loadedImages[curIndex], 1, {autoAlpha:0}); //fade old out } curIndex++; if (curIndex >= loadedImages.length) { curIndex = 0; } var image:ContentDisplay = loadedImages[curIndex]; //this.addChild(image); //brings to the front //original mc_holder.addChild(image); //brings to the front TweenMax.to(image, 1, {autoAlpha:1}); TweenMax.delayedCall(5, showNext); } Thanks in advance, The user formerly known as Steven P
×