Using colorTrans:ColorTransform on more than one movie clip

Hi I am very new to Flash and action script so please bare with me...
I would like to be able to change the color of more than one movie clip in the same layer in the same frame. Basically I have place two different movie clips with defined instances,i.e. body and shoulder onto the canvas in one frame on the timeline.
I have created three different buttons (red_btn, blue_btn, and yellow_btn) to use to change the color of say the body or shoulder. I would use red and blue to change the body and say yellow and green to change the shoulders. These are also on the same layer and same frame on the timeline as the movie clips.
The problem I am having is how would I declare the two movies or variables to change independantly? Would I need to place one movie clip on one layer and then place the other on a different layer so that when I press the button I want i.e. the red button, it only changes the body and not the shoulders.
Here is my actionscript that I am using to change the color of the clip(s)
import flash.geom.ColorTransform;
import flash.geom.Transform;
var colorTrans:ColorTransform = new ColorTransform();
var trans:Transform = new Transform(body);
trans.colorTransform = colorTrans;
blue_btn.onRelease = function() {
    colorTrans.rgb = 0x0000FF; // blue
    trans.colorTransform = colorTrans;
red_btn.onRelease = function() {
    colorTrans.rgb = 0xFF0000; // blue
    trans.colorTransform = colorTrans;
yellow_btn.onRelease = function () {
colorTrans.rgb = 0xFFFF00; //yellow
trans.colorTransform = colorTrans;
body here is my declared variable wich is the body of a shirt that is one movie clip. When you place both clips on the timeline ontop of each other, you basically get a shirt with different color shoulders and body.
I need some help to know if this is possible first of all, and then what would be the best way to delcare the variables in one actionsript.
Thanks and I am sorry, I just never learned much when it came to flash. Thanks for any patience and help anyone is willing to give me.

every movieclip has a transform.colorTransform property that you can use to assign a color transform (with any rgb property).  so, for example:
import flash.geom.ColorTransform;
import flash.geom.Transform;
var colorTrans:ColorTransform = new ColorTransform();
bluebody_btn.onRelease = function() {
    colorTrans.rgb = 0x0000FF; // blue
  yourbodymovieclip.tranform.colorTransform=colorTrans;
blueshoulders_btn.onRelease = function() {
    colorTrans.rgb = 0xFF0000; // blue
yourshouldersmovieclip.transform.colorTransform = colorTrans;
yellowbody_btn.onRelease = function () {
colorTrans.rgb = 0xFFFF00; //yellow
yourbodymovieclip= colorTrans;
etc

Similar Messages

  • Controlling more than one movie clip at once AS2

    I am making a game were you create movieclips with a button and move them around using a function system. The problem is, I want to control all of the same attached version of that movieclip in the code. how exactly would i do that if the instance name changes every time I load it?

    You can store references to the objects in an array and use those references to target the objects.

  • Can I add more than one movie to the movie page

    I'd like to put up a gallery of movies  but don't know how to do that.  How can I add more than one movie to the movie template page?
    Thanks,
    Gina

    I use the YouTube widget. It has the advantage of not loading clips until one actually selects the clip. When I started I just dragged the quicktime files to the page...not a good idea as it forced a viewer to wait for all of them to load.
    Miro has some options.
    Hugh

  • HT1657 Can you rent more than one movie at the same time?

    Can you rent more than one movie at the same time on itunes?

    I think Justin is correct and you should have statistics in place and a reasonable partition scheme so that the optimizer selects the correct partitions rather than telling it what to do. You paid a lot for partitioning after all.
    There are some, possibly misguided, examples in the manuals showing how to create a view so you can delete from a single partition without specifying the partition criteria in the delete statement. This in effect turns partitioning back into DIY partitioning i.e. separate tables, union all and pretend its a single logical table using a view. But backwards.
    So to do what you want you just assume the partitions are separate tables, and then use union all to glue the ones you want back together.
    select * from sales partition (sales_q1_2000)
    union all
    select * from sales partition (sales_q1_2001)
    union all
    select * from sales partition (sales_q1_2003)
    union all
    select * from sales partition (sales_q1_2004);It probably goes without saying that as well as making the expensive version of partitioning behave like the free alternative, there is the possibility that it will perform like it as well.

  • Projector that plays more than one movie

    How can I make one projector play more than one movie? If the movies are protected, can the projector still play them? How can I link them? Thanks for your help.

    Hi Norman,
    I’ll elaborate on Sean’s reply.
    As Sean mentioned you can use:
    _movie.go("markerName", "MovieName")
    To jump to the marker named ‘Markername’ in a movie called ‘MovieName’.
    I tend to still use the verbose syntax
    go to "markerName" of movie "MovieName"
    If you had:
    go to movie "MovieName"
    you’d jump to the start of the movie (frame 1)
    you could use:
    go to movie "MovieName.dir"
    but the '.dir' is not needed and if you create a protected DXR or DCR, the statement (without the movie extension) would work.
    Now, if you want to avoid writing a unique behavior for every link you’re creating, I’ve got a tutorial that describes how to do it at:
    http://www.deansdirectortutorials.com/Lingo/paramDialog.htm
    The above uses property variables and a parameter dialog box. It does require some understanding of programming (not too much though).
    If you have D11.5, in the Library Palette, in the ‘Controls’, category, there is a ‘Jump to Movie Button’ behavior. This behavior can be dragged and dropped onto a sprite and then you can type in the marker name and movie name in a parameter dialog box to set the link for the sprite. I say D11.5 because while earlier versions of Director have this behavior, there is a small error (easily fixed) that makes the marker jumping part non-functional. Anyway, my behavior in my tut site does the same thing.
    Dean
    Director Lecturer / Consultant / Director Enthusiast
    http://www.deansdirectortutorials.com/
    http://www.multimediacreative.com.au

  • SOLUTION: Chapters of more than one movie usable on a single DVD

    If you want to put more than one movie with chapters made in iMovie onto a single DVD using iDVD--and have the chapters of all movies usable--do this: in iDVD, simultaneously drag the icons for all the movies you want to use into the background of the iDVD project. (Use command-click to select multiple movie icons, which are displayed on the right when "Media" and then "Movies" are selected.)
    Message was edited by: Paul Bullen

    Hi Profector,
    Great information from Ed.
    DAG is a great method to configure a DR site for backup.
    I find an article on "Database Availability Group Design Examples" for your reference:
    http://technet.microsoft.com/en-us/library/dd979781(v=exchg.141).aspx
    Thanks
    Mavis Huang
    TechNet Community Support

  • Adding More Than One Movie to a DVD

    I am making iDVDs that are just about 15 minutes long. Since the dvd I am using holds up to 4.7 gigabytes, I would like to add more than one movie to a dvd project. How do I do that?

    Look in the folder of an iMovie project. Let's say the project is called "My Great Movie"
    There should be a small file with the name "My Great Movie.mov" That is the reference movie.
    If you open iDVD directly rather than from iMovie and create a new iDVD project, just drag the reference movies onto the iDVD window and it will add the movie to your project.
    On the finished DVD, you pick a movie to play it. When that movie finishes, it puts you back to the main menu to pick another.
    Does this sound like what you want ?

  • SOLUTION: Chapters of more than one movie usable on a single DVD (w. iDVD)

    If you want to put more than one movie with chapters made in iMovie onto a single DVD using iDVD--and have the chapters of all movies usable--do this: in iDVD, simultaneously drag the icons for all the movies you want to use into the background of the iDVD project. (Use command-click to select multiple movie icons, which are displayed on the right when "Media" and then "Movies" are selected.)
    Message was edited by: Paul Bullen
    Message was edited by: Paul Bullen

    This is exactly what iDVD is made for.
    Complete your iMovie projects and save each to disc.
    Open iDVD selecting new project and choose a theme.
    Now drag each of your five .mov files from the movie project folders into the screen area of your iDVD project.
    You can now play around with titles different themes, backgrounds etc. to your heart's content.
    Good luck.

  • Sharing More than One Movie with iDVD????

    Okay.. I would like to know if there is another way to burn MORE than one movie an iDVD project. It seems that sending the movie straight to iDVD creates it's own project, and when you try to send another movie, it creates a completely different project. I know I can send a movie to Media browser but the quality of the movie is much better when I share it via the command in iMovie 09 (Shrare->iDVD). I've noticed that the file type is different when you send it to iDVD than when you put it in Media Browser as well.
    Currently this is what I do.. Share it to iDVD.. Then I save that iDVD project to my desktop. I close iDVD, and start sharing my second movie. I then Control-Click on the first iDVD project and choose "Show Package Contents". I then dig into the trenches of that file to find the movie file. I then drag it to the desktop and delete the first iDVD project. When the new iDVD project gets made, I simply drag the file on my desktop into the iDVD project I want it in and then it works. This seems like a so un-apple way to do this though. I think iMovie definetly needs and update here. It's great if you ony want to burn a 1 movie to iDVD, but what if you want to do more. There should be a way to select multiple movies to send to iDVD or the option of adding a new imported movie to the current project in iDVD.
    Am I missing something or is there another way to do this? Is there a good export option in QuickTime? DV doesn't work because the quality I get is horrible. Somehow the shared to iDVD movie is the best quality and it's a QuickTime file via h.264. Is that my best export option? Sharing with the Media browser creates a mv4 file that's much smaller in size, even at the largest setting. The frames are more jumpier when iDVD finishes with it than the h.264 file.
    Any better suggestions? Also, where do I go to make suggestions for Apple. I can't find it anymore on this website.

    Q:Also, where do I go to make suggestions for Apple.
    A: Launch iDvd and then scroll down to Provide iDvd Feeback.

  • Using Adobe apps on more than one account?

    Is there a fix forthcoming for the problem running CS4 on Leopard, where you can't use Adobe apps on more than one user account at a time (via fast user switching?) When I switch over to my 2nd account, I get some sort of "licensing error" dialog unless I quit all Adobe apps in my first account, which is incredibly annoying.
    Thanks.

    Greg,
    Adobe's single-user licensing allows for your installation and
    non-simultaneous use on two computers. And the software may think that two different users are trying to use the software simultaneously. You might try contacting Adobe tech support and ask.
    Neil

  • How can i use Itunes to update more than one IPad with more than one owner

    How can i use Itunes to update more than one IPad with more than one owner?  I own an IPad and my wife owns an IPad.  I want to use my system to update both IPads.  We have different Apple Accounts and different applications.  Is this possible?

    Of course, that is too easy.  I am such a bonehead.

  • Why cant i have more than one movie at a time

    why cant i have more than one movie at one time

    It may be how much space is available on your iPad. The average movie is around 2.5 gigabytes. If you reach your space limit then you can't download anything until you clear space.

  • Can't use the iPod on more than one computer!!!!!!!

    Ok, This has got me so frustrated! We got an iPod and installed iTunes. We thought we had it figured out - we purchased music from iTunes, played it on the iPod and everything was great. Then plugged the iPod into my other computer to listen to our music and it won't freakin' play! says the computer is "Not Authorized" and suggests that by 'authorizing' the 2nd computer, it will overwrite the songs that are already on the iPod. This is NOT desirable. We've downloaded and installed iTunes onto the 2nd computer and used the same login account that we used on the first computer.
    What gives!?!?! I thought this was supposed to be easy, but it's not! I was hoping for a quick and simple "plug it in and start listening to music." This is definately not quick and simple. Albeit, I'm new to this iPod craze, but this shouldn't be so difficult. I've poked around on the website and cannot seem to find an answer to this.
    HELP!!!!
    Thanks
    oh btw, Is anyone else getting annoyed by Apple's rediculous attempt at monopolizing this market by forcing us to use thier own proprietary software?!?!

    First of all, any computer that plays purchased content must be authorized. This can be accomplished by opening iTunes, then store>authorize computer. If you wish to use your iPod on more than one computer & not have your iPod content erased, you will have to have your iPod preferences set on "manually manage". See the following link.
    http://docs.info.apple.com/article.html?artnum=61675
    Also, it's not only Apple that uses proprietary software. How about Zune players, & several others?
    Message was edited by: StarDeb55
    Message was edited by: StarDeb55

  • Using Ipod Nano on more than one Comp

    Can you use IPOD Nano on more than one computer? I tried but on my computer at work, I cannot transfer from IPOD to computer, only computer to IPOD
    Please Help!!

    I should be able to play it where ever I want
    And you can. Just burn it to a data CD, or transfer it to the other computer using a thumb drive, or use networking to transfer it, or even use the Hard Drive feature of the iPod to transfer it. Nothing stops you from doing any of those, and then when it's on the other computer you can play it there just fine.
    12" PB, Mac Mini (x2), G3 iMac (x3), G4 iMac, G5 iMac, Centris 610, SE30, Mac+   Mac OS X (10.4.4)   3G iPod, iPod shuffle, iPod nano

  • How can i use my iphone with more than one itunes

    how can i use my iphone with more than one itunes

    Sync iPod/iPad/iPhone with two computers
    Although it isn't possible to sync an Apple device with two different libraries it is possible to sync with the same logical library from multiple computers. Each library has an internal ID and when iTunes connects to your iPod/iPad/iPhone it compares the local ID with the one the device normally syncs with. If they are the same you can go ahead and sync...
    I have my library cloned to a small 1Tb USB drive which I can take between home & work. At either location I use SyncToy 2.1 to update the local copy with the external drive. Mac users should be able to find similar tools. I can open either of the local libraries or the one on the external drive and update the media content of my iPhone. The slight exception is Photos which normally connects to a specific folder on a specific machine, although that can easily be remapped to the current library if you create a "Photos" folder inside the iTunes Media folder so that syncing the iTunes folders keeps this up to date as well. I periodically sweep my library for new files & orphans with iTunes Folder Watch just in case I make changes at one location but then overwrite the library with a newer copy from the other. Again Mac users should be able to find similar tools.
    As long as your media is organised within an iTunes Music or Tunes Media folder, in turn held inside the main iTunes folder that has your library files (whether or not you let iTunes keep the media folder organised) each library can access items at the same relative path from the library folder so the library can be at different drives/paths on different machines. This solution ensures I always have adequate backups of my library and I can update my devices whenever I can connect to the same build of iTunes.
    When working with an iPhone earlier builds of iTunes would remove any file not physically present in the local library, even if there was an entry for it, making manual management practically redundant on the iPhone. This behaviour has been changed but it will still only permit manual management with a library that has the correct internal ID. If you don't want to sync your library between machines on a regular basis just copy the iTunes Library.itl file from the current "home" machine to any other you want to use, then clean out the library entries and import the local content you have on that box.
    tt2

Maybe you are looking for

  • How can i get my slide to work again

    i need help trying to get the slide back working any suggestions

  • Keyboard shortcuts display but don't fill field

    My shortcuts on my ipad2 display in settings. When I type the shortcut code in safari,  the corresponding info displays in blue like it should. Problem is the corresponding info for the shortcut code does not post to the field after tabbing to next f

  • Javascript urgent help

    Hii I am using Javascript to make a little small gallery I have called this in the <head> of the page <SCRIPT LANGUAGE="JavaScript"> <!-- function newWin(strURL,imgheight,imgwidth) { var mybar='toolbar=no,directories=no,status=no,menubar=no,resizable

  • How to close the browser from an Applet?

    Hi, I've written one applet, with 2 buttons (Continue & Exit). On click of Continue button, it will open another web page. On click of Exit button, the browser should be closed. I'm not able to close the browser from the applet. Can any body help me.

  • Update modules with compiling kernel from soure issue.

    Compiling kernel from abs or aur take me much time, so i decide compile kernel from source, compilation and installation successfully but make initial RAM disk doesn't update full modules (crypto,lvm...). I specified -c option to /etc/mkinitcpio.conf