Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

1120: Access of undefined property sendbtn.

New Here ,
Jan 06, 2013 Jan 06, 2013

What would cause this I have a button named sendbtn but it causes this error like 4 times

TOPICS
ActionScript
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 06, 2013 Jan 06, 2013

Have you assigned those instance names to the objects using the Properties panel?

Translate
New Here ,
Jan 06, 2013 Jan 06, 2013

it says the same thing about these lines of code

sendbtn.buttonMode = true;

sendbtn.addEventListener(MouseEvent.CLICK, submit);

resetbtn.buttonMode = true;

resetbtn.addEventListener(MouseEvent.CLICK, reset);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 06, 2013 Jan 06, 2013

or is there a way to tell it when send to grab form data and post it as an email

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 06, 2013 Jan 06, 2013

Have you assigned those instance names to the objects using the Properties panel?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 06, 2013 Jan 06, 2013

That helped but now i get this error


1119: Access of possibly undefined property buttonMode through a reference with static type flash.display:SimpleButton.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 06, 2013 Jan 06, 2013

got it thanks i will let you know how it goes

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 06, 2013 Jan 06, 2013

A SimpleButton object does not have a buttonMode property... primarily because it is a button and has very little about it that can be changed in that regard. 

The butttonMode property is part of the Sprite class, which gets passed along to the MovieClip class, wherein you can specify that an object behave like a button as far as the cursor (hand) appearance and for keyboard interaction.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 06, 2013 Jan 06, 2013

how can i make it mailto it says i need an righthand parentheese before the :

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 06, 2013 Jan 06, 2013

my reset button works just not sure how to make mail work

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 06, 2013 Jan 06, 2013
LATEST

You'll need to show the code you are using that is not working.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 06, 2013 Jan 06, 2013

Thank you by the way

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines