×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

a simple thing whit frames and buttons(I think!).

a simple thing whit frames and buttons(I think!).

a simple thing whit frames and buttons(I think!).

(OP)
Hi everyone!! I’m a newbie with the entire macromedia SW, for now I’m just  trying to make a presentation in Director.

Well.. my problem is:

How can I do to.. click on a button and go to a specific frame, then go back to the frame where the button was clicked and see this selected  button marked in some way or changed for a new sprite???   

I thing it can’t be very difficult but I have tried for hours and at this time feel stupid.

can any one help me??  Any help will be appreciated. thanks !!

RE: a simple thing whit frames and buttons(I think!).

Frame 1:
A button "goToFrame10Button"
A frame loop script in the script channel (so that the playhead stays in this frame)

Frame 10:
A button "goBackButton" (in the different sprite channel from the button in the frame 1)
A frame loop script in the script channel (so that the playhead stays in this frame)

The task:
If you click "goToFrame10Button" the movie goes to the frame 10. Then if you click "goBackButton" in the frame 10 the movie goes back to where it comes from (frame 1). When you are back to the frame 1, the "goToFrame10Button" is now changed to "goToFrame10ButtonVisited".

The frame loop script:

CODE

on exitFrame me
  _movie.go(_movie.frame)
end exitFrame

The behaviour script attached to "goToFrame10Button":

CODE

on mouseUp me
  global gFrameToGoBack
  gFrameToGoBack = 1
  sp = sprite(me.spriteNum)
  sp.puppet = true
  sp.member = member("goToFrame10ButtonVisited")
  _movie.go(10)
end mouseUp

The behaviour script attached to "goBackButton":

CODE

on mouseUp me
  global gFrameToGoBack
  _movie.go(gFrameToGoBack)
end mouseUp

Kenneth Kawamoto
www.materiaprima.co.uk

RE: a simple thing whit frames and buttons(I think!).

(OP)
thank you very very much kennethkawamoto. your post is very well expleined and very usefull for me. thanks again.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close