How to set a variable when loading a flash application

Hey there all,
I am very new to flex and flash programming.
I have an app that I need to specify a certain variable for during the application of the first charge up.
The .swf file must be able to start with a certain set of variables (as with a command line argument)
Because I'll be incorporation in markers on google maps. They need to know where and what they are by variables that I spend when they are first initialized

I hope this question makes sense,

Shawn

You can send the query string values and access it from your flex application. Below is the URL of the page that describes how to access the query string parameters in a Flex application
http://livedocs.Adobe.com/Labs/Flex3/HTML/deep_linking_5.html#245869
I hope this helps.

Tags: Flex

Similar Questions

  • How to set the variable when you click on text/image

    Hello

    I have the following parts of the code. What I'm trying to do is set a variable and then the new window will read this variable and show detail appropriate according to the value. I call the new window, no problem, but struggling to get all of the variable 'productidkey '...

    Image

    < td width = "202" rowspan = 2 align = "center" bgcolor = "#FFFFFF" >
    < a href = 'details.php' > < form method = "POST" action = "details.php' style =" margin-bottom: 0; ">
    < input type = "hidden" id = "productidkey" name = "productidkey" value = "6198' > < img src ="6198.JPG"width ="200"height = '133' alt ="in more detail"border = '1' >"
    < / form > < /a > < table >

    Text

    < td >
    < div align = "right" >
    < are method = "POST" action = "details.php' style =" margin-bottom: 0; ">
    < input type = "hidden" id = "productidkey" name = "productidkey" value = "6198' > < a href = 'details.php' > < span class ="TexteÉlément"> < b >... < /b >"
    </span > < / form > < / div > < table >

    It works:




  • How to plot two variables when neither are expressed in time?

    I know how to trace a variable against time, but how to plot two variables when neither one of them are time against each other. For example if I want to draw Let's force against remote what is the best approach to use?

    Thank you.

    Use an XY Chart. Use context-sensitive help to see the expected data type and refer to the examples. Consider what follows, don't forget to rename the scale labels and name:

  • [ADF, JDev12.1.3] How to set a variable to bind a VO (where clause) in a managed bean?

    Hallo,

    I have a request based on VO.

    The query contains a where clause clause and a bindi variable.

    In a managed bean I would like to access the iterator of VO setting the value of the bind variable and read the result.

    I found this code it is good start, but I do not know how to set the variable binding.

    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingsEntry();
    DCIteratorBinding iter = (DCIteratorBinding ) bindings.get("MyVO1Iterator");
    iter.execute();
    
    
    

    You kindly help me?

    Also, I would like to know if it is generally advisable to use VO directly in controlled beans or whether it would be best to create in the AppModuleImpl methods that do this and return the result.

    In my case for example of the VO will return max 1 plug so I'm in doubt, if the creation of a method in the AM that returns a custom class, which attributes contain values of the line of VO.

    Sorry if these questions may seem artificial, but I am a beginner, I have many doubts and so I would be happy to receive some tips regarding best practices.

    Thank you

    Federico

    You can use:

    iter.getViewObject().setNamedWhereClauseParam("yourBindVar", value);
    

    Note that this approach is used if you have bind variable in the where clause.

    To set variables bind to ViewCriteria, you must use VarableValueManager.

    This post may be useful for you: binary: how to set the Bind variable values at run time?

    Also, I would like to know if it is generally advisable to use VO directly in controlled beans or whether it would be best to create in the AppModuleImpl methods that do this and return the result.

    You must set "use VO directly.

    For example, from the point of architecture, is probably best to use the method in the model project which will set the bind variable and execute the query.

    Or you can use the ExecuteWithParams operation in your the view layer.

    In my case for example of the VO will return max 1 plug so I'm in doubt, if the creation of a method in the AM that returns a custom class, which attributes contain values of the line of VO.

    Not to complicate your life

    All VO lines are represented as ViewRowImpl class if you already have "custom class".

    Finally, you can generate your own ViewRowImpl class if it is necessary for this.

    Dario

  • How to set the LOV when in a pop up

    Hello!!!

    We work with ADF 11 g and the user wants to use a LOV a field during their research and another when they change the information in a pop-.

    I have the popup work and we may change the information but I can't understand how to have a different of LOV show when the user is in the pop-.

    I've set the attribute VO use 2 LOV and I added a transitional attribute to the VO and picked up as a list of value switch but I can't figure out how to set the transient attribute when the pop-up opens
    so that it will use the 2nd LOV while in the pop-up etc and then together is back to normal when they are not on the shortcut menu.

    Everyone comes through this?

    Thanks in advance.

    The best solution I found for this was using two different views and then link them. This allows a different LOV will basically be attributed for the same attribute. Be sure to use the correct view on the specific form for the desired LOV.

  • How can I get my values digital XML appears when loading in flash?

    Hello

    I created an AS2 3D carousel, it loads the text values in the section "content" of the code below - including numbers and special characters in the .swf but...

    What I can't understand, is how get so that the 'Tooltip' loads the text into the movieclip, but may also have digital and special characters in it.

    For example, I need the title of one of the icons on this carousel to be "3D Images", but that the Images "D" appears in the XML text for the ToolTip.  The content when the user clicks on the icon can include numbers, just not the titles for some reason any.

    http://iongeo.com/collaboration_test_dev/video_arctic_imaging.html

    I think it has something to do with the way that my text is loaded from the XML specifically for the ToolTip and tipText for the clip.  Numeric values can be loaded into a clip in AS2?  Help, please!

    Import mx.utils.Delegate;
    Import mx.transitions.Tween;
    Import mx.transitions.easing. *;

    var numOfItems:Number;
    var radiusX:Number = 300;
    rayonY var: number = 75;
    var centerX:Number = Stage.width / 2;
    var centerY: Number = Stage.height / 2;
    var speed: Number = 0.05;
    perspective of the var: number = 130;
    var host: MovieClip = this;
    theText._alpha = 0;
    theHeader._alpha = 0;

    var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
    ToolTip._alpha = 0;

    var xml = new XML();
    xml.ignoreWhite = true;

    xml.onLoad = function()
    {
    var nodes = this.firstChild.childNodes;
    numOfItems = nodes.length;
    for (var i = 0; i < numOfItems; i ++)
    {
    var t is home.attachMovie("item","item"+i,i+1);.
    t.angle = i * ((Math.PI*2) /numOfItems);
    t.onEnterFrame = mover;
    t.toolText = nodes [i].attributes.tooltip;
    t.Content = nodes [i].attributes.content;
    t.Header = nodes [i].attributes.header;
    t.icon.inner.loadMovie (nodes [i].attributes.image);
    t.r.inner.loadMovie (nodes [i].attributes.image);
    t.icon.onRollOver = more;
    t.icon.onRollOut =;
    t.icon.onRelease = freed;
    }
    }

    function over()
    {
    BONUS section
    home.tooltip.tipText.text = this._parent.toolText;
    Home.ToolTip._x is this ._parent ._x;.
    Home.ToolTip._y = this ._parent ._y - this._parent._height/2;
    home.tooltip.onEnterFrame = Delegate.create (this, moveTip);
    Home.ToolTip._alpha = 100;
    }

    function out()
    {
    delete home.tooltip.onEnterFrame;
    Home.ToolTip._alpha = 0;
    }

    function released()
    {
    BONUS section
    Home.ToolTip._alpha = 100;
    for (var i = 0; i < numOfItems; i ++)
    {
    var t:MovieClip = host ["item" + i];
    t.xPos = t._x;
    t.yPos = t._y;
    t.theScale = t._xscale;
    delete t.icon.onRollOver;
    delete t.icon.onRollOut;
    delete t.icon.onRelease;
    delete t.onEnterFrame;
    If (t! = this ._parent)
    {
    var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
    var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
    var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
    }
    on the other
    {
    var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
    var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
    var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,150,1,true);
    var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,250,1,true);
    var tw5:Tween = new Tween(theText,"_alpha",Strong.easeOut,0,100,1,true);
    var tw5:Tween = new Tween(theHeader,"_alpha",Strong.easeOut,0,100,1,true);
    theText.text = t.content;
    theHeader.header = t.header;
    var s:Object =;
    tw.onMotionStopped = function()
    {
    = new s.onRelease;
    }
    }
    }
    }

    function unReleased()
    {
    BONUS section
    var penny: Sound = new Sound();
    sou.attachSound ("sdown");
    Penny. Start();

    delete this.onRelease;
    var tw:Tween = new Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,true);
    var tw:Tween = new Tween(theHeader,"_alpha",Strong.easeOut,100,0,0.5,true);
    for (var i = 0; i < numOfItems; i ++)
    {
    var t:MovieClip = host ["item" + i];
    If (t! = this ._parent)
    {
    var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
    var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
    var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
    }
    on the other
    {
    var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
    var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
    var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
    var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
    tw.onMotionStopped = function()
    {
    for (var i = 0; i < numOfItems; i ++)
    {
    var t:MovieClip = host ["item" + i];
    t.icon.onRollOver = Delegate.create (t.icon, over);
    t.icon.onRollOut = Delegate.create (t.icon, out);
    t.icon.onRelease = Delegate.create (t.icon, released);
    t.onEnterFrame = mover;
    }
    }
    }
    }
    }


    function moveTip()
    {
    Home.ToolTip._x is this ._parent ._x;.
    Home.ToolTip._y = this ._parent ._y - this._parent._height/2;
    }

    XML. Load ("icons.xml");

    function mover()
    {
    This ._x = Math.cos (this.angle) * radiusX + centerX;
    This ._y = Math.sin (this.angle) * rayonY + centerY;
    var s = (this ._y - perspective) / (centerY + rayonY-perspective);
    This ._xscale is this ._yscale = s * 100;.
    This.angle += this._parent.speed;
    this.swapDepths (Math.round (this._xscale) + 100);
    }

    this.onMouseMove = function()
    {
    Speed = (this ._xmouse-centerX) / 8000;
    }

    your textfield must incorporate numbers, in addition to uppercase and lowercase letters.

  • How to set the title when using InvokeManager (MediaPlayer)

    Hi Im using InvokeManager to play the video file (Media Player)

    How to change the title when media player to play the video (above)-> it by default uses the name of the file being played

    but I want to change this

    How to do this?

    Thank you

    Try this

    InvokeManager * invokeManager = new InvokeManager();
    InvokeRequest cardRequest;
    cardRequest.setTarget ("sys.mediaplayer.previewer");
    cardRequest.setAction ("bb.action.OPEN");
    cardRequest.setUri ("* video url *");
                QVariantMap map;
    Map.Insert ("contentTitle", "My title");
    QByteArray requestData = bb:psObject::encode (map, NULL);
    cardRequest.setData (requestData);
    Response InvokeTargetReply * = invokeManager-> invoke (cardRequest);

    Note: Mark your post as solved, if this solves your problem

  • How to set a variable to a string with special characters?

    I want to set a variable

    < cfset inputstring = "< img src ="... /... /.. "/ Server/Win/Form/Stamp/string_1" / > "/ >"

    but I get the error message:

     Invalid CFML construct found on line 184 at column 32.
    ColdFusion was looking at the following text:
    
    
    .
    

    I try different ways, what I am, I am doing wrong?

    You must escape the inner quotes or mix single and double quotes.  Try:

    "/>

    or

    Oh, and oblique aft are not necessary in the tag.

    -Carl V.

  • How to set the value of the point of application using pl/sql in the application process

    Hi guys,.

    I want a global variable (application point) whose value will be set to start when a user logs on to the application. The value will be retrieved from the database by using a sql query. I don't exactly know the syntax to set the value of the point of application in the application process. Also, I want to know what type of enforcement process should I use to set the value of the point of application, when a user starts a session. The value of the point of application varies from one user to the user.

    Help, please.

    I use apex 4.2

    Kind regards

    Waqas

    You can use the application element as a link with his name. That is to say. your point of application is named G_MY_APPLICATION_ITEM, then you can / set of access using: G_MY_APPLICATION_ITEM.

    For example

    BEGIN

    -assign as a variable

    : G_MY_APPLICATION_ITEM: = 'LARRY ';

    --

    -use in a SQL statement

    SELECT WHATEVER_COLUMN

    IN: G_MY_APPLICATION_ITEM

    FROM MY_TABLE

    WHERE USERNAME =: APP_USER

    ;

    END;

    Peter

  • Captivate 6 buttons do not work when load in Flash. Help!

    I created a content player that load SWFs and plays them with some basic commands. It is able to load in Captivate 5 and 5.5 without problem. However, now when I insert into Captivate 6, buttons in the Captivate content do not work. I can get the bearings the trigger clicks, but not button.

    Any thoughts?

    I solved it. It had nothing to do with Captivate (that I know). All this had to do with how I manage Captivate content loaded inside my flash application. It had to do with the scope and timing of how I was Manager the loaded content. If someone wants to know the details, I would be happy to disclose but I think that this is something quite unique in my own code structures.

  • How to set up Adobe Acronis XI as default Application

    With Windows 10, I am now unable to keep Adobe Acronis X 1 as default applicatio pdf. After I made this adjustment, I'll message ge "Unable to.... and the parameter will be Microsoft Egde".

    Actually I have no Edge at all. How to solve...

    How to set your default applications in Windows 10

  • How to set a variable to an attribute pageFlowScope on Create Insert without using session variable

    Hi Experts ADF,

    JDeveloper 12 c.

    I have a VO as below:-

    SELECT Departments.DEPARTMENT_ID,

    Departments.DEPARTMENT_NAME,

    Departments.LOCATION_ID,

    Departments.MANAGER_ID

    DEPARTMENTS of MINISTRIES

    WHERE Departments.DEPARTMENT_Name =: bindDeptName

    And taskflow as below:-which starts with a default activity as ExecuteWithParams that defines the variable of the VO to the pageFlowScope variable binding.

    When the page loads, it now has a button create that is mapped to the CreateInsert operation. Now I have @overridden create the method below. How to pass the pageflowscope variable to the EOImpl.java without using a Variable of Session. If any other approach is there please suggest.

    EOImpl.java

    @Override
    protected void create (AttributeList attributeList) {}
    this.setAttributeInternal (DEPARTMENTNAME, "msg");    -> Msg value here should be replaced by variable scope pageflow.
    Super.Create (AttributeList);
    }

    Thanks in advance

    Roy

    Roy, do not access a page flow or session scope variable in the model layer.

    Instead, you use the createWithParams to pass the variable to the create method via the link layer. An example can be found here http://andrejusb.blogspot.de/2011/02/createwithparams-operation-for-oracle.html

    Timo

  • How to reset a variable when refreshing a report interactive

    Hello

    Maybe a simple question but I can't find the answer.
    I have an interactive report in which I can highlight a row. In doing so, I put a variable using a javascript function declared in the html header.

    My problem is when I refresh the report. I have no more line selected by my variable is always set to the previous value. How can I reset the variable during the updating of my report?

    Concerning

    975489 wrote:
    Indeed, sorry about the lack of information.

    My platform is composed of:
    * Full APEX version: 3.2.1.00.12
    * Full DB/version/edition/host OS: oracle 11.2.0.1 std edition on linux x 64
    Web server architecture: APEX listener/linux x 64
    * Browser (s) and used versions: IE, chrome,...
    and "variable" means indeed for me a page element.

    Proposal seems quite applicable on apex 4 and I can't find reference to elements of the Page to submit.

    Concerning

    3.2, it is under the attributes report > Advanced attributes section

    See http://docs.oracle.com/cd/E14373_01/appdev.32/e11838/app_comp.htm#BABEEABE

    Thank you
    Vikram

  • How to set a variable in the main timeline of in a symbol?

    Just get started with Animate and coming from Flash, it may be apparent to my question. How do you define a variable for the main timeline of in a symbol?

    I have 24 pairs of clickable elements, each in their own symbols, and 24 of these symbols to sit inside another symbol. I want every 24 to set the global variable even when you click on it. I do not find that this question is anywhere, which makes me think that I can be stuck in a mentality from Flash and approaching the task in a bad way. (However, there are MANY discussions address showing how objects to different levels in the hierarchy.) Which is well covered).

    By the way, how to access a function on the main timeline of in a symbol?

    Adobe should consider putting on foot (or pages) support just for people migration form Flash. In the documents that I've met so far there seems to be a studied effort to refrain from mentioning Flash somehow. I imagine that there are many people out there like me who have a deep background in coding Flash, but start with Animate. We don't need help with most of the basic concepts, but we still have some pretty basic questions on how to achieve certain things in Animate because our knowledge of Flash gets in the way.

    Hi Bill,

    There are a lot of discussions here on the scope, but here's a way to create a global variable:

    code on Stage.compositionReady

    sym.myGlobalVar = 1;

    Then, anywhere in your project, you can check/set this var as follows:

    sym.getComposition () .getStage () .myGlobalVar = 2;

    And here is a way to create a global function:

    code on Stage.compositionReady

    sym.myGlobalFunction = function() {}

    Console.log ('myGlobalFunction');

    }

    Then, anywhere in your project, you can call this function as follows:

    sym.getComposition () .getStage () .myGlobalFunction ();

  • How to set global variables for use by all THE #subform [0] items of form1. ?

    Hi all

    I don't know how to code javascript but am new to Adobe LiveCycle.  When I open the script editor, I have the following code (the code is in United Nations in bold):

    -form1. #subform [0]: initialize :-(FormCalc, client).

    //////////////////////////////
    TO START: SET GLOBAL PRICES.
    //////////////////////////////

    var Cityscope_Sydney_CostUser1 = 60,39;
    var Cityscope_Sydney_CostUsers2to5 = 3.02;
    var Cityscope_Sydney_CostUsers6to20 = 1.21;
    var Cityscope_Sydney_CostHardCopyWithOnline = 14.59;
    var Cityscope_Sydney_CostHardCopyWithoutOnline = 54,67;
    var Cityscope_Sydney_CostHardCopyAdditional = 14.59;

    var Cityscope_NorthSydney_CostUser1 = 48,40;
    var Cityscope_NorthSydney_CostUsers2to5 = 2.42;
    var Cityscope_NorthSydney_CostUsers6to20 = 0.97;
    var Cityscope_NorthSydney_CostHardCopyWithOnline = 14.59;
    var Cityscope_NorthSydney_CostHardCopyWithoutOnline = 43,54;
    var Cityscope_NorthSydney_CostHardCopyAdditional = 14.59;


    ////////////////////////////
    END: SET GLOBAL PRICES.
    ////////////////////////////

    -form1. #subform [0]: enter :-(FormCalc, client).

    -form1. #subform [0]: output :-(FormCalc, client).

    -form1. #subform [0]: calculate :-(FormCalc, client).

    -form1. #subform [0]: validate :-(FormCalc, client).

    -form1. #subform [0]: preSave - (FormCalc, client).

    < < = etc etc etc = > >

    -form1. #subform [0]. Item1Cost::initialize :-(JavaScript, client).

    -form1. #subform [0]. Item1Cost::enter :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::exit :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::calculate :-(JavaScript, client).

    Store the values of the form of friendly names.
    var AreaSelected = Item1Area.rawValue;
    var NumberOfUsersSelected = Item1Users.rawValue;

    Declare other variables.
    var Users1Calculation;
    var Users2to5Calculation;
    var Users6to20Calculation;


    Calculate the cost to the "components" user will depend on the number of users selected for the region.
    Switch (true)
    {
    If (NumberOfUsersSelected < 2):
    Users1Calculation = NumberOfUsersSelected * Cityscope_Sydney_CostUser1;
    Users2to5Calculation = 0.00;
    Users6to20Calculation = 0.00;
    break;
    If (NumberOfUsersSelected > 1 & & NumberOfUsersSelected < 6):
    Users1Calculation = Cityscope_Sydney_CostUser1;
    Users2to5Calculation = (NumberOfUsersSelected - 1) * Cityscope_Sydney_CostUsers2to5;
    Users6to20Calculation = 0.00;
    break;
    If (NumberOfUsersSelected > 5):
    Users1Calculation = Cityscope_Sydney_CostUser1;
    Users2to5Calculation = 4 * Cityscope_Sydney_CostUsers2to5;
    Users6to20Calculation = (NumberOfUsersSelected - 5) * Cityscope_Sydney_CostUsers6to20;
    break;
    by default:
    Alert ("BROKEN: calculate the individual components of cost of use will depend on the number of users selected for the region.");

    }

    apply the total cost for this article
    Item1Cost.RawValue = Users1Calculation + Users2to5Calculation + Users6to20Calculation;

    -form1. #subform [0]. Item1Cost::validate :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseEnter :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::mouseExit :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::change :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::full :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseUp :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseDown :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::click :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::preSave - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::postSave - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::prePrint - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::postPrint - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::preSubmit:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Cost::docReady - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::docClose - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::ready:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Cost::ready:layout - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::initialize :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::enter :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::exit :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::calculate :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::validate :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseEnter :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::mouseExit :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::change :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::full :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseUp :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseDown :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::click :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::preSave - (FormCalc, client).

    -form1. #subform [0]. Item1Users::postSave - (FormCalc, client).

    -form1. #subform [0]. Item1Users::prePrint - (FormCalc, client).

    -form1. #subform [0]. Item1Users::postPrint - (FormCalc, client).

    -form1. #subform [0]. Item1Users::preSubmit:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::docReady - (FormCalc, client).

    -form1. #subform [0]. Item1Users::docClose - (FormCalc, client).

    -form1. #subform [0]. Item1Users::ready:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::ready:layout - (FormCalc, client)-

    .. and so on and so forth...

    In short, I want the code in:

    -form1. #subform [0]. Item1Cost::calculate :-(JavaScript, client).

    .. .to be able to access the variables I created in:

    -form1. #subform [0]: initialize :-(FormCalc, client).


    (I guess that's where I store global variables)

    At this point, global variables are not accessible with the above configuration.  Was the only one I can get this working is to cut and paste the Globals in each item of form1. #subform [0], which of course defeats the purpose of global variables!  I intend to have a lot more items so wouldn't duplicate global variables for each of them!

    Can someone show me how to do this?

    Any help is very appreciated!

    Thank you

    Stanbridge

    Post edited by: stanbridgej - colors and fonts or not will not save.  Are bolded my question make (non-fat) code easier to read (I hope).

    I haven't used Formccalc, but I thought it would be the same regardless. Insert a script object to the top of the hierarchy and call it, for example "sco." Paste the Globals. Then refer to variables of the extent that sco. Cityscope_Sydney_CostUser1, etc. Make one

    App.Alert (sco. Cityscope_Sydney_CostUser1);

    one of the fields. If the debugger is activated, it will tell you if it cannot resolve the reference as "sco. In this case, you may need to use the som expression to reference the script object, for example

    var scoScript = xfa.resolveNode ("topOfHierarchy.sco");

    scoScript.Cityscope_Sydney_CostUser1

    But if as close as possible to the top of the hierarchy above should work.

Maybe you are looking for