problem with z-index/layer

I have an animation Im trying to use a canvas file. I want to place it between the two previously placed in the foreground image and a background image. I tried to put the script in the middle layer of the timeline, this doesn't work. I then tried a Flash thing and put the script in a Movie Clip and put it in the middle tier, but that has not worked eithier. It seems to run/place the code at the highest level, and then something else is placed according to the layers animate? Is there a way set the animation to a certain level/hierarchy/layer?

Very Oy.

Look your particles are appearing on top of everything else because you're adding them directly to the root stage object. To make them appear under other things, you must add them to an object container instead. Just create an empty movieclip to the effect, place it on the stage at the desired depth and name. So instead of this:

stage.addChild (snow);

Follow these steps:

this.myParticleEffectContainer.addChild (snow);

In fact it's a little more complicated than that. For reasons that I'm cutting on at the moment, "this" functions declared in this way are defined in the object browser window, even if they have access to the variables in the local scope. You must set an alias from local to the container object. In addition, there is no reason to 'new' in front of the call to create_particles(). And some of your lines, missing the final semicolon. So basically, you use this:

var W = 300;
var H = 250;
var vx = Math.random() * -2 + 1;
var container = this.myParticleEffectContainer;
for (var i = 0; i < 50; i++) {
    create_particles();
}

function create_particles() {
    snow = new lib.Snow;
    snow.x = Math.random() * W;
    snow.y = Math.random() * H;
    snow.scaleX = snow.scaleY = Math.random() * .8 - .5;
    snow.vy = Math.random() * 1 + 2;
    container.addChild(snow);
    snow.addEventListener("tick", animSnow);
}

function animSnow(event) {
    event.target.y += event.target.vy;
    event.target.x += vx;
    if (event.target.y > 260 || event.target.x > 345 || event.target.x < -30) {
        event.target.y = -20;
        event.target.x = Math.random() * W;
    }
}

Tags: Adobe Animate

