How to make reference to a function of stage?

Hello, I have a function in the document.compositionReady from the scene of the root event. I want to call a function and possibly change a variable to a symbol deep inside the composition. I tried to go the route of the "sym.getParent ()" and "sym.getComposition ()" but I can't figure out what that 'symbol' to 'get '. Any thoughts?

Thank you

CapnJ

Hey pyratej,

You must climb to the top of the display hierarchy for the extent of the scene, then call the function. So a deeply nested symbol, you can call a function of the stage, like this:

feature on Stage.compositionReady

sym.yourFunction = function() {}

Console.log ('yourFunction');

}

called from deeply nested symbol

sym.getComposition () .getStage () .yourFunction ();

Tags: Edge Animate

Similar Questions

  • How to make reference to a function object in a conditional statement?

    I currently have a conditional which looks like this:

    {if(!closeFunction)}
    this.removeEventListener (CloseEvent.CLOSE, closePopUp);
    }

    closeFunction is a: type of function and it works correctly, but I have this error warning?


    3553: function value used when the Object type is expected.  Maybe the parentheses () are missing after this function reference.

    Is there a better way to check if this feature is enabled or not?

    Try

    If (closeFunction is nothing)

    Gordon Smith

    Adobe Flex SDK team

  • How to make reference to a column name in the form report

    Hello
    How can I make reference to a column name in the form report. My problem is that "I have a form report that I have the column name when using click on the column name, it must get to the next page with the corresponding values of the column".

    Here, I realized that when I click on the name of the column (in page 1) it brings me to the next page (page 2). but in the next page (P2) I want to display (display only) the corresponding values of the column (page 1) selected, but the values are not editable and shouldn't be in the text box must be in display area.

    So, how can I write a SQL to display single source field. That is to say, how can I consult report form (page 1) in name column.

    Hello

    If you use the link in the column when you click on the need of the column value, you need to navigate to the next page and all the data accordingly select value here.

    Modify the report form and see the top of the page and click on report attribute.

    So now you have the attributes of the columns is to say what are the columns are available in the reports form.

    Click on change column what you need Ie the column when you click on its passage to the next page this column, for example, as mentioned in the previous post "Empname".

    Check the link column and give perspective of values according to your need and click on apply chages.

    Thank you & best regards
    Srikkanth.M

  • Apex 4.0: In the form of table: how to make reference to the elements?

    Hello
    I have a tabular layout with a certain query. A column in the query (say comm, is not displayed. This column is required in the table

    When a new row is added in the form of tables, I want to add a (complex) value for this column hidden by default.

    I want to add a process (before submitting) to the page.
    How can I make reference to this particular point?


    : P23_COMM: =...

    does not work. It is a column in the query, not a page element.

    Any help appreciated.
    Sincere friendships Erik

    Loop over the hidden PK table, identification of the new line (by finding with PK NULL table th eone) and assign the hidden item corresponding

    Assumung 01 is the primary key column table (use firebug to check this) and 05 is the hidden field

    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_F01.COUNT
      LOOP
         --Identify new rows
          IF ( APEX_APPLICATION.G_F01(i) IS NULL ) THEN
              APEX_APPLICATION.G_F05(i)  := 
          END IF;
      END LOOP;
    END;
    
  • How to make reference to the start state?

    Hello!

    I have two States in my Application: Start (State of Base) and connected (defined by myself).

    When I put the Application.application.setCurrentState ("logged") I put the State connected, but if I try:

    Application.application.setCurrentState ("start") that it does not work.

    How can I make reference to the start state?

    Thank you very much

    Hello

    To refer to the use of the base state:

    currentState = ";

    Kind regards

    Ivan Alexander PMP

    SR Application engineer.

    FlexAppsStore.com

  • How to make reference to a column name in the domain constraint

    When specify us a constraint check (for SQL Server) in a field, we need to enter an expression in the syntax, for example

    Len (Phone) > 7

    Later, the Modeler will exactly this expression in the SQL code. But it would be wrong as a constraint to refer to a column name in the table (which would not be 'phone').
    So, how to make the data name Modeler to a real column in the constraint domain?

    Hello

    Use the % COLUMN as a placeholder column name - len (%COLUMN%) > 7

    Philippe

  • how 'this.' reference in AS3 functions?

    In the days of good old AS2, it was pretty easy to make a simple function that when mouse over:

    this.gotoAndPlay (2);

    For a lot of different buttons that I wanted to do the same thing on mouse.

    Now, with the EventListeners being at stake, which obviously doesn't work as 'this' will reference my main movie.  So, how do I, in code if I had 10 movieclips and wanted CEC to gotoAndPlay (2) on their rolling individual would do this job without writing 10 different functions named each of them individually?

    Button1.addEventListener (MouseEvent.ROLL_OVER, onOver1);

    function onOver1(event:MouseEvent):void
    {
    Button1.gotoAndPlay (2);
    }

    Button2.addEventListener (MouseEvent.ROLL_OVER, onOver2);

    function onOver2(event:MouseEvent):void
    {
    Button2.gotoAndPlay (2);
    }

    etc... that can't be good.

    "This" refers to the timeline, as it is written.  If you have written your listeners in the scenario of the (internal) button, you can use 'this' to tell them where to go (assuming that they are used as buttons from movieclips)

    this.addEventListener (MouseEvent.ROLL_OVER, onOver1);

    function onOver1(event:MouseEvent):void
    {
    this.gotoAndPlay (2);
    }

    Otherwise, if you write them in the timeline containing the buttons, then you can write all the listener/function separated at sunset (as you started earlier), or assign them all event listeners individually and have them share a function...

    Button1.addEventListener (MouseEvent.ROLL_OVER, sharedHandler);

    Button2.addEventListener (MouseEvent.ROLL_OVER, sharedHandler);

    function sharedHandler(evt:MouseEvent):void {}

    event.currentTarget.gotoAndPlay (2);

    }

    (no idea why this is indented, but I can't cancel)

  • How to make reference to a packaged variable

    Hello

    I went through the forum where he mentions how to run a constant in a package. I want to refer to a variable declared in a package specification.
    CREATE OR REPLACE PACKAGE p1
    IS
    
    sDebugMode VARCHAR2(3) := 'ON';
    ....
    end;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    user8731258 wrote:

    I went through the forum where he mentions how to run a constant in a package. I want to refer to a variable declared in a package specification.

    CREATE OR REPLACE PACKAGE p1
    IS
    
    sDebugMode VARCHAR2(3) := 'ON';
    ....
    end;
    

    In order to use the PL/SQL variables (including global static variables), a SQL must be created with bind variables. This requires the use of PL/SQL itself. The following is valid:

    create or replace procedure GetFooCursor( cur out sys_refcursor ) is
    begin
      --// PL/SQL creates a SQL bind variable and bind it using
      --// the PL/SQL variable
      open cur for select * from foo_table where foo_switch = p1.sDebugMode;
    end;
    

    However, you cannot do the following using SQL only:

    SQL> select * from foo_table where foo_switch = p1.sDebugMode;
    

    The SQL engine must solve what '+ p1.sDebugMode +' means. The SQL engine do not support calling PL/SQL functions. He is able to look inside PL/SQL memory variables and access of the PL/SQL engine directly.

    So if you want the SQL engine to access this variable directly, you must create a PL/SQL function that returns the value of the variable. Which is not really a great approach:

    create or replace function SillyFunc return varchar2 is
    begin
      return( p1.sDebugMode );
    end;
    

    The following SQL code can then be used:

    SQL> select * from foo_table where foo_switch = SillyFunc();
    
  • How to make reference to the external SWF file using if statement?

    I have a main swf file that loads several external SWF file when the user clicks a menu button. Now I want to target a specific swf file to Add an extra library child or of another swf when this specific swf file is loaded. How should I do? What should I put in the stated case?

    ///////////////////////////////////////////////////////////

    var newswf:URLRequest = new URLRequest (".") ("/ swf /" + event.target.name + ".swf");

    Loader.Load (newswf);

    addChild (loader); dynamically load SWFs

    If (newswf == ".") ("/ SWF/pubResCHETNA.swf ') //error here

    {

    FC.buttonMode = true;

    FC.addEventListener (MouseEvent.CLICK, full screen);

    }

    function fullScreen(e:MouseEvent):void

    {

    var loaderF:Loader = new Loader();

    loaderF.load (new URLRequest ("PopupFullscreen.swf"));

    addChild (loaderF);

    }

    ////////////////////////////////////////////////////////

    The State must be newswf.url == the path. However I store event.target.name as a variable and use it in the State. You use "." for your path so the condition probably will always fail.

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • How to make reference to what has been activated in a TileList using an ItemRenderer

    Hello

    I have a Tilelist component and I use an ItemRenderer, which is a button.

    I do not understand how to refer to what the user has clicked. So, if the first tile (which is the first Explorer) is checked, how can I know that that an individual has been clicked.

    < mx:TileList

        id ="myTL"

    dataProvider="{myAC}"

    Width="400"

    Height="400"

    ='2' columnCount

    number of lines='2' / >

    < mx:ArrayCollection id="myAC">

    < mx:Array >

        <mx:Object id="first" label="1" />

        < mx:Object label="2" / >

        < mx:Object label="3" / >

        < mx:Object label="4" / >

    < / mx:Array >

    < / mx:ArrayCollection >

    ItemRenderer:

    "" < mx:Button xmlns:mx = "http://www.adobe.com/2006/mxml"

    Click = "Alert.Show ("this was clicked') '> "

    < mx:Script >

    <! [CDATA]

    import mx.controls.Alert;

    ]]>

    < / mx:Script >

    < / mx:Button >

    Thank you.
    -Laxmidi

    Hi Laxmidi,

    Using the itemClick event you can do this by using the event object. See the code example below:

    <>

    xmlns:MX ="http://www.adobe.com/2006/mxml" > ".

    Import mx.events.ListEvent;

    Import mx.controls.List;

    Import mx.controls.Alert;

    Import mx.events.ItemClickEvent;

    private function onItemClick(event:ListEvent):void

    {

    var strAlert:String = "line of the Index Clicked element:" + event.rowIndex + "\n"; "."

    strAlert +=

    ' Column Index Clicked element: " + event.columnIndex + "\n";". "

    Alert.Show (strAlert);

    }

    ]]>

    Click = "http://www.adobe.com/2006/MXML Alert.show" ( 'It was clicked') ">"

    Import mx.controls.Alert;

    ]]>

    You can also try this by writing the Click event on the button in the TileList as itemRenderer where you can easily access the itemClicked data easily using the data object.

    Thank you

    Jean Claude

  • How to make reference to a queried value?

    Hello!

    I have a master-detail page, but not using ViewLink (I got the time to mistake the first I tried to use it). What I need to do, is to query the secondary table based on the header_id (common column) in the main table, but the search criteria is based on another column. Then, when I asked a successful master, I need to refer to the master header_id column and use it as a parameter in the query of the secondary table. How do I do this?

    Thank you.

    "But you can get the handle to the line on an event so that you will have to create an event on the issue."

    Did you create the EVENT on any column in the header Table? If not, on what event you want to query the detail VO?

    -> "PressGoBtnEvent" I guess that's the event on your search area. If the query returns multiple lines and if you still want to view the details of the first line of header, and then use the methods vo.first () and getCurrentRow to refer to HeaderID.

  • How to make reference to a guest entry by the user

    I want to set up a different dynamic report according to the prompt value title which user has entered, how can I do?

    Thanks for your help!

    Hello

    You could use a Variable presentation and to refer to this variable in the title; http://download.Oracle.com/docs/CD/E12096_01/books/AnyUser/AnyUser_Requests11.html

    Good luck

    Daan Bakboord
    http://obibb.WordPress.com

  • How to make reference to the cantainer object

    Is there a way to refer to the object and other assets based on the position of the target

    var movies:Array = new Array({btn:btn_1,url:"cico.swf"},{btn:btn_2,url:"ianEastwood.swf"});
    
    for (var g:Number = 0; g< btns.length; g++) {
         movies[g].btn.addEventListener(MouseEvent.CLICK, menuClick);
    }
    
    function menuClick(evt:MouseEvent):void {
      eg.      trace(  (evt.target).container Object()    );
         
         
      eg.     trace(    ( (evt.target).cantainer  Object() ).url   );
    
    
    
    Ultimately this is what i want
    var ind:Number = movies.indexOf(the object in the array);
    trace (ind); // should be a number 
    
    
    
    }
    
    
    

    No object btn consists in movies.  It contains objects that contain objects btn.

    use:

    function menuClick(evt:MouseEvent):void {}

    for (var i: uint = 0; i<>

    {if (movies [i]. BTN is evt.currentTarget)}

    trace (i);

    breaking

    }

    }

    }

  • How to make reference to files or make a URLRequest to files

    I have a class that stores all related paths of .jpgs in an array as strings. (that works)

    He ended up giving me the underside of information stored in a table named "files".

    Try the path previously pending "file://" or "file:///".

  • How to make reference to the multidimensional array element?

    What should I change in the next statement in the dbms_output to display 'Ken' and avoid the error?

    Thank you
    -Ken
    create or replace type kja_person_name_rec as object
    ( pena_id number(10)
    , pers_id number(10)
    , pnty_cd varchar2(10)
    , first_nm varchar2(100)
    , family_nm varchar2(100)
    );
    /
     
    Type created
    create or replace type kja_person_name_tbl as table of kja_person_name_rec not null;
    /
     
    Type created
    create or replace type kja_person_rec as object
    ( pers_id number(10)
    , birth_dt date
    , person_names kja_person_name_tbl
    );
    /
     
    Type created
    create or replace type kja_person_tbl as table of kja_person_rec not null;
    /
     
    Type created
    declare
      l_person_name  kja_person_name_rec;
      l_person_names kja_person_name_tbl;
      l_person       kja_person_rec;
      l_persons      kja_person_tbl;
    begin
      l_person_name  := kja_person_name_rec( 1, 1, 'LEGAL', 'Ken', 'Anderson');
      l_person_names := kja_person_name_tbl( l_person_name);
      l_person       := kja_person_rec( 1, to_date( '1955-SEP-22', 'YYYY-MON-DD'), l_person_names);
      l_persons      := kja_person_tbl( l_person);
     
      dbms_output.put_line( 'l_persons(1).first_nm = '|| l_persons(1).person_names.first_nm);
    end;
    /
     
    declare
      l_person_name  kja_person_name_rec;
      l_person_names kja_person_name_tbl;
      l_person       kja_person_rec;
      l_persons      kja_person_tbl;
    begin
      l_person_name  := kja_person_name_rec( 1, 1, 'LEGAL', 'Ken', 'Anderson');
      l_person_names := kja_person_name_tbl( l_person_name);
      l_person       := kja_person_rec( 1, to_date( '1955-SEP-22', 'YYYY-MON-DD'), l_person_names);
      l_persons      := kja_person_tbl( l_person);
    
      dbms_output.put_line( 'l_persons(1).first_nm = '|| l_persons(1).person_names.first_nm);
    end;
     
    ORA-06550: line 13, column 80:
    PLS-00302: component 'FIRST_NM' must be declared
    ORA-06550: line 13, column 3:
    PL/SQL: Statement ignored
     
    SQL> 

    Hello

    Ken Anderson says:
    What should I change in the next statement in the dbms_output to display 'Ken' and avoid the error?

    Thank you
    -Ken

    create or replace type kja_person_name_rec as object
    ( pena_id number(10)
    , pers_id number(10)
    , pnty_cd varchar2(10)
    , first_nm varchar2(100)
    , family_nm varchar2(100)
    );
    /
    
    Type created
    create or replace type kja_person_name_tbl as table of kja_person_name_rec not null;
    /
    
    Type created
    create or replace type kja_person_rec as object
    ( pers_id number(10)
    , birth_dt date
    , person_names kja_person_name_tbl
    );
    /
    
    Type created
    create or replace type kja_person_tbl as table of kja_person_rec not null;
    /
    
    Type created
    declare
    l_person_name  kja_person_name_rec;
    l_person_names kja_person_name_tbl;
    l_person       kja_person_rec;
    l_persons      kja_person_tbl;
    begin
    l_person_name  := kja_person_name_rec( 1, 1, 'LEGAL', 'Ken', 'Anderson');
    l_person_names := kja_person_name_tbl( l_person_name);
    l_person       := kja_person_rec( 1, to_date( '1955-SEP-22', 'YYYY-MON-DD'), l_person_names);
    l_persons      := kja_person_tbl( l_person);
    
    dbms_output.put_line( 'l_persons(1).first_nm = '|| l_persons(1).person_names.first_nm);
    end;
    /
    
    declare
    l_person_name  kja_person_name_rec;
    l_person_names kja_person_name_tbl;
    l_person       kja_person_rec;
    l_persons      kja_person_tbl;
    begin
    l_person_name  := kja_person_name_rec( 1, 1, 'LEGAL', 'Ken', 'Anderson');
    l_person_names := kja_person_name_tbl( l_person_name);
    l_person       := kja_person_rec( 1, to_date( '1955-SEP-22', 'YYYY-MON-DD'), l_person_names);
    l_persons      := kja_person_tbl( l_person);
    
    dbms_output.put_line( 'l_persons(1).first_nm = '|| l_persons(1).person_names.first_nm);
    end;
    
    ORA-06550: line 13, column 80:
    PLS-00302: component 'FIRST_NM' must be declared
    ORA-06550: line 13, column 3:
    PL/SQL: Statement ignored
    
    SQL> 
    

    L_persons (1) .person_names is a kja_person_name_tbl. Kja_person_name_tbls is not first_nms; only kja_person_name_recs do.
    Near the end, instead of

       dbms_output.put_line( 'l_persons(1).first_nm = '|| l_persons(1).person_names.first_nm);
    

    Try

    dbms_output.put_line( 'l_persons(1).first_nm = '|| l_persons(1).person_names(1).first_nm);
    --                                                                   added  ^^^
    

