How to make a document visible through button click class.

package

{

import flash.display.MovieClip;

import flash.display.Sprite;

import flash.events.MouseEvent;

import flash.events.Event;

import flash.display.Graphics;

/**

* ...

* @author Alex

*/

enable/disable/public class extends MovieClip

{

private var button: MovieClip;

private var button2:MovieClip;

public var myClock:AnalogueClock;

public void toggle (): void

{

button = new MovieClip();

button.graphics.beginFill (0xFFCC00);

button.graphics.drawRect (0, 0, 80, 20);

button.graphics.endFill ();

button.useHandCursor = true;

button.buttonMode = true;

button.mouseChildren = false;

Button2 = new MovieClip();

Button2.Graphics.beginFill (0xCC0000);

Button2.Graphics.drawRect (0, 0, 80, 20);

Button2.Graphics.endFill ();

Button2.useHandCursor = true;

Button2.buttonMode = true;

Button2.mouseChildren = false;

button.addEventListener (MouseEvent.CLICK, buttonClickHandler);

Button2.addEventListener (MouseEvent.CLICK, buttonClickHandler2);

this.addChild (button)

this.addChild (button2)

this.addChild (myClock)

}

public function buttonClickHandler

{

This.Button.Visible = false;

This.Button2.Visible = true;

this.myClock.visible = false;

}

private void buttonClickHandler2(event:MouseEvent):void

{

This.Button.Visible = true;

This.Button2.visible = false;

this.myClock.visible = true;

}

}

}

Comes with an error indicating that the child parameter must be non-null, don't really know what is going on any help will be greatly appreciated

myClock does not exist when the line 52 runs.

Tags: Adobe Animate

