View Full Version : Tooltips
wyclef
07-01-2003, 10:50 PM
Hello,
I thought I had this posted somewhere but maybe it's in another thread. In any case, let me know if this is a crosspost and i'll delete it.
If not, can someone take a look at this fla and let me know what I can do to fix the blurry pixel fonts?
And also, would there be a way to attach a different jpg to each tooltip?
Thanks!
farafiro
07-02-2003, 09:48 AM
Originally posted by wyclef
And also, would there be a way to attach a different jpg to each tooltip?
Thanks! //just change the buttons names
attachMovie ("dragMc"+this._name, "dragMc", 1, {_x:_xmouse-44.5, _y:_ymouse+19.8});
wyclef
07-02-2003, 01:41 PM
it didn't work, but also, how would i be able to have an array of different images to go with the array of different text?
farafiro
07-02-2003, 01:59 PM
Originally posted by wyclef
it didn't work r u sure??
see the attachment :p
what u mean by that, but also, how would i be able to have an array of different images to go with the array of different text?
wyclef
07-02-2003, 09:58 PM
What about the blurry pixel font? There has to be something that can be done about it.
sneeuwitje
07-02-2003, 10:30 PM
Are you using a point size that's in the font, otherwise it won't work as expected.
wyclef
07-03-2003, 12:08 AM
yes
oldnewbie
07-03-2003, 05:32 AM
Textfield has to be on x & y exact pixel values (i.e x=125.0 and not 125.2)... If nested in a movie clip, the movie clip also has to be on x & y exact pixel values, which I guess is impossible to maintain with moving tooltips! Also, the text can only be left justified, and must be scaled 100% across.
farafiro
07-03-2003, 05:36 AM
oldnewbie
sorry, but can u describe this more??
there maybe something I don't know
oldnewbie
07-03-2003, 05:39 AM
Describe?
What don't you understand?
farafiro
07-03-2003, 05:46 AM
these[list=1]
Textfield has to be on x & y exact pixel values (i.e x=125.0 and not 125.2)... If nested in a movie clip, the movie clip also has to be on x & y exact pixel values
The text can only be left justified
and must be scaled 100% across.[/list=1]
oldnewbie
07-03-2003, 06:09 AM
Exactly what I posted...
The textfield must lie on exact pixel values or coordinates...
i.e. x = 125.0 and y = 225.0
If the textfield in nested in a movie clip, the movie clip must also lie on exact pixel values or coordinates... Obviously on a tween, a movie clip may hit non-exact coordinates, and the font may appear blurry on those. Care should be taken to ensure that the tween at least stops on exact pixel coordinates.
The dynamic text can only be left justified.
The textfield must not have been scaled. Check the Transform Window, to ensure the textfield's scaling is 100% across.
Can't be more explicative than that!
BTW, all this info from www.fontsforflash.com/
farafiro
07-03-2003, 06:44 AM
I don't get the scaling?? why??
also, I didn't try the exact pixel, but for the justification,
r u sure of that??
coz I do some Arabic text and if u have the System.useCodePage on, it would justify to the right (or how the machice is set to)
oldnewbie
07-03-2003, 01:01 PM
We are talking pixel font here?
Didn't know there was some Arabic pixel fonts!
All those items were confirmed by FFF, see it in this thread on FK:
http://www.flashkit.com/board/showthread.php?threadid=429083&highlight=fff%2A
farafiro
07-03-2003, 01:07 PM
no, normal font that I talk about
wyclef
07-03-2003, 01:52 PM
Old Newbie, can you take a look at the fla from
07-01-2003 11:50 PM
:p
I've checked over and over again to make sure all the requirements for using pixel font have been met and everything checks out. The only thing I can think of is that I should be using Math.Round but i'm not sure. Since you seem to know what you are talking about if you could take a look I would really appreciate it. Thanks.
oldnewbie
07-04-2003, 04:38 AM
Farafiro...
Wyclef's question was about a pixel font!
But the exact pixel value coordinate bit still holds on any other embedded normal font to get it to stay as clear & crisp as possible.
Wyclef...
Been quite busy on the last few days, as I will be tomorrow. May have a look at your file over the weekend.
wyclef
07-04-2003, 03:19 PM
Thanks Old Newbie, I appreciate it.:cool:
oldnewbie
07-06-2003, 01:58 AM
As I posted, you must make sure your textfield is on exact pixel values coordinates. Change the 2 following lines in your script:
this._x = Math.round(_xmouse-(this._width/2));
this._y = Math.round(_ymouse+(this._height));
farafiro
07-06-2003, 05:49 AM
Originally posted by oldnewbie
Farafiro...
Wyclef's question was about a pixel font!
But the exact pixel value coordinate bit still holds on any other but firstly he asked bout somehing else
Originally posted by wyclef
And also, would there be a way to attach a different jpg to each tooltip?
Thanks!
oldnewbie
07-06-2003, 01:33 PM
I answer to what I can answer to!
Not to what I can't!
Makes sense?
farafiro
07-06-2003, 01:37 PM
if that's to me
yes, it does
wyclef
07-06-2003, 03:58 PM
OldNewbie,
I changed it to this,
this._x = _xmouse-(this._width);
this._y = _ymouse+(this._height);
And it helped a little bit, but it's still a little blurry
oldnewbie
07-06-2003, 04:37 PM
http://blake.prohosting.com/~tektips/flash/tip_new_062703.html
But as I said, you have to make sure your textfield is located on exact pixel value coordinates, and since you're dragging this movie clip, it must end up on non-exact pixel values, thus the blur when that happens.
wyclef
07-07-2003, 02:34 PM
Thanks Old Newbie, Math.Round did the trick!
wyclef
07-07-2003, 03:21 PM
Also, OldNewbie, could you doublecheck farafinos method of attaching a different image to each tooltip and see if it's the most efficient way? Somehow I feel like there might be a way to add the images to an array or something....i don't really know though. Thanks!
oldnewbie
07-08-2003, 01:35 AM
Me? Double check a moderator's suggestion? Over my dead body!
farafiro
07-08-2003, 05:24 AM
hek
mod ain't god
and also i gave you the key of doing it, u think, do, imagine the rest
wyclef
07-09-2003, 03:52 AM
can someone explain to me how to control the positioning of the tooltip so it doesn't jump on rollover? in the example i posted if i change the tip to be bigger the positioning jumps all over the place....does it have to do with this???
{_x:_xmouse-44.5, _y:_ymouse+19.8})
farafiro
07-09-2003, 06:24 AM
heheheeeeeeee
I was sure that u r gonna ask or at least complain about that when I saw oldnewbie link
u can't use the Math.round with dragging or following the mouse, or if u think u can live with this jump, it's ok
wgat i'd do if I was you, I'd use some fonts that looks hazy in its own
maybe not the perfect solution but 'm sure it'll do what u want
or, u break apart the words> convert to MC> linkage them and do like what I told u before
wyclef
07-09-2003, 02:29 PM
That's not an option, i have to use the Pixel Font. I don't really understand what you are talking about.
oldnewbie
07-10-2003, 01:40 AM
I don't understand Faffy either, if it makes you happy!
How about a link to a .swf, not a .fla, where this jumping you're describing appears?
farafiro
07-10-2003, 05:50 AM
oldnewbie:
I thought it's the link u give us here has this jumping, as I saw it
and even without seeing it, if u r gonna use a round number to adjust a floated object, of cource it will always jump to the exact co'ordinate
what else u don't understand??
and I'm sorry if I gave you the feeling that I'm happy with your problems or so
wyclef
07-10-2003, 09:59 PM
Is ther a way to change this._name to something that would target a frame label?
attachMovie ("dragShopMc_"+this._name, "dragShopMc", 1, {_x:_xmouse-95, _y:_ymouse+151});
farafiro
07-13-2003, 02:13 AM
huh, why u neen a frame lable??
anyway u can do it with a simple if condition
wyclef
07-13-2003, 09:30 AM
so i can have one MC instead of 12
farafiro
07-13-2003, 10:11 AM
I'm lost
can u tell us again, after all of these - what u wanna do again
oldnewbie
07-13-2003, 11:42 AM
Guess there's no automated message for this one, hey? :D
wyclef
07-13-2003, 09:59 PM
Right now, this._name allows me to have multiple versions of dragShopMC so I can have different tool tips. What i'm trying to figure out is if there is a way I can have one MC that jumps to a new session state within that MC for each different tooltip, so I can have one MC contain everything instead of a bunch of MCs. Is that any clearer?
attachMovie ("dragShopMc_"+this._name, "dragShopMc", 1, {_x:_xmouse-95, _y:_ymouse+151});
:cool:
farafiro
07-14-2003, 02:06 AM
Originally posted by oldnewbie
Guess there's no automated message for this one, hey? :D let's see
[LOST]
warnning, warnning
you've got me all mad
red eyes in da face
smoke all over outta from da ear
u better ran as fast as u can
or ...............
u r gonna be scripted
;)
farafiro
07-14-2003, 02:35 AM
wyclef
of course u can
easily make a multiple frames movie
make the frame lables and the graphics as u want
make a function to be executed when rollOver the button
wyclef
07-14-2003, 09:34 AM
But I'm interested in doing this within the scope of the whole tooltip idea we've been working on.
freddycodes
07-14-2003, 12:32 PM
You'd be better off to pass some variables to the tool tip clip, and use actionscript to set the text and graphic, that way, you would only need one tool tip clip.
See my post as freddydoesphp here
http://www.sitepointforums.com/showthread.php?threadid=110194&highlight=tooltip
wyclef
08-31-2003, 09:14 PM
Hi, I've found a bug with this tooltip example. Can someone take a look and see if they can figure out a way to fix it? Basically, if you click and hold down on the tooltip and drag it away from the hit area, the tooltip won't go away and follows the mouse around everywhere.
farafiro
09-01-2003, 02:28 AM
just add _mc.onDragOut, _mc.onDragOver
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.