table and using them the command

Hey hope someone can help me stuck win.

I have this code

-Chars_Targets_Arrays-.

targets.push ("level1_Frame");

targets.push ("level2_Frame");

targets.push ("level3_Frame");

targets.push ("level4_Frame");

targets.push ("level5_Frame");

targets.push ("level6_Frame");

targets.push ("level7_Frame");

targets.push ("level8_Frame");

Char.push (ZIM);

Char.push (LAL);

Char.push (ODE);

Char.push (jiji);

Char.push (Dinky);

Char.push (OLI);

Char.push (kami);

Char.push (ALF);

-Hit_Test_Fuctions-.

stage.addEventListener (MouseEvent.MOUSE_MOVE, charMove);

function charMove(evt:MouseEvent)

{

addEventListener (Event.ENTER_FRAME, charCollision);

}

function charCollision(event:Event)

{

for (var i: uint = 0; i < targets.length - 1; i ++)

{

if (char [i] .hitTestObject (cursor))

{

char.splice (i, 1);

trace (targets [i])

targets.splice (i, 1)

}

}

return;

}

wut im trying to achieve is to have the first test of positioning to the top of the first target, then target second second test shot and so on, no matter which tank was hit tested first.

How can I achieve this?

THX pavel

You probably have a problem with having this still active ENTER_FRAME listener.  You need to do whenever it fires its function so that nothing else can trigger to play off.  Also, my first bit of the code should not have the code target.splice in it... I guess that I got confused between the two approaches.

If you return to the frame that has all this code that you started with, anything remove the tables of Ant is meaningless because every return to that frame adds back in the end of what is already there, so the berries grow rather than reduce.

What you should probably do is simply things until you get their functioning as desired.  Just have one or two characters and targets and logically manage what you are trying to accomplish at each stage of the treatment.  If these signs are present when you switch to other images, then you must disable the ENTER_FRAME listener until the return of this framework.

Tags: Adobe Animate

