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

Need some help with adding functionality to checkboxes in the form with actionscript

Community Beginner ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

I got a flash form going on and all the tutorials I've seen explain  how to code the text fields and text areas but nothing about checkboxes.

I have no idea how to code for the checkboxes that I'm using in the form.

Here are a couple of screen shots for the code and the form

flash-form.png

action-form.png

Thanks

TOPICS
ActionScript

Views

818

Translate

Translate

Report

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

Community Expert , Jan 12, 2011 Jan 12, 2011

use google to search for tutorials though i think this topic may be to simple for a tutorial:

allVars.beaddealofthedayVar=beaddealofthedaycheckbox.selected;

allVars.jewelrydealofthedayVar=jewelrydealofthedaycheckbox.selected;

allVars.sdnewsletterVar=sdnewslettercheckbox.selected;

allVars.whatevernewsletter=whatevernewslettercheckbox.selected;

Votes

Translate

Translate
Community Expert ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

look up the checkbox class in the help files.  everything you need is there.  in particular, look at the selected property.

Votes

Translate

Translate

Report

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
Community Beginner ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

Thanks for your reply,

I'm really not experienced with Actionscript, I've been using the code snipets for the action scripts used so far, but for the tutorials I found, they explain how to create the boxes with Actionscript, which is not what I need since they're already in placed and they have instance names, I just need to program them to work and send the correct info.

Could you please send me the specific link to that tutorial you've mentioned?

Thanks a lot

Votes

Translate

Translate

Report

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
Community Expert ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

use google to search for tutorials though i think this topic may be to simple for a tutorial:

allVars.beaddealofthedayVar=beaddealofthedaycheckbox.selected;

allVars.jewelrydealofthedayVar=jewelrydealofthedaycheckbox.selected;

allVars.sdnewsletterVar=sdnewslettercheckbox.selected;

allVars.whatevernewsletter=whatevernewslettercheckbox.selected;

Votes

Translate

Translate

Report

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
Community Beginner ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

Hey, thanks a lot, yes that was the problem I was having, I searched in google but no one explains how to do this.

Thanks for the code!

Votes

Translate

Translate

Report

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
Community Beginner ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

Sorry to bother you again, but I double check the intance names are correct but is giving me this error, I don't know whats wrong

error.png

Votes

Translate

Translate

Report

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
Community Expert ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

click on one of your checkboxes (to select it).  in the properties panel copy its name and paste it here.

Votes

Translate

Translate

Report

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
Community Beginner ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

Thank you


Votes

Translate

Translate

Report

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
Community Expert ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

LATEST

you're welcome.

Votes

Translate

Translate

Report

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