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

CheckBox

Community Beginner ,
Feb 20, 2023 Feb 20, 2023

Copy link to clipboard

Copied

ola alguem pode min ajudar por favor...eu quero fazer o comando simples no adobe animate em action script3...seria usando checkbox ...o comando e o seguinte eu quero que quando habilitar o checkbox determinado quadro ele apareça i quando eu desabilitar ele desapareça ... esse quadro ele seria como o movie clip para min poder da a intancia para ele...alguem da uma força para min obrigado ... eu não tentei nenhum cogigo...

TOPICS
ActionScript , Code , How to

Views

512

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 , Feb 20, 2023 Feb 20, 2023

Hi.

 

You can do something like this:

import fl.controls.CheckBox;
import flash.events.MouseEvent;

function onClickCheckBox(e:MouseEvent):void
{
    var cb:CheckBox = CheckBox(e.target);
    qq.visible = cb.selected;
}

qq.visible = caixa.selected;
caixa.addEventListener(MouseEvent.CLICK, onClickCheckBox);

 

I hope it helps.

 

Regards,

JC

Votes

Translate

Translate
Community Expert ,
Feb 20, 2023 Feb 20, 2023

Copy link to clipboard

Copied

Hi.

 

You can do something like this:

import fl.controls.CheckBox;
import flash.events.MouseEvent;

function onClickCheckBox(e:MouseEvent):void
{
    var cb:CheckBox = CheckBox(e.target);
    qq.visible = cb.selected;
}

qq.visible = caixa.selected;
caixa.addEventListener(MouseEvent.CLICK, onClickCheckBox);

 

I hope it helps.

 

Regards,

JC

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 ,
Feb 20, 2023 Feb 20, 2023

Copy link to clipboard

Copied

nossa obrigado de verdade deu super certo ...nem sei como agradecer ...mais obrigado de coração deus ti abençoi 

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 ,
Feb 20, 2023 Feb 20, 2023

Copy link to clipboard

Copied

LATEST

Amém! Deus te abençoe também!

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