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.

Similar Messages

  • 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

  • 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.

  • 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

  • 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

  • How to control more than one instrument via different interfaces at the same time

    Hi, I am new to Labview.  I am working in a project where I have to make a Automated testing tool . So, here is the set up -  I have a Chip on a board to which there are several instruments connected namely Agilent power supply, Agilent pattern generator, oscilloscope,Dmm and Thermotron. All these instruments will be connected to the host computer via ethernet, GPIB or RS232. I have to write a program on Labview where the program  should be able to communicate with these  instruments  at  the same time  and show the ouput  on display unit . I have to run the program once, should be able to view the ouputs. So, Is it possible to write such program in Labview??.  I have  downloaded  few instuments  drivers. Is it possible to combine those intrument drivers and construct a new VI which would be able to control all this ??   Will it be easier to program this on Labview or  I should  go for Labwindows/CVI  ??.
    Please mention some useful sites or tips (if u know) for writing program.
    Thanks in advance
    shasanka

    Hi Shasanka,
    ofcourse it's possible to control more than one instrument at a time.
    You should use the VISA routines to access all your devices. Every device get it's 'address' as 'VISA resource name'. This resource name contains information on the used bussystem and the (internal) device address (i.e. GPIB devices have an address number).
    So I suggest to read the manual and to look at the examples that come with LabView!
    And (from your question) it seems you should take the 3 or 6 hour seminar as well! (Look at www.ni.com -> academics.)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • 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.

  • 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.

  • 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.

  • Can you have more than one profile open at once in FF 4?

    I'm having problems with Profiles but if I can't have more than one profile open at once then I guess that's why.

    Thanks, but I just found out about Tab Groups and I think I'll stick with them as they seem to be designed to solve my problem in an economical way. If I'm wrong please let me know!
    Peter

  • Applet Videoplayer, able to play more than one movie

    Hallo,
    I am looking for a sample applet that works as a video player.
    I have tested the sample code provided by JMF, but there is no
    example that allows to replace the current movie with a new movie.
    In other words, I am looking for a applet program, which allows me
    to give in new movie adresses and so to reload the player with a
    new film.
    Thanks in advance
    mk

    I do not know if I am using a flvplayback component. I am using "import video" - using the URL. I am using a skin provided in flash. Is that a flvplayback component?
    I am not using flv if that matters (using h.264 - f4v I believe it is called).
    Where do I put this code you have provided? I find this the most confusing part of Flash - I never know where to insert provided code.
    Does it go in the original swf file (if so - where?), or does it go in the main swf (where all the swfs would play one after the other) - and if so, where exactly?
    I don't really get how I load more than one swf in a main file to begin with either...... as I said - when I try - I get a loop of two frames - like an animation - it's not playing the full videos (with page setup), and then moving onto the next one. This is where I get lost - and tutorials are not being very helpful (as they deal strictly with video - often not continuous play, but user controlled, OR, they provide code with no directions where to actually put things).
    Do I import the swf into the master swf? Or just use code to tell it where the files are??
    Feel free to use small words and speak slowly. I haven't used this program before, and it seems very different from building a website with, say CSS for example (something I DO know how to do). I appreciate specific directions (or tutorials that provide the specific directions that address this question....)
    BTW - and overall ty for your continued assistance. If I had more time, I would pick up a book and work through things slowly - but I need to get at least a few things working to hand in the art piece for school - doesn't need to be finished, but needs to at least demonstrate a few of the website's overall features. I fully intend to do more detailed learning later to finish the piece outside of class.

  • Can you have more than one movie per page?

    Hi, I am creating a web site and have some movie content on some of the pages. Can you have more than one quicktime file on each page? Reason I ask is that on one page I have put 3 movie files but only one shows up when I run the site online. I am not using .mac. The website is on grapeape dot co dot uk and if you look at the examples page you should see what I mean. I get one video that works and 2 large "Q"'s where the other videos were. Odd because it works locally. Any ideas? Many thanks.
    Ben

    Just noticed something. If you leave it until the first movie caches or preloads - the second one appears. Is there a way round this at all? Thanks. Ben

  • Adding more than one movie to iDVD - possible or not?

    I assumed that you would be able to drop more than one imovie into a iDVD project and that it would add them as different menu items but it won't do it. Am I trying to do what is not possible? Any help is appreciated cheers!

    Hi Cheeba
    You got a very good link from Sue but it is fairly easy to describe.
    A. Make Your movies in iMovie. (You can make them in one session but
    it is easier to make each as an individual project)
    B. Close iMovie
    C. Locate Your moviprojects. Folders for iMovie 1-4 and an icon for v.5
    (if icon: Ctrl-click on it and select show package)
    in this there is a folder Share movie and in this a folder DVD. Here You
    will find a QT.mov file with Your project name. Take this and drop it into
    an open iDVD theme window (just inside the edge of this window).
    repeat for the other movies.
    OK that's all there is to it. You can try dropping the project folder/icon
    instead of open it - it is supposed to work.
    Yours Bengt W

Maybe you are looking for