# Please help with this error check...have been trying for hours unsuccessfully

**URL:** <https://forum.kirupa.com/t/please-help-with-this-error-check-have-been-trying-for-hours-unsuccessfully/148592>\
**Category:** Uncategorized\
**Created:** [May 21, 2005, 7:49am UTC](https://forum.kirupa.com/t/please-help-with-this-error-check-have-been-trying-for-hours-unsuccessfully/148592 "2005-05-21T07:49:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmw](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@bmw](https://forum.kirupa.com/u/bmw)\
**Post date:** [May 21, 2005, 7:49am UTC](https://forum.kirupa.com/t/please-help-with-this-error-check-have-been-trying-for-hours-unsuccessfully/148592/1 "2005-05-21T07:49:11Z")

</div>

Hello,

I have written this code for the purpose of calcualting the division of 2 input numbers.

on(press){  
\_parent.c1.text = Math.round(10000\*Number(\_parent.a1.text) /Number(\_parent.a2.text))/10000;  
}

where c1 is the output variable and a1 and a2 are input varaibles.

If user enters characters characters other other than numeric ones like strings or special characters like ?, + etc and clicks submit button, I have to display an error message. Please help me incorporate these in my code. I have been trying unsuccessfully for a long time. if the above code is not useful, please suggest other code that can do my above calculation and also check for the error…

Any help wud be greatly appreciated.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![bmw](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@bmw](https://forum.kirupa.com/u/bmw)\
**Post date:** [May 21, 2005, 9:06pm UTC](https://forum.kirupa.com/t/please-help-with-this-error-check-have-been-trying-for-hours-unsuccessfully/148592/2 "2005-05-21T21:06:09Z")

</div>

Hi,

Yeah mine is mx2004 version 7. Do I just do a save file as? It doesnt seem to support version 6, shud I download this version.

Thanks.

---

<div class="post-metadata">

**Author:** ![onsitus](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/onsitus/32/971_2.png) [@onsitus](https://forum.kirupa.com/u/onsitus)\
**Post date:** [May 21, 2005, 9:08pm UTC](https://forum.kirupa.com/t/please-help-with-this-error-check-have-been-trying-for-hours-unsuccessfully/148592/3 "2005-05-21T21:08:41Z")

</div>

In the flash publish setting…publish for version 6

---

<div class="post-metadata">

**Author:** ![onsitus](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/onsitus/32/971_2.png) [@onsitus](https://forum.kirupa.com/u/onsitus)\
**Post date:** [May 21, 2005, 9:11pm UTC](https://forum.kirupa.com/t/please-help-with-this-error-check-have-been-trying-for-hours-unsuccessfully/148592/4 "2005-05-21T21:11:18Z")

</div>

Save file as…and you should have the option in the window.

---

<div class="post-metadata">

**Author:** ![bmw](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@bmw](https://forum.kirupa.com/u/bmw)\
**Post date:** [May 21, 2005, 9:58pm UTC](https://forum.kirupa.com/t/please-help-with-this-error-check-have-been-trying-for-hours-unsuccessfully/148592/5 "2005-05-21T21:58:22Z")

</div>

No…it doesnt have that option in save as…any other ideas?

Thanks.

---

<div class="post-metadata">

**Author:** ![onsitus](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/onsitus/32/971_2.png) [@onsitus](https://forum.kirupa.com/u/onsitus)\
**Post date:** [May 21, 2005, 10:22pm UTC](https://forum.kirupa.com/t/please-help-with-this-error-check-have-been-trying-for-hours-unsuccessfully/148592/6 "2005-05-21T22:22:52Z")

</div>

You need to choose Save AS, and then in the lower rollout (of the new window underneath the name field) pick Flash MX format, instead of MX04.  
:puzzled:

---

<div class="post-metadata">

**Author:** ![bmw](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@bmw](https://forum.kirupa.com/u/bmw)\
**Post date:** [May 21, 2005, 10:40pm UTC](https://forum.kirupa.com/t/please-help-with-this-error-check-have-been-trying-for-hours-unsuccessfully/148592/7 "2005-05-21T22:40:58Z")

</div>

Ok…I did that earllier too…but that actually does not save the submit button and the text boxes…

I am enclosing the file nevertheless.

Thanks.
