A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Reload/Restart Slide in Slide Presentation

Threaded View

  1. #4
    Junior Member
    Join Date
    May 2007
    Posts
    14
    I think I'm confused by this part:

    if (screen instanceof mx.screens.Slide)

    How do I modify that to work with the movie?


    edit: nevermind, I see what you're talking about... lemme try that.
    edit 2: YES it does work, I switched the code to look like this:

    Code:
    on (release) {
    
    	  // GoTo Next Screen behavior
          var screen = null;
          var target = this;
          while((screen == null) && (target != undefined) && (target != null))
          {
            if(target instanceof mx.screens.Screen)
            {
              screen = target;
            }
            else
            {
              target = target._parent;
            }
          }
          if(screen instanceof mx.screens.Slide)
          {
         
    		screen.rootSlide.currentSlide.nextSlide.gotoAndPlay (1);
    		screen.rootSlide.currentSlide.gotoNextSlide();
    		
          }
    	  // End GoTo Next Screen behavior
    Thanks so much, now I have to figure out why my sounds don't stop when I click the button now.
    Last edited by gametavern; 07-25-2007 at 11:34 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center