Similar Questions

  • Limiting the tables and using lindex in commands regexp

    Hello

    Here's my second and extremely crap question/post in what concerns the EEM/TCL.  I did some research on Google and have not really been able to find an answer to these questions.  Probably more due to my lack of agility with the search bar of the information being just is not there.  Hope you'll forgive me if.

    1. my first question is this.  Say I want to get an output of a command.  I would like to see all the interfaces in the 'ip vrf command show interface' for example.  Not knowing how many interfaces there may be, there could be 10, or there might be 200, what is the best way to limit a loop function after that I gave the following commands?

    Set _vrf_int [exec show ip vrf interface]
    Set _array_vrf_int [split $_vrf_int '\n']

    set $i 0

    then {$i< 200}="">
    RegExp {([A-Z]+[a-z]+[0-9]+). *} [lindex $_array_vrf_int $i] _complete_string _int
    Inc. $i 1

    }

    Not 100% sure that the syntax is correct, sorry.  If I don't have that 10 interfaces so it won't be necessary to issue this loop 200 times to "$_array_vrf_int".  Also wouldn't be great if I went through the 200 interfaces.  Is there a way I can limit this loop based on the number of lines that were captured after the split function?

    2. the value of the regular expression above is output in the var $_int.  Is there a way I can output the regular expression in a table? a ' :-

    RegExp {([A-Z]+[a-z]+[0-9]+). *} [lindex $_array_vrf_int $i] _complete_string [lindex $ $i _int]

    Syntax is certainly not correct, but I guess there could be a way to do this.  Any thoughts?

    3. I did some comparisons on an outing to see if an access list is present on an interface.  I can get a regexp to pull back the name of the access on a given interface list, but if there are any access-list to an if statement on anything?

    Set _acl_name 0

    RegExp {. * ip access-group (. *) in} $_running_int _complete_string _acl_name

    If {$_acl_name! = 0} {puts ' there is an access-list on $_int "} else {puts ' there is no acl on _int $ :-("} "}

    In the above output I'm defining the value of ' $_acl_name ' to zero so that I can compare it to the fi statement.  This seems to be a newbie to shit how do however.  Is it a kind of generic I put in place of the '0' to match an empty variable. has ' {null}.

    4 I'm sorry last question.  I also reset the variable {null} using a similar wildcard.  Once again I can reset the variable to 0, but it seems just that I do not understand that the syntax well enough and it is without doubt a better method.

    5. I have read several tutorials that cover a lot of bases.  Is there a good reference that anyone can suggest so I don't waste your time with these silly questions?  I'm afraid that the scripts I've studied on this forum are always way above my head.

    Thanks in advance

    Alex

    Assume that the limit of the loop.  Which will never end well.  Instead, use a foreach loop to iterate over the number of lines in the output:

    set vrf_int [exec "show ip vrf interface"]

    foreach line [split $vrf_int "\n"] {
      if { [regexp {([A-Za-z0-9]+).*} $line -> int_name] } {

    puts "Interface name is $int_name"

    }

    }

    In addition, do not use the variables that start with "_".  Those that are reserved for the Cisco or overall use.  In addition, 'exec' is a single command tclsh.  If you use the EEM Tcl, you will need to interact with the CLI library.  You can watch our best practices guide at https://supportforums.cisco.com/docs/DOC-12757 for some tips and tricks with the use of EEM.

    You can use - all and--inline for regexp all return in a list.  However, given the idea of the loop above, you can also use lappend to each pass:

    set intlst [regexp -all -inline {([A-Za-z0-9]+).*} $output]

    set vrf_int [exec "show ip vrf interface"]

    set intlst [list]

    foreach line [split $vrf_int "\n"] {
      if { [regexp {([A-Za-z0-9]+).*} $line -> int_name] } {

    lappend intlst $int_name

    }

    }


    You can use "info exist" or simply to check the result of your regexp command to see if a match took place.  See the example above the latter.

    regexp {.*ip access-group (.*) in} $_running_int _complete_string _acl_name

    if {[info exists $_acl_name]} {puts "there is a access-list on $_int"} else {puts "there's no acl on $_int :-("}

    You can 'reset' a variable by using the command 'deactivated '.

    One of the best general Tcl references is the "book of the pen:

    http://www.Amazon.com/practical-programming-Tcl-4th-Edition/DP/0130385603/ref=sr_1_2?ie=UTF8&QID=1333817448&SR=8-2

  • I have only 300 GB, I discovered that 32 of the tokk games up to 3.32 GB. Can I burn it to a DVD and use them like that?

    I have only 300 GB, like I had more but don't know how to do in this regard. I win a lot of Bigfish games, I discovered that 32 of the tokk games up to 3.32 GB. I have more than a hundred of their games I bought so I hate to remove them. Can I burn it to a DVD and use them like that?

    I may be possible. There are several factors that can stop the games run from a DVD.
    A better option for success would be to use a USB stick, but I'll be referring to DVD.
    The kind of games that you download big fish are more likely to be able to run from a DVD a lot of games. The best way to know is to burn on a DVD, but the process will be a little tricky when you burn the game to the DVD it will change the installation path (from C:\ to the drive letter of your DVD eg - E:\).
    You can try the following-
    -Copy the folder of games on DVD

    -Rename the folder the game is installed on the HARD drive. Just add a few letters before the name of the game, for example, Bejeweled to aaa Bejeweled.
    If the experiment fails, simply remove you the extra letters and plays the game.
    (a) - If you do this, you go back to the original name to uninstall the game if you want to later, and the Launcher of Big Fish (or what is called the Big Fish program) may have a problem when you rename the Games folder as well, so don't try to run the game from the Big Fish app to use a shortcut.

    -Make a new shortcut to the games .exe in the folder that you copied to the DVD. and see if the game will be launched from there.
    (a) you must always change the path on the new shortcut if it still reads
    the original location of the game is installed.
    To do this, you change the drive letter in the properties (R\Click on the shortcut)
    in the original example - C:\.  There are two places you need to do this-
    'Target' and ' start in '. If the name of the games is long, it may be easier to copy the
    'Target' in Notepad to reveal the path drive. You can change the path of the reader here and then copy and passed to the 'target' box in the properties of the shortcut.
    Do the same with "start in" if necessary.

    If you have a lot of video or music, then they would be more suitable for playing from a DVD.
    If you are running low on HARD disk space the best option is to install a second drive HARD a 500 GB HARD disk is cheap, better value for money than a USB key and easy to install.  There are many tutorials on the i-net for installation
    a HARD drive.

    .

  • To loop through the table and use the values returned in another query

    Hello

    I tried to do something very simple, but still can not.

    I am trying to iterate on a table and use each line of a column in a where clause to display a query clause.

    For example:

    I want to retrieve all users of dba_users pass it to a clause where clause in a query to show for example account_status and profile of each user. But I want to do it in a way if I can turn the result in an html table.

    I tried too much really, so I'll post something that does not work, but which I think will show the problem I have,

    BEGIN
     FOR i IN (SELECT username from dba_users order by 1)
     LOOP
     EXECUTE IMMEDIATE 'select account_status from dba_users where username like ''||i.username||''';
     END LOOP;
     END;
     /
    

    Example of what I want to achieve:

    Suppose that there are two users, SYS, and SCOTT:

    USERNAME                       PROFILE                        ACCOUNT_STATUS
    ------------------------------ ------------------------------ --------------------------------
    SYS                            DEFAULT                        OPEN
    
    
    USERNAME                       PROFILE                        ACCOUNT_STATUS
    ------------------------------ ------------------------------ --------------------------------
    SCOTT                            DEFAULT                        OPEN
    

    Thanks in advance for your time,

    OD

    Hi Bill,

    Bill Citad kirjoitti:

    What a join or a sub query going to help me? honestly

    -- join
    select
      s.sql_id,
      h.loads_total
    from dba_hist_sqlstat h join v$sql s on (
      h.sql_id = s.sql_id
    )
    where rownum < 3
    ;
    
    -- subquery
    select
      sql_id,
      loads_total
    from dba_hist_sqlstat
    where sql_id in (
      select sql_id from v$sql where rownum < 3
    )
    ;
    
    -- correlated subquery
    select
      sql_id,
      loads_total
    from dba_hist_sqlstat
    where exists (
      select null from v$sql where sql_id = dba_hist_sqlstat.sql_id
    )
    and rownum < 3
    ;
    
    -- lateral inline view (12c)
    select
      s.sql_id,
      h.loads_total
    from dba_hist_sqlstat, lateral(
      select sql_id from v$sql where sql_id = h.sql_id
    ) s
    where rownum < 3
    ;
    
  • Can I use other Adobe ID instead of the Adobe ID, used for the command to install and activate the Photoshop CS6?

    Can I use other Adobe ID instead of the Adobe ID, used for the command to install and activate the Photoshop CS6?

    Thank you

    Only ID authorized to use the software is the ID of the software license.

    Transfer an Adobe product license

  • How can I change text size and point via the command prompt?

    I want to create a script that will allow me to easily change to or from my TV to my monitor. I know how to change the display, but I don't know how I can change the size of text and point via the command prompt (that is, from 100% to 150%). Does anyone know how?

    Unfortunately, you can not.  In addition, change the DPI requires reboot (or logout and back).  But you can apply a different theme, that you can call from the command just by opening the .themepack file.  Since themes can control the size of some elements of the police who might do the trick you are looking for.

  • I used to work with Interbase and Firebird and used databases the keyword "domain". I am now switchig to Oracle as a primary database and would like to find an alternative appropriate "domain" in Oracle, as it appears he does ' t taken in charge the stand

    I used to work with Interbase and Firebird and used databases the keyword "domain".

    I am now switchig to Oracle as a primary database and would like to find a suitable

    Variant of 'area' in Oracle such that it appears he does ' t support the standard SQL syntax.

    for example:

    Create the int2 smallint field;

    create domain id2 int2 default 0 not NULL; / * for the primary key * /.

    create domain rel2 int2 default 0 not NULL; / * foreign key * /.

    I tried a couple of approaches to achieve this "area" is:

    1. create synonym - cannot be used with the basic types;

    2. create the type - type of work, but the implementation is rather clumsy

    and can be costly in terms of performance.

    Is there something else to Oracle that can emulate the feature "domain"?

    Thanks in advence, I got really approciate any help on this.

    Alex.

    Your best approximation is CREATE TYPE, but their is nothing of what is a 100% adjustment.

    For example, if you create a domain with a check constraint you need to implement than separately on each table.

  • Adding a few values for tab and use them in page

    I have an apex page that I want to use the same page for different tabs except that the query condition changes.

    Lets say, I have 3 tabs - Finance, sales, Marketing.

    I have a page which requests for the list of employees in a specific area (finance, sales, Marketing).

    I will eventually have 3 different types of queries, as below. The only change between them is the area.

    SELECT name, salary from employee where area = 'funding '.

    SELECT name, salary from employee where area = "sales";

    SELECT name, salary from employees where area = 'Marketing ';

    Is it possible to make my query in the following way to ensure that I get the TAB_ID of the value of the tab that I store.

    SELECT name, salary from employees where area is TAB_ID;

    What is the way to store one or more values of the TAB and use them in queries for a page.

    Your help is appreciated.

    Thank you

    user756931 wrote:

    Please update your forum profile with a real handle instead of 'user756931 '.

    I have an apex page that I want to use the same page for different tabs except that the query condition changes.

    Lets say, I have 3 tabs - Finance, sales, Marketing.

    I have a page which requests for the list of employees in a specific area (finance, sales, Marketing).

    I will eventually have 3 different types of queries, as below. The only change between them is the area.

    SELECT name, salary from employee where area = 'funding '.

    SELECT name, salary from employee where area = "sales";

    SELECT name, salary from employees where area = 'Marketing ';

    Is it possible to make my query in the following way to ensure that I get the TAB_ID of the value of the tab that I store.

    SELECT name, salary from employees where area is TAB_ID;

    What is the way to store one or more values of the TAB and use them in queries for a page.

    Assuming that by "tabs" you mean standard tabs and that the page contains a report of the region, so there is no way to do out of the box. Try to apply it using the standard tabs would hit two major obstacles:

    • He has no way of passing item values using tabs.
    • As all 3 tabs linking to the same page, they would be displayed under the current name of the page, which are strange and confusing.

    While it would be possible to work around this using the value ASK emanate a branch of each tab, and JavaScript, which would take you away from standard tab behavior, which is pretty weird, as is.

    Another possibility is to use the list rather than the standard tabs tabbed browsing, but which raise problems in integrating into the layout and navigation of the application structure.

    Therefore, I would propose two alternative approaches:

    1. by far the easiest way to implement this should forget the tabs and use a group of radio buttons or select list page to allow users to select the area, to include this item in the property Page to send Items of the region report and add dynamic action to refresh the report when the selection is changed. The report query would be:

    select
        e.name
      , e.salary
    from
        employees e
    where
        e.area = :p1_area
    

    In addition to being simple to understand and build, this has the advantage of being low maintenance and relatively future proof if the LOV which underlies the question of selection is dynamic and so automatically meets the future changes to the areas.

    2. If you are really determined to use tabs, then create 3 separate pages in finance, sales and Marketing with a tab for each, but locate the region report on an overall Page and display it conditionally on the necessary pages. The report query can then determine the desired area of the APEX_APPLICATION_TABS view by using the ID of the page to get the name of the associated tab:

    select
        e.name
      , e.salary
    from
        employees e
    where
        e.area = (select
                      aat.tab_label
                  from
                      apex_application_tabs aat
                  where
                      aat.application_id = :app_id
                  and aat.tab_page = :app_page_id)
    
  • locking and unlocking through the command, 'cacls' locked but not unlock

    Dear Firend I tried locking and unlocking through the command, "" D:\Murali/e/p everyone cacls: n ' "

    afterwards, while liberating, he said like that

    C:\Documents and Settings\yantra > cacls d:/Murali /e /c /p yantra:F
    ACCESS_DENIED: d:\Murali

    Please someone help me

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums:

    http://social.technet.Microsoft.com/forums/en/category/windowsxpitpro

  • The document has been changed since its creation and use of the extended functionality is no longer available

    I have Adobe Acrobat Reader DC 2015.016.20039 on my system. I filled a form using Foxit Reader. When I tried to open the form with Adobe Acrobat Reader DC I received the error "the document enabled extended in Adobe Acrobat Reader DC features. The document has been changed since its creation and use of the extended functionality is no longer available. Please contact the author for the original version of this document.

    I tried other PDF programs, no problem at the opening of this form.

    Ashampoo_Snap_2016.05.17_02h01m01s_002_.png

    Function "Activation reader" comes from the original shape, and it's essentially a digital signature. It is specific for the free product of Viewer PDF by Adobe (aka Adobe (Acrobat) Reader).

    The problem is that only Adobe products are able to (re) make these documents without breaking the seal of the digital signature.

    So, what happened in your case is the Foxit Viewer broke the seal during the recording of back and what's. Using Acrobat, you can save a copy of the form, and then continue will fill. Otherwise, you will be better off to start over, but stay with viewers Adobe PDF all the time, working with the form, or with a different Viewer, once again all the time you work with the shape.

    BTW, player XI and most recent no. have more need of extended for more rights blocked by previous versions of Reader. This is not enough in this case; only, it would be useful for the sender of the form.

    Update (after rereading of the original message): if it's just for viewing or print the form, you can ignore this message. You can also try to save just, you have a version of player who no longer has the rights extended (at your risk).

    I hope this can help.

  • I get the error message: 1 when you try to download the creative application of cloud. I tried rerun the installation and use of the cleaning tool. I can not uninstall and reinstall the app because there never have down loaded initially.

    I get the error message: 1 when you try to download the creative application of cloud. I tried rerun the installation and use of the cleaning tool. I can not uninstall and reinstall the app because there never have down loaded initially.

    Try with the solution provided in the link below:

    ERRO 1: Creative cloud cannot install

  • Extra charge for the installation and use of the Creative Suite programs on the cloud?

    Sorry to ask a question apparently REAL dumbell!

    Are there extra charges over-and-above the monthly fee of $49.99 for the installation and use of the Creative Suite programs on the cloud?

    The annual subscription of $49,99 sounds too good to be true. I saw that a recent price list where each individual progeam was $49.99? -Thanks for your help, IM

    Intallation and download Support is free for creative cloud.

  • Can I buy RoboHelp 8 licenses and use them on RoboHelp 7?

    Hi all

    We intend to obtain multiple licenses of Robohelp, and due to some problems with RoboHelp 8 (not in RH7), we plan to stick with Robohelp 7.

    Is it possible to buy Robohelp 8 licenses and use them on Robohelp 7? Or buy directly of Robohelp 7?

    Thank you very much in advance for your answers

    Valerian

    I think you need to talk to Adobe Volume licenses for it.

  • May 5 HR and 8 HR be installed and used on the same PC?

    We have several RoboHelp Office X 5 HTML and RoboHelp Office X 5 for Word projects that we manage, none of which are under version control.  We just bought RoboHelp HTML to 8.0 and I would use it with RoboSource Control 3.1.

    May 5 HR and 8 HR be installed and used on the same PC?

    Brian

    Hello

    Here's my setup. I've got RoboHelp HTML X 5, 6, 7 and 8 all laid out side by side and no one is throwing stones at each other.

    Just note that you cannot use 8 to edit an X 5 project then expect to still edit X 5 project later. 8 will change the files and makes it impossible to come back.

    See you soon... Rick

  • COMPARING TWO ROWS IN THE SAME TABLE AND DELETE THEM USING DELETION BLOCK

    Hi all
    I have a problem. I have an Employee table

    employee

    Emp_name Emp_id Emp_status Emp_date

    John 1 P 11-27-2010

    Mike 2 26/11/2010 S

    Simon P 3 22 / 11 / 2010

    Dennis C 4 25/11/2010...


    I compare the rows in the table and their employee_status if 'P', should I remove the... Here, I should delete lines 1 and 3 as their Emp_status is 'P '. I only use BULK DELETE... I tried to use the join query internal and deletion, but it does not work... Can someone help me...

    Ooops, it should be:

    and e2.emp_status in ('P', 'C')

    not

    and e2.emp_status in ('P', 'A')

    Here it goes:

    SQL> select  *
      2    from  employees
      3  /
    
    E EMP_NAME      EMP_KEY          X
    - ---------- ---------- ----------
    C John              123          1
    P Mike              123          2
    P Paul              123          6
    C Harry             124          5
    A Gass              125          7
    C Gass              125          7
    
    6 rows selected.
    
    delete  employees e1
      where 2 = (
                 select  count(distinct e2.emp_status)
                      from  employees e2
                      where e2.emp_key = e1.emp_key
                        and e2.emp_status in ('P','C')
                   )
    /
    
    3 rows deleted.
    
    SQL>
    

    SY.

Maybe you are looking for

  • How can I create spreadsheet with connection to a master spreadsheet?

    I created a main table and I need to copy this table, I need this table 2 are linked. How to do this?

  • Can not export from iMovie 10.1 running El Capitan

    Did anyone else having the problem following, having improved, iMovie 10.1 and OSX El Capitan? I was initially able to use iMovie very well, as before, but now it will not be exported to the file. I managed to reset it and export to file by clearing

  • Wireless pages paper and ink printer

    I have attached to my new laptop to wireless printer, and each print adds a statistical report on what has been printed. It does not in the usb connection. I don't have to waste paper or ink. I don't see that the fax report settings with scrolling wi

  • Installation of windows 8

    I have an Asus A8NE motherboard in a custom build computer and it is Windows XP and I want to level 8 and I have 2 questions about it. That one is there drivers and will he manage / take windows 8?I'll be able to install by buying a cheap re installa

  • Windows XP keeps hanging on the "application of the parameters of the computer" and won't start

    All of a sudden, one of our computers on our network starts. He remains stuck at the application of the computer settings. I tried to take the network cable and reboot and it ends up getting stuck on loading personal settings. I tried to start in saf