Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




[F8] How To Create Tooltip Text?



Hi all ,
I was wondering if anyone knew how to create a 'floating' picture or text under the curser if it came over a button or movie? [rather like tooltip text in windows]

Many thanks!!

Q



FlashKit > Flash Help > Flash Newbies
Posted on: 07-21-2007, 02:10 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Create A Superscript Test *within* A Tooltip
'Sup guys,

I'm in need of some urgent help, I know how to use the superscript in simple dynamic/input fields, but I have this script of a tooltip and I'm unable to write superscript text within the bubble!

I've included the .html and .htmlText properties in the text field script but with no use, please guys help me out FAST and I'm willing to reward anyone that helps (I have a free copy of Day of Defeat Source that I'm willing to part with if someone here give me the solution!)

I've included the .fla file and here's the script for the tooltip:


Code:
import com.mosesSupposes.fuse.*;
ZigoEngine.register(PennerEasing,FuseItem,FuseFMP);

var tipFormat:TextFormat = new TextFormat();
tipFormat.font = "Verdana";
tipFormat.size = 11;
tipFormat.color = 0x000;
var blankTip = " ";

this.createEmptyMovieClip("tiptool",this.getNextHighestDepth());
tiptool.createTextField("tip",3,0,0,100,100);
tiptool.tip.html = true;
tiptool.tip.htmlText = true;
tiptool.tip.wordWrap = false;
tiptool.tip.multiline = false;
tiptool.tip.autoSize = true;
tiptool.tip.embedFonts = true;
tiptool.tip.selectable = false;

FuseFMP.setFilterProps(tiptool,'DropShadow',{distance:0, alpha:.5, blurY:10, blurX:10});

tiptool.onEnterFrame = function() {
this.createEmptyMovieClip("box",1);
this.box.beginFill(0xFFFFFF,100);
this.box.lineStyle(1,0xFFFFFF,100);
this.box.moveTo(-10,-10);
this.box.lineTo(this.tip._width + 10,-10);
this.box.lineTo(this.tip._width + 10,this.tip._height + 10);
this.box.lineTo(-10,this.tip._height + 10);
this.box.moveTo(-10,-10);
this.box.endFill();

this.createEmptyMovieClip("pointer",0);
this.pointer.beginFill(0xFFFFFF,100);
this.pointer.lineStyle(1,0xFFFFFF,100);

var boxXedge = this._x + (this._width - 20);
if (this._parent._xmouse < Stage.width / 2) {
this.pointer.moveTo(0,this.box._height - 11);
this.pointer.lineTo(this._xmouse,this._ymouse);
this.pointer.lineTo(20,this.box._height - 11);
this.pointer.endFill();
this._x -= Math.round(((this._x) - (this._parent._xmouse)) / 7);
this._y -= Math.round(((this._y) - (this._parent._ymouse - 40)) / 7);
} else {
this.pointer.moveTo((this.box._width - 20),this.box._height - 11);
this.pointer.lineTo(this._xmouse,this._ymouse);
this.pointer.lineTo((this.box._width - 40),this.box._height - 11);
this.pointer.endFill();
this._x -= Math.round(((this._x) - (this._parent._xmouse - (this.box._width - 20))) / 7);
this._y -= Math.round(((this._y) - (this._parent._ymouse - 40)) / 7);
}
};
/*-----------------------------------------------------------------
Tip Show/Hide Function
-----------------------------------------------------------------*/
function showTip(txt,flip) {
tiptool.tip.text = txt;
tiptool.tip.setTextFormat(tipFormat);
tiptool._visible = flip;
ZigoEngine.doTween({target:tiptool,start_rotation:45,start_scale:0,time:1,ease:"easeOutElastic"});
if(flip){
clickSound.start();
}


}
showTip(blankTip,false);
/*-----------------------------------------------------------------
Button Functions
-----------------------------------------------------------------*/

btn1.onRollOver = function(){
showTip("Quit",true);
}
btn1.onRollOut = function(){
showTip(blankTip,false);
}
btn2.onRollOver = function(){
showTip("Contact Us",true);
}
btn2.onRollOut = function(){
showTip(blankTip,false);
}
btn3.onRollOver = function(){
showTip("About Us",true);
}
btn3.onRollOut = function(){
showTip(blankTip,false);
}
btn4.onRollOver = function(){
showTip("Home",true);
}
btn4.onRollOut = function(){
showTip(blankTip,false);
}



Thanks in advance,

Tooltip/alt Text
i am trying to find a way of assigning tooltip/alt text to images in flash 5, i think it can be done using smart clips - im just not sure how to go about it. any ideas?

thanks, scott.

Random Tooltip Text
I have this .fla with "cells" moving randomly and I want each and every one to popup a tooltip with a different text. How can I achieve that? The code is included.

Tooltip For Text Field
hi
i hope someone helps me out with this my last two posts wnet unanswered...pleasee reply to this post even if u think its not possible tell me it wont be possible.....


now coming to the issue...i have a movie clip which loads partial text from a text file into a text field which i create using dymamically using createTextField function now when i have a mouse rool over this text field i want it to display the full complete text either as a tooltip or by changing the content of the text field on my roll over......i have tried but have found no on mouse rollover function avaible for the text field....is thare a way by which i can do the above or...do i have to create a new movie clip and then create the text fiel in the movie clip and give the movi clip a mouse roll over event....


Please reply....

Sfomra

Dynamic Tooltip Text
I created some dynamic boxes using the
_root.attachMovie("box", "box"+x, x);
Now, I was trying to make the tooltip using the onrollover function for all the boxes created.
I tried using

_root["box"+x].onrollover=function(){
trace(x);
}
in the for loop
but it dint work. It says undefined always in the output
Can anyone please tell me how do I get the tooltip to work with dynamic controls.
I want the text corresponding to the particular control/button where the mouse is being kept
Thanks

Random Tooltip Text
I have this .fla with "cells" moving randomly and I want each and every one to popup a tooltip with a different text. How can I achieve that? The code is included.

Tooltip For Text Field
hi
i hope someone helps me out with this my last two posts wnet unanswered...pleasee reply to this post even if u think its not possible tell me it wont be possible.....


now coming to the issue...i have a movie clip which loads partial text from a text file into a text field which i create using dymamically using createTextField function now when i have a mouse rool over this text field i want it to display the full complete text either as a tooltip or by changing the content of the text field on my roll over......i have tried but have found no on mouse rollover function avaible for the text field....is thare a way by which i can do the above or...do i have to create a new movie clip and then create the text fiel in the movie clip and give the movi clip a mouse roll over event....


Please reply....

Sfomra

ToolTip / Alt Text Or Captions.
Hey guys, im trying to work with the tooltips/captations thing, and it worked like a charm! Except for one problem, the Tooltip is not allways on top.

There is the tutorial that I followed. It was pretty easy and has a nice effect, http://www.tutorio.com/tutorial/flash-r ... r-captions

Here is the page I made

http://84.41.133.88/portfolio/pages/school/stage.swf

If you scroll all the way down, you will see a few images hoover your mouse over them and you will see what I mean.

Here is the .fla file maybe someone can see why the tooltip is not allways on top of the screen.
http://84.41.133.88/portfolio/pages/school/stage.fla

Setting The Tooltip Text In Actionscript?
Hi Reader.

I have been trying to set the text of the tool tip componet using actionscript and cannot seem to do it. I have tried MyToolTip.text = "tip goes here" and it does not work. How hard can it be? Please help.

Thanks

Leah

Displaying A Tooltip On Dynamic Text
I'm a flash newbie for the most part. I'm working on a standalone, projector-based educational CD. I'm wondering if it is at all possible to have a tooltip displayed on text with no instance name. It seems unlikely, but I wondered if there was a trick, perhaps by using XML to allow text to have instance properties like a movie clip would.

The goal is to allow some of the more advanced scientific terms to have tooltip definitions, so that users can simply roll over to get a definition of the word.

Any suggestions? (I'm using MX Prof. 2004)

Tooltip Text Pulled From Instance Name?
hi,
I'm building a flash based map of my university...this includes some 70+ buildings, and parking lots as well as other facilities. Each is a separate movie clip within different layers....

problem is, I need tooltips that are displayed on a mouse over of the movieclips/buttons that show such things as the name of the building.

I can do it with a nice tooltip component that I downloaded, but I was hoping there might be a way to do it that was easier. Instead of having to drag and tweak a copy of the component onto each movie clip...well over 150 of them, I was wondering if there was a way to pull the building name into a tooltip dynamically from the instance name of each movie clip (since they are already named from when they were drawn).

The component way will work, but it's a pain in the butt to use, to update, and it will probably make the map even slower than it already is, to work on. I'm new to actionscripting this intense, been muddling my way through it off and on for the past year to get this map designed so please be "gentle" haha.

Thanks in advance for any ideas or suggestions you may have.

Tooltip Text For Dynamic Buttons
Can anyone please answer my few queries?
Please refer the graph attached
1. What would be the best way to draw the multi line graph in Flash?
I first used the charting component but I guess it doesnt supports multi-line

2. Also, I want to add dynamic buttons( the triangles etc you can see) and each button should have a different tooltip text depending on the coordinate where they are placed.
3. Also, as the graph progresses in the horizontal direction, it should auto scroll.
Would it be possible using the scrollbar component?

Thanks

Rollover Text Tooltip Advise
Hi

I want a rollover tooltip text that can adjust depending on how much text is in the xml node.

any ideas.. links

I found a as3 version but wouldn't know how to convert it, if even possible...

thanks

Function To Pass Text As Parameter In Tooltip
Hi i have a code to show a tooltip and it works perfectly

b101.onRollOver = function() {
myToolTip.maxAlpha = 100;
myToolTip.colorTransform(100, 50, 100, 100, 100, 20, 100, 0);
myToolTip.show("Some text of the tooltip");
};

But i want to simplify the code because i have a lot of buttons i tried

function toolTip(text_tooltip){
myToolTip.maxAlpha = 100;
myToolTip.colorTransform(100, 50, 100, 100, 100, 20, 100, 0);
myToolTip.show(text_tooltip);
}

b101.onRollOver = toolTip("Some text of the tooltip")

But it didn't work, can anyone help me .

Thanks.

Setting Text Field Index( Tooltip )
Hi All,
I have added two movie clips at the same axis and added eventlister to display a tooltip on MouseOver. How to make this tooltip to display at top regrdless of movieclips added to stage even at the same axis.

Thanks,
Baskar.S

Rror With Function To Pass Text Parameter To A Tooltip Please Help
Hi i have a code to show a tooltip and it works perfectly

b101.onRollOver = function() {
myToolTip.maxAlpha = 100;
myToolTip.colorTransform(100, 50, 100, 100, 100, 20, 100, 0);
myToolTip.show("Some text of the tooltip");
};

But i want to simplify the code because i have a lot of buttons i tried

function toolTip(text_tooltip){
myToolTip.maxAlpha = 100;
myToolTip.colorTransform(100, 50, 100, 100, 100, 20, 100, 0);
myToolTip.show(text_tooltip);
}

b101.onRollOver = toolTip("Some text of the tooltip")

But it didn't work, can anyone help me .

Thanks.

Tooltip Dynamic Text Box "disappears"
ok... normally i wouldnt even ask questions in here for something like this but for some reason i am completely oblivious to what is going on...

i have a tooltip that pops up in a container (which works fine) but the dynamic text box which displays the "tip" is not showing up even with the fonts embedded and correct variables , etc... it was working fine before but for some reason it has now disappeared... i changed the textbox to static text just to see if i can see it and it works... so other than embedding the font, any ideas for me to try out before posting fla? thanks in advance...

Tooltip Dynamic Text Box "disappears"
ok... normally i wouldnt even ask questions in here for something like this but for some reason i am completely oblivious to what is going on...

i have a tooltip that pops up in a container (which works fine) but the dynamic text box which displays the "tip" is not showing up even with the fonts embedded and correct variables , etc... it was working fine before but for some reason it has now disappeared... i changed the textbox to static text just to see if i can see it and it works... so other than embedding the font, any ideas for me to try out before posting fla? thanks in advance...

Creating Dynamic Tooltip For Dynamic Text
I've been working on a proof of concept and have run into a stumper. What I am trying to do is add tooltips dynamically to dynamic text. Here is what I have so far, http://www.hallmedia.com/client/chop/tooltip.swf

Type in some text including the magic word "dolor" and hit the orange button. Flash will highlight the first instance of dolor wherever it might be in your text. Groovy.

Now I am trying to figure out a way to get the coordinates of the first and last character so I can attach a movie clip covering that area that will invoke a tooltip popup upon rollover. Any ideas?

Is It Possible To Skew A Dynamic Text Field To Create A Text Percentage Preloader
Hi there.. is it possible to skew a dynamic text field? Im trying to create a preloader with a text percentage... and i want it skewed so that it looks like the font is italic a bit..?

thanks..

How To Create A Clear Button Which Will Remove The Text In The Text Box Field
Hey, im tryin to create a clear button
whihc is:
clear_btn.onRelease = function () {
_root.sender.txtclear();
};

So that it would clear date enter in that text box. But nothin seem to happen with the button when i run it.

Does any1 know a way on how i would create a clear button?

To Beat Blurry Text, Is It Better To Create Text In Illustrator?
And then import it in? Would that solve the anti aliasing problem?

Thanks.

How To Create A Clear Button To Remove The Text On The Text Box
Hey, im tryin to create a clear button
whihc is:
clear_btn.onRelease = function () {
_root.sender.txtclear();
};

So that it would clear date enter in that text box. But nothin seem to happen with the button when i run it.

Does any1 know a way on how i would create a clear button?

How Do I Create A Simple Text Link In A Text Box ?
so i am using a template to design a site and a each section has a "text= "___" area to input the relavent text into . how do i input the text so that some of the text are LINKS to other sites ?

thanks
s.

Tooltip
How can I add a tooltip when I'm over a button?

Tooltip
I'm trying to make tooltips for buttons..any idea on how to do it? Is there a inbuilt function in Flash?

Thanks in advance...

Sid

Tooltip
--help with the tooltip--

Here is the scenerio--

I have a group of thumbnails, when pressed, display a larger image, which i would like to have a rollover text appear(tooltip). The only problem is that the larger images are contained within a MC called "container" and displayed in a mask(because they slide). I have the instance names within "container" for each "section"(larger image), linked to the text field, so when rollover it would display "instance name". Since the instance names to be displayed are not on the _root frame, they are being by-passed. Is there another way to do this?

any help would be appreciated...

Thank you,

Travis

Tooltip Again
Trying again--
Does anyone know a good tooltip tutorial?

Thanks,

Trowley

Help With Tooltip
Can someone catch what I am over seeing. I seem to be missing something to make the tooltips work

Tooltip
how to make flash tooltip?

Tooltip Help
i'm trying to create a tooltip as part of a main menu screen using little icons.

I've got the main tooltip itself workin, but i want it to move along strict x and y axis's like as if its moving along a grid so that it only follows the same kinda layout of the icons that are on the screen.

Does anyone know how i can do this?

[F8] Tooltip
How do you create a tooltip in flash?

Tooltip
Hey There,
....................
I got a very simple and easy one..

If you made an invisible button to put on top of a html layout and you want the button to show a tooltip : say -- H O M E ; how do you add this text?

I got the button to reload the whole site, but the visitor has to know that this is the intention by clicking the flash banner. I Can't find a menu in actionscript to insert my alternate- text.

thanx -
..................
Figidigi

Help Me With My Tooltip
I have created a simple class that displays a tooltip. It works fine. The tooltip is displayed when I rollover a button or other object on the stage.

The tooltip over laps the button a bit. If I cursor moves over the tooltip the tooltip begins flashing. This is because Flash sees that the cursor is now over the tooltip movieclip and sends a ROLL_OUT message to the button which hides the tooltip.

Is there anyway I can get Flash to ignore ROLL_OVER events for the tooltip movieClip?

Like A Tooltip
hello all,

I have a project i'm working on where I want to display data on a hover (no big deal) allot like a a tooltip only I don't want it to fall of the screen. any thoughts about how I can keep it on the screen ?

thanks
mm

ToolTip
Hi there


I have a lost of buttons in my movie and want a tooltip that can be edited by a external file txt./xml

I found this but cant get I to work..(It should)

pls a step by step help



:-) flemming







ActionScript Code:
mv = new LoadVars();
mv.load("tooltip.txt");
mv.onLoad = function(success) {
if (success) {
trace("text loaded");
for (i=1; i<=4; i++) {
temp = _root["mc"+i];
temp.onRollOver = function() {
startDrag("_root.toolTip", true);
_root.toolTip.tip = _root.mv['tooltip'+this._name.substr(-1)];
_root.toolTip.gotoAndStop(2);
};
temp.onRollOut = function() {
stopDrag();
toolTip.gotoAndStop(1);
};
}
} else {
trace("text not loaded");
}
};

Tooltip AS Only
Hi Guys

I'm looking for a tooltip only in AS does anybody
have one.

I've tried already a couple by my self but they won't work so if
somebody has one. I wanna use it on a button on the rollover.

I'll be happy if somebody could help me.

thx
newbie_AS

Tooltip
How to make flash tooltip?

ToolTip
Hello,

I'm building a ToolTip function to float over a Sprite.

Here is my issue :

When moving the mouse ove the sprite, the MOUSE_OVER event is triggerd all the time. This is a issue because It always want's to make more tooltips, and always calles MOUSE_OUT. The sprite ia a big circle.

Here is the code I'm using :

thePie = new Sprite();
thePie.buttonMode = true;
thePie.mouseChildren = false;
this.targetMC.addChild(thePie);
thePie.addEventListener(MouseEvent.ROLL_OVER, rollOverSlice);
thePie.addEventListener(MouseEvent.ROLL_OUT, rollOutSlice);

the content is added with addChild later in the code.

Thanks
for your help
Richard Pineault

ToolTip -xml
HI is there any way to get a tooltip running with
a input from XML /text file


:-)

