Top.Mail.Ru
? ?
Macromedia Flash Developer's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Thursday, August 21st, 2003

Time Event
1:50p
"Alt" Style Text Problem
Thanks to the help of xevinx, I was able to creat "Alt" style text in flash. But I'm having a problem getting the alt text to change. Here's what I did:

I created a box with a dynamic text area with a Var name of "alttext". (made it Unselectable)

I made it a movie clip, named it "altbox" and clicked on "Export in ActionScript"

The code on the first frame of the movie clip is:
onEnterFrame = function () {
_y = _root._ymouse;
_x = _root._xmouse;
}

Then, on the button to actative the text, here's the code:
on(rollOver) {
me = attachMovie("altbox", "altbox", 100, {alttext: "New Text", _x: _xmouse, _y: _ymouse});
}
on(rollOut) {
removeMovieClip(me);
}

The problem is, it appears, but the text never changes to what I make it in the code (in this case "New Text"), It just says as whatever it is in the movie clip. Can someone please help me out with this problem? I'm using flash MX. Thanks

<< Previous Day 2003/08/21
[Calendar]
Next Day >>
Flash Dev   About LiveJournal.com
Image