Computers & Internet Logo

Related Topics:

Posted on Jan 21, 2009
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

Form creat in flash - Computers & Internet

1 Answer

Anonymous

Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Governor:

An expert whose answer got voted for 20 times.

Hot-Shot:

An expert who has answered 20 questions.

  • Expert 72 Answers
  • Posted on Jan 22, 2009
Anonymous
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Governor:

An expert whose answer got voted for 20 times.

Hot-Shot:

An expert who has answered 20 questions.

Joined: Jan 22, 2009
Answers
72
Questions
0
Helped
62016
Points
243

  1. Create a new document and set the size to 400 x 300 ("Frame" > "Frame Size")
  2. Set "Frame 1" to "Stop" ("Frame" > "Frame Delay" and check "Stop", click OK)
  3. Draw 2 edit fields with the "Edit field" tool, they will appear as Edit1 and Edit2. Double click each field and make sure HTML is not checked, uncheck if necessary.
  4. Draw a button, double-click it and rename it to "OK".
  5. Draw edit field labels "Phone" and "Email" with the text tool. Double click each field and make sure HTML is not checked, uncheck if necessary.
  6. Draw "ErrorMessage" field with the "Text Paragraph" tool. Choose "Item" > "Text Color" and change it to red. Choose "Item" > "Placement Properties" and rename the field to "ErrorMessage"
    1. Select the button, choose "Item" > "Actions" > "OnClick". Select "ActionScript" and paste the following code:

    // reset error message
    ErrorMessage = "";

    // validate phone field
    phone = Edit1;
    if(phone=="") ErrorMessage = "Enter your phone";

    // validate email field
    email = Edit2;
    if(email=="") ErrorMessage = "Enter your email";
    if(email.indexOf("@",0)<0) ErrorMessage = "Enter valid email";
    if(email.indexOf(".",0)<0) ErrorMessage = "Enter valid email";

    // build message string
    message = "mailto:[email protected]?subject=Title&body=Form contents%0A";
    message = message + "phone: " + phone + "%0A";
    message = message + "email: " + email;

    // execute form if errormessage is empty
    if(ErrorMessage=="") getURL(message,"_self");

Hit F9 to preview. The form will not work until you export Flash file and HTML page. Choose "File" > "Export HTML Page" to create HTML page and test the form in a browser. This form is using very basic validation. Use "%0A" as line separator.
Use the following functions or attributes of the string:
  • length returns the number of characters
  • charAt(x) returns zero-based character at position x
  • indexOf(substring,startindex) returns the position of the first occurrence of the specified substring or -1.
  • lastIndexOf(substring,startindex) returns the position of the last occurrence of the specified substring or -1.
  • substr(start,n) returns n characters string starting at specified position
  • toLowerCase(), toUpperCase() converts the string to lower or upper case

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer

I want to know step by step , how to create an online survey form

You can create an online survey form using google forms. To see the step by step instructions, please click here.


Hope this information helps!
0helpful
1answer

Am running windows7 and when i try to add a form with 21" width and 30.50" height my form is not added.

The form width you are trying to create is wider than the T6215 is able to print on. The maximum page width that you can print is 13.6 inches, if you try to create a custom size paper wider than 13.6" Windows will not show you this form within the T6215 printer driver. As you can not physically print 21" wide you do not need to define a paper size this wide. Simply create a paper size which reflects the maximum print width or 13.6" You will then be able to print the maximum width the T6215 is capable of and also see this form in the printer driver.
0helpful
1answer

After creating a new form of size 15 x 12 fanfold in the printer settings option, form is saved but not applied. So after selecting printer in a software, the paper size option of 15 x 12 fanfold does not...

THe T6215 can only print a maximum width of 13.6 inches. If you create a form wider than this Windows will not allow you to select this form within the printer driver as the printer is not physically able to print this wide. Your paper may be 15 inches wide but it is unlikely you will be printing 15 inches, simply create a form whose width is equal to the maximum print width or 13.6 inches. You will then be able to select this form in the printer driver.
3helpful
2answers

I need a contact us form like this https://spreadsheets.google.com/embeddedform?formkey=dDVBcGxTek9tY0kzLUF0OVBJc0dHb3c6MA google does not email you the response when someone fills out the form

Alright I think I can help you

Prerequisites (what your host server needs)
ok firstly ensure that the server your hosting the script on supports php and ensure u have a pop 3 server set up (on your host)

now there are a lot of free scripts out there I'll post a link for you in a bit. Install the script on your server, create a link for it on your site and thats about it.

the scripts:
Here is the script and instructions on how to use it
http://www.douglassdavis.com/php_contact_us_script.html
its free and you can use it under a open GNU license

Good Luck
1helpful
1answer

How to create Dynamic Lable & TextBox & save their Values in DB.

Best way to do this is to place label and textbox as usual but hide them from the properties.
In the SaveButton Click event, you can set the property for the label and textbox to visible dynamically by code.
0helpful
1answer

No available fields in form wizard

If you select the correct table from the drop down, the fields should be shown in the box. or keep the table open and try creating form. or create a blank form and on the right side you will get tables and fields, you can just drag and drop required fields
3helpful
1answer

Printer is not recognizing the new custom paper size

You also have to create a form the same size in "server properties".

Click on "printers and faxes"
Click on "file" top left of screen, choose "server properties"
Click on "create new form"
type in width and height of paper

(my HP printer will not recognize any paper less than 5' in height and less than 3" in width)

If your create a form less than 5" in height ' and/or less than 3" in width - chances are that's why your printer won't recognize new form. Height HAS to be at least 5" and width HAS to be at least 3"

type in name of new form
save form and close

It should now be in your printer paper options.
1helpful
2answers

Wizard unable to create form

i had this problem and it was because a computer class was installing multiple kinds of access on one computer. they wanted to teach all of them, but are now screwing them all up. ha.
0helpful
1answer

Access 2007 forms wizard

If you run a repair install of office 2003
Not finding what you are looking for?

211 views

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

Brad Brown

Level 3 Expert

19187 Answers

Cindy Wells

Level 3 Expert

6688 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...