Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Radiob Buttons and Check Boxes

This is a discussion on Radiob Buttons and Check Boxes within the Actionscript 3.0 newbies forums, part of the Flash CS3 eng category; I am trying to add set of Radio Buttons and 2 Checkboxes using ActionScript 3 I am stuck! I am ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Flash CS3 eng > Actionscript 3.0 newbies

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 27-08-08, 16:13
Junior Member
 
Join Date: Aug 2008
Posts: 6
Rep Power: 0
codezpecg is on a distinguished road
Radiob Buttons and Check Boxes

I am trying to add set of Radio Buttons and 2 Checkboxes using ActionScript 3

I am stuck!

I am using the Felp form with image to email and trying to modify it.

I can get the RadioButtons and Checkboxes to work in a standalone file but when I try to add them to Main.as I get all kind of errors. This is what I am using

import fl.controls.CheckBox;
import fl.controls.RadioButton;

var homeCh:CheckBox = new CheckBox();
var underRb:RadioButton = new RadioButton();
var overRb:RadioButton = new RadioButton();
addChild(homeCh);
addChild(underRb);
addChild(overRb);
underRb.groupName = "valueGrp";
overRb.groupName = "valueGrp";
homeCh.move(200, 100);
homeCh.width = 120;
homeCh.label = "Own your home?";
underRb.move(220, 130);
underRb.enabled = false;
underRb.width = 120;
underRb.label = "Under $500,000?";
overRb.move(220, 150);
overRb.enabled = false;
overRb.width = 120;
overRb.label = "Over $500,000?";

homeCh.addEventListener(MouseEvent.CLICK, clickHandler);

function clickHandler(event:MouseEvent):void {
underRb.enabled = event.target.selected;
overRb.enabled = event.target.selected;
}

Any help?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 28-08-08, 05:21
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
Re: Radiob Buttons and Check Boxes

Hi,
Have a look:

RadioButton component of Flash CS3
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
buttons Zombie Actionscript 3.0 newbies 14 19-08-08 16:32
email and password check Maxxx Actionscript 3.0 newbies 0 06-04-08 05:47
Check this melodyflies Off Topics 1 28-03-08 09:58
How to use buttons and sounds with flash CS3 Flep Tutorials 1 02-02-08 01:32
buttons dissolvenza michele77 Flash CS3 generale 8 12-12-07 21:26


All times are GMT. The time now is 22:23.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406