Flash Help

Get help on web editors (Frontpage, Dreamweaver) and web languages (HTML, ASP, PHP).
Post Reply
the_nominator
Registered User
Posts: 1315
Joined: 29 Apr 2004, 02:00
Location: North Carolina, USA
Contact:

Flash Help

Post by the_nominator »

Hey I'm trying to make something in flash and I need a certain button to go to slide5 when clicked and the other to go to slide8.

This is code one of the buttons have:

Code: Select all

on (keyPress "<Down>") {

      // Locate the screen that is the target of the behavior
      var screen = null;
      var target = slide5;
      while((screen == null) && (target != undefined) && (target != null))
      {
        if(target instanceof mx.screens.Screen)
        {
          screen = target;
        }
        else
        {
          target = target._slide5;
        }
      }
      
      // If there's a Slide to apply the behavior to, then do so
      if(screen instanceof mx.screens.Slide)
      {
        screen.rootSlide.gotoslide5();
      }

}
I need that to point to slide5

Heres a screen shot:
Image
Image
ImageStuff the DS!
07 Designs|Portfolio
the_nominator
Registered User
Posts: 1315
Joined: 29 Apr 2004, 02:00
Location: North Carolina, USA
Contact:

Post by the_nominator »

Image
ImageStuff the DS!
07 Designs|Portfolio
maxxis
Moderator Emeritus
Posts: 8307
Joined: 30 Jun 2004, 02:00
Location: ( . Y . )
Contact:

Post by maxxis »

It seems like you are busy learning flash. Correct me if I'm wrong.

Dont use the built in templates that flash gives you. You will be better off learning how to make buttons and how to add actionscript to control the timeline.

Take a look at this

I only wrote the preloader and optimised the site for a friend. The whole site however uses buttons that control the timeline.

Cheers
maxxis
Moderator Emeritus
Posts: 8307
Joined: 30 Jun 2004, 02:00
Location: ( . Y . )
Contact:

Post by maxxis »

Check out http://www.flashkit.com for lots of tutorials and stuff.

Cheers and good luck. Busy with a moerse big flash site at the mo. Dont think I'm gonna get much sleep tonight
Post Reply