Help! follow the movieclip inside ~

How to follow the no. balls inside my movieclip (ball7)? And set as dynamic text (winner_txt)?

P.S.: inside my movieclip doesn't have layer, layer of ball.

No layer: each image of a person is labeled '0', '1 b' and continues...

layer of ball: first frame empty, 2nd frame 1 ball, 3 frame 2 ball... and continues...

Tried to use:

var not = _root.ball7_mc._currentframe

_root.winner_txt = Number (No.);

use:

_root.onEnterFrame = function)
{
_root. Winner = Number(_root.ball7._currentframe-1);
Etime var = endTime - getTimer ();
//
If (etime<=>
{


delete this.onEnterFrame;

_root.gotoAndPlay ("score");

}
on the other
{
time_txt. Text = Math.ceil(etime / 250) + "seconds."
}
}

Tags: Adobe Animate

Similar Questions

  • With the help of the buttons inside the Scrollpane

    I have the following code to my (not in a scrollpane) buttons, but when I try to add additional channels (addEventListener) to correspond with the buttons in a scrollpane I get these error messages (1120: access of undefined property smith. 1120: access of undefined property thomas.). I tried using the script in a layer actions within the MC inside the scrollpane does not. Is someone can you please tell me what is wrong and (a simple code example) how to correct? Thank you.

    home.addEventListener (MouseEvent.CLICK, clickSection);
    about.addEventListener (MouseEvent.CLICK, clickSection);
    staff.addEventListener (MouseEvent.CLICK, clickSection);
    whyus.addEventListener (MouseEvent.CLICK, clickSection);
    services.addEventListener (MouseEvent.CLICK, clickSection);

    function clickSection(evtObj:MouseEvent) {}
    gotoAndPlay (evtObj.target.name);

    }

    and once again, in answer to your question.  attached is a file that shows exactly what I have been explained - how to add headphones borders on objects in a scrollpane.

  • Help! I need this movieclip to follow the cursor but only in some details!

    Hello

    I'm rather new to action script and need a bit of a kick in the right direction.

    This is what I have a problem with - I used this code to the movieclip background follow the cursor:

    {onClipEvent (enterFrame)}
    x = _root._xmouse
    y = _root._ymouse
    _x +=(x-_x)/10
    FLF +=(y-_y)/10
    }

    I want however - restict movement is so it remains hidden behind the other black point with the graphic "hglf".

    I hope this makes sense and someone can help out me!

    Thank you

    You assign the instance names in the properties panel, or use the library names?

  • Help (recovery of the image of an xml file name, then appear inside the movieclip

    Hello guys, I just want to ask sometihng about the display of the image inside the movieclip by pulling on the image name in the xml file.

    It comes to my xml file.

    <? PHP

    Header ("Content-type: text/xml");

    $host = "localhost";

    $user = 'root ';

    $pass = "";

    $database = "test";

    $gelo = "image1.jpg";

    / * xml output * /.

    $xml_output = ' <? XML version=\"1.0\? > ';

    $xml_output. = "< GALLERY > ';

    $xml_output. = '< IMAGE > '. $gelo. "< / IMAGE >";

    $xml_output. = "< / GALLERY > ';

    echo $xml_output;

    ? >

    This is the code inside my actionscript

    stage.scaleMode = StageScaleMode.NO_SCALE;

    var loader: URLLoader = new URLLoader();

    loader.dataFormat = URLLoaderDataFormat.TEXT

    loader.addEventListener (Event.COMPLETE, loadCompleteHandler);

    loader.load (new URLRequest ("http://localhost/loadimagefromxmlAS3/data.php"));

    function loadCompleteHandler(event:Event):void {}

    var xml = new XML (event.target.data);

    txt.text = xml.toXMLString ();

    trace (xml. IMAGE [0]);

    var list: XMLList = xml.data.title

    var loader: Loader = new Loader()

    This ["holder_mc" + 0]. AddChild (Loader)

    Loader.Load (new URLRequest (list [0]. IMAGE))

    }

    When I run it in flash, I got the error


    Image1.jpg

    TypeError: Error #1010: a term is undefined and has no properties.

    at xml_fla::MainTimeline/loadCompleteHandler()

    at flash.events::EventDispatcher/dispatchEventFunction()

    at flash.events::EventDispatcher/dispatchEvent()

    at flash.net::URLLoader/onComplete()

    I hope you will consider my ignorance since im a beginner with actionscript. Thank you

    (1) you should have "Permit debugging" enabled in the settings of publication so you could tell exactly the line of witch will not

    (2) this line makes no sense for me: var list: XMLList = xml.data.title

    Change it to var list: XMLList = xml. IMAGE;

    (3) loader.load (new URLRequest (list [0] m:System.NET.SocketAddress.ToString (()));

    (4) also this line is suspicious: this ["holder_mc" + 0] .addChild (loader)

    Why not just say: holder_mc0.addChild (loader)?

  • Access to the button inside Movieclip/ScrollPane

    Hi all

    I'm trying to understand how to create a button inside a movieclip.  I have a model that has movieclips in movieclips, and when I create a button (while using AS2) the button works if I test the stage, but in the whole flash movie it does not work.  I have also a few buttons inside a ScrollPane who also do not call correctly.

    I use this code for my button:

    facebookbtn.on (release) {}

    getURL ("http://www.facebook.com/", "_blank", "GET");

    }

    ↑ This is placed on the button "facebookbtn". I also tried to use: _root.bgPages.pg1.facebookbtn.on (release), does not.

    For the one inside a ScrollPane I try to call a javascript function:

    {We (Release)}

    to import flash.external.ExternalInterface;

    ExternalInterface.call("saveglobalscore",score) ("GroupDelegate", "dayone1");

    }

    ↑ This does not work, with or without the name of the button before it (release).

    I put the FLA here so that if someone has the time, could help me with this problem quickly. Thank you!

    FLA: download FLA

    Different code depending on how you assign it. what you show seems to be mixing up both ways...

    If you place this code on the button, use:

    on (release) {}

    getURL ("http://www.facebook.com/", "_blank", "GET");

    }

    If you place this code in the script that contains the button, do not forget that you gave this name of the instance to the button (in the properties, not the library panel), and then copy the following code:

    facebookbtn.onRelease = function() {}

    getURL ("http://www.facebook.com/", "_blank", "GET");

    }

  • I was not able to open my my Adobe Illustrator application after update. He says there are a few problems with the preference but after following the instructions, Illustrator still does not work and it keeps giving the samei question. Help, please.

    I was not able to open my my Adobe Illustrator application after update. He says there are a few problems with the preference but after following the instructions, Illustrator still does not work and it keeps giving the samei question. Help, please.

    I think you are talking after upgrade to CC 2015 you're not able to launch I. Also, I believe you speak for read only matter of preference.

    After following the instructions please do not launch Illustrator and check your file preference if the permissions have been set correctly. A good way would be to get inside the preferences folder and then try to create a file manually. If it succeeds, please write to [email protected]

    A few external links to help you set permissions:

    MAC

    OS X Yosemite: set permissions for items on your Mac

    WIN

    Set, view, change, or remove permissions on files and folders

    r-and-file-permissions/465f2b42-63dd-4486-8dd1-c870290efeed http://Answers.Microsoft.com/en-US/Windows/Forum/windows_vista-Files/How-do-i-change-folde

    Kind regards

    Ashutosh

  • Need to 'margins aside"to restrict the movement of the movieclip that follow mousee

    I like to keep the movement from left to right my movieclip that follows the mouse restricted within a 'margin' (excuse my not knowing the technical term if there is one) so it remains inside 75 pixels to the right and left side of the edge of the stage and does not go beyond.

    Here is my code:

    mouse_x = _xmouse;

    setProperty (_root.hand_mc, _x, mouse_x + ((getProperty(_root.hand_mc,_x)-mouse_x) / 2));

    Thanks to anyone who takes the time to read this. This forum is GREAT!

    in fact, the code is meaningless since your specifications are meaningless.  This movieclip is unable to be at the near left and right margins.  Did you mean you want this movieclip edges limited to not less than 75px on the scene?  that would be wise and you can use:

    this.onEnterFrame = f;

    function f() {}
    _root.hand_mc._x = (_root.hand_mc._x+_xmouse)/2;
    If (_root.hand_mc._x<75)>
    _root.hand_mc._x = 75;
    } ElseIf (_root.hand_mc._x > Stage.width - 75 - _root.hand_mc._width) {}
    _root.hand_mc._x = Stage.width - 75 - _root.hand_mc._width;
    }
    }

  • I'm following Firefox for XP Help on 'Clear cache and cookies.' When I opened Firefox &amp; follow the steps in the help (click on history, tools, etc.), these aren't active links. I'm clicking on a help screen; No actions are performed. ???

    (On the desktop) When I opened Firefox & follow the steps in the help (click on history, tools, etc.), these aren't active links. I'm clicking on a help screen; No actions are performed. Cache and cookies are not deleted.

    Make sure that you are not Firefox running in permanent private browsing mode.

    To view the history settings and cookies, choose:

    • Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
    • Uncheck the box: [] "always use the navigation mode private.
  • I get a notification that is not activated my Windows Defender. I don't know of any other way to turn this other than to go to 'Options' and following the instructions to turn on. Can you help me please?

    I continue to be notified that my Windows Defender is not lit despite me following the instructions to turn it on in 'Options'
    Someoned can you please tell me how to keep lit?

    Hello

    What is display / causing the error message? Some anitvirus/security/antispyware products can cause this error.
    On who you use INCLUDING all that you had never even these uninstalled (leftovers can cause
    Questions). McAfee as below is just an example of those who do this.

    Start - type in the search box - Services - find top - Right Click - Run as Admin

    Windows Defender - value STARTED and AUTOMATIC

    or set MANUAL and STOPPED if necessary

    Fix for the problem of 800106ba.
    http://support.Microsoft.com/kb/931849

    McAfee-error report
    http://service.McAfee.com/faqdocument.aspx?ID=TS100610&lang=en_US&prior_tid=2&AnswerID=16777216&Turl==http://KB.McAfee.com/InfoCenter/index?page%3Dcontent%26id%3DTS100610%26actp%3Dsearch

    Check also:

    http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/574fb871-034C-4B42-B800-328af16a9177

    How to enable or disable the Windows Defender
    http://www.Vistax64.com/tutorials/93118-Windows-Defender-off.html

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • can someone help with the following code plsql errors...

    Hello

    If anyone can help with the following code... to get a successful outing.

    create or replace package lib_01 as

    procedure lib_proc01 (p_user_id in numbers, p_user_name in varchar2);

    end lib_01;

    create or replace package body lib_01 as

    procedure lib_proc01 (p_user_id in numbers, p_user_name in varchar2) as

    number of v_user_id;

    v_user_name varchar2 (50);

    number of v_avl_books;

    number of v_avl_days;

    date of v_end_date;

    date of v_return_date;

    Start

    dbms_output.put_line ('Enter User Name');

    dbms_output.put_line (' username :'|| p_user_name);

    Select user_id, user_name in v_user_id v_user_name of user_registration where user_name = p_user_name;

    If v_user_name <>p_user_name then

    dbms_output.put_line (' username is not.) Please submit full name ');

    end if;

    If v_user_id is null or v_user_name is null then

    dbms_output.put_line ("' user not found");

    validate_userLogin;

    on the other

    validate_issuedbooks (p_issuecount);

    end if;

    If v_issuecount < v_avl_books then

    issuebooks;

    on the other

    Number of return of late_fee (p_mem_id, p_extradays, p_latefee_total);

    end if;

    If paid_flag = "Y" then

    issuebooks;

    on the other

    dbms_output.put_line ("' book may be issued due to its maximum reached late fees");

    end if;

    end lib_proc01;

    procedure validate_userLogin is

    procedure reg_proc is

    procedure user_validate (p_id_proof in varchar2, p_id_no out varchar2) is

    v_id_proof varchar2 (20);

    v_id_no varchar2 (20);

    Start

    Select user_name, id_proof, id_no, v_user_name, v_id_proof, v_id_no of user_registration where id_proof = p_id_proof;

    If v_id_proof = "Adhar_Card" then

    dbms_output.put_line ('user a valid proof of ID');

    dbms_output.put_line (' and the id no. :'|| is p_id_no).

    on the other

    dbms_output.put_line ('Invalid ID evidence.) Please submit valid proof of ID ');

    end if;

    exception

    When no_data_found then

    dbms_output.put_line ('No Data found');

    end user_validate;

    procedure member_validate (p_mem_id series)

    v_mem_flag char (1);

    curr_date date: = sysdate;

    date of v_mem_enddate;

    Start

    dbms_output.put_line('Mem_flag:'|| v_mem_flag);

    Select mem_flag in the v_mem_flag of user_login where user_id = v_user_id;

    If v_mem_flag = 'n' or v_mem_flag is null then

    dbms_output.put_line ('The User do not have membership');

    on the other

    Select mem_id in the v_mem_id of user_login where user_id = v_user_id;

    dbms_output.put_line ('the user has membership');

    v_mem_id: = p_mem_id;

    Select mem_enddate in the member_login v_mem_enddate where mem_id = v_mem_id;

    If v_mem_enddate < curr_date then

    dbms_output.put_line ('Membership has expired' | v_mem_id |' on ' | v_mem_enddate);

    on the other

    dbms_output.put_line ('User a validity again' | v_mem_enddate);

    end if;

    end if;

    exception

    When no_data_found then

    dbms_output.put_line ("' no data found");

    while others then

    dbms_output.put_line (' another error.) Please find");

    end member_validate;

    Start

    insert into user_registration values ('& first_name ',' & last_name', null, ' & user_type',)

    address_ty ("& bldg_no",

    '& bldg_name',

    '& Street',

    ' & city ",

    '& State',

    '& zip'

    ),

    user_phone ',' & user_mail ',' mem_idproof', ' & id_no');

    Dbms_output.put_line ('user is properly registered');

    exception

    When no_data_found then

    dbms_output.put_line ("' data not found");

    end reg_proc;

    Start

    Dbms_output.put_line (' enter ID or user name ');

    Dbms_output.put_line (' username: ' | p_user_name);

    If v_user_name is null then

    Dbms_output.put_line ('user not found');

    reg_proc;

    Insert user_login SELECT user_id_seq. NEXTVAL, user_name, NULL, mem_id_seq. NEXTVAL, user_type FROM user_registration WHERE user_name is lower (p_user_name);

    Dbms_output.put_line (' because the user wants to have the membership? ");

    Dbms_output.put_line ('If Yes, please pay dues");

    INSERT INTO member_login SELECT mem_id_seq. CURRVAL, SYSDATE, SYSDATE + avl_days, 500, 'Y' of user_login ul, bl book_loan WHERE ul.mem_type = bl.mem_type AND user_name = p_user_name;

    END IF;

    exception

    When no_data_found then

    dbms_output.put_line ("' no data found");

    When too_many_rows then

    dbms_output.put_line (' too many lines).

    END validate_userLogin;

    procedure validate_issuedbooks (p_issuecount series)

    number of v_issuecount;

    Start

    Select user_login u, bl book_loan, avl_days, avl_books in v_avl_days, v_avl_books where bl.mem_type = u.mem_type and user_id = p_user_id;

    SELECT count (case when end_date < end return_date then p_mem_id) as invalidcount in v_issuecount from book_count where mem_id = p_mem_id;

    v_issuecount: = p_issuecount;

    dbms_output.put_line (' no. books that the user contains the :'|| p_issuecount);

    end validate_issuedbooks;

    procedure issuebooks is

    procedure book_avl (p_avl_now_flag in p_avl_date Boolean, date) is

    v_avl_now_flag char (1);

    date of v_avl_date;

    procedure reader_bookissue is

    Start

    insert into values drive (p_user_id, v_book_id, sysdate, sysdate, null);

    insert into book_count values(p_mem_id,v_book_id,sysdate,sysdate,null);

    Update book_availability set issued_to is "Reader" where book_id = v_book_id;.

    end reader_bookissue;

    Start

    Select book_name, b.book_id avl_now_flag v_book_name, v_book_id, v_avl_now_flag of the book b, book_availability b where b.book_id = ba.book_id and ba.book_id = p_book_id;

    If v_avl_now_flag = "Y" then

    dbms_output.put_line ('the book is available for issuance' | v_book_id);

    on the other

    Select mem_type in the v_mem_type of user_login where user_id = (select user_id from book_availability where avl_now_flag = 'n' and book_id = p_book_id);

    If v_mem_type = "Reader" then

    reader_bookissue;

    dbms_output.put_line (' the book is with Reader.) Please try tomorrow.') ;

    on the other

    dbms_output.put_line ('the book is member');

    end if;

    Select avl_date in the book_availability v_avl_date where book_id = p_book_id;

    v_avl_date: = p_avl_date;

    dbms_output.put_line (' the available date is: ' | p_avl_date);

    end if;

    end book_avl;

    Start

    insert into book_count values(p_mem_id,p_book_id,sysdate,sysdate+v_avl_days,v_return_date);

    Update book_availability set book_id = p_book_id, avl_now_flag = 'n', avl_date is to_date (sysdate + v_avl_days,' dd-mm-yyyy ""), issued_to = v_mem_type, user_id = p_user_id where mem_id = p_mem_id;

    commit;

    dbms_output.put_line ("' the book published successfully");

    end issuebooks;

    Number of function return late_fee (p_mem_id in number, p_extradays series, p_latefee_total number) is

    number of v_extradays;

    number of v_latefee_total;

    number of v_latefee_per_book;

    number of v_latefee_per_day;

    number of v_book_count;

    Start

    Select trunc (sysdate) - v_end_date in v_extradays from book_received where mem_id = p_mem_id and book_id = p_book_id;

    p_extradays: = v_extradays;

    v_latefee_per_book: = v_latefee_per_day * v_extradays;

    v_latefee_total: = v_latefee_per_book * v_book_count;

    p_latefee_total: = v_latefee_total;

    dbms_output.put_line ('The total AMT for not returned books' | p_latefee_total);

    end late_fee;

    end lib_01;

    Hello

    I checked the first 10 lines after the beginning and I could count already several errors.

    Is it an exercise or a real code, you must provide?

    Kind regards.

    Alberto

  • I just got my 14 mailed items.  I have NO card or anything else.  I can't install it following the instructions online. I have no codes or numbers except the bar code.   Help, please.

    I just got my 14 mailed items.  I have NO card or anything else.  I can't install it following the instructions online. I have no codes or numbers except the bar code.   Help, please.

    Hello

    You can search the Redemption Code that would be a 24 digit alphanumeric code, you may have received or will need to get to the place where you buy first or Photoshop elements 14 and can access the following link to get the instructions to use the code to get the series license key to activate the product.

    Redemption code help

    If you're still having problems getting the series license key, you can contact Adobe customer service to get the license key of series.

    Contact the customer service

    You can also access the following link to download installers for first 14 elements or Photoshop elements 14 accordingly.

    Download Adobe Premiere Elements 14, 10, 11, 12, 13

    Download Photoshop Elements | 10, 12, 14, 11, 13

    Thank you.

  • I bought Acrobat Pro DC and followed the instructions download, but cannot find the link for the download. Help, please!

    I bought Acrobat Pro DC and followed the instructions download, but cannot find the link for the download. Help, please!

    Have you checked with link below?

    Download Adobe Acrobat products. Standard, Pro | DC, XI, X

  • How can I cancel my plan? I followed the steps recommended by Adobe, but when I click in 'manage plan' site does not work... Could someone help me, please?

    Hello

    How can I cancel my plan? I followed the steps recommended by Adobe, but when I click in 'manage plan' site does not work... Could someone help me, please?

    Hello

    Please contact adobe support https://helpx.adobe.com/in/contact.html?step=PHSP-PHXS_how-tos-troubleshooting_troubleshoo t_stillNeedHelp

    Thank you

    Jitendra

  • Help to copy the timeline of the movieclip on the stage of chronology for exporting .mov

    Hello

    I'm under Flash CS5 on a Macbook Pro, version 10.6.8.

    I'm trying to convert .swf to a .mov to an animation I created. I already tried the 'export' in Flash Basic options, but it exports only the "scene 1" first frame and not the real movieclip (648 images) I created which is placed in the scene 1.» Of after online videos / websites, I've gathered that I need to copy the movieclip on the stage 1 layers and then export that normally. While I can do (select the layer of the timeline of the movieclip, make a right click Copy frames and then paste this layer in scene 1), glued on the stage of the layers are out of the original (movieclip). Is there a quick way to move all layers in the timeline (frames) the scene 1 without losing their location on the stage? It is a fair way to export the movieclip in. MOV directly without messing with the parent stage 1?

    Thanks in advance!

    If you stretched it scenario main enough to show all the images in 645 and there not animate, implying that there are more nesting inside that you need to take into account. You'll need transform these MC incorporated into graphics so and stretch out them to full length.

  • Need help for the function "paste inside", please!

    Hello. I am an old user of Freehand drawing that needs to know how to accomplish the task of "paste inside" in Illustrator. I have a chart which I don't show that in areas where the other graph exists. I don't know how else to explain it. Help!

    Hi JBinReno,

    You can refer to a clipping mask. Say I want this image of a city to be included inside this rectangle sheared.

    Just select the form and image and choose object > clipping mask > make.

    To change the image inside the shape, just double-click on the graph and you can change "inside."

    What is the solution you're looking for?

    Michael

Maybe you are looking for

  • Update iOS 9.2.1 drains battery of 6, with

    Want to know how quickly Apple will release a fix for the problem of drainage of battery with the ios 9.2.1 update. Since the update my phone today, my battery drains very quickly. I can't sit and watch my percentage decline. Normally, I can spend 2

  • the application has encountered a problem and needs to close

    I build the LV, a request using the tabs, the FPGA dll and DLLs that communicate with devices CAN, GPIB, and PCI. The apears program to work properly, but sometimes and I can't see the patern, it crashes with the error "the application has encountere

  • Windows Update fails to install

    every time I run windows update tells me that I have 11 important updates. I tried all 11 at one point, I tried two or three little at a time, I tried one at a time. Whenever they do not and the box of solution of the problem that appears gives me 1

  • My cl 1053 DV6 has installed bluetooth. If so, how do I turn it on?

    My laptop is a few years old. I recently bought a bluetooth headset and want to use it. In the Panel, I found Windows bluetooth but by clicking on "add a device" does not bring one of my blue tooth devices. Is anyway to confirm if I should have a fac

  • Why can't my Flash drive for readyboost?

    I tried a whiff of 221 mb usb flash drive so it says the size of the unit must be greater than 256 MB and then I tried a whiff of 3.5 GB usb flash drive, but he said that the device does not have the performance characteristics required for use in sp