Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Behaviours without changing frames, external linking and authoring.

Status
Not open for further replies.

MS78

Technical User
Jul 1, 2005
3
GB
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.
 
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.
 
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:
[tt]--
-- 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
--[/tt]
The button will fade-out to 30% on rollout and fade-in on rollover.

Kenneth Kawamoto
 
Thanks Kenneth, that code worked brilliantly, exactly what I was looking for.

Cheers,

Matthew.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top