Similar Questions

  • problem with fn:index - of

    I have a problem with the xquery function fn:index - in :

    I can't detect what type he returned to follow the instruction:

    declare
    I have integer;
    Start
    Select XMLQuery ('fn:index - ((10, 20, 30, 30, 10), 20) [1] "content back) in I double;
    end;
    */ *

    And follow error has occurred:

    Error report:
    ORA-06550: line 4, column 18:
    PL/SQL: ORA-00932: inconsistent data types: expected NUMBER obtained -
    ORA-06550: line 4, column 3:
    PL/SQL: SQL statement ignored
    * 06550. 00000 - "line %s, column %s:\n%s"*.
    Cause: Usually a PL/SQL compilation error.
    Action:

    Thanks for the reply,
    Kind regards
    Anton.

    Hello

    XMLQuery returns an XMLType instance.
    You will need getNumberVal() method to retrieve the value as a number:

    declare
    i integer;
    begin
    select XMLQuery('fn:index-of((10, 20, 30, 30, 10), 20)[1]' returning content).getNumberVal() into i from dual;
    end;
    
  • Problem with an index

    Hello world

    I have a table with an index.

    Here is my script:

    CREATE TABLE MM_STAT_SCREEN (NO_EMIARTE VARCHAR2(12 BYTE), REASSEMBLY VARCHAR2(1 BYTE), CHANNEL NUMBER (1), DATE_AUDIENCE DATE, VARCHAR2(30 BYTE), PUBLIC DISPLAY NUMBER, FILLED CHAR (1 BYTE), DATE_MOD DATE, PERS_MOD VARCHAR2 (20 BYTE), EXTRACT NUMBER, VARCHAR2 (30 BYTE) PLATFORM NOT NULL) TABLESPACE STUBBORN RESULT_CACHE (DEFAULT MODE) PCTUSED PCTFREE, INITRANS 10 0 1 MAXTRANS 255 STORAGE (64 K INITIAL NEXT 1 M MINEXTENTS 1 MAXEXTENTS UNLIMITED 0 USER_TABLES FLASH_CACHE DEFAULT PCTINCREASE BY) DEFAULT CELL_FLASH_CACHE DEFAULT LOGGING) NOCOMPRESS NOCACHE NOPARALLEL SURVEILLANCE;

    CREATE INDEX MM_STAT_SCREEN_DATE_IDX ON MM_STAT_SCREEN (DATE_AUDIENCE) RECORD TABLESPACE STUBBORN PCTFREE, INITRANS 10 2 MAXTRANS 255 STORAGE (64 K INITIAL NEXT 1 M MINEXTENTS 1 MAXEXTENTS UNLIMITED 0 USER_TABLES FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT PCTINCREASE) NOPARALLEL;

    CREATE INDEX MM_STAT_SCREEN_NO_EM_IDX ON MM_STAT_SCREEN (NO_EMIARTE, REASSEMBLY) RECORD TABLESPACE STUBBORN PCTFREE, INITRANS 10 2 MAXTRANS 255 STORAGE (64 K INITIAL NEXT 1 M MINEXTENTS 1 MAXEXTENTS UNLIMITED 0 USER_TABLES FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT PCTINCREASE) NOPARALLEL;

    CREATE INDEX MM_STAT_SCREEN_PLATFORM_IDX ON MM_STAT_SCREEN (PLATFORM) RECORD TABLESPACE STUBBORN PCTFREE, INITRANS 10 2 MAXTRANS 255 STORAGE (64 K INITIAL NEXT 1 M MINEXTENTS 1 MAXEXTENTS UNLIMITED 0 USER_TABLES FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT PCTINCREASE) NOPARALLEL;

    CREATE A UNIQUE MM_STAT_SCREEN_UNIQUE ON MM_STAT_SCREEN INDEX (NO_EMIARTE, WINDING, CHANNEL, DATE_AUDIENCE, DISPLAY, EXTRACT, PLATFORM) RECORD TABLESPACE XENTETE PCTFREE, INITRANS 10 2 MAXTRANS 255 STORAGE (64 K INITIAL NEXT 1 M MINEXTENTS 1 MAXEXTENTS UNLIMITED 0 USER_TABLES FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT PCTINCREASE) NOPARALLEL;

    CREATE OR REPLACE MM_STAT_SCREEN FOR MM_STAT_SCREEN PUBLIC SYNONYM;

    GRANT DELETE, INSERT, SELECT, UPDATE ON MM_STAT_SCREEN TO GROUNDNUT.

    GRANT SELECT ON MM_STAT_SCREEN TO APIOS_CONSULT;

    When I make this request:

    Select * from mm_stat_screen WHERE NO_EMIARTE = ' 052734-000' AND WINDING = "A" AND CHANNEL 2 AND DISPLAY = 'MOBILE' AND DATE_AUDIENCE = TO_DATE('07/10/2014','DD/MM/YYYY') =

    AND EXTRACT = 1

    AND PLATFORM = "TVGUIDE";

    I can see explain plan, it uses the wrong index, it uses MM_STAT_SCREEN_PLATFORM_IDX instedad of MM_STAT_SCREEN_UNIQUE.

    If I run

    Select * from mm_stat_screen WHERE NO_EMIARTE = ' 052734-000' AND WINDING = "A" AND CHANNEL 2 AND DISPLAY = 'MOBILE' AND DATE_AUDIENCE = TO_DATE('07/10/2014','DD/MM/YYYY') =

    AND EXTRACT = 1;

    I use the clue MM_STAT_SCREEN_UNIQUE?

    Concerning

    OK, thank you very much Ajay.

    I'll removes the previous to stay with one.

    Good day.

    Kind regards.

  • Problems with the new layer

    CS6. Installed Cs6 on a laptop, when I have a mask layer and want a new layer (control / alt and j) but it creates the new layer with the previous layer mask. With my office (control / alt / j) creates the new layer (no layer mask)

    If all you want is the current contents of the layer, you will use three shortcuts... (Ctrl + A Ctrl + C Ctrl + V). Those who would choose the hidden of the currently targeted layer visible content. Copy the pixels selected in the Clipboard. Paste it into a new layer containing the copied pixels. You can use Shift + Ctrl + C, if you want that the composite of the layers visible or visible layers of timbre Shift + Alt + Ctrl + E.

  • Problem with context index

    Hello

    I have a situation with context index

    EMP table
    ID NAME DESC

    --------------------------------------------------------------------------------
    1 RK strange scenario is not running
    2 strange scenario SK running
    3 scenario MK Strange met!

    SELECT CONTAINS (DESC, 'scenario') st, id FROM EMP WHERE DESC like '% script % '.

    gives me

    St id

    --------------------------------------------------------------------------------
    0 1
    2 100
    3 100

    DESC column is of type varchar2.

    My question is how to get back the rules that have been laid out for CONTAINS behaves this way... I need to know the rules

    Thanks in advance!
    RK

    Published by: RK on February 21, 2012 08:22

    What a double wire?

    Text based searches

  • problem with displaying index RH11

    Hello

    I use RH11 Responsive HTML5 output 4 help make projects with layout theme2-_Government (in Dutch and French).

    All projects start correctly with the TOC pane open and overall indexfile displayed. Even my first indexsearch is OK.

    However, no respons with the second index only search because the program maintains, loading and loading... the securities index.

    All 4 projects have the same problem.

    What is going on? Thanks for your help!

    Paul

    Hello

    I know that in some situations, the table of contents is strange and somehow, that also affects the Index. Peter Grainge was an update for it and it can help you too.

    DOWNLOAD: ring of https://drive.google.com/a/wvanweelden.eu/file/d/0B97LY22mEkjqMEJOTFk5QzFFRnc/edit?usp=sha

    When you get out, go to model/scripts. Replace the file toctree.js with the file that you downloaded and see if that makes a difference. It did for me.

    Note: This file is not released by Adobe, so use at your own risk.

    Kind regards

    Willam

  • Problems with the indexing of the files on my hard drive

    Hello world

    I am a newbie to oracle and I try to index files from my hard drive with the oracle text. After that I created a simple text file (path: "c:\tmp\test.txt") and filled with a short text, I executed the following lines without error message:

    Grant connect, resources, myuser ctxapp;
    create table myuser.testtab (id number primary, key BFILE text);
    create or replace directory test_dir as "c:\tmp";
    grant read on the myuser test_dir directory;
    insert into myuser.testtab (id, text) values (1, BFILENAME ('test_dir', 'test.txt'));
    create index myuser.idx_test on myuser.testtab (text) indextype is ctxsys.context;

    the record in the table testtab is stored, but the index table is empty. After that I tried to get information on the bfile with java, I got a SQLException with the error ORA-22285 Code after you run the following lines:

    File of type BFILE = null;
    try {}
    RSet = stmt.executeQuery ("select text from testtab where id = 1");
    If (rset.next ()) {}
    file = (rset) .getBFILE (1) (OracleResultSet);
    System.out.println ("result from fileExists:" + file.fileExists ()); This is the line where the exception is thrown
    }
    } catch (Exception e) {}
    e.printStackTrace ();
    }

    I would be obliged for more information on this problem.

    Thanks in advance,
    Chris J.

    PS: I use Oracle 11.2 g on Windows 7

    I got your problem. Drop any directory, table and index. Log in as "myuser" and do all the things. See the demo below. Do not use the name of myuser.object during execution of the orders of 'myuser '.

    SQL> conn sys@xe as sysdba
    Enter password: ******
    Connected.
    SQL> create table hr.testtab(id number primary key, text BFILE);
    
    Table created.
    
    SQL> create or replace directory test_dir as 'c:\';
    
    Directory created.
    
    SQL> grant read on directory test_dir to hr;
    
    Grant succeeded.
    
    SQL> insert into hr.testtab (id, text) values (1, BFILENAME('test_dir','test.txt'));
    
    1 row created.
    SQL> ed
    Wrote file afiedt.buf
    
      1* create index hr.idx_test on hr.testtab(text) indextype is ctxsys.cont
    SQL> /
    
    Index created.
    
    SQL> select * from ctxsys.CTX_INDEX_ERRORS;
    
    ERR_INDEX_OWNER                ERR_INDEX_NAME                 ERR_TIMES
    ------------------------------ ------------------------------ ---------
    ERR_TEXTKEY
    ------------------
    ERR_TEXT
    --------------------------------------------------------------------------
    HR                             IDX_TEST                       31-AUG-10
    AAAEjaAABAAAKsKAAA
    DRG-50857: oracle error in drstldef
    ORA-22285: non-existent directory or file for FILEEXISTS operation
    
    SQL> conn hr@xe
    Enter password: **
    Connected.
    SQL> select * from CTX_USER_INDEX_ERRORS;
    
    ERR_INDEX_NAME                 ERR_TIMES ERR_TEXTKEY
    ------------------------------ --------- ------------------
    ERR_TEXT
    --------------------------------------------------------------------------
    IDX_TEST                       31-AUG-10 AAAEjaAABAAAKsKAAA
    DRG-50857: oracle error in drstldef
    ORA-22285: non-existent directory or file for FILEEXISTS operation
    
    SQL> conn sys@xe as sysdba
    Enter password: ******
    Connected.
    SQL> drop directory test_dir;
    
    Directory dropped.
    
    SQL> conn hr@xe
    Enter password: **
    Connected.
    SQL> create or replace directory test_dir as 'c:\';
    
    Directory created.
    
    SQL> drop table testtab;
    
    Table dropped.
    SQL> create table testtab(id number primary key, text BFILE);
    
    Table created.
    SQL> set serverout on
    SQL> DECLARE
      2   v_file BFILE := BFILENAME ('TEST_DIR', 'test.txt');
      3   BEGIN
      4   IF DBMS_LOB.FILEEXISTS (v_file) = 1 THEN
      5  DBMS_OUTPUT.PUT_LINE ('File exists.');
      6   ELSIF DBMS_LOB.FILEEXISTS (v_file) = 0 THEN
      7  DBMS_OUTPUT.PUT_LINE ('File does not exist');
      8  ELSE
      9   DBMS_OUTPUT.PUT_LINE ('Unable to test existence');
     10   END IF;
     11   END;
     12  /
    File exists.
    SQL> insert into testtab values (1,BFILENAME ('TEST_DIR', 'test.txt'));
    
    1 row created.
    SQL> create index idx_test on testtab(text) indextype is ctxsys.context;
    
    Index created.
    
    SQL> select * from CTX_USER_INDEX_ERRORS;
    
    no rows selected
    
  • .png transparency problem with the underlying layer control

    I have an opaque orange rectangle with a clear square cut uneven in it through which I display a slideshow (slide show Image Spry) and it works fine except that I can't control the slide show with my cursor. I can control the slide show very well when it is above the rectangle, but I want the cutting action as a frame on the top of the slide show.

    Transparency is the .png, similar to a sheet of glass? If so I can access the controller somehow through the "glass" with some added code?

    Hello

    You cannot place a 'sex' on the slideshow, as this 'layer', (what is an ap div?) then "will be the focus" above the slideshow and anything under this, (the slide show controls) will be selectable.

    You can program your own events in javascript handlers to control the slide show, but it will require you to have a reasonable understanding of javascript programming.

    PZ

  • Problem with priority of layer

    Hello!

    I have some information of programming, but I'm completely new to Flash from Adobe. I am a student and I came across a problem that I need help.

    The problem is this law of wrong layers when I discover the animation.

    I have 2 different layers for the first 5 seconds (12 fps) video. One of them contains a yellow rectangle that is in this context, the second layer is the title of the film.

    The problem is that title cannot be seen, because it's under the background. I don't know there is a way to make the 'title' of the layer appears above the layer "background".

    I guess the answer is rather trivial, but I couldn't find the solution yet.

    Thanks in advance.

    Post edited by: Xero_LK I forgot to mention that the program I use is Adobe Flash CS3 Professional.

    Place the layer that contains the heading above the background layer.

    (Drag and drop layers in the timeline);

  • Problems with PSD and layer imports

    HI, I am looking to import a PSD layers in Muse. Whenever I do the file names are not preserved and the layers cannot be unlocked individually

    screenshot: http://prntscr.com/6fvipb

    I have not create the original PSD so could there be a version conflict?

    Thank you very much

    An update is published today which includes the item name when importing PSD files with layers.

    Please upgrade to the latest version and check.

    Thank you

    Sanjit

  • problem with pdf black layer

    I have a pdf file, and every time I try to drag and drop in the new image, place it in the new image, copy and paste it into the new image or even zoom in and out he's twisting in strange checkarboard/puzzle where the image is out of use and crazy looking.

    Could you please post a screenshot with the relevant panels visible?

    Where this pdf file has been created? It contains vector?

  • Problem with CREATE INDEX script

    Hello world!
    I want to create a 3D Spatial Index. So I added a few lines (PARAMETERS ('sdo_indx_dims = 3')) in the following script, I get the error

    PLS-00103: encountered the symbol "SETTINGS" then wait for the following :), * & = - + <>.
    PLS-00103: encountered the symbol "SDO_INDX_DIMS" then wait for the following :), * & = - + <>.

    Everything works well, if I remove the PARAMETERS ('sdo_index_dims = 3').
    I know that I need a few symbols, but I'm not good in programming
    Thanks for the tips!

    -create spatial indexes
    --
    procedure create_index
    newIndex user_indexes.index_name%type;
    Start

    list_spatial_indexed_tables;
    -Find all tables containing columns and a corresponding line in user_sdo_geom_metadata
    - and without a spatial index
    for rec in spatial_index_cursor
    loop
    newIndex: = rec.table_name | '_RTREE_IDX ';
    Execute ('create index' | newIndex |) "on" |
    Rec.table_name | ' (' | rec.column_name |)
    indextype') is mdsys.spatial_index ('sdo_indx_dims = 3') SETTINGS ');
    end loop;

    list_tables_missing_sdo_data ("spatial index cannot be created");

    end create_index;

    Hello

    in a string, you must make to a single quote, two quotes, then do this:

    -- create spatial indexes
    --
    procedure create_index is
    newIndex user_indexes.index_name%type;
    begin
    
    list_spatial_indexed_tables;
    -- Find all tables containing spatial columns and a corresponding row in user_sdo_geom_metadata
    -- and without a spatial index
    for rec in spatial_index_cursor
    loop
    newIndex := rec.table_name || '_RTREE_IDX';
    run ('create index ' || newIndex || ' on ' ||
    rec.table_name || '(' || rec.column_name ||
    ') indextype is mdsys.spatial_index PARAMETERS (''sdo_indx_dims=3'')');
    end loop;
    
    list_tables_missing_sdo_data ('spatial index can not be created');
    
    end create_index;
    

    If the quotes to the parameters clause must be doubled.

    Herald tiomela
    Superconsult.nl

  • Problem with blocking text layer random black area

    So, I've created an animation of text where jumped in the text from left to right. When I integrate the composition of project folder, I work there is a black random cut that covers the screen and I don't know why.  It seems good in the original composition, why it's like this now?
    I have attached a screenshot so you can see what I mean.screenshot.jpg

    Impossible to know. This would require to look in before compositions.

    Mylenium

  • problem with z-index in IE6

    Hi all

    I have a drop down calendar menu. It works perfect in FF and IE7 but in IE6 calendar goes behind the drop-down list box.

    Screenshots:

    origin: -.
    http://img211.imageshack.us/img211/1267/63645043ux4.jpg

    Preview in IE

    http://img164.imageshack.us/img164/2663/39714160wz9.gif

    All thought in this regard is that popular :)

    Good luck!

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "thozhayan" wrote in message
    News:f6hj5h$iqj$1@forums. Macromedia.com...
    >
    > errrr... IE6...
    >
    > Thanks Murray

  • Problems with CHM search &amp; Index after you import the Word Document

    Greetings,

    I recently inherited from all things RoboHelp at work, but the last person to work with our projects left 6 months ago.  I received a brief overview of how our CHM files are from the same word in HR 7 HTML document.

    Currently, I use RoboHelp HTML 9, but have problems with the indexing and search of an imported file in Word 2003 (.doc) features.  During my import, only a single topic is created and named after the source document.  I believe that this may be the root of my problems, but have not had much luck with a solution.

    I have stumbled my way through adjustment after adjustment, but feel I'm missing something obvious.  Any help would be appreciated.

    Thank you

    Ken

    Background:

    Our source documents have a working table of contents and topic structure 1 - 3.  When creating a new project and import the document, the table of contents are imported correctly.  TOC navigation links seem to work fine.

    I used the smart Index Wizard to find new keywords to topic titles and the text of the topic.  Unfortunately it seems that import only creates a single, named subject according to the word source document and associates so all the keywords of the unique subject.  When you try to navigate the index after the CHM is generated, all the links reference just the beginning of the document.

    When you use the search functionality in CHM, only a single result is returned for any search words.  This result is always the only subject, as described above.  The link to the results always picks you up at the beginning of the document, but highlights the key word throughout the document.

    When you import there is an Advanced button in any of the dialog boxes. Click and you'll be able to Paginate against selected styles. That will stop your document in the headings.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

Maybe you are looking for