Similar Questions

  • P lease show me how to make a document on my new iMac 21.5

    Please show me how to make a document on my new 21.5 iMac and I can't find a program for her.

    I am getting no help why.

  • How to make the handles visible direct selection on the pasteboard?

    When I go to for transformation/resize images within frames using direct Selection, I don't see the handles of the image because they are white against a white cardboard.  I use InDesign CS5 (ver 7.0.4) on a Mac. I've been using InDesign for a few years and never noticed that it was a problem; all of a sudden, the handles seem invisble. I don't remember what the color scheme was before. (Maybe I'll lose my mind). The colors did not alter an update? There is an option in the preferences to choose the color of the pasteboard, but this does not seem to have any effect. In the meantime, I can't find the handles to resize/convert images. I can enter a percentage to scale, but it is sometimes useful. How to make the handles visible direct selection on the pasteboard?

    If you're talking about the color of a path and its handles, which is dependent on the color of the layer selection. Go to the layers panel. Double-click the currently selected schema and change the selection to something darker color.

  • How to make a document

    I am a new user on Vista and that you use to make word documents. How turn a Vista word document, and then save it?

    You have Word, Works, or another application installed processor?

    If so, use it.

    Vista is the operating system. TaurArian [MVP] 2005-2010 - Update Services

  • How to make a navigation bar with buttons that are highlighted

    I have Dreamweaver MX 2004. I know how to make a simple navigation bar, but how is like Apple's site, with buttons that are highlighted on the appropriate page?

    "[email protected]" wrote in message
    News:gd04sb$5MC$1@forums. Macromedia.com...
    > I have Dreamweaver MX 2004. I know how to do a simple navigation bar, but how
    > is like Apple's site, with buttons that remain
    > highlighted on the appropriate page?

    http://divaHTML.com/products/divaGPS/current_menu_location.php

    --
    Thierry
    http://www.TJKDesign.com/go/?0 | Articles and tutorials

    http://divahtml.com/Products/scripts_dreamweaver_extensions.php | Extensions
    clean your markup
    http://www.fourlevel.com/ | Menus CSS, Gallery, tab panels, etc.
    --

  • New on board - how to make a box to move on click?

    I have two symbols, which is a button and a box.

    I want to do like this:

    Click on a button

    Box of slides < -.

    Text appears to display information on the place (button)

    Ability to close with another image of symbol

    It's so different from tumult Hype :/ because I was told it was similar.

    I just don't understand. I searched all over Google/YouTube on something like how to make a pop-up window and I find nothing.

    This is the edge animate 2015.

    Like this?

    Dropbox - example.zip

  • How to make a panelGroupLayout Visible / not Visible at base selectOneRadi

    Hi all

    Version: 11.1.1.4

    I'm trying to figure out how I can make a section panelGroupLayout visible or not visible based on one of the buttons selectOneRadio selected by the user. I tried to use some EL on the visible property of the panelGroupLayout to try to raise the visibility, but it doesn't seem to be something.

    I don't know I'm doing something wrong, just don't know what.

    EL watching selectOneRadio value:
    User has two choices "Home" or "Other".  In this case I am saying if they chose "Other" I want the panelGroup to be displayed:
    
    #{bindings.PurposeCode.inputValue == "Other"}
    
    also added selectOneChoice ID as a partial trigger to the panelGroupLayout
    Any suggestions or ideas would be appreciated.

    Thank you

    S

    Below the example is based on selectOneRadio:

    JSPX Page:


    Binding = "#{ForumSampleBean.radioChoice}" > "




    visible = "#{ForumSampleBean.radioChoice.Value =="Home"? true: false}" "
    partialTriggers = 'sor1' >


    Bean code:

    public class ForumSampleBean {}
    Private RichSelectOneRadio radioChoice;
    public ForumSampleBean() {}
    }
    {} public void setRadioChoice (RichSelectOneRadio radioChoice)
    this.radioChoice = radioChoice;
    }

    public RichSelectOneRadio getRadioChoice() {}
    Return radioChoice;
    }
    }

    Thank you
    Nini

  • Maxify MB5320 how to make a document readable duplex (verso upside down)

    I have a docuiment 40 page in landscape mode, I have two-sided. The document will be placed in a binder and when the reader reads it it will flip the pages from top to bottom. I want to print on the back of every page backwards so that the reader will not have to continually deliver the binder. How?

    I used 'Nuance PDF Pro' and was able to make the back of the reverse page (readable). Satisfied my needs.

  • How to make the non selectable radio button field

    I want to UN selectable radio button field average user will be not be able to select. How can I achieve this. Please help me for this.

    You could remove them from the screen, or do unfocusable or make unmodifiable.  The choice will depend on what you're trying to reach.

  • How to make the layer visible on and outside

    Hi, experts

    This is my script:

    docs var = app.documents.

    for (var i = docs.length - 1; i > = 0; i--) {}

    docs [i].layers.item ("Chi") .visible = true;

    docs [i].layers.item ("Chi") .locked = false;

    docs [i].layers.item ("Eng") .visible = false;

    docs [i].layers.item ("Eng") .locked = true;

    }

    Alert ("Done.")

    But how do the layer

    1. If the 'chi' layer visible = true; everything in "eng" visible = false

    'chi' locked = false; While 'eng' locked = true

    just to put the

    layer 'chi' visible = false; everything in "eng" visible = true

    'chi' locked = true; While 'eng' locked = false

    like two switch layers;

    respect of

    John

    Try this,

    var docs = app.documents;
    for (var i = docs.length-1; i >= 0; i--) {
        if(docs[i].layers.item("Chi").visible == true && docs[i].layers.item("Chi").locked == false)
        {
            docs[i].layers.item("Chi").visible = false;
            docs[i].layers.item("Chi").locked = true;
            docs[i].layers.item("Eng").visible = true;
            docs[i].layers.item("Eng").locked = false;
        }
        else if(docs[i].layers.item("Eng").visible == true && docs[i].layers.item("Eng").locked == false)
        {
            docs[i].layers.item("Chi").visible = true;
            docs[i].layers.item("Chi").locked = false;
            docs[i].layers.item("Eng").visible = false;
            docs[i].layers.item("Eng").locked = true;
        }
    }
    alert("Done.")
    
  • How to make a pop-up without button?

    Hi, I create a game where the player moves according to a ride and arrive at the designated space, there will be an interactive pop-up coming out immediately.

    However, I am unable to do it without a button to call the context menu. Is there anyway to make sure the pop-up is called automatically?

    The window is not a URL, and a clip from movie.

    In Flash player, there is no pop-up window, if you need something like this it must create a pop-up java script function in your web page and name it ActionScript...

    In your case, I think you don't need to do that just use a function to show and hide the window inside the SWF...

    For example:

    var window_mc:MovieClip = new MovieClip();

    var textField:TextField = new TextField();

    var textFormat:TextFormat = new TextFormat();

    textFormat.font = "Arial";

    textFormat.size = 15;

    textFormat.color = 0 x 666666;

    textField.text = "Your text here...";

    textField.wordWrap = true;

    textField.setTextFormat (textFormat);

    textField.width = textField.textWidth + 5;

    textField.height = textField.textHeight + 5;

    window_mc. AddChild (TextField);

    window_mc.x = 200;

    window_mc.y = 100;

    window_mc. Visible = false;

    addChild (window_mc);

    Now, the pop-up is on the stage, you can use window_mc.visible = true; from show it when you want, and window_mc.visible = false; to hide.

  • How to make all layers visible on the final Photo?

    Hello, I am new in PS CS5 and. While retouching a portrait, I created 5 layers. When the eye is opened on all layers in the palette layers single layer seems to be active is the one on the top of the list. If I move another layer to the top, then this layer is active and others, even if active, do not appear on the actual photo. I tried to merge all layers and there is no difference. What Miss me? Thank you.

    If you are duplicating a layer to make changes, then you duplicate all of the pixels on that layer.  I don't know why a tutorial might suggest that, except perhaps for you to give a point to return to if something goes wrong.  It is important to note that such a layer, assuming that you keep it at 100% opacity, will completely occluding all layers below.

    A similar technique that relies on the lower layers and involves all layers visible is the following:

    1. create a new transparent layer.

    2 use tools such as the Clone, filler, paint, etc. to draw on the transparent layer (placing to sample layers below).

    In this way, you can have all the original picture, create a derivative work that involves layers that have only the changes on them.

    Again, the key here is the opacity.  If a layer is transparent (or partially transparent, or some of its parts are transparent), you can see through it to the layers below information.

    If a layer is opaque at 100% and there is no 'holes' in erased or hidden from her, all the layers under do not participate in the appearance of the image.  But they can still be there to provide you with a reference tool handy for what the image looked like prior to the changes, etc..

    -Christmas

  • How to make sound to play through my headphones and not my TV when you use an HDMI cable to extend my desktop?

    Often, I connect my laptop to my TV to extend my desktop and find work more quickly. Today, I wanted to listen to music then I worked, but did not want to disturb others in the House with the sound so I plugged my headphones on my laptop but the sound plays through television. How can I get it to play through my headphones only?

    I do not use HDMI but audio HDMI runs your graphics instead of the audio chip

    the laptop, so I think that you can turn off the HDMI audio in your graphics cards

    The control panel settings.

    -If not, you should be able to disable the HDMI audio via Device Manager.

    The HDMI audio will probably be known as your graphics (Nvidia, AMD or Intel).

    [Type Device Manager in the search bar on the Start Menu and select - sound, video and game controllers.] R / click on the appropriate audio device and select disable. ]

    Or - connect your headphones to the TV should turn off the sound from the speakers.

    You can purchase an extension for headphones, if necessary.

  • How to make the taskbar visible all the time?

    How can I get the toolbar remain visible on each screen on Windows 8?

    I hate the fact that I need to return to the view of the Office to see the taskbar, it's the most inopportune the whole OS update. Microsoft has gotten a lot of comments on the development of this before publication, it seems.
    I don't want to download an app, I hate the apps, I don't want to install an add-in, I just want to be able to click on a check box on the properties of the taskbar that allows me to see this shit any screen, I'm on.

    How can I get the toolbar remain visible on each screen on Windows 8?

    I hate the fact that I need to return to the view of the Office to see the taskbar, it's the most inopportune the whole OS update. Microsoft has gotten a lot of comments on the development of this before publication, it seems.
    I don't want to download an app, I hate the apps, I don't want to install an add-in, I just want to be able to click on a check box on the properties of the taskbar that allows me to see this shit any screen, I'm on.

    Hello

    The taskbar are a component of the desktop computer.

    You will see only the task bar if you are using a desktop application.

    If you use one of the applications of modern UI from the start screen, these applications run full screen and cannot be resized, so the taskbar are not visible.

    Concerning

  • How to make checkboxes instead of radio buttons by default

    Hi I am new to Adobe Acrobat Pro and I work with version 11 on Windows 7. I created PDF forms from Excel spreadsheets, and it works well except that the list of selections is converted to a list of radio button when I want it to be a list box. I found an online script that converts the radio buttons for the boxes, but I while you must go back and rename all fields in the box to make it work properly. Is it possible that I can have Adobe simply create lists as the default boxes or is it a formatting I do in Excel to indicate I want check boxes?

    It doesn't have the solution, but he has me on the trail of the rabbit to the solution. It caused me to labels in the form of Google led me to this guide. This guide also do not have the exact reason but by trial and error according to the instructions in the PDF file, I discovered the question: If a number is next to the check box, for some reason any Acrobat insists on what actually a radio button I added a letter in front of each number and Acrobat correctly it be termed as a checkbox. I couldn't find this documented anywhere however.

