×
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

Behaviours without changing frames, external linking and authoring.

Behaviours without changing frames, external linking and authoring.

Behaviours without changing frames, external linking and authoring.

(OP)
Hi all,

I've hit that unforseen barrier that always crops up somewhere in a project.

I have a page that'll be showing a video, and I'd like to have a couple of buttons in the title bar have roll on and off functions.  I've created them on the home page by making five copies of the page... ie, untouched page, rollon contact, roll off contact, roll on apply, roll off apply.  So each time the user would go onto the button it goes to the relevant frame.  I've done this because the buttons are bmp's with a fade in and out bmp for each event.  I don't want the navigation to be jumping around when the viewer is watching the video and purposefully or not, goes onto either the apply or contact buttons...  Can I make them seperate so they have the desired effect but don't have to move frames?

Also, I'd like to link to an external pdf form so users can print...  I can't spy anything on that in the help files, they only talk about linking to external videos (and even then doen's explain how to get .mov files to play in their own QuickTime windows out side the project!!)

And finally, I've tried authoring for a Mac, (I'm on a PC, version MX), but when trying to play it on a Mac, it doesn't seem to want to do anything...  am I missing a stage?  All I'm doing is going to publishing settings and ticking the Mac box...?

Thanks in advance for you help.

Matthew.

RE: Behaviours without changing frames, external linking and authoring.

You should create and swap different button states in a single frame. Creating different frames for each button state is just not elegant.

Kenneth Kawamoto
www.materiaprima.co.uk

RE: Behaviours without changing frames, external linking and authoring.

(OP)
I'm aware of that kennethkawamoto, hence my last line in the first paragraph,
'Can I make them seperate so they have the desired effect but don't have to move frames?'

I'm trying to find a soloution... I will try your suggestion, though I don't know how to accomplish it at the moment.

Thank you.

Matthew.

RE: Behaviours without changing frames, external linking and authoring.

I'm not sure if I understood correctly, but if you mean you want your button to fade-out on rollout and fade-in on rollover, you can do so using simple script something like this:
--
-- behaviour script attached to a sprite
on enterFrame me
   if rollover(me.spriteNum) then
      if sprite(me.spriteNum).blend < 100 then
         sprite(me.spriteNum).blend = sprite(me.spriteNum).blend + 1
      end if
   else
      if sprite(me.spriteNum).blend > 30 then
         sprite(me.spriteNum).blend = sprite(me.spriteNum).blend - 1
      end if
   end if
end enterFrame
--

The button will fade-out to 30% on rollout and fade-in on rollover.

Kenneth Kawamoto
www.materiaprima.co.uk

RE: Behaviours without changing frames, external linking and authoring.

(OP)
Thanks Kenneth, that code worked brilliantly, exactly what I was looking for.

Cheers,

Matthew.

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