PDA

View Full Version : How to? Mouse Over Text


ph48242
10-06-2007, 10:55 AM
OK I'm new to Autoplay media 6.0 although i have some experience from v40 but the rules have changed. I want to add text on the right side of my page that appears only when the user roles over a button on the left side of the page. How can I do it?

Why did they have to change EVERYTHING since v4.0? I can't see how it can be done as the help menu hints at mouse over text but doesn't explain how?

Thanks
Paul.

longedge
10-06-2007, 11:05 AM
There were a lot of changes in the way things worked going from Vers4 to 5 but these were major enhancements and it was well worth the learning curve in the long run. 5 to 6 hasn't been as difficult because there weren't major differences in existing actions, variable formats etc. just new ones.

Anyway, there's always several ways to do things but assuming you have say a paragraph object on the right, the first question is will the text change or is it always the same. If it doesn't change, then untick the visible attribute and use the mouse enter action of your button to make the paragraph visible and vice versa on mouse leave. If you want dynamic text then you would have to use a different strategy.

ph48242
10-06-2007, 11:20 AM
Thanks longedge

I interpreted your suggestions but all I could do is either make visible or not the button and/or the paragraph rather than make the text appear on mouse over. The text I'm using is static and will not change but will only be unique for each button as each button will have a different text being displayed.

Can you clarify this again please? I.E. what scripts do I need to use?

Thanks
Paul.

longedge
10-06-2007, 12:01 PM
Have a look at this example. There are actions in the page pre-load and on timer and then in the mouse over and mouse leave for each button.

ph48242
10-06-2007, 12:15 PM
I've been reading the pdf help file from the software itself and the file you sent me has just covered that, but I think your buttons are setup differently. The problem i can see now is that on my project where you have the mouseovertext appearing in the paragraph it only displays 1 message for 1 button. I will have about 10 buttons each needing to display their own message, How can I do this without having multiples of paragraph boxes ontop of each other?

Sergio_S
10-06-2007, 12:18 PM
If I understood well what you want, it is very simple.
Create a label, set attributes state to not enabled and not visible and then use the Label.SetVisible action to show and hide the text.
If you wish, you can create a paragraph instead the label. In this case you should use the Paragraph.SetVisible action.

See the attached example.

longedge
10-06-2007, 12:24 PM
How can I do this without having multiples of paragraph boxes ontop of each other?

- by using Paragraph.SetText instead of Paragraph.SetVisible. Each button would have it's own value for the text that you set.

You can use this in conjunction with Paragraph.SetVisible or you could set the text to "" on mouse leave.

Bruce
10-06-2007, 12:50 PM
Here's another way. You can change the verbiage on the text files to read what you want.

longedge
10-06-2007, 01:24 PM
there's always several ways to do thingsHere's another way.

:lol ........

ph48242
10-06-2007, 01:36 PM
Oooo I like that Bruce, thats just what I'm looking for, I've been editing the text for each button with all the text joined togther using "\n" for next lines and it's a bit querky and messy, this example of yours work well.

Many thanks to ALL who have helped me with this.

Regards
Paul.

Bruce
10-06-2007, 04:12 PM
:lol ........

Oooo I like that Bruce, thats just what I'm looking for, I've been editing the text for each button with all the text joined togther using "\n" for next lines and it's a bit querky and messy, this example of yours work well.

Many thanks to ALL who have helped me with this.

Regards
Paul.

longedge, yeah I was half asleep! :D

ph48242, I'm glad it worked for you! ;)