Tooltip
How do you do the tooltip on this forum when you roll over text. I relly like that for my movie. www.tsigold.com.
I want to be able to use that feature on my buttons. I will have about 350 different tooltips.

Tooltip
Can somebody post a link on how to make the floating tool tip found on the thumbnails at the top of the forum page.

TIA!
-T

Help With Tooltip ?
posted this on a regular page but no one could help. so maybe here someone knows,,i have my tootip script, and it shows a pic outside of toolip.......pic is in the wrong place i wanted it inside of tooltip, when it pops up, new to this and really trying, any help ??? Here is the script.............

</SCRIPT>
<a href="javascript:;" onmouseover="showTooltip('dHTMLToolTip',event, '<B>Mirror</B><br><br>Amethyst & Alexandrite 9K Solid<br> Yellow Gold Pierced Earrings', '#ffff99','#000000','#000000','6000')" onMouseOut="hideTooltip('dHTMLToolTip')"><img src="images/85.jpg" width="80" height="80" border="0" class="tekstinormBoldCenter" onClick="openPictureWindow_Fever('undefined','imag es2/85.jpg','500','375' ,'::::LED1::::','400','300')">

<DIV id=dHTMLToolTip
style="HEIGHT: 10px; LEFT: 0px; POSITION: absolute; TOP: 0px; WIDTH: 10px; Z-INDEX: 1000"></DIV>

Tooltip With Xml HELP
Hi folks..

PLEASE PLESE HELP ME!!... iv bin writting on every forums and searching the internet for help, but nothing has turned up..

I am total noob regarding AS. I bought a download app from flashden.

here the linkto the app I bought:

http://www.flashden.net/item/force-d...and-flash/5649

Now as you see, there are no info on the thumb pic. So i looked and tried all sots of tutorials regading tooltip. And they all worked with movieclips or buttons. My thumb pic are loaded in via xml.

How can I apply a tooltip effect or make some containers or clips so i can use some of the cool looking tooltip out there. I saw some real nice tutorilas on tooltip but i cant use any of them

Please help me.

Here the simpel code for the xml file(loads in the thumbs and the filename which are to be downloaded):


Code:

<images>
<img thumb="pdflogo.jpg">help.pdf</img>
<img thumb="thumb2.jpg">image2.jpg</img>
<img thumb="rarlogo.jpg">mailform.rar</img>
<img thumb="soundThumb.jpg">16.wav</img>
<img thumb="thumb5.jpg">image5.jpg</img>
<img thumb="thumb1.jpg">image1.jpg</img>

</images>
and her is the code for the action script. which is are #include"code.as"


Code:

//**************************************************
//******************** SETTINGS ********************
//**************************************************
var thumb_width:Number = 53; // Thumbnail width
var thumb_height:Number = 40; // Thumbnail height
var thumb_sep:Number = 5; // Separation within thumbnails
var columns:Number = 8; // Number of thumbnails columns
var thumb_alpha:Number = 50; // Thumbnails alpha
var images_folder:String = "images_down/"; // Images folder (thumbs and images)
//**************************************************
//*********** NOTHING TO CHANGE FROM HERE **********
//**************************************************
// Import animation classes
import caurina.transitions.Tweener;
// Read XML of images
var imagesXML:XML = new XML();
imagesXML.ignoreWhite = true;
imagesXML.onLoad = parseXML;
imagesXML.load("download.xml");
// Function to attach thumbnails and give them actions
function parseXML():Void
{
var r:XMLNode = imagesXML.firstChild; // First node
var n:Number = r.childNodes.length; // Amount of images
for (var i:Number = 0; i < n; i++) // Generate thumbs
{
var image:MovieClip = cont.attachMovie("thumb", "thumb" + i, i); // Attach MC from Library
image._alpha = thumb_alpha; // Set alpha at beggining
image.id = i; // Save value
image._x = (thumb_width + thumb_sep) * (i % columns); // Thumb _x value on rows and columns
image._y = (thumb_height + thumb_sep) * int(i / columns); // Thumb _y value on rows and columns
image.img.loadMovie(images_folder + r.childNodes[i].attributes.thumb); // Load image on thumb
image.onRollOver = function():Void { // RollOver effect
Tweener.addTween(this, {_alpha:100, time:.3, transition:"easeOutQuad"}); // Alpha to 100
};
image.onRollOut = function():Void { // RollOut effect
Tweener.addTween(this, {_alpha:thumb_alpha, time:.3, transition:"easeOutQuad"}); // Alpha less
};
image.onRelease = function():Void // onRelease actions
{
getURL("download.php?f=" + r.childNodes[this.id].firstChild.nodeValue, ""); // Call PHP to force download
};
}
};
// Function to center the thumbnails on Stage. Delete this function if you will use this in another SWF
/*cont.onEnterFrame = function():Void
{
this._x = ((Stage.width / 2) - (this._width / 2)); // Center thumbs on X coordinate
this._y = ((Stage.height / 2) - (this._height / 2)); // Center thumbs on Y coordinate
}*/
Please help me..

hamidr@ofir.dk

Regards Hrbi

How To Tooltip In As3?
Hey ppl! i would like to know if anybody knoes how to give a movieclip a tooltip in as3? in as2 we could make one from another mc from the library. Is this possible in as3? thanks in advance!

ToolTip -xml
HI is there any way to get a tooltip running with
a input from XML /text file


:-)

Tooltip
How do you do the tooltip on this forum when you roll over text. I relly like that for my movie. www.tsigold.com.
I want to be able to use that feature on my buttons. I will have about 350 different tooltips.

ToolTip
What Can I do to Put a ToolTip on a button?
What's that ActionScript Code????

'Tooltip' In Flash
I'm trying to build sort of a 'tooltip', so that when the mouse moves over a object or button a small text window pops up and gives a description of the link. I have this working now.

The problem is that I would like the size of the pop-up to be adapted to the amount of text. So if I only have one word a small pop-up appears and If I have a sentence a larger pop-up appears (like in Windows). I have tried a textbox with a border/background, but that needs to be set at a fixed width.
Is there anyway I can find out the size of the text-line and adjust the size of a background object according?
Or if anyone knows of another way to achive the same effect: please tell me.
Thanks!

Copyright © 2005-08 www.BigResource.com, All rights reserved