Maybe you are looking for

  • . Video MP4 will not sync to iPad?

    I just created an Album containing several videos into pictures on my iMac. The videos are. MP4 format that I packed with a Canon camera. Then I synced my iPhone and iPad to my iMac via iTunes. Videos to sync and play fine on my iPhone. However, they

  • Downloading files over 2 meg are missing in Firefox but not Chrome or IE

    I have a problem when using Firefox to download files in cPanel and even in WordPress when adding themes or plugins. It will download WordPress plug-ins, but I think the point that it starts failing is when the plugin zip file is complete 2meg. It is

  • E-10: discharging the battery for the PC was off.

    HelloWhen my E-10 is fully charged the battery completely it self without the pc used in about 2 weeks.the pc is not on stanby it is via the start menu.Is this normal or has the pc or battery has been a mistake.Kind regardsgrimo1

  • Configure the module of firepower ASA IP address

    Hello today I tried to configure the IP address of the late ASA power module. But unfortunately I failed. The firewall is in the direction of the situation and also do have not any router on the LAN. So, I stop the management interface and configure

  • Facing problems with Windows Update and other performance issues.

    Hi, I have a Windows 7 (64 bit) for HP Pavilion dv6 laptop. Since January 5, 2014, my computer had problems. Windows Update stopped working. Whenever I try to run it, it says that the service is not running. When I try to set the agenda by running Mi