|  | Simple Question: Links in MovieClips |  | |
| | | J.Rocker |  |
| Posted: Wed Jul 16, 2008 5:55 am Post subject: Simple Question: Links in MovieClips |  |
Hey Forum!
I've got a (mailto:) linked email written in a text box in a movie clip. Movie clip > text field > email / Link
My problem is you cannot click on the link unless the text box is moved outside of the movie clip. Since this isn't a long term possibility: i need your help.
Thank you! John |
| |
| | | Travis Newbury |  |
| Posted: Wed Jul 16, 2008 10:13 am Post subject: Re: Simple Question: Links in MovieClips |  |
On Jul 16, 1:55 am, "J.Rocker" <webforumsu...@macromedia.com> wrote:
| Quote: | I've got a (mailto:) linked email written in a text box in a movie clip. Movie clip > text field > email / Link My problem is you cannot click on the link unless the text box is moved outside of the movie clip. Since this isn't a long term possibility: i need your help.
|
I haven't the foggiest what you are trying to say here. What are you really trying to do? |
| |
| | | errorist |  |
| Posted: Wed Jul 16, 2008 10:35 am Post subject: Re: Simple Question: Links in MovieClips |  |
Hi J.R.;
Try to write a function in the first frame of the main timeline such as:
_root.mc1.mc2.onRelease = function(){ getURL("mailto:you@somedomain.com"); };
And don?t forget to put the text field inside a new movieclip. This movieclip should be inside the movieclip you?ve already created, and apply an instance name to both of them, i.e = mc1, mc2.
Hope this helps. |
| |
| | | J.Rocker |  |
| Posted: Wed Jul 16, 2008 3:53 pm Post subject: Re: Simple Question: Links in MovieClips |  |
Hey errorist!
Thanks, that looks like what i need. My project is in AS3, though. It's got around 7,000 lines of code so I can't change now. :]
Thanks, John |
| |
| | | errorist |  |
| Posted: Wed Jul 23, 2008 8:19 am Post subject: Re: Simple Question: Links in MovieClips |  |
Hi J.R;
Since I can?t see the original fla file is hard for me to figure out what?s going on. Nevertheless I suggest you to make a step backwards and try to consruct the object again following the instructions given in the help section of flash and stick to. them. The examples there should help as well. Sorry I can?t help you further than that. |
| |
| | | Rothrock |  |
| Posted: Wed Jul 23, 2008 2:26 pm Post subject: Re: Simple Question: Links in MovieClips |  |
This probably would have been a better post for the AS3 forums. Under AS2 I would guess that the parent movie clip also has some kind of mouse event code that traps the event before it can get down to the text movie clip.
However that shouldn't be a problem in AS3 since all dependents get notified unless you've turned that off.
Also it is generally better to actually show the code instead of telling us what you think you've done. A lot of problems on these boards can be solved just by looking at the code -- or hours and hours of back and forth posts. So please post just the part of the code that sets up the event listener and the event handler. |
| |
|
|