A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Creating Tool tip for Dynamically loaded text

  1. #1
    Junior Member
    Join Date
    Mar 2006
    Posts
    18

    Creating Tool tip for Dynamically loaded text

    hi to all,

    Once again, i am here, for another problem :

    now the problem is

    We have to create a tooltip which comes when we click upon some text in our movie.

    The story is this:

    I am dynamically loading textual content into flash movie (.txt file), In that content, that have been loaded, i have to hightlight some words, that are difficult to understand. When the user goes over those highlighted text, a small popup should opens and the meaning of that particular text has to be displayed. Much like windows help

    can anyone having some exp. with this stuff or with some idea to help me out...pls reply to this thread.


    cheers
    saikiran
    saisen76@hotmail.com

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Barcelona
    Posts
    164
    Inside you button, and in you "over sequence" put a Movieclip with a tweening of a displayed text (fade it from 0 to 100 alpha to get a nicer effect).
    Don't forget to give your MC an instance name and a LoadVars if the "popping text" is also dynamic text.
    That's all I guess.

  3. #3
    Junior Member
    Join Date
    Mar 2006
    Posts
    18
    hi manare,

    I dont have a button here.

    My text file has got one variable, i am loading it thru loadvars and getting the variable value into a dynamic text

    I made my text as a htmlText, so that i can give the link to those words.

    I got one file which loads a movie from a dynamically generated text.They are using

    asfunction n their text file

    this is the code they are using

    [Code]

    loadText = new LoadVars();
    loadText.load("example.txt");
    loadText.onLoad = function(success) {
    if (success) {
    web.html = true;
    web.htmlText = this.example;
    }
    };

    //This is the function that has been called within the asfunction of the example.txt

    loadMov = function (mov) {
    _root.holder_mc.attachMovie("mov", "kk", 999);
    _root.holder_mc._x = _root._xmouse;
    _root.holder_mc._y = _root._ymouse-10;
    // _root.holder_mc.onMouseMove=function()
    // {
    // this._y = _root._ymouse-30;
    // this._x = _root._xmouse;
    // }
    };
    [Code]


    the example.txt reads like this

    example=<p><font face="verdana" color="#ff0000" size="12"><a href="asfunction:loadMov,mov">Culm</a></font>This is a demo for tooltip in this file<font face="verdana" color="#0000ff"><a href="asfunction:loadMov,mov">Tapering</a></font>This is second example of the tooltip class

    if u want i will attach the movie also.

    but i feel this wont suits my requirment.


    cheers
    saikiran

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center