Access to video clip inside a button with colorTransform problem

I need help applying the color transform function to a clip that exists inside a button.  I want to keep the button a button (as opposed to making a clip as well with the onclick event handlers and stationary) I already have built-in behaviors and would rather not recreate.  I have the path to the object as:
mcVideoControls.stopButColor.transform.colorTransform = stop_LightColorTransform;
(stopButColor is the name of the object, I'm trying to change the color of the)
It works fine but I need to make the color of other objects inside the button object and when I try to access the objects inside the key actionscript code does not seem to connect.  The button instance name is "btnStop", but it does not work:
mcVideoControls.btnStop.stopButColor.transform.colorTransform = stop_LightColorTransform;
either the fact:
btnStop.stopButColor.transform.colorTransform = stop_LightColorTransform;

Can someone tell me how to use colorTransform on video Clips inside the buttons.  Is there another way to indicate this path?  I use CS4 and actionscript 3.

the attached screenshots show the relationship of how objects are incorporated.
VideoControls_mc = mcVideoControls
butBg = stopButColor
Stop_btn = btnStop

When stopButColor is moved within btnStop it is more accessible by colorTransform.  Could he be wrong about something else?

Screen shot 2010-11-02 at 11.39.14 AM.png

Screen shot 2010-11-02 at 11.37.59 AM.png

There is no need to ever use a simple button.

Tags: Adobe Animate

Similar Questions

  • Access to video Clips of breast another Clip

    Hello!

    I have a few objects (video clips) on my stage on different layers, but all in the first frame of a layer. And now I want to access this video clips of breast another clip, which is also on the scene like the others.
    So my question is: How can I access this movieclips so that I can do, for example, < movieclip_outside > .gotoandplay ('in'); or something like that.

    Welcome, Tschouba

    If the intro is on the main timeline, you can reference it anywhere using:

    MovieClip (root).intro.gotoAndPlay ('in');

  • How to draw video clips inside tile list

    I have a table that stores 5 video clips. I've populated in the tile list component.

    I want to find the name of clips (with name of the instance as the mc1, mc2,..., mc5) when I click on the images in the list of tile. What I want is that when I click on image 4 in the list of the tile, the output should be "mc4 '. I have tried the following code, but I do not get the correct output.

    import flash.events.MouseEvent;
    import flash.events.Event;
    Import fl.data.DataProvider;
    import flash.display. *;
    Import fl.controls.TileList;

    var aThumbs:Array = new Array(mc1,mc2,mc3,mc4,mc5);

    function showGallery(evt:Event):void
    {
    var dpImage:DataProvider = new DataProvider();
    for (var i: Number = 0; i < aThumbs.length; i ++)
    {
    dpImage.addItem ({label: i, source: aThumbs [i]});
    }
    tlGallery.dataProvider = dpImage;
    tlGallery.columnWidth = 100;
    tlGallery.rowHeight = 150;
    tlGallery.columnCount = 3;
    tlGallery.rowCount = 2;
    }
    btnShow.addEventListener (MouseEvent.CLICK, showGallery);

    function traceOutput(evt:Event):void
    {
    trace (evt. Target.Name);
    }
    tlGallery.addEventListener (Event.CHANGE, traceOutput);

    The name of the instance of the TileList is 'tlGallery '. In the output window, I make the output as"tlGallery«whenever I click on one of the images in the component TileList.» I want the output as mc1, mc2,..., mc5.

    Could you please help me.

    Use:

    trace (evt. Target.SelectedItem.source.Name);

  • Problems with video clip inside another MC button

    Hi all
    So I solved a problem earlier thanks to this site, but she has created a different problem. I could find a way to get an external text to load into a text inside a music box. However, the problem is I want to have a series of buttons also inside the MC which will change, delivery, the text in the (loading area in the text to another file). I'm running problems, however, because I can't figure out how to get the movie clip buttons to work.

    A short brief on the installer. I have a master.swf that loads in splash.swf (menu animation and splash) and about.swf (a paragraph loaded when you click on 'about' in the navi bar). When about.swf opens, I got a piece of film clip and text and the submenu appear after 20 images.

    This is the code that I placed on frame 1 of the about.swf:

    [PHP] boxmovie.btn_about2.onPress = function () {}
    trace ("button has been pressed");
    _level0.loadText (loadedInfo, ' vars/about2.txt');
    } [PHP]

    You can download the files
    goldinroute.com/MacGregor/Help.zip

    Any help would be appreciated!

    I guess what to expect, I hang on the file... OK, did you give the button the instance name 'more'? ("btn_about2") is not there in the file I have. Then, copy the following code must be IN the MC boxmovie, guess where... of 23 frame, because you cannot assign code to an object that doesn't exist or has not been instantiated, the chronology. so it should read:

    btn_about2.onPress - function() {}
    _level0.loadText (loadedInfo, ' vars/about2.txt');
    }

    (btw - if you reverse the way in which you name the inclinometer, Flash will give you a list of the methods of the class, when you type a '.' later, as in "about2_btn" to instead, just a thought for you, even with as "boxmoive_mc" for example ;))

  • Trying to access the video clip

    I have a clip on Scene1 called "movieclip1." Inside the "movieclip1", there is a 'fadein' label, which under the label has the fadeing of movie clip in. Then I have a label called 'fadeout', that has the clip fading out.

    What I want to do is get the coding or script of action to do so that when I click on "portfolios_btn" (on scene1) it works what's under my label "fadein" inside the clip 'movieclip1 '.

    Then, when I roll-off clip I want to go and play whats under the label 'fadeout '.

    This 'movieclip1' is a drop down menu that disappears when I click on the portfolios_btn and fades out when I roll off the coast the movieclip.

    You must add event listeners for CLICK and ROLL_OUT event for the portfolios_btn.  In the case of Manager, simply say movieclip1.gotoAndPlay ("...");  where «...» "is the label of the associated image.  If you are not familiar with the addition of a button event listeners, then look for the addEventListener() method in the help documents (or take a peek through a few comments here... it is likely to occur).

  • video clip on the button

    I have a mc on each of my buttons to play when the button is clicked.  Name of the instance of the mc is the same as the instance of the button but with "_mc" name added.  I can't get that part to work:

    var btn_mc:MovieClip = this (instanceName + "_mc");

    Here's the complete code...

    function addPListeners (): void {}

    for (var j: uint = 0; j < PButtons.length; j ++) {}

    PButtons [j] .addEventListener (MouseEvent.CLICK, goSection);

         }

    }

    addPListeners();

    function goSection(event:Event):void {}

    var instanceName:String = event.target.name;

    var btn_mc:MovieClip = this (instanceName + "_mc");

    TweenLite.to (btn_mc, 1, {autoAlpha:0});})

    trace (btn_mc);

    }

    because the movieclip is not in the current timeline.  It is the chronology of mc.  What is mc?

  • Help. Video clip inside a movie clip problem

    I have a movieclip (left with alibis and lying eyes) in a movieclip (watch) and I have buttons on the breast left with alibis and lying eyes I want to go to the labels/images specific to the breast to look at. I tried to do:

    (release)
    {
    watching.gotoAndStop ("one");
    }


    But it did not work. Do you have any suggestions?

    the function() trace to determine the correct path (you can use trace (this) on any scenario to see its absolute path) and ensure the required movieclip exists when the button is released.

  • Button with gotoURL problem

    If it's the script action in the main timeline for a button and the path button is download.btn shouldn't this work?

    download.btn.onRelease = function() {}
    getURL (" http://www.google.com/","_blank");
    };

    Now, when he opened the url ( http://www.google.com) happens in another browser, at the same time opening another browser when the user clicks the button. No idea why that would trigger when the film loaded as well?

    If you want to watch the .fla file, it is located here:
    http://www.midnight007.com/pizza/layer_100slices.fla

    you're right – that should work. My first thing I test when something like what is happening is that each keyframe interpolation contains exactly the same instance. A common problem is that the name of the instance of the element can be slightly different (for example a space somewhere) in different key frames.

    Rather than search for the problem, I usually just keyframes in the Tween and then put them back in. In your case, I deleted the key frame on the image 12 on layer 'see more' and then inserted keyframe (returning to color: None) and tested the film. The button works fine!

    While I went back to your original movie to try to find what was not between two keyframes in "see more" and could not find the problem... anyway, this looks like a situation where we did not know the reason for the problem, but at least we found the solution...

  • Trying to access a specific clip with a chain

    OK, what I'm trying to do is create videos as much as I need, and then access these video clips using string values. These string values are stored in a table and coincide with a given instance movie clips name. See the following code:


    I think my problem is that Flash is trying to call methods of clip from movie on a string instance. I don't know how to type cast in Flash, or even if it is possible, but how would access channels under the video clips?

    DuhChamp,

    > I think my problem is that Flash is trying to call the movie
    > clip on a string instance methods.

    Bingo.

    > I don't know how to type cast in Flash, or even if it is
    > possible, but how acceding like movie channels
    > clips?

    Use eval() or the access to the table operator, []. Details here...

    http://www.quip.net/blog/2006/Flash/ActionScript-20/reference-objects-dynamically

    David
    Stiller (at) quip (dot) net
    Dev test: http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Organize video Clips

    I have 3 videos and 3 buttons. When I click on the 1 button, Movie clip 1 should be on top of all the other video clips. The same with the other 2 buttons. When I click on the respective buttons in their respective film clips should be displayed on top other movie clips. What is the script that I use for this kind of action? Can someone help me please? Thanks in advance.

    Attach this code for your buttons and movName to replace your relevant MovieClip instance name. You may also need to modify the paths if your clip and buttons are not at the level of the root:

    We (Press)
    {
    _root.mov3.swapDepths (_root.getNextHighestDepth ());
    }

  • How to manually activate LowerField music videos in progressive video clips -?

    Hi all

    I have my music videos lined up on my pasteboard AdobePremElement13, they are all in the lower field (and Pal 25f/s (!) 4:3)

    I need to have returned them in a (uncompressed) Avi output in progressive instead.

    (Elements13 does, ok, but I'm not sure on the quality of the connection securing: my editor will compress the avi file on a DVD Pal subsequently, and also as a file to be read on computer and that is why they prefer gradual-).

    Rendering automatically re-encode the file down field in a Progressive file, or there are losses to be expected? or am I limited otherwise to maintain order at LowerField, due to my video clips being LowerField originally?  The problem with LowerField its DVD is Pal, so it seems it should be UpperField (!).

    It was decided that he would develop progressive (non interlaced) as well as the film be read anywhere, but is it possible? and is it possible with Elements13?

    == > why I ask:

    -Of course I specify rendering of time 'progressive' settings, but I want to be sure that I don't have to recode manually each clips video (I have 77 of them) of LowerField to progressive. Should be, how on Elements13? I don't see the device to operate this initial transformation.

    (you can see there are two questions in one, as I am a bit confused by the problem in which I am)

    Much thanks yous!

    Dewey.

    If your original video is interlaced (bottom field first) and your project settings Premiere Elements perfectly with the specifications of your video, then all you need to do is exit your video with a gradual adjustment and it comes out gradually. Without interlacing.

    I don't know how that will affect NTSC to PAL conversion, given that other factors to consider also (frame rate).

    What is the original source of your video? It comes from a camcorder?

    What is the resolution and speed of the video?

  • Bad habit of putting video clips in Captivate?

    I created a lesson on how to weld.  On each slide, I have a small video clip showing something about soldering with audio text and bulleted.  When I play it on my laptop, it very well.  I upload to Blackboard (our LMS) and when I look on our audio school computers and text are fine, but the video freezes in the second.  We have very good speeds of LAN and decent PC in the classroom.  SH ouldI not try put the video clips in a lesson of Captivate?  I've noticed that no Captivate example using video clips. 

    Check with the system administrator who controls the server on your LMS. There may be some sort of filtering on the video files or the MIME type of your video is not allowed (although this would normally prevent nothing to appear).

    Post your content SCORM Cloud and test from there.  If the video works then, your problem is with your own server, LMS, not the lesson of Captivate.

  • Title text below video clip?

    Try to add the text below a video clip. A started with titles, but soon discovered that the text takes too much space on top of the video, and we do not reduce or change the text. Try to find a way to reformat the video clip or something leaving a space for the text below - visually - the video clip. Basically, get a bunch of white "video" below the video for real. Is this possible?

    OK, so it pretty much depends on the PC and projector. If she can handle some screen sizes greater than 1280 X 720, which without doubt possible, all you have to do is change the setting sequence to something like 1280 X 768, a common laptop screen size. If the extra 48 pixels isn't enough, then make it even higher. Don't forget to add pixels in 16 jumps. Up to 1280 X 800 would be a great choice if your playback device can cope.

    If you are limited to 1280 X 720, then create your video without the text, and then nest the sequence in another sequence and resize it down with the scale of the motion effect parameter. Then put the text underneath. That should give you as much space as you need for the text. When you plan, it should work OK. Maybe not as good as the larger size of the video, but might still be OK.

    It depends on how you're going to project it.

  • deletion of &amp; quot; dynamically created &amp; quot; video clips

    Hey all,.
    Sorry for all the questions, but I still have another. How do you get rid of video clips on the stage with attachMovie. I tried removeMovieClip and clear, but they remain on the scene. I remember this last year in a class, but I lost files for this project, and can't remember how to do it. Is there a refresh of the screen or something I'm missing? Thank you.

    How about if you use the global method:

    removeMovieClip (_root.gui.notes [n]);

    Everything seems good. Are you mix Timeline stuff in there?

    I guess the question of the text field is because the fonts are not included.

  • Problem with accessing dynamically created video clips, returns null.

    I hope that it's a dumb question with an easy answer, if my code is pretty simple.

    I use this code snippet to create menu items, then use the variable jCount below to give the clips a like number, index in so much of (which seems to work very well):

    for(var j:Number=0;j<xmlSubMenuLength;j++){  
        var mcSubMenuItem:mcSubMenu=new mcSubMenu();    
        addChild(mcSubMenuItem);     
        jCount++;    
        mcSubMenuItem.name = "mcSubMenuItem" + jCount; 
        //traces out names correctly
        trace ("---------------------------------jCount NAME = "+ mcSubMenuItem.name); 
        mcSubMenuItem.x=mcMenuHolder.x+20;
        mcSubMenuItem.y =mcMenuHolder.y;
        mcSubMenuItem.y+= nextBtnY;
        nextBtnY+=subtopicSpace;
        global_subi.text = String(jCount); //i see the proper count of 10 in the text field
       }
       
       
    

    However, when I try to access the clips using this snippet:

      
     for(var j:Number=0;j<Number(global_subi.text);j++)//
        {   
      trace("GLOBAL SUBI = "+ String(global_subi.text));  //traces out 10, which it should
      var scSubMenuItem:String = "mcSubMenuItem" + j;   
      var scSubContent:Object = this.getChildByName(scSubMenuItem); 
      trace(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>scSubContent:Object = "+ scSubContent); //returns null!
      
     }   

    My last trace statement returns null. Anyone can see my mistake, or explain why I can't access my videos after they have been created?

    Thanks muchly,.

    ~ Chipleh

    You are welcome.

Maybe you are looking for

  • Error 1097 while controlling a Velmex

    I use a configuration of Velmex two axes to quickly move a probe quickly into and out of a flame. The Velmex is supposed to move the probe in the flame, let it recueillir collect data, move it out of the flame, and then repeat the process at a slight

  • What's new in Multisim/Ultiboard 13.0

    Hello I just upgraded to Multisim/Ultiboard, 12.0 13.0.  What's new?  What should I look for?

  • Fix runtime error after trying to solve a problem of printer

    A program that was fine yesterday now displays the following error message: Runtime error! Program: C:\Sierra\CardZone\Planner.exe abnormal termination of the program This happened after Epson technical support was trying to solve a problem with the

  • Hard drive issues

    I have an inspiron 2020 with windows 7 service pack 1 installed.    Since then, I have the backup drive, and they work.   I need is no longer the Oem partition and a recovery partition.     I discovered something new.   Only the recovery partition al

  • Printing a color laserjet cp3505x using MAC OS 10.6.8. I can't print all the pages in the PDF documents.

    I'm having a problem suddenly with documents PDF print only odd pages. I tried to manually print even pages, but it does not allow me to do. Any thoughts?