Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-08-2006, 05:02 PM   #1
Registered User
Join Date: Aug 2006
Posts: 1
Default Simple checkbox question

Hi all - I want to use a checkbox component to change the visibility state of a movie clip. I just can't seem to figure out how to link the two together.

(I also want to use a slider to control some other properties of the clip, but I figure it would be smart to figure out the checkbox first.)

Seems like it should be really simple, but the online documentation is pretty opaque. Advice?
cbandes is offline   Reply With Quote
Old 08-08-2006, 05:42 PM   #2
Join Date: Jun 2001
Location: portland, or
Posts: 8,106

your flash help panel is the best source of help around... anyway the code would look something like:

ActionScript Code:
changeVisibility=function() {     mymc._visible=mycheckbox.selected; } mycheckbox.addEventListener("click",changeVisibility);

if you open the help panel, then go to component language reference, you can select any component you want more info on... it even has example code.

what the hell was i thinking?
tg is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Maybe a simple question...but need your help.. ROYOW ActionScript 2.0 8 04-18-2006 05:34 PM
Simple preloader question ( when using components) silentweed ActionScript 2.0 3 03-22-2006 11:09 PM
[AS1] Swapdepth using txt files and dynamic content for game. superbnerb Gaming and Game Development 3 09-22-2004 07:27 PM
simple button question paolo1234567891 ActionScript 1.0 (and below) 12 12-19-2003 07:55 PM
Simple scoring question caffrey75 Gaming and Game Development 2 11-14-2003 10:45 AM

All times are GMT. The time now is 05:33 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.