×
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

Need help with Director MX script

Need help with Director MX script

Need help with Director MX script

(OP)
Hi, I'm new here, and I need some help with some Director MX lingo.

Here's what I'm trying to do:
I have 3 videos.  I want the first video to automatically play and pause at the end, at that point I have two buttons appear, one called video A and the other video B.  I need a script code that will play one video if video A button is selected, and a code that will play the other video if video B button is selected.  Sorry if this sounds confusing.

Anyone know the lingo I can use to script these two buttons?  Any help is appreciated, thanks!

RE: Need help with Director MX script

I'm also new to this, but here is my 2 cents. :)

Firstly, you might want to create markers, that will jump to the particular video frame when you click on the buttons.

With your buttons on the stage, right click any one, then from the pop up menu go to "Script...". After which, you will now add the following code.


on mouseUp
  _movie.go("Video")
end

Line 2, will allow the handler to jump to the marker called "Video" and play whatever sprite you have within that frame.

Do the same for your next button, but this time, it will jump to a next marker. For instance:

on mouseUp
  _movie.go("Video2")
end

Here's an example of how the markers can be set up.
http://i12.photobucket.com/albums/a222/Jinlei/D%20MX/marks.jpg

Hope I helped.

RE: Need help with Director MX script

(OP)
Thanks, I will try it.  It looks good, so it should work.

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