|  | Want to label a thumb with a title |  | |
| | | tseyigai |  |
| Posted: Sat Jun 21, 2008 4:11 pm Post subject: Want to label a thumb with a title |  |
*I have the code below for a thumb that enlarges to a bigger picture. However, instead of the VIEW IMAGE I want to label the picture, as "Statue With Flowers." I have 7 thumbs for this section of the gallery. Is it possible to insert a label into the code below? onClipEvent(load) { num=7; }
on(rollOver) { if(_root.pic_num<>num) { this.gotoAndPlay("s1"); } }
on(rollOut, releaseOutside) { if(_root.pic_num<>num) { this.gotoAndPlay("s2"); } }
on(release) { if(_root.pic_num<>num and _root.pic_animation==1) { _root.pic_animation=0; _root.pic_num_prev=_root.pic_num; _parent["item" + _root.pic_num].gotoAndPlay("s2");num=7 _root.pic_num=num; _parent._parent._parent.gal.play(); } } |
| |
| | | meishak |  |
| Posted: Sat Jun 21, 2008 4:41 pm Post subject: Re: Want to label a thumb with a title |  |
If you want the text to appear on rollover, and your just going to another frame anyway, then why not just put the text you want on frame "s1"? Other than that, you could put the text into a dynamic text field. |
| |
| | | tseyigai |  |
| Posted: Sat Jun 21, 2008 5:13 pm Post subject: Re: Want to label a thumb with a title |  |
[q]Originally posted by: [b]meishak[/b] If you want the text to appear on rollover, and your just going to another frame anyway, then why not just put the text you want on frame "s1"? Other than that, you could put the text into a dynamic text field.[/q]
I guess I don't quite get it. If I change the code in here below that doesn't work. What exactly do you mean and exactly "how" do I do this? on(rollOver) { if(_root.pic_num<>num) { this.gotoAndPlay("Statue With Flowers"); } } Statue With Flowers |
| |
| | | meishak |  |
| Posted: Sat Jun 21, 2008 5:26 pm Post subject: Re: Want to label a thumb with a title |  |
Nothing changes in your actionscript as long as everything is working the way you want, just create a static text box on the stage in the frame that your movie goes to when you rollover your thumb, and type in the text you want to appear in that text box. That's the simplest way. |
| |
| | | tseyigai |  |
| Posted: Sat Jun 21, 2008 5:30 pm Post subject: Re: Want to label a thumb with a title |  |
| Cool.. that worked fine. Just wondering if I'd rather place the text on the thumb or the larger picture. I'll have to see. |
| |
|
|