Hi all,
just got my hands on CS5, and I’m having an issue I never experienced before.
I’m just creating a movieclip from a text field object on the stage, giving it an instance name and setting some timeline animated over and out states for it. I’m then setting it up in AS3 to work like a button, so nothing complicated at all.
But I am getting errors I have never seen before. Code is very simple basically I have a button called ‘hair’ contained within the mc ‘menu’, here it is:
menu.hair.addEventListener(MouseEvent.MOUSE_OVER , itemOver);
function itemOver(e:Event):void
{
trace(e.target);
e.target.gotoAndPlay('over');
}
So I noticed there are some new text options in CS5, but none of them give the result I want. If I leave this as the (now default) TLF text, it gives a couple of errors related to this no longer being a movieclip;
ReferenceError: Error #1069: Property gotoAndPlay not found on flash.text.engine.TextLine and there is no default value.
at CL022_fla::MainTimeline/itemOver()
[object SimpleButton]
ReferenceError: Error #1069: Property gotoAndPlay not found on flash.display.SimpleButton and there is no default value.
at CL022_fla::MainTimeline/itemOver()
[object TextLine]
.
If I change it to classic, there are no errors, but the gotoAndPlay does not work. If I change the text to outlines, it works as per normal.
What’s up with this?
Thanks in advance.