开发者

text Scrolling inside movieclip in Flash 8

I'm trying to show text on mouseover of a movieclip.

mc1.onRollOver = function() { mc1.gotoAndStop(2); stop(); } mc1.onRollOut = function() { mc1.gotoAndPlay(1); play(); }

on frame 2 inside movieclip I've created a textbox which is dynamic & mu开发者_StackOverflowltiline and add a scrollbar. but its not working.

Outside the movieclip its working but inside movieclip its not working.


You may put a textbox into separate layer and hold it in both frames of the mc1 (do not make a keyframe on the textbox layer in the 2nd frame), and then control textbox visibility with _visible property.

Your code might look like this:

mc1.yourTextBoxInstanceName._visible=false;
mc1.onRollOver = function() {mc1.yourTextBoxInstanceName._visible=true; mc1.gotoAndStop(2); stop(); } 
mc1.onRollOut = function() {mc1.yourTextBoxInstanceName._visible=false; mc1.gotoAndPlay(1); play();}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