Use variables in the names of MovieClip to call ASP 3.

This line of code works very well for me:

this.helpB1Btns.helpB1B3.alpha = 0.3;

But I wonder how can I use variables instead of numbers (1 and 3) above?

I mean for example:

var i: int = 1;
var j: int = 3;

This ["helpB" + i + "BTNS.helpB" + i + "B" + j + '.alpha'] is 0.3;. Error
["helpB"+ i + "Btns.helpB" + i + "B" + j +".alpha '] = 0.3; Error
This ["helpB" + i + "Inclinometer"]. ['helpB' + i + 'B' + j ".alpha"] plus 0.3; Error

For example, this code works fine:

This ["helpB" + i "Inclinometer"] .alpha plus 0.3;

(this.helpB1Btns.alpha = 0.3 ;)

But I have no idea of this code:

this.helpB1Btns.helpB1B3.alpha = 0.3;

I appreciate your help or no matter what reference I could learn this basically?

yours,

Ali

use:

This ["helpB" + i + "Inclinometer"] ['helpB' + i + 'B' + j] .alpha = 0.3

Tags: Adobe Animate

Similar Questions

  • How to call the variables of the scene inside movieClips

    How to call the variables of the scene inside movieClips

    One way would be to use "MovieClip (root)" to target variables in the main timeline... MovieClip (root) .someVariable = someValue;

  • Sending the name of MovieClip as a function argument

    I have a form in Flash that contains twenty fields to form a pair of MovieClip.TextField. Each domain has a single parent MovieClip name and common name of TextField. On submission of the form, I want to write the data in each field in a table.

    Rather than writing the same loop if-else if-else for each field, I want to write a function that accepts the unique MovieClip name as an argument. Attached is a simplified version of my code. What I am doing wrong?

    Sorry... answer my own questions second after asking them. I had to pass the name of MovieClip as a MovieClip to the argument. See code attached.

  • make reference to a movieclip with a variable containing the name of the instance?

    There are a few occurrences of clip on the scene (not dynamically created at run time). Now, I want to do this:

    Use a variable to hold an instance name when running. then use this variable to point it to the reference clip.

    Problem: Assume that this variable is named "mc_ref". He is unable to use "_root.mc_ref" to designate the clip under the name of this mc_ref contains. It seems in this case takes flash 'mc_ref' as the instance name, and so looking for any child of that name. given that mc_ref itself is not a name, it will not work.

    is there something like MovieClipbyInstanceName function for this? Any thoughts? Thank you!

    you are confused. name of the variable and the movieclip should not be the same.

    Here are the correct ways to reference movieclips in flash:

  • Using variables for the AS2 function arguments

    Hello

    I am trying to create a function in AS2.

    After you create the function, I want to use the values stored in the variables specified for the arguments to the function instead of manually typing static values for the calculation of the service. Also, I want to use the function to assign a new value to the existing variable.

    I asked a similar question here 2 days ago and got the answer (thanks), but now I have another question - how to create the function to assign a value to the variable, the variable itself is also a function argument?

    For example, I have 6 numeric variables:

    var CoinA:Number = 10;
    var CoinB:Number = 20;
    var CoinC:Number;

    var CoinD:Number = 30;
    var CoinE:Number = 40;
    var CoinF:Number;

    Then I tried to create a function to assign values to the variables stuck and CoinF:

    function CalculationA(FirstCoin,_SecondCoin,_ThirdCoin):Void {}

    FirstCoin = SecondCoin + ThirdCoin;

    }

    CalculationA (stuck, CoinA, CoinB);
    CalculationA (CoinF, stuck, CoinF);

    The code above didn't really affect the values of 30 and 70 stuck and CoinF variables, but instead, stuck and CoinF values are undefined.

    Please give me the correct code if there is a good way to do this.

    Thank you

    Here's a way to do it, passing a string value with the name of the variable instead of the actual variable name...

    var CoinA:Number = 10;
    var CoinB:Number = 20;
    var CoinC:Number;
    var CoinD:Number = 30;
    var CoinE:Number = 40;
    var CoinF:Number;

    function CalculationA(FirstCoin,_SecondCoin,_ThirdCoin):Void {}
    This [FirstCoin] = SecondCoin + ThirdCoin;
    }

    CalculationA ('stuck', CoinA, CoinB);
    CalculationA ("CoinF", CoinD, person);

    (Note that in your second function call, I changed coins since CoinF (ThirdCoin) is not defined at this time).

  • Variable for the name of the database or server?

    Can we use the BI Publisher variables in a model of EBS?
    We are on 11.5.10.2 and we would be able to identify


    I'm <? xdoxslt:get_variable($_XDOCTX,'CURRENT_SERVER_NAME')? >, but it does not work. Is there a documentation on the variables that are available?
    We want to do in the model, rather than changing all of our programs of rdf to return the name of the database.


    Thank you
    Angie

    To be more precise, such set of values are available in 10.1.3.4.1 (stand-alone version) according to the documentation:
    http://download.Oracle.com/docs/CD/E12844_01/doc/BIP.1013/e14667/TOC.htm#BABIEJJI

    Not sure if it's available in XMLP however.

    In addition, if it is still he wouldn't return the name of the database. See if my previous suggestion might work for you.

    see you soon

    Jorge
    PS If you find the answer to your question please give the points and close the message

  • How to pass a string as the name of MovieClip?

    Hello world! I'm back with more doubts

    I created 4 buttons with 4 animations each, one for each State (using interpolations), so I have this list of 16 "addEventListeners" enourmous (do not know if there is another way to do it). But everything works as I want.

    The problem is that I am creating only 4 functions for dealing with all 4 keys and these 16 eventListeners.

    This is part of my file AS3 (always with the ' traces', 5 seconds of the animation to see animations and all).

    empresa_btn.addEventListener(MouseEvent.MOUSE_OVER, isOver);
    empresa_btn.addEventListener(MouseEvent.MOUSE_OUT, isOut);
    empresa_btn.addEventListener(MouseEvent.MOUSE_DOWN, isDown);
    empresa_btn.addEventListener(MouseEvent.MOUSE_UP, isUp);

    parceiros_btn.addEventListener(MouseEvent.MOUSE_OVER, isOver);
    parceiros_btn.addEventListener(MouseEvent.MOUSE_OUT, isOut);
    parceiros_btn.addEventListener(MouseEvent.MOUSE_DOWN, isDown);
    parceiros_btn.addEventListener(MouseEvent.MOUSE_UP, isUp);

    var mouseState:String;
    var mouseActive:String;
    var txt:String;

    empresa_btn.over.alpha = 0; empresa_btn.down.alpha = 0;
    parceiros_btn.over.alpha = 0; parceiros_btn.down.alpha = 0;

    function isOver (e:MouseEvent):void {
         mouseActive = e.currentTarget.name;
         mouseState = "isOver";
         trace (mouseActive + " " + mouseState);
         var isOver:Tween = new Tween(empresa_btn.over, "alpha", Strong.easeOut, empresa_btn.over.alpha, 1, 5, true);
    }

    function isOut (e:MouseEvent):void {
         mouseActive = e.currentTarget.name;
         mouseState = "isOut";
         trace (mouseActive + " " + mouseState);
         var isOut:Tween = new Tween(empresa_btn.over, "alpha", Strong.easeOut, empresa_btn.over.alpha, 0, 5, true);
    }

    Now, what I'm trying to do, is use the var 'mouseActive' which returns the names of right button inside the interpolation as the clips.

    The problem is that the 'e.currentTarget.name' is not the 'movieClip' itself... it is just a string with the name of the movieClip.

    Example: whenever I try to do something like this:

    var isOut:Tween = new Tween(mouseActive.over, "alpha", Strong.easeOut, mouseActive.over.alpha, 0, 5, true);

    It will return an error to the cause, as I said, mouseActive is not a clip, it's just a string (at least I think).


    Thank you already support (new)

    And mind to please my nickname

    Here's what I offer before raised the potential issue of button...

    Try:

    var mouseActive:MovieClip;

    function isOver (e:MouseEvent): void {}
    mouseActive = MovieClip (e.currentTarget) .more;
    mouseState = "isOver".
    trace (mouseActive + "" + mouseState); comment this out at the moment
    var isOver:Tween = new Tween (mouseActive, "alpha", Strong.easeOut, mouseActive.alpha, 1, 5, true);
    }

  • Using variables in the queries and dashboards

    Hi Freinz,

    I am using a prompt and dashboard based on the selection in the guests shud of data filled.

    I used the query variable line dashboard option and creates reference static variables of the administration.

    I created the 'green' variable and in the applications for the "VERTICAL" column, I put the variable as being of 'green '.
    It is the same value as I gave in the prompt variable set dashboard-> variable query.

    Guyz pls help me...

    Pls let me know the steps to follow.

    How shud I? the values in the row of dashboard applications /

    Thank you
    Veena

    In the report, create a filter of coming and going VERTICAL. In the filter creation, click on Add - Variable - presentation, now in the Expr variable name of the variable, the default value indicates no value for this PORTRAIT.

    Now, put your prompt and the dashboard report, test.

  • Using #WORKSPACE_IMAGES # with the names of dynamic list of Image, not to hardcode

    I hope someone can help me with this request.

    I am developing an Apex application but I am learning as I go along by examples of Google search and read the tutorials, etc.  I am trying to create a slideshow based on a dynamic list of Image names. First, I created an apex_collection in a header containing the names of the image process, I need (view/column APEX_COLLECTIONS. C001) I then created a Page called P81_IMAGE_NAME element. I'm trying to loop through the collection and display the pictures in a slide show.   I have a HTML Page with the following code in the Source of the region (found the code in an example online)... Please can someone tell me where I can add the following PL/SQL code so that #WORKSPACE_IMAGES # nom_image may contain the names of images dynamically recoveries rather then hard-coded image names as in the < div Section of the Source region - Code I want to add somewhere, don't know where it add or even if it will work

    Declare cursor c1 is

    Select c001

    of apex_collections

    where collection_name = "CO_IMAGES";

    Start

    A1 to c1 loop

    : P81_IMAGE_NAME: = c1. C001;

    < img src = "#WORKSPACE_IMAGES & P81_IMAGE_NAME" alt = "Slideshow Image" / >

    end loop;

    end;

    -End

    -The code which displays images, I found (Harcoded in the < div section)

    < script type = "text/javascript" >

    function slideSwitch() {}

    var $active = $("#slideshow IMG.active");

    If ($active.length == 0) $active = $("#slideshow IMG:last");

    This allows to take images in their order of appearance in the tag

    var $next = $active.next () .length? $active.next)

    : $('#slideshow IMG:first');

    Uncomment the 3 lines below to shoot images in random order

    var $sibs = $active.siblings ();

    var rndNum = Math.floor (Math.random () * $sibs.length);

    var $next = $($sibs [rndNum]);

    $active.addClass('last-active');

    $next.css ({opacity: 0.0})

    .addClass ('active')

    . Animate ({opacity: 1.0}, 3000, function() {})

    $active.removeClass ('active last active');

    });

    }

    {$(function()}

    setInterval ('slideSwitch()', 3000);

    });

    < /script >

    < style type = "text/css" >

    / * the value width and height to match your images * /.

    {#slideshow}

    position: relative;

    height: 400px;

    }

    #slideshow IMG {}

    position: absolute;

    top: 0;

    Left: 0;

    z index: 8;

    opacity: 0.0;

    }

    {IMG.active #slideshow

    z-index: 10;

    opacity: 1.0;

    }

    {IMG.last - active #slideshow

    z index: 9;

    }

    < / style >

    < div id = "slideshow" >

    < img src = "" #WORKSPACE_IMAGES #Logo.png "alt =" slideshow Image 2 "/ >" "

    < img src = "" #WORKSPACE_IMAGES #Logo1.png "alt =" slideshow Image 1 "/ >" "

    < img src = "' #WORKSPACE_IMAGES #2_Burg - 1.png" alt = "Slideshow Image 2" / > "

    < img src = "" #WORKSPACE_IMAGES #Car11.jpg "alt =" slideshow Image 3 "/ >" "

    < img src = "" #WORKSPACE_IMAGES #Screen1.png "alt =" slideshow Image 4 "/ >" "

    < / div >

    < / div >

    user8016921 wrote:

    Please update your profile of the forum with a recognizable user name: Video tutorial how to change username available

    Always include the information described in these guidelines when you post a question: How to get the answers from the forum

    I am developing an Apex application but I am learning as I go along by examples of Google search and read the tutorials, etc.  I am trying to create a slideshow based on a dynamic list of Image names. First, I created an apex_collection in a header containing the names of the image process, I need (view/column APEX_COLLECTIONS. C001) I then created a Page called P81_IMAGE_NAME element. I'm trying to loop through the collection and display the pictures in a slide show.  I have a HTML Page with the following code in the Source of the region (found the code in an example online)... Please can someone tell me where I can add the following PL/SQL code so that #WORKSPACE_IMAGES # nom_image may contain the names of images dynamically recoveries rather then hard-coded image names as in the

    Depends on the number of images. How are they involved?

    With a small number (e.g. 10-20), you can simply use a page element to register the handset img reference items and she as a substitution string in the region existing HTML. For more information, it would be preferable to use a report.

    On the approach of page element:

    1. create the point P81_IMAGES of the page as an element of the display only. The value of the Condition Never element so it is not included in the rendered page and the security attribute point escape special characters No.

    2. create a page process before header (sequenced to run once the collection created if that is done at this point in the process):

    begin
    
      :p81_images := null;
    
      for img in (
        select c001 src
        from apex_collections
        where collection_name = 'CO_IMAGES')
      loop
        :p81_images := :p81_images || 'Slideshow Image '
      end loop;
    
    end;
    

    3 refer to the value of the element in the HTML source of the region

    
    
    
    
    
    &P81_IMAGES.
  • How to use variables in the report?

    Hello all,.
    I'm new to PlSql. Please bare with me.

    I have a report that runs on SSRS.
    Here is what I need it to do:

    When the report is run:
    1st of the month: it pulls the data from the previous months.
    16th of the month: from the 1st of the current month to 15.

    I am trying to use a case statement to find the right date and then use this value to ReportDate.
    ReportDate is a column in the database.

    -Find the 1st of the month
    SELECT
    CASE
    WHEN SYSDATE > last_day (add_months (SYSDATE-1))
    AND SYSDATE < last_day (add_months (SYSDATE,-1)) + 2
    THEN
    ReportDate = last_day (add_months (SYSDATE-2))

    ON THE OTHER
    SYSDATE
    END ReportStartDate,

    With the help of 10G.
    Again, I'm pretty new to this, so go easy. Let me know if I can provide any other details.

    Hello

    Welcome to the forum!

    1009545 wrote:
    Hello all,.
    I'm new to PlSql. Please bare with me.

    Certainly not! Isn't this kind of a site!
    Did you mean "Please * bear * with me?"

    I have a report that runs on SSRS.
    Here is what I need it to do:

    When the report is run:
    1st of the month: it pulls the data from the previous months.
    16th of the month: from the 1st of the current month to 15.

    What happens if it is running on another day of the month?
    The query below uses leans on the previous month when it circulates at any time from 1, in the 15th day of the month, inclusively and leans on the 1st to the 15th of the current month when run 16 or later.

    I am trying to use a case statement to find the right date & then use this value to ReportDate.
    ReportDate is a column in the database.

    -Find the 1st of the month
    SELECT
    CASE
    WHEN SYSDATE > last_day (add_months (SYSDATE-1))

    ADD_MONTHS (SYSDATE-1) will always be some time this month, then
    LAST_DAY (ADD_MONTHS (SYSDATE-1) will also be the previous month, but)
    SYSDATE is always in the current month,
    SYSDATE > ADD_MONTHS (SYSDATE-1) will always have the value TRUE.

    AND SYSDATE< last_day(add_months(sysdate,="">
    THEN
    ReportDate = last_day (add_months (SYSDATE-2))

    It's 2 months in the past. Are you ever interested in this old stuff? Areen can't you always interested in 1 months ago, or the current month?

    ON THE OTHER
    SYSDATE
    END ReportStartDate,

    With the help of 10G.
    Again, I'm pretty new to this, so go easy. Let me know if I can provide any other details.

    Whenever you have a problem, post CREATE TABLE and INSERT statements for some examples of data and outcomes from these data.
    See the FAQ forum {message identifier: = 9360002} it only takes a few minutes to read and can really help you get the most out of this forum.

    I think you want something like this:

    WITH     period_of_interest     AS
    (
         SELECT     CASE
                  WHEN  TO_CHAR (SYSDATE, 'DD') < '16'
                                           -- should be '16' above.  See note
                  THEN  TRUNC ( ADD_MONTHS (SYSATE, -1), 'MONTH')
                  ELSE  TRUNC (             SYSDATE    , 'MONTH')
              END     AS period_start
         ,     CASE
                  WHEN  TO_CHAR (SYSDATE, 'DD') < '16'
                  THEN  TRUNC (SYSDATE, 'MONTH')
                  ELSE  TRUNC (SYSDATE, 'MONTH') + 16
              END     AS period_end
         FROM    dual
    )
    SELECT     ...
    FROM     table_x              x
    JOIN     period_of_interest  p  ON  x.transaction_date >= p.period_start
                          AND x.transaction_date <  p.period_end
    ;
    

    Period_end is a somewhat misleading name for the column; It's actually the first DATE after the end of the period; That's why I used < (and not < =) when compared to the x.transaction_date.

    I'm not sure what ReportDate is in your description. This is an example of timid, you must validate CREATE TABLE and INSERT statements for some examples of data. It could be that ReportDate is just what I called transaction_date above.

    Published by: Frank Kulash on June 3, 2013 16:55
    This site is falling out my code. It seens to think the in the first

    WHEN TO_CHAR (SYSDATE, 'DD') < '16'
    

    indicates a kind of markup and will not display the '16', even if I put it on a separate on its own line.

    Published by: Frank Kulash on June 3, 2013 17:09
    Used & lt; to correct the estrangement, after sentries below.

  • I have to use ".html" in the name of the link?

    I create individual pages with video for our customers. When I send the link to the page, I have

    must use 'www.website/filename.html '.

    Is there a way of only NO need to add the ".html" so that the link would be just

    'www.website/filename '.

    Also...

    I have a lot of pages on the site that are no longer used. Previous projects uploaded to the

    customer review. So now, I have about 30 sitting pages on my muse of ftp site that are no longer

    necessary. How can I get rid of them without screw it to the top of my Muse site?

    Hello

    I'm afraid, it is not possible to have the name of the page without the extension ".html" default Muse set the same extension to all pages you create.

  • Using variables in the command 'get-stat"powercli

    Hello

    I try to collect data via powershell and vsphere powercli I would like to pass several stat ID, both using variable that contains my ID stat list.

    (1) when I do this...

    Get-stat - entity (get-vmhost $host_id) - mem.active.average, sys.resourcecpuusage.average real-time stat - maxsamples 1

    ... It works very well

    (2) when I do this...

    $list = "mem.active.average".

    Get-stat - entity (get-vmhost $host_id) - stat $list - realtime - maxsamples 1

    ... It works fine, I can pass variables and so ID stat, one at a time.

    (3) when I do this...

    $list = 'mem.active.average, sys.resourcecpuusage.average '.

    Get-stat - entity (get-vmhost $host_id) - stat $list - realtime - maxsamples 1

    ... It does not work. PowerCLI returns... There is no entity the metric counter 'mem.active.average, sys.resourcecpuusage.average'...

    I do not understand where the problem is during the passage of variables, an idea?

    This should be

    $list = "mem.active.average","sys.resourcecpuusage.average"
    get-stat -entity(get-vmhost $host_id) -stat $list -realtime -maxsamples 1
    

    Must be an array of strings.

  • contact details and the names of movieclip

    Three questions:

    (1) say that I have a movieclip instance named myMC, positioned at 0,0 (according to the properties panel) but to get the _x, _y values in a script performance 40.40? (apparently, the central position)
    How to reconcile this discrepancy?

    (2) why does:

    trace (myMc._x);

    40, so this performance:

    currentmc = "myMC";
    trace (currentmc._x);

    undefined performance?

    (3) why can't the instances of movieclip named numbers? Well, technically, I can quote numbers, but then try to reference it in a script generates errors.

    Change the extension on your swf fla file and attach it to this forum.

  • Using variables in the interface

    Hello

    I have a variable which contains this statement: select max (ID) + 1 from table1
    In an interface I try to map the ID from table1 with this variable, but I still have the same error: violation of KP.

    I tried with a problem too but same sequence

    Hello

    I believe that this happens because of the following

    (1) your target T table has a PK/UK set on column ID.
    (2) variable in the select query is: select max (ID) + 1 t
    (3) to assume that select max (ID) + 1 t returns 5
    (4) now in the package you refresh the Variable, and it is up to 5 for all lines
    (5) 1st row insertion will work as ID column becomes a new value so no PK/UK breach
    (6) but 2nd, 3rd... .Nth line insert also get value from column ID 5! By thus breach PK/UK

    Thank you
    Fati

  • Using for example the names of the Variables

    Hello

    I hope someone can help me understand the right way to do it. Basically, I have extracts of film enclosed programmatically that are attached in a loop, so the only way I can refer to names of the Instance is using a variable. I want to do what I can attach a createTextField for each clip instead of _root, which is what I do now, for example I am tring to do this:

    for (i = 0; i < 5; i ++) {}
    Clip2 = _root.attachMovie("A","A"+i,{_x:coordx,_y:coordy});)
    Variable-which-is-named-("A"+i)-here.createTextField("_TEXT"+i,depth,coordx+5,coordy+5,40, 30);
    }

    I hope that makes sense? If someone can point me in the right direction I'm not having any luck with google searches

    Best regards
    Tom

    You can use either:

  • Maybe you are looking for