masking a layer with an action script

Hi all

I did some research and it seems that you can't hide a layer using action script. I'll make a page with a lot of form controls to this topic, and when the user clicks on the button submit, I want that all the controls go away so that I can show something else.

Really, I don't want to have to do control._visible = false for each item. I did see one person saying I could join these fields in form (movieclips) to a parent movieclip and then just do the parents visibl = false. What is the best way to hide a bunch of controls without explicitly defining each movieclip visibility? If so, how to do something the child of an element parent?

Thank you

Select the movieclip you placed in the properties panel and gives it an instance name.  Then, whenever you want to deal with something in it, use this instance name...

yourInstanceName.cbox1.etc...

Tags: Adobe Animate

Similar Questions

  • stop the sound with the action script?

    Hello

    Im a beginner with action script, and is there a way to stop a sound using actionscript?

    My sound is called "CRICKET.mp3", if it is necessary to know.

    You can still use:

    SoundMixer.stopAll ();

    to stop all sounds.  but, if you want to stop a particular sound, you must apply stop() to soundchannel your sound (created when the play() method is applied to your sound).

  • How to name a layer with the filename - script or action?

    Hi all

    Can someone tell me if it is possible to automatically name a photoshop layer as the name of the file itself?

    I have 600 cases to do and need to automate the process.

    Thanks in advance for any advice.

    Marvo.

    Open ExtendScript Toolkit that can be found here: -.
    PC: C:\Program Files\Adobe\Adobe utility
    MAC: /Applications/Utilities/Adobe utilities

    Copy and paste the code into a new window, and then save the code: -.
    PC: C:\Program Files\Adobe\Adobe Photoshop CS #\Presets\Scripts
    Mac:-[hard disk] / Applications/Adobe Photoshop CS #/ Presets/Scripts /.

    If photoshop is open, close and restart it so that Photoshop can pick up the new script.

    Now you can create an action to run the script and your backup to make this action can be processed by batch.

    To add the script to your action:
    File - Scripts - select the script (this will add the new layer)

  • By aligning a layer over another layer with an Action

    I was wondering if there is a way to get a layer to align under another layer.

    Example:

    Layer 1 is text: NEW YORK

    Layer 2 is text: YANKEES

    NEW YORK is where I'm at the top of the design.

    YANKEES is down.

    I click on the action and it turns the YANKEES to a fixed position in NEW YORK to look like this:

    NEW YORK CITY
    YANKEES

    ... then the lot would open the next PSD file and it repeats the process, moving the BULLS in CHICAGO doing

    CHICAGO
    BULLS

    the alignment tool works very well for things like centering, moving complete, etc. during an action. However, what I'm trying to batch, it is something like the YANKEES under NEW YORK line up and then use a batch process to replicate this on several designs.

    HOWEVER, what ends up happening, is that the action of move tool move the layer but he remembers the distance of origin... in other words in the next design, CHICAGO will overlap BULLS or DODGERS will be away from LOS ANGELES. Because the size of CHICAGO, NEW YORK, LOS ANGELES, changes etc.

    Any help is appreciated!

    What you can do is to create an action that calls the script.

    Start recording and a new action in the action menu of wheel palette select "Insert Menu Item" you can then select select File - script - script script.

    This action can then be used with processor images, Dr. Browns 1-2-3 process or even my own image converter which can be downloaded from...

    http://www.scriptsrus.TalkTalk.NET

    All the best, Paul.

  • Masking multiple elements with dynamic action me gives error

    Hello

    I have a selection list, and I tried to create a dynamic action on this subject. When the list is zero I want to hide items. The problem is that I thing 200 articles on my page and when I try to list them all under the dynamic action, it gives me an error or cut off my list. I tried created two separate actions of dynamics, but it did not work. Any suggestions? Any help would be so appreciated. Thank you!
    The problem is that I thing 200 articles on my page and when I try to list them all under the dynamic action, it gives me an error or cut off my list.

    Is it that you were able to cross the mark of products/page 100? But the official documentation has to say otherwise:
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/limits002.htm#BGGIECDF

    It is possible to define and to return more than 100 items on a page, but you will get a 404 error when running if you submit a page with over 100 articles (including the hidden objects and elements of page zero). You will not be able to present and process a page that has made more than 200 points. You will be able to set more than 200 items in your page and send, and then process the page If the actual number of elements returned is limited to 100 or less by using permissions and conditions.

    * Specify error messages you received

    Error message: error failed to create dynamic action.
    ORA-20001: error creating dynamic action sub-action name = "NATIVE_HIDE" id = "" ORA-01461: can bind to a LONG value only for insert into a LONG column > "

    You seem to have exceeded a 4000 or 32 K bytes on a column of metadata for dynamic action when you set the dynamic action. Because you cannot use all 200 points at the same time, you must create multiple dynamic actions that correspond to some subsets of items are actually rendered.

  • exploded view with links (action script 2)

    I have a bunch of diagrams that are split to show the parts we sell sports equipment. our company has now a digital catalogue online we want to put some flash somehow when the user clicks on an item, it will direct their browser to the Web page they can order of (if all goes well in another window). I know there are a lot of ways to do this but I have not used the flash in about a year and it was just a class and honestly I'm a little fuzzy on what to do.

    I guess I would import the .ai files and turn right touch each part? I make these on different layers?

    some files are jpg, if I should make an invisible button or something on the image?

    You will find may be easier to do all the same way, especially if you have a lot to do... so if you just import the images and go on the road to button invisible to each other, then your process will be simplified and you can avoid having a library full of different buttons, you would have to manage.

    To make the button invisible (s), you can resize and reuse them as needed, but you might have different shapes (circle, rectangle, triangle), you can simply create the shape in the context of 'Hit' of a button symbol.  This way you can still see the button when editing (a semi transparent turquoise), but it is otherwise invisible when you run the file.

    To encode the buttons, you assign each a unique instance via the properties panel name, and then in a layer of actionscript you assign the code to open the webpage in a different window.  If you have named a "btn1" button, then the code in the editing panel that contains so...

    Btn1.onRelease = function() {}

    getURL ("http://www.whatever.com/page...", "_blank");

    }

    The "_blank", is what opens a new window.

  • Adding an itemRenderer to a list of spark using action script

    Hi guys,.

    IM, adding a spark list using action script.

    ... IM kinda a new to Flex, I want to add a picture to an item in the list, should I use an ItemRenderer component for this?

    If so, once created Im having trouble to add it with the action script...

    my code looks like this...

    list: list var = new List();

    list.dataProvider = collection;

    I tried...

    list.itemRenderer = "views. ItemRend ".

    and...

    list.itemRenderer = ItemRend

    But I get the same error...

    1067: coercion of a value of type String to an unrelated type mx.core:IFactory. InputBox.as /RegSpotter/src/com line 68 Flex problem

    or...

    1067: constraint implied a value of class type to a type unrelated to mx.core:IFactory. InputBox.as /RegSpotter/src/com line 68 Flex problem

    Thank you

    Aidan

    myList.itemRenderer = new ClassFactory(MyItemRenderer);
    
  • Image slideshow Action Script Help

    I'm doing my last post Flash and I hit an ing works the road with the Action Script. I'm supposed to make a slideshow of image using Script of Action, etc., but looks like I broke mine.

    Instead of playing the slideshow, the resulting film sparkles just the elements on the stage when played space.

    Ce http://i346.Photobucket.com/albums/p417/CloneOutcast/Screenshot2011-04-25at32910PM.PNG is what my code looks like and some of the errors listed below and this http://i346.Photobucket.com/albums/p417/CloneOutcast/Screenshot2011-04-25at32919PM.PNG is what I based my Script of Action out of.

    Someone paid with Flash knows what I'm doing wrong?

    you have var imageData:Array = new Array({...}, {...}, ... {...},); remove the last comma before the closing parenthesis.

  • display the mask/action script

    I am trying to create an action or script that will allow me to reveal a layer mask with a keyboard shortcut.

    Normally, in 2014 CC PS I select the layer mask in the layers palette, and then hold down option and click the mask icon.

    This sequence shows the mask layer in BW.

    I have a problem an action that selects an existing layer mask and reveals the registration mask.

    The action recording stops once I selected the layer mask.

    In addition, I try to make a script with the code generated with the listener script plugin. But it does not work.

    Any ideas how an action or script, which displays the layer mask?

    2014, use it at your own risk.

    #target photoshop

    If (app.documents.length > 0) {}

    myDocument var = app.activeDocument;

    Select the layer mask;

    try {}

    // =======================================================

    var idslct = charIDToTypeID ("TPCV");

    var desc2 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref1 = new ActionReference();

    var idChnl = charIDToTypeID ('channel');

    var idChnl = charIDToTypeID ('channel');

    var idMsk = charIDToTypeID ("Msk");

    Ref1.putEnumerated (idChnl, idChnl, idMsk);

    desc2.putReference (idnull, ref1);

    var idMkVs = charIDToTypeID ("MKV");

    desc2.putBoolean (idMkVs, true);

    executeAction (idslct, desc2, DialogModes.NO);

    } catch (e) {}

    };

  • Action Script 2 with scroll pane

    The project I'm working on is only a Action Script 2.  Took a project IE updated to a site.

    What I'm trying to do is have a scrolling pane that will contain the images and linkable links

    So I have a:

    Scroll one component the instance name is spane

    I have a clip (with images done art card) and I have name myimage and the instance name is myimage

    The two are on a single layer and frame 1 (note there are more elements on the page but on different layers)

    I chose with instances (both) and action script I

    Spane.source = myimage;

    But it doesn't work at all, I've got is a box

    Any help would be great.

    The scroll pane will be working with action script 2?

    Thank you

    Damon

    Is there an as2 scrollpane.

    You must use the scrollpane not the scrollpane as3, as2 and you use code as2 (check under components help files).  for example, use contentPath, no source for your as2 scrollpane component.

  • Transparency with action script

    I have a swf file and I want to give a transparent background on the stage. I understand that it is possible to give it transparency through the HTML publish setting using the ' transparent windowless "property.
    However, I wanted to know if there is an actionscript property to give the same effect of transparency to the scene. like the opactiy or something (sorry, that I may be wrong)

    The thing is I have an external preloader that loads the swf content and when it is loaded, the stadium loses its transparency.
    any help please with action script on transparency?

    As mentioned, that there is no bottom in a loaded SWF file. Unless you EXPLICITLY put a layer in your document with a background on the subject, it is transparent. You can load SWF 500 inside another, you will never get a background of any of them.

    The sole purpose of context is if the original HTML wrapper was not established transparent windowless.

    Your problem is elsewhere, trust us. Look for something, a background of drawing in one of your movies, because something is without doubt.

  • Need help with 3.0 in Flash CS5 action script?

    Hi I work with action script 3.0 in flash and our school teacher wants us to create a simple action that allows us to have a clip from the animated film and then we have a stop and a button "play", so when I click on stop the clip stops and when I click on play it moves again. Have tried several times, I get compiler errors. I have my buttons on one layer and my video clip on a separate layer. All I have is 2 buttons. One for the stop and the other to play.

    What I am doing wrong? Here is my code and my mistakes-

    start_btn.onRelease = function() {}


    Polygon.Play ();
    }
    stop_btn.onRelease = function() {}
    Polygon.Stop ();
    }

    Here are my mistakes and if he please be aware that our teacher said to use action script 3 only and no action script 2.

    Scene 1, 'Layer' buttons, image 1, line 1 1120:Access of start_btn of property not defined
    Scene 1, 'Layer' buttons, image 1, line 1 1120:Access of stop_btn of property not defined
    Scene 1, 'Layer' buttons, image 1, line 1 1120:Access of the polygon of property not defined
    Scene 1, 'Layer' buttons, image 1, line 1 1120:Access of the polygon of property not defined

    I think your teacher, or anyone else, gave you sense with ActionScript 2 programming. In AS2, what oyu have here would have worked very well. But in AS3, you use a rather different approach. Your buttons and their instance name, can remain the same. But now in AS3, you must add the following event listeners:

    yourButtonName.addEventListener (MouseEvent.CLICK, yourListenerFunction);

    In your case, you can do one of two things - A) assign a unique to each key listener function or B) assign the same listsner to the two functions:

    (A)

    start_btn.addEventListener (MouseEvent.CLICK, startPolygon);

    stop_btn.addEventListener (MouseEvent.CLICK, stopPolygon);

    function startPolygon(e:MouseEvent):void {}

    Polygon.Play ();

    }

    function stopPolygon(e:MouseEvent):void {}

    Polygon.Stop ();

    }

    (B)

    start_btn.addEventListener (MouseEvent.CLICK, controlPolygon);

    stop_btn.addEventListener (MouseEvent.CLICK, controlPolygon);

    function controlPolygon(e:MouseEvent):void {}

    If (e.target.name == "start_btn") {//Test for the name of the object that sent the CLICK event

    Polygon.Play ();

    } ElseIf (e.target.name == "stop_btn") {}

    Polygon.Stop ();

    }

    }

    When I use multiple buttons that do the same/almost similar things, I support approach B on A, as it keeps me just a simple to process function.

  • Flash beginner needs help with Movie Clips/Action script

    HI -.

    I'm having a problem with my video clips playing simultaneously and cannot, for the life of me, know what I did wrong. I'm new to flash so I can I have created something wrong but this is what I have so far:

    11 layers, total: 1 layer with 10 buttons, each button with the following actionscript code:


    on (release) {}
    gotoAndPlay (85);
    }


    When the number changes with regard to keyframes, the next film is about.

    I have 10 films, total, but they are only video clips, mainly photo slideshow with audio, does everything in the library.

    The problem occurs when I click on the second or third button. Not only the movie I selected starts to play, but all previous clips are as well, he has completely blurred all the sounds. I don't know what Miss me in action script, as my Action layer has a stop command to this topic at each keyframe where there is a new clip to play.

    I tried to add a stopAllSounds command, but I'm afraid that does nothing because it is not an "audio file" in itself playing in the timeline panel.

    I'm at the end of my rope and really need help to understand this one. My project is hanging in the balance on this point, I wrote everything correctly and it works beautifully.

    Help, please!

    Thank you
    Caroline

    Start your sounds in frame 2 and place stopAllSounds() on each keyframe where begins a movieclip.

  • Is it possible to group objects, which are placed in the project and then hide them with line a single action-script? THX in advance, Philip

    I work in CP 9 and I'm going to try the following: the user must be able to make ALL invisible or visible to highlight boxes by clicking on the corresponding button on the first page layout. Thus, for example, if the user does not want the highlight boxes appear, click on "Hide the boxes" and boxes are hidden for the rest of the project. I managed to get to this point for help... but it is still a lot of work for me to manually enter all the different names of these boxes in the action-script. So my question is: is it possible to group objects, which are placed in the project and then hide them with line a single action-script? THX in advance, Philip

    Actually... releasing the CpExtra HTML5 widget, it will be possible.

    It has a function called @syntax that allows you to perform an action (for example HIDE) automatically on any object throughout a project of Cp9 simply based on the name of the object.

    So for example, if you named all the boxes to highlight you want hidden this way to have the suffix _HideMe and you say CpExtra you want all of them hidden if a user variable is assigned to a certain value, then that is what will happen.

    That's the good news.  The bad news is that the widget is still in BETA final tests at the moment, so you may need to wait a bit before you can realize your idea.

  • Photoshop CS5 - Move layer with a vector mask applied

    Hello world

    I work with Photoshop CS5 and that you have encountered a problem. I can't seem to select a layer (with a vector mask applied) and move it, even with the automatic selection on layer. I can move when the vector mask is off or when I rasterize the vector mask.

    Am I wrong in thinking that I was able to select a layer (with a vector mask applied) before, and it is a bug? Or I'm completely wrong and it has never been possible?

    I have attached a screenshot for reference.

    Screen Shot 2015-09-10 at 12.03.35 PM.png

    Oops, after re-reading my question I realized that I didn't have the word correctly.

    I would like to select the layer/object and physically move around the artboard using the move tool. But it won't let me select and move around, unless I have clear/rasterize the vector mask.

    Thanks if Yohanna! My bad.

Maybe you are looking for

  • Eligiblably - 14, $99 upgrade of Windows 8 offer

    Hi all Bought this machine may 31, delivered on June 10, then problem developered with original and exchanged machine on June 16, 2012, so I will be eligible for this offer, or I'll have to take the offer of $39.99 for the place of WIndows 7 users?

  • Upgrade memory for Satellite Pro L10

    Can I add 512 MB to 256 MB of memory already on my laptop? And also what is the name of the memory supported by Satellite Pro L10. ThanxFemi

  • Satellite L300 doesn't start after upgrade memory

    I have a L300 (model PSLB0A - 08H 022 number) which came with 1x2GB ram. All the info I can find suggests that it can accept 4GB.I installed a second 2 GB of Geil DDR667 key and the system came with a lack of memory and could not start. Then I traded

  • HP 7520 itself begins to turn

    My HP 7520 itself begins to turn. I don't know why or how. It tries to access the internet and download updates? If so, how can I disable this feature? Thanks in advance...

  • Add/Remove programs is empty and does not

    Didthe that follows: regsvr32 appwiz.cpl HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstallthe keys were there I roll back still not chargingso now what LOL