4 mc's on the root timeline. Using onClipEvents... all mcs play at once.

I have 4 mc's on a root timeline. I'd like each, when clicked, to animate individually. Currently with the code I have, when I click one, they all play. 3 of these mc's are identical mc's (they have instance names, but aren't called out in the code, not sure how to). The fourth mc is a different mc altogether, yet this particular mc along with the other 3 (identical) all play at once.
I thought using "this" would only have the mc I click on play. Not the case. I also tried putting the instance name (i.e. onoff1) bofore "this." and after "this." and no luck.
Thanks for any help, and I regret to say that I'm not savvy in AS2, so I hope you don't mind spelling things out for me because this a bit over my head.
Also, wanted to say, that the mc's timeline do have a stop at the beginning and end. So when you export the swf (currently) the mc is stopped, and when you click on it they all play to the next stop. So they act like I want them, just that they're all animating at once no matter which one I click.
onClipEvent(mouseUp) {
this.gotoAndPlay(1);

Wow! You are the man!!!!! Karma points! Thanks so much.
I've only used on(release) for buttons, and have always used onClipEvent(mouseUp) for mcs. I didn't know you could use on(release) for mcs, didn't think you could.
I know enough AS3, more than AS2. I got a gig that asks for AS2 and I had to learn it from the ground up. I miss using the function command in AS3, I think I used it for everything.
Thanks again.

Similar Messages

  • Controlling the root timeline from inside a MovieClip

    [preface] I'll apologize in advance. I'm a designer, not a
    developer. I know very little about actionscript so if you
    can help me out, please pretend like I know nothing.
    [/ preface]
    I just need actionscript to check the value of a variable
    when the end of a movie clip is reached and then call an action.
    Here's what I've got and it doesn't work. Please don't laugh.
    if (p == 1){
    tellTarget (_root) {
    play();
    else if (p == 0){
    stop();
    (the "stop" on the "else if"
    is referring to the movie clip's timeline, not the root
    timeline... in case you're wondering)
    Any help would be greatly appreciated. Thanks!

    No it's not a school project. Good guess though. It's
    actually a self-promo piece for the ad agency I work for. I'm an
    art director expanding my horizons. I would take a class or run
    through one of the good actionscript books but unfortunately, I
    don't have time.
    Thanks for the help again kglad.
    btw, I've used tellTarget successfully in a few projects in
    the last few months. I'm using Flash 8.

  • Refering to a class imported on the root timeline?

    This is probably ueber basic, but I don't know how to do it.
    I am importing tweenlite on the root timeline like this:
    import gs.TweenLite;
    I now want animate things in other MCs. I tried something like this, but it did not seem to work.
    _parent.TweenLite.to(text1, 3, {_alpha:100, overwrite:0});
    How would I do this?
    Thanks a lot for any help with this!!!

    it's easiest to not even bother with the import statement and always use:
    gs.TweenLite.to();
    or
    gs.TweenLite.from()
    from any timeline.

  • Remove child on the root timeline from within a movieclip

    Hi
    How do I remove a child from the root timeline from within a separate movieclip?
    I've tried
    MovieClip(parent).removeChild(mc1);
    But I get this error
    1120: Access of undefined property mc1.
    I could write a function in the root timeline that just removes child and then run that from within the movieclip but is there a better way?
    Thanks in advance.

    Thanks for replying.
    I asked on Kirupa but I couldn't access the site so I asked here.
    I guy answered with this
    MovieClip(parent).removeChild(MovieClip(parent).getChildByName("mc1"));
    It works fine, is this the best way to do it?
    Not sure if I understand what you meant?
    Just to be clear I have to movie clips on the stage mc1 and mc2 and i want to remove mc1 from within mc2's timeline.
    Thanks again

  • Controll the ROOT timeline from externally loaded movie clip?

    does anyone know how to controll the root timeline from an
    externally loaded movie clip?
    I have loaded a movie clip, which has buttons on it that I
    would like to controll the main original website timeline with.
    something like this.parent.parent?
    thanks a lot
    harky

    feedmeapples <[email protected]> wrote:
    > does anyone know how to controll the root timeline from
    an externally
    > loaded movie clip?
    >
    > I have loaded a movie clip, which has buttons on it that
    I would like
    > to controll the main original website timeline with.
    >
    > something like this.parent.parent?
    _root.doStuff;
    Freundliche Grüße,
    Franz Marksteiner

  • How can i write the below code using "For all entries"

    Hi
    How can we write the below code using "for all entries" and need to avoid joins...
    Please help
    SELECT aaufnr aobjnr aauart atxjcd a~pspel
    agstrp awerks carbpl cwerks
    INTO TABLE t_caufv
    FROM caufv AS a
    INNER JOIN afih AS b
    ON aaufnr = baufnr
    INNER JOIN crhd AS c
    ON bgewrk = cobjid
    AND c~objty = 'D'
    WHERE ( a~pspel = space
    OR a~txjcd = space
    OR NOT a~objnr IN
    ( select OBJNR from COBRB AS e
    WHERE objnr = a~objnr ) )
    AND a~werks IN s_plant
    AND a~auart IN s_wtype
    AND NOT a~objnr IN
    ( select OBJNR from JEST AS d
    WHERE objnr = a~objnr
    AND ( dstat = 'A0081'OR dstat = 'A0018' )
    AND d~inact 'X' ).
    Reward points for all helpfull answers
    Thanks
    Ammi.

    Hi,
    SELECT objnr objid aufnr
            from afih
            into table t_afih.
    SELECT objnr
            from JEST
            into table t_JEST
            where stat = 'A0045'
               OR stat = 'A0046'
               AND inact 'X'.
    SELECT objnr
            from COBRB
            into table t_cobrb.
    SELECT arbpl werks objid objty
          from crhd
          INTO table it_crhd
          FOR ALL ENTRIES IN it_afih
          WHERE objty eq 'D'
          AND gewrk = it_afih-objid.
    SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
            FROM caufv
            INTO table t_caufv
            FOR ALL ENTRIES IN it_afih
            WHERE aufnr = it_afih-aufnr
              And pspel = ' '
              AND txjcd = ' '
             ANd objnr ne it_crhd-objnr
              AND auart in s_wtype
              AND werks in s_plant.
             AND objnr ne it_jest-objnr.
    dont use NE in the select statements, it may effect performance also. Instead use if statements inside
    loops.
    loop at t_caufv.
    read table it_chrd............
      if t_caufv-objnr ne it_chrd-objnr.
      read table it_jest..........
       if   if t_caufv-objnr ne it_jest-objnr.
        (proceed further).
       endif.
      endif.
    endloop.
    hope this helps.
    Reward if useful.
    Regards,
    Anu

  • What is the condition for using 'for all entries' and  why?

    what is the condition for using 'for all entries' and  why? can any body tell the reason for this ? its a big favour of me .
    regards,
    ravi.

    hi,
    for all entries is used to join two or more tables.
    It is same as join but performance wise for all entries is more effective.
    You can only use FOR ALL ENTRIES IN ...WHERE ...in a SELECT statement.
    SELECT ... FOR ALL ENTRIES IN itab WHERE cond returns the union of the solution sets of all SELECT
    statements that would result if you wrote a separate statement for each line of the internal table replacing the symbol
    itab-f with the corresponding value of component f in the WHERE condition.Duplicates are discarded from the result
    set. If the internal table itab does not contain any entries, the system treats the statement as though there were
    no WHERE cond condition, and selects all records (in the current client).
    for example:
    SELECT * FROM sflight INTO wa_sflight
    FOR ALL ENTRIES IN ftab
    WHERE CARRID = ftab-carrid AND
    CONNID = ftab-connid AND
    fldate = '20010228'.
    this condition, return all entries of the sflight
    hen using FOR ALL ENTRIES the number of matching records is restricted to the number of records in the internal table. If the number of records in the database tables is too large then join would cause overheads in performance. Additionally a JOIN bypasses the table buffering.
    So for all entries is used for filtering out the data from the two tables based on the entries in them.
    Advantages:
    1) For all entries avoids inner join & so the performance increases.
    2) For specified values in 1 itab, if you to fetch values from other table you can use it.
    3) Use of select stmt in loop is gets avoided, as u can use read statement on the the new itab.

  • Using ipone4s, since update to IOS6 I cannot use "search" in the App Store.  I deleted an App because I was have trouble activating certain features since the update to IOS6 - only to find now I cannot download the App to use AT ALL.  ???????

    Using ipone4s, since update to IOS6 I cannot use "search" in the App Store.  I deleted an App because I was have trouble activating certain features since the update to IOS6 - only to find now I cannot download the App to use AT ALL.  ???????

    Anything* >.<

  • Reffering to code in the root timeline

    I'm very suprised I theres not an obvious answer to this
    question to be found. In AS 2 I would often write most of my code
    in the main timeline, and then refer to it from various other
    movies etc. I dont seem to be able to do that in AS 3? how can I do
    it in AS 3?
    For example if i had a function on the main timeline, and
    wanted to call it from the code in another movie. In that past I
    would have just used _root.functionName();

    _root in AS3 is now simply root (no underscore). The root
    property,
    however, is only available to DisplayObject instances, not
    other classes.
    The root reference is also null unless the DisplayObject
    instance is a child
    of a display list attached to the stage. For timeline scripts
    within a Flash
    FLA, however, where the movie clip is added to the screen
    within the Flash
    environment, root is always available.
    A good practice for globally accessible functions, however,
    would be to
    define your functions as static methods in a class. Then you
    can reference
    those functions anywhere from any object (even non
    DisplayObject instances)
    using ClassName.functionName()
    "smazr123" <[email protected]> wrote in
    message
    news:f29rrb$4nl$[email protected]..
    > I'm very suprised I theres not an obvious answer to this
    question to be
    > found.
    > In AS 2 I would often write most of my code in the main
    timeline, and then
    > refer to it from various other movies etc. I dont seem
    to be able to do
    > that in
    > AS 3? how can I do it in AS 3?
    >
    > For example if i had a function on the main timeline,
    and wanted to call
    > it
    > from the code in another movie. In that past I would
    have just used
    > _root.functionName();
    >

  • Azure File Storage - Creating a directory at the root level using REST

    I have a Xamarin / iOS project, and looking to use Azure File Share as a back-end.
    With that in mind, I'm playing around with the REST API and have generally got things working with (a) Blobs and (b) Account-level access to Files.
    Specifically, I can successfully request a list of File Shares, so I have the general call structure worked out.
    However, I'm stumped about the exact incantation necessary to create a new directory at the root level of a share.
    I've tried the following three variants, but all result in Forbidden - Server failed to authenticate the request
    request.Host: myaccount.file.core.windows.net
    request.AbsolutePath: /myshare/subdirname1
    request.Query: ?restype=directory
    string to sign: PUT\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:Sun, 30 Nov 2014 16:07:25 GMT\nx-ms-version:2014-02-14\n/myaccount/myshare/subdirname1\nrestype:directory
    request.Host: myaccount.file.core.windows.net
    request.AbsolutePath: /myshare/subdirname1/
    request.Query: ?restype=directory
    string to sign: PUT\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:Sun, 30 Nov 2014 16:07:58 GMT\nx-ms-version:2014-02-14\n/myaccount/myshare/subdirname1/\nrestype:directory
    request.Host: myaccount.file.core.windows.net
    request.AbsolutePath: /myshare//subdirname1
    request.Query: ?restype=directory
    string to sign: PUT\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:Sun, 30 Nov 2014 16:06:16 GMT\nx-ms-version:2014-02-14\n/myaccount/myshare//subdirname1\nrestype:directory
    I did note that trying to get the contents of an (empty) root directory doesn't behave quite the way I'd expect
    request.Host: myaccount.file.core.windows.net
    request.AbsolutePath: /myshare/
    request.Query: ?resttype=directory&comp=list
    string to sign: GET\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:Sun, 30 Nov 2014 16:23:17 GMT\nx-ms-version:2014-02-14\n/myaccount/myshare/\ncomp:list\nrestype:directory
    Authenticates OK, but generates FAILURE BadRequest - The requested URI does not represent any resource on the server.
    Which is different behaviour from pulling the list of blobs from an empty container (returns 200 with an empty xml list of blobs.
    I've been through the File Service REST API document (dn167006) and found the azurestoragesamples on codeplex, but the former is unclear on working with the root level and the latter is from 2011 and predates File Storage.
    Any insights?

    First, thank you for the quick response and the suggestion about looking at the response content for the string to sign being used. I wasn't aware of that and obviously it's a fantastic resource for figuring this kind of stuff out.
    And what it immediately revealed is it wasn't some subtle oddity in my construction of the STS, it was that I was doing a client.GetAsync(...) and not a client.PutAsync(...). DOH!
    With that sorted, it was trivial to fix.
    In terms of the List Directories and Files, though, there's still a problem.
    FAILURE BadRequest - The requested URI does not represent any resource on the server.
       request.Host: myaccount.file.core.windows.net
       request.AbsolutePath: /myshare
       request.Query: ?resttype=directory&comp=list
       urlQuery: myshare?resttype=directory&comp=list
       string to sign: GET\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:Sun, 30 Nov 2014 18:40:04 GMT\nx-ms-version:2014-02-14\n/myaccount/myshare\ncomp:list\nresttype:directory
    The response XML is
    <?xml version="1.0" encoding="utf-8"?>
    <Error>
        <Code>InvalidUri</Code>
        <Message>The requested URI does not represent any resource on the server.\nRequestId:33d61aed-001a-0020-0cbd-51aea8000000\nTime:2014-11-30T18:40:04.9712797Z</Message>
        <UriPath>/myshare</UriPath>
    </Error>
    I originally thought it might be because the share was empty. However, I'm targeting the same share in which I created (apparently successfully) the subdirectory.
    So I'm still confuzzled on that.

  • Array to control MCs on the root timeline

    HI - - - a continuing saga
    I have a main timeline thats about 900 frames long. During
    the course of this 900 frames I bring in short MCs (subA, subB,
    subC, etc) on their own layer which play their duration - (a 90
    frame sub MC gets 90 frames on the main timeline).
    Using a mc I made into a play/pause btn, I can pause and
    resume play of the main timeline by targeting “_root”.
    I can also use the same button to pause/play the sub_mcs IF I
    list each one at the pause and play commands. I thought an array
    would help me avoid that code repetition but it doesn't work.
    Can someone look at my code and let me know what's missing
    and/or what I did wrong?
    TIA
    JL

    Hi --
    Try this:
    obj = allSubMCs[0]
    obj.play();
    etc..
    You have to define the index of the array. If you want the
    pause/play button
    to work for all MCs in the array then just loop through the
    array.
    Rich
    "jlucchesi" <[email protected]> wrote in
    message
    news:ghun7u$pjn$[email protected]..
    > HI - - - a continuing saga
    >
    > I have a main timeline thats about 900 frames long.
    During the course of
    > this
    > 900 frames I bring in short MCs (subA, subB, subC, etc)
    on their own layer
    > which play their duration - (a 90 frame sub MC gets 90
    frames on the main
    > timeline).
    >
    > Using a mc I made into a play/pause btn, I can pause and
    resume play of
    > the
    > main timeline by targeting ?_root?.
    > I can also use the same button to pause/play the sub_mcs
    IF I list each
    > one at
    > the pause and play commands. I thought an array would
    help me avoid that
    > code
    > repetition but it doesn't work.
    >
    > Can someone look at my code and let me know what's
    missing and/or what I
    > did
    > wrong?
    >
    > TIA
    >
    > JL
    >
    > var allSubMCs:Array = new Array("sub1_mc", "sub2_mc",
    "sub3_mc");
    >
    >
    > playPause_btn.onRollOver = function() {
    >
    > if(this._currentframe == 1) {
    > this.gotoAndStop("pauseOver");
    > }
    >
    > else {
    > this.gotoAndStop("playOver");
    > }
    >
    > }
    >
    >
    > playPause_btn.onRollOut = function() {
    >
    > if(this._currentframe == 10) {
    > this.gotoAndStop("pause");
    > }
    >
    > else {
    > this.gotoAndStop("play");
    > }
    >
    > }
    >
    >
    > playPause_btn.onRelease = function() {
    >
    > if(this._currentframe == 10) {
    > this.gotoAndStop("playOver");
    > _root.sub1_mc.stop(); // naming each sub mc does
    > //_root.allSubMCs.stop(); // the array doesn't work
    > _root.stop();
    > }
    >
    > else {
    > this.gotoAndStop("pauseOver");
    > //_root.allSubMCs.play(); // the array doesn't work
    > _root.sub1_mc.play(); // naming each sub mc does
    > _root.play();
    > }
    >
    > }
    > //------END PlayPause TOGGLE--------
    >

  • When printing grey scale on a MX882 printer, is the color ink used at all?

    We set all of our home PCs to print gray scale on our printer, an MX882 (serial # ACAT48275) in order to not use so much color ink.  That seemed to be working very well until the big black ink cartridge (the 226BK) emptied out.  I didn't think anything of it because the small 225 BK cartridge was still full.    The 225 BK is about 1/2 full now, but all of a sudden, the color inks (226C and 226M) are empty, with the 226Y 1/2 empty.
    My question is, if the BIG black cartridge (226BK) empties, does it not "switch over" to the 225 BK?  Or does is start "creating" black by using both magenta and cyan?
    Thanks.
    Mark

    Hello.
    If plain, letter sized paper is used, the printer should use the large black tank for grayscale printing.  If specialty paper or duplex printing is used, the printer would use the dye based inks.    If grayscale printing is not enabled, the printer may create 'composite' blacks by using mixtures of the color inks.  This may occur when graphic or web-based printouts are performed.
    The reason for the two different black ink tanks is for the different types of printing your unit is able to perform.  They are not intended as backups to each other.  The larger black tank is pigment based, and is primarily used for standard black text printing or output.  The smaller black ink tank is dye based like the color inks, and is used for photo and graphics output. 
    If additional assistance is needed, feel free to call us at 1-800-OKCANON.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Appending content to an XML file in the Root tag using FileAdapter

    Hi Friends..!!
    I have got a requirement like this. There will be an XML file with List of Employees like following...
    <Employees>
    <Emp>
    <SNo>111</Sno>
    <Fname>Mahesh<Fname>
    <Lname>Babu</Lname>
    </Emp>
    <Emp>
    <SNo>222</Sno>
    <Fname>----<Fname>
    <Lname>-----</Lname>
    </Emp>
    <Emp>
    <SNo>----</Sno>
    <Fname>----<Fname>
    <Lname>----</Lname>
    </Emp>
    </Employees>
    .. So What i have to do is Appending the given Employees info to the existed XML file using File Adapter. But When i m trying to figure it out.. the given details are appended at the end of the previous content.. but i want to see all the Emp tags(the newly appended emp list also) in the existed <Employees> tag only..
    (i m also facing namespace issues here)
    Can u plz provide solution for this problem..?
    Thanks in advance.
    Regards-
    Nlion7

    Hi Nilon7,
    the given details are appended at the end of the previous contentThat will be the behaviour if you are just using file write with append...
    You will need to expand your solution into three steps, firstly a file adapter sync read to retrieve the current contents of the file, then a xslt transformation to "merge" the current data with the new data and finally a file adapter write with the merged content...
    Cheers,
    Vlad

  • How do I enable my new macbook pro to become my default computer to sync all my apple devices-iphone 4, touch, ipod classic, nano?  My five year old dell's hard drive has only 2GB of space available and is currently the computer I use for all these device

    I have a new macbook pro that I wish to sync all my apple devices--ipodclassic,nano,iphone4,touch-- that are currently synced with a 5 year old windows based computer with only 2GB of available hard drive space. How can I do this and maintain all of my info-contacts, songs,photos etc without losing this data< Thanks

    you can either update to lion/ios5 and use the cloud to sync or you can plug in said devices and sync them with your MBP instead of your dell via a tethered usb connection.
    also, sign into your itunes store account on your mac.

  • Why is the https protocol used on all pages of arch wiki & forums ?

    I don't know if it's true, but I heard that the https protocol requires more server resources than http, maybe because the server has to encrypt the data before sending it to the client. Therefore, as far as I know, https is usually used only on web pages containing login forms, and others that transmit sensitive data. I'm not complaining about the wiki or forum performance, they're loading fast, but is there a reason for using https on all pages of arch wiki and arch forums ? Shouldn't https be used only for logins to the wiki and forums, and http for all other pages, just like archlinux home page ?
    Last edited by Chrys349 (2011-10-14 00:14:54)

    I don't know the specific reasons as far as Arch is concerned, but there is a trend... See for example the HTTPS Everywhere extension. Many sites started offering or forcing https (including Google.) This can help avoid censorship and eavesdropping, two things that are on the rise too in many countries.

Maybe you are looking for

  • HT5093 How do I convert .igs or .u3d files to .dae?

    I am trying to find a way to convert CAD files to be compatible with iBooks Author.  I have my files in .igs or .u3d format.  Does anyone know of a coversion service or a program that I can do this easily with?

  • Problem in opening the PM order

    HI ALL, When I try to open the PM work order, I am getting an error message "Inconsistent dare: Order XXXXXXXXX 2007 11 11, duplicate entry O 0332". Could you please any one let me know why this error is showing. Regards Ramu

  • Mapping every row to an idoc with same header

    hi, i have record: recordset 1..1 Header 1..1 Row      0..unbounded i want to map it to : idoc 0...unbounded Header 1..1 Row     1..1 i want every row in source will create an idoc. every idoc will have same header but different row. can u please exp

  • Syncing problem over cloud for all my devices

    I have severe syncing problems over the cloud with all iWorks apps (Pages, Numbers, Keynote) across ALL my devices (iMac, MacBook, iPad2, IPhone4) and even on web: It JUST DOESN'T WORK!!! Internet works perfectly, Docs sync is set to ON in every devi

  • My iphone4s will not let me text one contact?

    My iPhone 4s will it let me text one contact