title: DoubleClick Studio V2 AS3
body: <p>Hello Stack Overflow community,</p>
  
  <p>I am using Google's DoubleClick Studio Version 2 AS3.</p>
  
  <p>I am using Flash CS5.5.</p>
  
  <p>I've read through DoubleClicks' material on how to build a banner ad using Rich Media, in other words, using video.</p>
  
  <p>I have a parent swf and a child swf. The parent loads the child swf after the webpage is finished loading.</p>
  
  <p>My child swf is organized as such:
  Scene 1 with Layer 1.
  Layer 1 has a MovieClip on the stage that contains all my banner elements (Video player, video player buttons, text, background, an image, and CTA button again these are using DoubleClick Studio components). This MovieClip has an instance name of "Spread_1". This MovieClip contains the Video player Advanced Component.</p>
  
  <p>I understand the Video Player Advanced component. I understand what to place in the component inspector with one exception, when I'm in "Video end options" I have three radio button options plus a fourth option that calls a function. In the textfield I placed this function "lastframe()"</p>
  
  <p>In an actions layer I placed the code to the function that's called by the Video Player Advanced Component. The code to the function is this:</p>
  
  <pre><code>**function lastFrame(){
      gotoAndStop(2, "Spread_1")
  }**
  </code></pre>
  
  <p>This function is located in the first frame of the MovieClip "Spread_1". My intent is when the video has stopped playing I want to go to frame 2.</p>
  
  <p>When I test the banner I get this output: </p>
  
  <pre><code>**[0.01] Enabler: Simulating page load.
  [2.08] Enabler: Page loaded.
  [2.45] Enabler: Video event for: 'cakePlayer': EVENT_VIDEO_PLAY
  [2.45] Enabler: Video event for: 'cakePlayer': EVENT_VIDEO_VIEW_TIMER
  [7.54] Enabler: Video event for: 'cakePlayer': EVENT_VIDEO_MIDPOINT
  [12.83] Enabler: Video event for: 'cakePlayer': EVENT_VIDEO_COMPLETE
  [12.83] Enabler: Video event for: 'cakePlayer': EVENT_VIDEO_VIEW_TIMER
  ArgumentError: Error #2108: Scene Spread_1 was not found.
      at flash.display::MovieClip/gotoAndStop()
      at H100_fla::Spread_1_1/lastFrame()
      at Function/http://adobe.com/AS3/2006/builtin::apply()
      at com.google.ads.studio.utils::FunctionUtils$/invokeStringAsFunction()
      at MethodInfo-37()
      at Function/http://adobe.com/AS3/2006/builtin::apply()
      at com.google.ads.studio.video::EnhancedVideoController/completeHandler()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at com.google.ads.studio.video::VideoEventDispatcher/dispatch()
      at com.google.ads.studio.video::VideoEventDispatcher/monitorPlayHead()
      at flash.utils::Timer/_timerDispatch()
      at flash.utils::Timer/tick()**
  </code></pre>
  
  <p>I don't understand the error and I'm a relative novice at Using DoubleClick Studio Version2 AS3.</p>
  
  <p>Thank you for any help, it's greatly appreciated.</p>