dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: OH DEAR GOD PLEASE HELP W/ Button

  1. #1
    Member
    Join Date
    Aug 2003
    Location
    Dallas
    Posts
    42

    OH DEAR GOD PLEASE HELP W/ Button

    For 3 day I've been trying to get this button to work with no luck.

    my button name is next_btn.

    The code I'm using in the actions layer of the MC with the button:

    next_btn.addEventListener(MouseEvent.CLICK,onBtnCl ick);

    function onBtnClick(event:MouseEvent):void{
    this.overlay_mc.nextFrame()
    }

    The error I get:

    TypeError: Error #1010: A term is undefined and has no properties.
    at homeFeatureGallery_fla::nav_mc_5/onBtnClick()


    I watch every tutoral, read every post and still cant get even this simple code to work. Is it suppose to be this hard!

    Please help!

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    That error would seem to indicate that overlay_mc does not exist as a property of the movieclip in which that code is written. Common causes of this are that you are misinterpreting what "this" means, or that you have a child with name overlay_mc but not a corresponding property.

    What is overlay_mc's parent? Was overlay_mc placed through the IDE, or through code?

  3. #3
    Member
    Join Date
    Aug 2003
    Location
    Dallas
    Posts
    42
    Thank you, that was the issue I wasnt pointing to the correct MC

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center