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

CheckBox

Community Beginner ,
Feb 20, 2023 Feb 20, 2023

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
713
Translate
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

Translate
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

Translate
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

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

Translate
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
LATEST

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

Translate
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