Using variable across layers

Hi
I am trying to use a file name which is in a variable in one
layer into another layer.
How can i do this . When I use the variable name as it is in
layer 1 i get this error
**Error** Scene=Scene 1, layer=content, frame=1:Line 4: ')'
or ','

can you post your code? Variables as far as i know are not
effected by layers. You should be having no problem, so i think
there is another problem besides it beeing on a seperate layer...
EDIT: Unless are you talking about flash movie layers? or
layers you load movies into :P..lol i just realized that i think i
misunderstood your question. lol

Similar Messages

  • Using variables across multiple pages...

    Hello all,
    I may have forgotten something very basic in my time away from php and MySQL, so please keep that in mind when reading this question.
    I have a page that has 5 links on it. Selecting one of the links would open a new page, which makes an SQL query to summon data specific to the link that was chosen.
    Instead of creating 5 succeeding pages, one for each link, I'd like to use one page. Based on the variable generated/created/assigned when a given link on the previous page is selected (for simplicity, clicking the first link would generate a 1...clicking the fifth link would generate a 5) the query will look for specific data in the database, likely this will be accomplished by making 5 seperate includes files with specific commands or array structures to acheive this. Simplicity.
    Simplicity except I'm not yet certain as to how this is accomplished.
    Here's where someone's going to throw the book at my head...can I generate a variable that can be stored for use on another page?
    I never ask easy questions...sorry about that.
    Thanks to any and all in advance for your help!
    Sincerely,
    wordman

    http://forums.adobe.com/thread/426785

  • Using variables across timelines help

    I wonder how can I use this code for a nav to change over and out states.
    This line of code works.
    sym.getComposition().getStage().getSymbol("Section2").getSymbol("map_Popups").getSymbol("U SA").play("Over");
    I try to save each country into a variable but doesn't work.
    sym.setVariable("current2", "USA");
    sym.getComposition().getStage().getSymbol("Section2").getSymbol("map_Popups").getSymbol(current2).play("Over");

    You now need a getVariable() in order to read it. Try this:
    sym.setVariable("current2", "USA");
    // get the variable
    var newCountry = sym.getVariable("current2");
    sym.getComposition().getStage().getSymbol("Section2").getSymbol("map_Popups").getSymbol(ne wCountry).play("Over");

  • Use variable in mapping

    Hi!
    How to use Variable in mapping ? I've tried #PROJECT_CODE.VARIABLE_NAME but execution ends with an error "Illegal character"
    With regards,
    PsmakR

    There is no need to use package name if variable is locate in the same package with the interace. Else (according with documentation):
    Referring to variable MY_VAR in your objects should be done as follows:
    • #MY_VAR: With this syntax, the variable must be in the same project as the object referring to it. Its value will be substituted. To avoid ambiguity, consider using fully qualified syntax by prefixing the variable name with the project code.
    • #MY_PROJECT_CODE.MY_VAR: Using this syntax allows you to use variables across projects. It prevents ambiguity when 2 variables in different projects have the same name. The value of the variable will be substituted at runtime.
    • #GLOBAL.MY_VAR: This syntax allows you to refer to a global variable. Its value will be substituted in your code. Refer to section Global Objects for details.
    • Using “:” instead of “#”: You can use the variable as a SQL bind variable by prefixing it with a colon rather than a hash. However this syntax is subject to restrictions as it only applies to SQL DML statements.
    And make sure you declare it in the package as was suggested in the previous post.

  • Using variables with lightboxes...

    Hi all,
    I am currently creating a scenario with two lightboxes. When you click a button the lightboxes will appear. When you click the 'x' button on both of the lightboxes, a button will appear, allowing the user to go onto the next slide. However, I have been unable to achieve this effect.
    I have been able to use variables across different slides, but not on the same slide. Any help would be appreciated. Thanks.

    Create a counter variable that you assign the value 0. Maybe it is even better to assign that value not in the definition but On Enter for the slide. For the moment you have two actions, those will have to be turned into conditional advanced actions with two decisions. Something like this:
    First decision 'Always'
    IF 1 is equal to 1      this is a mimicked standard action
       Show lightbox 1         
       Increment v_counter
    Second decision 'Checkit'
    IF v_counter is equal to 2
       Show Gr_Buttons
    I used a group, didn't want to type too much, you can group the 3 buttons.

  • SPSiteDataQuery - filter by file Title - Can I use variable for the filter value?

    I use SPsiteDataQuery to search across multiple lists and filter by file title. I have the file title information in a variable.
    Can I use variable in the filter value?
    string fileName = "Policies.doc"
    SPSiteDataQuery spQry = new SPSiteDataQuery();
    spQry.ViewFields = "<FieldRef Name='Title'/><Value Type='Text'>fileName</Value>"

    If I have understood correctly, you want to search based upon a File title in all the sites. You can include a query to filename in the spQry
    spQry.Query = "<Where>" +
    "<Eq>" +
    "<FieldRef Name=\"FileLeafRef\"/>" +
    "<Value Type=\"Text\">" + fileName + "</Value>" +
    "</Eq>" +
    "</Where>";
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • Substitution Variable across two dimensions

    Hello,
    I was wondering if we could define a single substitution variable across two dimensions. For instance, we have two dimensions Year (FY10,FY11,FY12, etc) and Period (QTR1, JAN, FEB, MAR, QTR2...)
    I understand we can define a range of values in a single subvar such as &period is Jan:Dec.
    However, given the above two dimensions we would like something like this Jan.FY10:Dec.FY13. I know this would be easier if years and months belonged to the same dimension but they are two different dimensions. So, essentially we want to define a single subvar involving two dimensions.
    Please let me know, if this is possible on Essbase 9.
    Thank you.
    Edited by: user10678366 on Sep 15, 2010 9:56 AM

    Thanks for all your responses. As Gary and Srinivas pointed out @XRANGE definitely works with a subvar with a few limitations;
    1. Cannot be used in a FIX statement
    2. For accurate months across different years, the order of the subvar should be FY11->FEB, FY13->DEC and not not FEB->FY11, DEC->FY13 since in my db, the Period dimension is DENSE and appears before the YEARS dimension in the outline.
    3. It works in a IF statement
    However one lingering issue I have is with a @PRIOR statement on conjunction with @XRANGE within my IF statement:
    Note: subvar &RANGE = FY11->FEB, FY13->DEC
    STAT1(
    IF(@ISMBR(@XRANGE(&RANGE)))
    IF(STAT1 = 20)
    STAT1 = @PRIOR(STAT1)
    ENDIF
    ENDIF
    The problem is STAT1 gets calculated accurately for all months for that year. However, all months the following year donot get calculated. So, essentially the BEGBALANCE (also at level 0) doesnt get calculated for the next year. Here an illustration of before and after:
              FY11     FY12     FY13
    Stat1     BegBalance               
         Jan     #MI     #MI     #MI
         Feb     #MI     #MI     #MI
         Mar     #MI     #MI     #MI
         Apr     #MI     #MI     #MI
         May     #MI     #MI     #MI
         Jun     20     #MI     #MI
         Jul     #MI     #MI     #MI
         Aug     #MI     #MI     #MI
         Sep     #MI     #MI     #MI
         Oct     #MI     #MI     #MI
         Nov     #MI     #MI     #MI
         Dec     #MI     #MI     #MI
    Stat1     BegBalance     #MI     #MI     #MI
         Jan     #MI     #MI     #MI
         Feb     #MI     #MI     #MI
         Mar     #MI     #MI     #MI
         Apr     #MI     #MI     #MI
         May     #MI     #MI     #MI
         Jun     20     #MI     #MI
         Jul     20     #MI     #MI
         Aug     20     #MI     #MI
         Sep     20     #MI     #MI
         Oct     20     #MI     #MI
         Nov     20     #MI     #MI
         Dec     20     #MI     #MI
    The expected result is:
    Stat1     BegBalance     #MI     20     20
         Jan     #MI     20     20
         Feb     #MI     20     20
         Mar     #MI     20     20
         Apr     #MI     20     20
         May     #MI     20     20
         Jun     20     20     20
         Jul     20     20     20
         Aug     20     20     20
         Sep     20     20     20
         Oct     20     20     20
         Nov     20     20     20
         Dec     20     20     20
    So, essentially though the @XRANGE takes into account BegBalance and calculates for each year based on prior year->dec, which is good. However, introducing the @PRIOR doesnt calculate BegBalance. Looks like I dont have any option other than using @MDSHIFT instead of @PRIOR when it comes to using @PRIOR with @XRANGE.
    Unless I am incorrectly using the @PRIOR statement with @XRANGE. Please suggest.

  • Sharing User Defined Variables across projects

    Hi,
    I'm wondering if it's possible to share User Defined Variables across projects. What I have in mind is that I would like to have my User Defined Variables configured in a central location and then insert them into my projects as linked variables so that they update automatically when I change their values. For example, I define a variable named Product_Version that has its value set to 9. Then I insert this variable into all my projects as a linked variable. After 2 months the product version changes to 10, so I change the value of the variable to 10 in the location where it is stored and it is automatically updated in all the projects. Can this be done somehow? I'm new to RoboHelp and I can't find any answer. I've been searching for the solution for some time in the product help, on the Internet to no avail. I even contacted Adobe Support and they redirected me to this forum I used Help and Manual before and their way of dealing with user variables was pretty simple.

    Hi there
    Unfortunately RoboHelp doesn't offer up a way to allow this, At least, not directly.
    However, I do believe I found a way to make it happen, The variables are stored in a file named rhvariable.apj. So what you could do is to add this file as a Baggage File to each of your projects that will share the variables.
    Now you would create a Shared Location as well as a new Category in your Resource Manager. This will create a common location to store the apj file.
    Add the Baggage File to the location. Repeat the process for all projects that are sharing the variables.
    Now, when the variable gets changed in any of the participating projects, the shared location should be updated and you can accomplish the goal.
    However, note that even though you will have what you are wanting, it will still require opening each of the participating projects, synchronizing the APJ file and generating the output in order to update it all. No way I'm aware of to escape that.
    Cheers,,, Rick

  • CS6 patch tool across layers

    Couldn't find any reference to this elsewhere in the forums.
    Since getting CS6 I have been puzzled to find that the patch tool in CS6 seemed not to  work across layers whilst doing photo retouching. So I reverted to the other tools to get some work done and ignored the problem.
    I have just discovered that the problem seems to be caused by the source layer being locked (as in the background layer). In this case, with an empty layer above selected and the patch tool using all layers, the tool looks as though it is working until the mouse is released, when the original content of the patch re-appears and the empty layer is still empty.
    Only if the base layer is unlocked will the patch tool work as expected to put the correction onto on the empty layer above.the unlocked base.
    Is this just on my Win7 x64 system, or is this a feaure/bug in CS6?

    "patch tool using all layers"
    What is the real name of the tool that you've repeatedly refered to as "patch tool"? I ask because it can't be Patch Tool if there's an option to use all layers.

  • Using variables to go to a section of a swf

    Hi,
    I have been working on a project that I finally realized
    could have been, and will be, easier if I used variables within my
    AS. So I came home this evening and started working on my idea and
    after several hours of it not working, working part way, and
    googling like mad I decided to try you all. I hope you can help.
    The site I'm working on I've actually split up into multiple
    swfs for easier maintenance and I'm using one container swf to load
    everything in. The problem I have is that there is a "past" section
    where the user can select a year and view everything about the
    company that happened in that year (containing text, links to
    photos, sometimes video, etc.).
    So the past section is loaded into level 1 and when the user
    clicks on a year I'm creating a variable called year given the
    value of that year (2007, 1984, etc). The year button also unloads
    the past section swf and loads another swf in level 1. I have some
    actionscript at the beginning of that swf that says
    if (year=2007) {
    gotoAndPlay("2007");
    } else if (year=2006) {
    gotoAndPlay("2006");
    For each year I'll have some links, more buttons, and/or
    video come in and there's also a button to go back to the past
    section. One of my problems is that it always goes to the frame
    labelled "2007". I did get it to go to 2006 once, but I was using
    two if statements instead of the if and else if. The second problem
    is that when the user clicks back to the past section I need to
    empty out the variable so that they can choose another year and
    pass that variable.
    Can anyone offer any advice, suggestions or examples?
    Thanks!
    phej

    I have been having a similar problem, and being quite new to
    Flash, I'm at a loss on how to fix it. My issue is with a template
    I purchased. This template has the main content pages nested a
    couple layers deep. I need to be able to send people to a specific
    URL that I'm hoping to get to load the movie and bring up the one
    specific clip and not the main start.
    I had tried using a dynamic text field to check if the
    variables I was passing in through the URL were making it in (with
    the correct code placed in the embed and object tags). I gave the
    var box of the dynamic text the name of the variable I was passing
    in: showPage.
    This is what was displayed in the text box instead:
    _level0.pages001.pages.instance115.showPage
    Can I glean any information as to how to get this one clip to
    be bookmarked? I have tried by passing in variables and also by
    setting a Named Anchor in the key frame that loads this clip. That
    code worked only as far as putting the NA in the url like it was
    supposed to, but the actual link when pasted back in the browser
    brought you back to the main start.

  • Share Formats and Variables Across A Book?

    I'm sure this has been discussed before but search didn't turn up anything.  Is there a way to share paragraph and character formats, variables, etc across a book?  It's really cumbersome to have to reimport them across all the documents whenever I change something, and that often leads to confusion.
    Thanks!
    John
    www.controlgeek.net

    I wish Adobe would just add a "master document" format or something where you could make all changes and not have to manually re-import.
    Ok, now imagine the case where you want Variable "FileVersion" to have the same name but different values in each component file .
    Using variables does indeed not auto-update across a book, but sometimes you don't want it to. Cross-references do auto-update across a book.
    Anyhow, with the standard scripting now available in FM10, I suspect your "one-button" wish may already be granted.
    It may easily be possible to add a "propagate variables" operation to a script for the overall work flow.
    hmmm. I could use a script that propagate variables, sets condition codes, applies master pages, updates the book, sets color view, selects PDF options and renders to PDF ...

  • Error-Receiver File Adapter using Variable substitution when file is empty

    XI Experts,
    We are on PI 7.0, SP14.
    We are using variable subtitution to get the filename from source message. This works fine as long as we have data in the payload for filename element. But we have a scenario where we don't have to create file when certain condition does not exists in source message so in the message payload filename element will not exists in such condition and file will be empty and we should not create file.
    Parameter in the communication channel for Handling empty message is "Ignore".
    Does anyone knows how to handle this scneario. We don't want to default any file name in the message mapping if source file name element does not exists.
    We are following getting error in the Adapter engine.
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: file: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: file
    Thanks
    MP

    You can implement this by writing the module to throw an exception or whatever method you want to execute.
    If you don't want to receive an error message then module is suitable for you.
    Gaurav Jain

  • Using variables to insert data in the table

    I want to insert datas in the table. I use constants,
    all the constants are stored properly in the table. But,
    when I use variables I get the error message
    "Too few parameters. expected 6".
    (I declared all the fields of the table as text only.)
    My program is "newt.jsp"
    <%@ page language="java" import="java.sql.*" %>
    <html>
    <head>
    <title>storing customer information in the database</title>
    </head>
    <body>
    <%
    String cno1 = request.getParameter("cno");
    String n1 = request.getParameter("n");
    String add11 = request.getParameter("add1");
    String add21 = request.getParameter("add2");
    String phone1 = request.getParameter("phone");
    String email1 = request.getParameter("email");
    Connection con = null;
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:customer"," "," ");
    Statement statement1 = con.createStatement();
    Statement statement2 = con.createStatement();
    statement2.executeUpdate("create table cust1 (cno varchar(20),n varchar(20),add1 varchar(20),add2 varchar(20),phone varchar(20),email varchar(20))");
    statement1.executeUpdate("insert into cust1 (cno,n,add1,add2,phone,email) values(cno1,n1,add11,add21,phone1,email1)");
    catch(SQLException sqle) {
    System.err.println(sqle.getMessage());
    catch(ClassNotFoundException cnfe) {
    System.err.println(cnfe.getMessage());
    catch(Exception e) {
    System.err.println(e.getMessage());
    finally {
         try {
         if(con!=null) {
              con.close();
    catch(SQLException sqle) {
    System.err.println(sqle.getMessage());
    %>
    <br><br>
    Mr./Ms. <%=n1 %> <br>
    Your datas have been stored.<br>
    </body>
    </html>
    Those who know answer please reply.
    My thanks in advance.

    I would expect your insert statement to be this:
    statement1.executeUpdate("insert into cust1 (cno,n,add1,add2,phone,email) values('"+cno1+"','"+n1+"','"+add11+"','"+add21+"','"+phone1+"','"+email1+"')");
    If you just create a string, it's not going to fill in variables into the string by magic.

  • Using variable with the same name as field name?

    I have a complex proc where I have variables with the same name as field name used on a query. something like this:
    SELECT a.id_table WHERE a.id_table = id_table
    where the last id_table is a parameter sent to the proc:
    declare procedure myproc(id_table int)
    Is there any way or notation to declare the variable inside the query as a variable or I have to use a different name?

    Well, variables are not the only thing you have to change if you want to switch to Oracle.
    Although I don't think it is good practice (to use variable name same as column name), here is one example how you can achieve it using EXECUTE IMMEDIATE and bind variable
    SQL> select deptno, count(1)
      2  from scott.emp
      3  group by deptno;
        DEPTNO   COUNT(1)
            30          6
            20          5
    10 3
    SQL> set serveroutput on
    SQL> declare
      2  deptno varchar2(10);
      3  i number;
      4  begin
      5  deptno:=10;
      6  execute immediate
      7  'select count(1) from scott.emp where deptno=:deptno' into i using deptno;
      8  dbms_output.put_line('OUT ---> '||i);
      9  end;
    10  /
    OUT ---> 3
    PL/SQL procedure successfully completed.
    SQL> Message was edited by:
    tekicora
    Message was edited by:
    tekicora

  • How to use variables with

    I need to get the number of lines in internal table, which would
    be easy, using DESCRIBE TABLE itab LINES lines. But the problem
    is, that I get the name of this internal table in the field of
    another internal table, so I have to use the name of internal
    table as variable, but I don't know how to use variables with
    DESCRIBE TABLE (or if this is possible).

    Hi,
    REPORT ZPRUEBA782 .
    define two tables with diferent structures.
    data: begin of table1 occurs 0,
    registro type i,
    end of table1.
    data: begin of table2 occurs 0,
    registro type i,
    repid like sy-repid,
    end of table2.
    data: rows type i.
    start-of-selection.
    fill them with data
    do 1000 times.
    table1-registro = sy-tabix.
    append table1.
    enddo.
    do 1757 times.
    table2-registro = sy-tabix.
    table2-repid = sy-repid.
    append table2.
    enddo.
    call a form that receives as input the table and returns the number
    of rows as output.
    perform howmanyrows tables table2 changing rows.
    break-point. "evaluate the number of rows
    perform howmanyrows tables table1 changing rows.
    break-point. "evaluate the number of rows
    end-of-selection.
    form howmanyrows tables itable changing rows.
    rows = 0.
    loop at itable.
    add 1 to rows.
    endloop.
    endform.
    You can try it if you don't find a better solution.
    Cheers,
    Chaitanya.

Maybe you are looking for