Copy link to clipboard
Copied
What would cause this I have a button named sendbtn but it causes this error like 4 times
Have you assigned those instance names to the objects using the Properties panel?
Copy link to clipboard
Copied
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);
Copy link to clipboard
Copied
or is there a way to tell it when send to grab form data and post it as an email
Copy link to clipboard
Copied
Have you assigned those instance names to the objects using the Properties panel?
Copy link to clipboard
Copied
That helped but now i get this error
1119: Access of possibly undefined property buttonMode through a reference with static type flash.display:SimpleButton. |
Copy link to clipboard
Copied
got it thanks i will let you know how it goes
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
how can i make it mailto it says i need an righthand parentheese before the :
Copy link to clipboard
Copied
my reset button works just not sure how to make mail work
Copy link to clipboard
Copied
You'll need to show the code you are using that is not working.
Copy link to clipboard
Copied
Thank you by the way
Find more inspiration, events, and resources on the new Adobe Community
Explore Now