[F8] Tooltip
How do you create a tooltip in flash?
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-25-2007, 03:41 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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 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?
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
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!
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.
Tooltip Component Is Getting On My #%@&
i found a brilliant tool tip component on macromedia.com
does exactly what i need it to do. except that one button out of about thirty doesn't work anymore.
the action is:
on (release) {
_parent.add_folder();
}
tnx
any body any ideas???
Datagrid Tooltip
Does anyone know if you can add a dynamic tooltip to each row in a datagrid? I have no problem populating and using the grid, just that I can't seem to add a tooltip to a specific row. For that matter adding a tooltip to a specific cell would be nice.
Thanks in advance,
CFDaddy
ToolTip From Array
Good Morning FK. Looking to rollover (array of MCs) Thing and have (Things matching) Description pop up in a tooltip (type MC created that already works great) basically, take the text from the array Description, and put it into a tooltip window on Thing rollover.
My hangup is I cant get the two to correllate. I can get "Thing's" array name to appear, but not Descriptions. This is from an older piece of tooltip code I have, and I know the issue is being tied up with "tooltip (this._name);" in the for loop. Its getting its tooltip text from Things MC instance name. Problem is nothing I put there instead gets Description's text to work. Any help would be greatly appreciated. Thanks FK!
Geoff
Code:
Thing = new Array ();
Thing[0] = "Latch0";
Thing[1] = "Latch1";
Thing[2] = "Latch2";
Thing[3] = "Latch3";
Thing[4] = "Latch4";
Thing[5] = "Latch5";
Thing[6] = "Latch6";
Thing[7] = "Latch7";
Thing[8] = "Latch8";
Description = new Array();
Description[0] = "hey Look! its Thing description 0";
Description[1] = "hey Look! its Thing description 1";
Description[2] = "hey Look! its Thing description 2";
Description[3] = "hey Look! its Thing description 3";
Description[4] = "hey Look! its Thing description 4";
Description[5] = "hey Look! its Thing description 5";
Description[6] = "hey Look! its Thing description 6";
Description[7] = "hey Look! its Thing description 7";
Description[8] = "hey Look! its Thing description 8";
function tooltip (thisTip){
attachMovie ("tooltip", "tooltip1", 1);
tooltip1._x = _xmouse;
tooltip1._y = _ymouse;
tooltip1.tooltip.text = thisTip;
tooltip1.onEnterFrame = function (){
tooltip1._x = _xmouse;
tooltip1._y = _ymouse;
};
}
function remove_tooltip (){
removeMovieClip (tooltip1);
}
for (i=0; i<10; i++) {
_root[Thing[i]].onRollOver = function (){
tooltip (this._name);
};
_root[Thing[i]].onRollOut = function (){
remove_tooltip (_root[Description[i]]);
};
}
Help: Tooltip In A MC (.fla Attached)
The tooltip works when is in the _root... but it doesnt when i insert it in a MC... i have some problems with actionscript... so if any can help me...
Tooltip Cutted...(help)
hi everybody,
i made a tooltip in flash,but because of sever button one near to the other it figure out cutted, how can i do to see it?
Tooltip Component
Hi there
I am new to this.. how do I create a tooltip using component
in mx.. Ive lots of buttons and is there some that can be edited
outside the .fla from a txt.file
Have a nice day
As 2, Mouseover Tooltip
function ToolTip(Tip:Object, xmin, xmax, ymin, ymax) {
if ((_xmouse>xmin) && (_xmouse<xmax) && (_ymouse>ymin) &&(_ymouse<ymax)){
startDrag(Tip,true,xmin,ymin,xmax - Tip.width,ymax - Tip.height);
Tip.visible = true;
}else{
Tip.visible = false;
}
}
I want the Tip object to go invisible when all those conditions arent true. Please Help.
Love,
Radler
ToolTip Functions
These functions should make it so that when i rollover the button Click the tooltip should be draggable and visible, and when i rollout it goes invisible. It doesn't work.This is all in the first frame script. - - ignore the extra mcs and objects on the stage
PHP Code:
#include "lmc_tween.as"
function TipShow(TargetTip, TargetButton) {
startDrag(TargetTip, true, TargetButton._x, TargetButton._y, TargetButton._x+TargetButton._width, TargetButton._y+TargetButton._height);
TargetTip._visible = True;
}
function TipHide(SameTip) {
stopDrag();
SameTip._visible = False;
}
function ToolTip(TButton:Button, Tip:Object) {
TButton.onRollOver = TipShow(Tip, TButton);
TButton.onRollOut = TipHide(Tip);
}
ToolTip(Click, TT);
stop();
Tooltip Y Axis
Using this tooltip function
code:
function homecaption (string) {
xmouse = getProperty("", _xmouse);
ymouse = getProperty("", _ymouse);
duplicateMovieClip ("_root.tooltip", "homecaption1", 1);
homecaption1.homecaption = string;
setProperty (homecaption1, _x, xmouse);
setProperty (homecaption1, _y, ymouse);
startDrag ("_root.homecaption1");
homecaption1.gotoAndPlay(2);
}
function remove_homecaption () {
stopDrag ();
removeMovieClip ("homecaption1");
}
i want the Y axis to remain at a certain position, but allow the X axis to still follow the mouse!
Anyone shed some light?
Anotherthing How do you put code into the "code" quotes rather then how ive done it using the ordinary quotes thing on this message board?
EDIT: I fixed your post to use [ as ] tags - edit your message to see what they look like. - jbum
Tooltip Question
I'd like to make tooltips for buttons on my site.
Does anyone have any suggestions or tutorials.
My Flash book is for Flash 5 and I don't think it will work in AS2.0
thanks
Tooltip Picture
I seen on another site where when you roll over text a small pic pops up, how is this done in flash.
Tooltip Lite Help
Can anyone point me in the direction of some help or instruction on the tooltip lite or the tooltip component in 'ui components 3'.
there is none in my flash installation and I cannot find any online...anyone?
Cheers
How Add An Action To MC For Tooltip
I has download http://www.flashkit.com/movies/Scrip...8214/index.php
But i try to ply action in the butons but not are buttons are MC, please help
Tooltip Problem, SOME ONE PLEASE HELP :(
hi Everyone
I have called up some images from XML along with some text (product names), i need to show up the same text which is coming from XML into the Tooltip which is poppoing up when roll over.
I am stuck at the point where i need to show the same text in the tooltip, can any one have a look at it please?
I have attached the folder in zip.
Thanks
F.
Infotip/tooltip
Does anyone have an idea to where I can look at a tooltip/infotip that works like a rollover function, like the one on this site www.gotoandlearn.com. I even downloaded the .fla file for the site but cant figure it out, I know I have seen a tutorial on this before but cannot remember where.
Cheers
Flash ToolTip
hi there,
I found this code for a multiline tooltip in flash. it's working very well..
// -----------------------------
// show tooltip over movie clips
// and buttons
// -----------------------------
//syntax:
//movieClip.setTooltip(string[,timer,textColor,backgroundColor,borderColor])
// -----------------------------
MovieClip.prototype.setTooltip = function(theText, timer, text_color, bg_color, border_color)
{
if (timer == undefined)
{
timer = 500;
}
var addMsg = function (theMsg, col, bg_color, border_color, level)
{
var x = _root._xmouse
var y = _root._ymouse
var f = new TextFormat();
f.font = "Tahoma";
f.size = 11;
f.color = col != undefined ? col : 0x000000;
_level0.createTextField('tooltip', 123456, x, y, 150, 20);
with (_level0.tooltip)
{
setNewTextFormat(f);
text = theMsg;
selectable = false;
autoSize = true;
background = true;
border = true;
borderColor = border_color != undefined ? border_color : 0x000000;
backgroundColor = bg_color != undefined ? bg_color : 0xffffee;
_y -= _height;
}
clearInterval(level.q_t);
};
this.q_t = setInterval(addMsg, timer, theText, text_color, bg_color, border_color, this);
};
// --------------------
// unset the tooltip
// --------------------
MovieClip.prototype.unsetTooltip = function()
{
_level0.tooltip.removeTextField();
clearInterval(this.q_t);
};
//On Button this code
on (rollOver)
{
setTooltip("My Heading Should be Bold
Text should be in different font");
}
on (rollOut) {
unsetTooltip();
}
on (release) {
getURL("http://www.google.com", "_blank");
}
but now i wanna add some html formatting in it ....... i mean how can i format different fonts in this and i also wanna give some hyperlinks.
thanks.
Tooltip On Button
Hi,
I want to have a tooltip to appear on a hidden button when the user rolls over an image. So they know that if they clicked it will take them somewhere. Does anyone know the action script for that?
Tooltip Problem
hi Everyone
I have called up some images from XML along with some text (product names), i need to show up the same text which is coming from XML into the Tooltip which is poppoing up when roll over.
I am stuck at the point where i need to show the same text in the tooltip, can any one have a look at it please?
I have attached the folder in zip.
Thanks
F.
Help Finding Tooltip
Were can I find a nice tooltip, I have tried a bunsh of them but they will not work in my project. Think they are to old.
Demands: Flash 8, and no mouse follow.
Thank you for any help/links,
//patrik
Faking A Tooltip?
so, here is what i want to do. I would love to scroll over a "hotspot"(i.e invisible button) on a site and have an MC play that follows the mouse as I hover within the button bounds. On rollout the MC fades away. Any ideas?
I have searched tons of tooltip codes, but the ones that i have seen all use the tooltip function and dynamic text.
ToolTip Class
i’m creating a toolTip on a movieclip. so far i got the text to load on the toolTip. i need some help on adding an image to the right of the toolTip. what should I do ...
Attach Code
script in as:
class com.site.ToolTip
{
var oldOnRollOver, toolTipText, toolTipDelay, oldOnRollOut;
static var _text, __get__text, label, _cont, _caller, __get__caller, _mouseListener, intervalID, shadow, bg, __get__active, __set__caller, __set__text;
function ToolTip()
{
} // End of the function
static function set text(_t)
{
_text = _t;
//return (com.site.ToolTip.text());
null;
} // End of the function
static function get text()
{
return (com.site.ToolTip.label.text);
} // End of the function
static function get active()
{
return (com.site.ToolTip._cont._visible);
} // End of the function
static function set caller(_c)
{
_caller = _c;
//return (com.site.ToolTip.caller());
null;
} // End of the function
static function get caller()
{
return (com.site.ToolTip._caller);
} // End of the function
static function show(_t, time)
{
if (time && time > 0)
{
com.site.ToolTip.setText(_t ? (_t) : (com.site.ToolTip._text));
com.site.ToolTip._mouseListener.show = mx.utils.Delegate.create(com.site.ToolTip.getInstance(), com.site.ToolTip.show);
intervalID = setInterval(com.site.ToolTip._mouseListener, "show", time);
return;
} // end if
clearInterval(com.site.ToolTip.intervalID);
Mouse.addListener(com.site.ToolTip._mouseListener);
com.site.ToolTip._mouseListener.onMouseMove = mx.utils.Delegate.create(com.site.ToolTip.getInstance(), com.site.ToolTip.setToolTipToMouse);
com.site.ToolTip.setToolTipToMouse();
com.site.ToolTip._cont._visible = true;
} // End of the function
static function hide()
{
Mouse.removeListener(com.site.ToolTip._mouseListener);
delete com.site.ToolTip._mouseListener.onMouseMove;
com.site.ToolTip._cont._visible = false;
clearInterval(com.site.ToolTip.intervalID);
} // End of the function
static function getInstance()
{
if (com.site.ToolTip._instance == undefined)
{
_instance = new com.site.ToolTip();
com.site.ToolTip.init();
} // end if
return (com.site.ToolTip._instance);
} // End of the function
static function init()
{
_cont = _root.createEmptyMovieClip("__tooltip_mc", 9000);
shadow = com.site.ToolTip._cont.createEmptyMovieClip("shadow", 1);
bg = com.site.ToolTip._cont.createEmptyMovieClip("bg", 2);
com.site.ToolTip._cont.createTextField("label", 3, 5, 0, 5, 20);
label = com.site.ToolTip._cont.label;
com.site.ToolTip.label.autoSize = "left";
com.site.ToolTip.label.html = true;
com.site.ToolTip.label.selectable = false;
com.site.ToolTip.label.multiline = true;
_mouseListener = new Object();
com.site.ToolTip.hide();
} // End of the function
static function setText(_t)
{
com.site.ToolTip.label.htmlText = "<font face="Verdana" size="10">" + _t + "</font>";
com.site.ToolTip.resetBG();
} // End of the function
static function setToolTipToMouse(Void)
{
com.site.ToolTip._cont._x = _root._xmouse + 15;
com.site.ToolTip._cont._y = _root._ymouse;
if (com.site.ToolTip._cont._x + com.site.ToolTip._cont._width > Stage.width)
{
com.site.ToolTip._cont._x = _root._xmouse - com.site.ToolTip._cont._width - 5;
} // end if
if (com.site.ToolTip._cont._y + com.site.ToolTip._cont._height > Stage.height)
{
com.site.ToolTip._cont._y = _root._ymouse - com.site.ToolTip._cont._height - 5;
} // end if
updateAfterEvent();
} // End of the function
static function resetBG(Void)
{
var _loc2 = com.site.ToolTip.label.textWidth + 12;
var _loc1 = com.site.ToolTip.label.textHeight + 4;
com.site.ToolTip.bg.clear();
com.site.ToolTip.bg.lineStyle(0, 3355443, 80);
com.site.ToolTip.bg.beginFill(16777164, 80);
com.site.ToolTip.bg.moveTo(0, 0);
com.site.ToolTip.bg.lineTo(0, _loc1);
com.site.ToolTip.bg.lineTo(_loc2, _loc1);
com.site.ToolTip.bg.lineTo(_loc2, 0);
com.site.ToolTip.bg.lineTo(0, 0);
com.site.ToolTip.bg.endFill();
com.site.ToolTip.shadow.clear();
com.site.ToolTip.shadow.beginFill(3355443, 60);
com.site.ToolTip.shadow.moveTo(2, 2);
com.site.ToolTip.shadow.lineTo(2, _loc1 + 2);
com.site.ToolTip.shadow.lineTo(_loc2 + 2, _loc1 + 2);
com.site.ToolTip.shadow.lineTo(_loc2 + 2, 2);
com.site.ToolTip.shadow.lineTo(2, 2);
com.site.ToolTip.shadow.endFill();
} // End of the function
static function install(mc, text, delay)
{
trace ("install ToolTip on " + mc);
mc.toolTipText = text ? (text) : ("");
mc.toolTipDelay = delay ? (delay) : (500);
mc.oldOnRollOver = mc.onRollOver;
mc.onRollOver = function ()
{
if (oldOnRollOver)
{
this.oldOnRollOver();
} // end if
if (toolTipText != "")
{
com.site.ToolTip.show(toolTipText, toolTipDelay);
} // end if
};
mc.oldOnRollOut = mc.onRollOut;
mc.onRollOut = function ()
{
if (oldOnRollOut)
{
this.oldOnRollOut();
} // end if
com.site.ToolTip.hide();
};
} // End of the function
static var _instance = com.site.ToolTip.getInstance();
} // End of Class
script in fla:
com.site.ToolTip.install(_root.myMc, "this is my text this is my text<br>this is my text this is my text<br>this is my text this is my text<b>text</b>", 250);
MouseOver Tooltip
Please help.
How can I popup a tooltip like message to the left of my cursor when I mouse over any cell on a grid?
I know that more likely I have to use itemRollOver and itemRollOut, but how?
Thank you in advance,
Tooltip Class [AS2]
Hi, I'm building a tooltip class but are not sure if I can use it this way.
The thing is that I want the tooltip on several different things (classes and movieclips).
I started like this.
Code:
class com.tooltip.Tooltip extends MovieClip {
/***************
*
* Constructor
*
***************/
function Tooltip(myText:String) {
trace("the Text. "+ myText + "- "+ this)
this._visible = false;
}
function activeate() {
trace("ssssssssss "+ this)
//this._visible = true;
for(var nisse in this) {
trace(nisse + " : "+ this[nisse])
}
}
}
Then if I want to use this tooltip in maby another class I can add it in the constructor with (testObj) :
Code:
class com.navigation.NavigationButton extends MovieClip {
function NavigationButton(){
init()
testObj = new com.tooltip.Tooltip("try this mon");
}
function onRollOver() {
testObj.activeate()
}
}
with this I can get the function [red]activeate[/red] to work, but it isn't a movieclip then? or?
In my trace in the [red]activeate[/red] function I get.
Code:
ssssssssss [object Object]
_visible : false
To get it to work I need to be able to hide/show, move the class. And by the way, the class is a movieclip that lies on the Stage.
anyone got an Idéa
Tooltip Button
Plese how to create simple tool tio button.
E.g.
On rollOver display text "Go Home"
RollOut will text not visible.
I tried it, but:
How can i 100% make safe that this action is on for rollOver?
What happens i user make dragOver, releaseOutside, etc.
How should i write conditon for this effect to have only rollOver action for the tooltip?
I can do it somehow, maybe u have simplier solution.
|