Maybe you are looking for

  • The size on Firefox suddenly disappeared so small that I can't read. What please?

    The guy suddenly went small on Hotmail for some reason any and now I can't read my emails. There seems to be a way to increase the size or the size of the screen to make legible words either. Can someone please? Thank you. Jane

  • change of KING imaq1394 during the capture

    Hello I use c ++ to implement an application that performs a continuous drain on my firewire camera. According to the manual, there are two ways to do so after an imaq1394CameraOpen2: (1) imaq1394SetupGrab-> imaq1394Grab2 (several times) (2) imaq1394

  • Blocks the execution of the user Image Acquisition interface

    I am currently trying to create a user interface that displays images from a camera attached to a microscope with a mobile table.  The user is able to interact with the images and can click on them, which causes the table to move to a new location. 

  • Add more fonts to aft of post-it from the sidebar.

    Is it possible to add more fonts to the pad of post-it in the sidebar?  The current policies that are proposed (all three of them) are too large.  I want to make them smaller then 9 points, preferable 6 points.  Is there a way to do this?

  • Group-lock for users of vpn with acs

    Hello Is it possible to controll what VPN profile, a user is allowed to use by Cisco ACS or the router? 2811 router IOS 12.4 worm, ACS 4.1 using I just want to be sure that the VPN allows the user only the Client Profile assigned to them and no other