Skip to main content
Known Participant
June 13, 2009
Question

communicating to btns in a loaded swf

  • June 13, 2009
  • 2 replies
  • 543 views

I am using the following code to try to reference these buttons "withing" my loaded content – itis giving me the following error:

TypeError: Error #1010: A term is undefined and has no properties.
    at sliSiteFinal_2_fla::MainTimeline/prevOut()

code:

pPrevH.addEventListener (MouseEvent.MOUSE_OUT, prevOut);

function prevOut (e:MouseEvent):void{
    var mc:MovieClip = MovieClip(imageLoader.content);
    mc.btn_prev.gotoAndPlay ("pLout");

Is my dot syntax here off? As it seems I am defining prevOver and it is telling me I am not.

Thanks!

This topic has been closed for replies.

2 replies

Ned Murphy
Legend
June 13, 2009

If you go to your publish settings , check the option to allow debugging in the Flash section there.  When you get an error message it may provide a little more info to help point out the problem.

Without an explanation of what's where relative to the code you show, it's hard to say if your dot syntax has anything to do with the problem, though it's more likely a targeting issue.

bamaurerAuthor
Known Participant
June 13, 2009

Ned, nope – it was me on this one, my code was referencing the wrong names – but I did just post another issue that I am having hard time understanding if you want to help on that!

Ned Murphy
Legend
June 14, 2009

Yep

bamaurerAuthor
Known Participant
June 13, 2009

scratch that, my code was wrong.