Accessing variable in main mxml from component

I have the following problem, i have a main mxml and
component mxml which i import in my main file. I need to access
variable in main mxml file from that component but i don't know how
to reference my main mxml from component? Can someone please help
me with this?
thanks in advance

Try this
this.parentApplication.main_mxml.variableID = 34;
Rgds
JFB
"msabljic" <[email protected]> wrote in
message
news:fd2u5k$a17$[email protected]..
>I have the following problem, i have a main mxml and
component mxml which i
> import in my main file. I need to access variable in
main mxml file from
> that
> component but i don't know how to reference my main mxml
from component?
> Can
> someone please help me with this?
>
> thanks in advance
>

Similar Messages

  • How to access elements in main.mxml from ActionScript file?

    I am having difficulties creating a panel using the Extension Builder SDK. It seems that all the examples explain how to control a CS5 document using a panel, but I have not found any examples of how to control the elements of the panel via the ActionScript.   By the way we are using CS Extension Builder SDK with Flash Builder 4.  Here is a simple example of were I am getting stuck.
    I create a Extension builder project for a PS panel named: "CSExtensionTest".  In the main.mxml file a create a button with id="btnPSCode".
    File:
    main.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" historyManagementEnabled="false">
    <mx:Script>
                 <![CDATA[
    Bindable]
                        private var hostName:String = HostObject.mainExtension;
                 ]]>
          </mx:Script>
    <mx:VBox height="100%" width="100%" verticalAlign="middle" horizontalAlign="center">
    <mx:Button id="btnPSCode" label="Run PS code" click="CSExtensionTestPhotoshop.run()" enabled="{hostName.indexOf('photoshop') > -1}"/>
    <mx:Button id="btnJSXCode" label="Run JSX code" click="CSExtensionTestJSX.run()"/>
    </mx:VBox>
    </mx:Application>
    How can i get access to the properties of this element in the CSExtensionTesJSX.as file?
    File:  
    CSExtensionTesJSX.as
    package
    import com.adobe.csxs.core.CSXSInterface;
    import com.adobe.csxs.core.csxs_internal;
    import com.adobe.csxs.types.SyncRequestResult;
    import mx.binding.utils.BindingUtils;
    import mx.core.ButtonAsset;
    import mx.core.mx_internal;
    import mx.utils.object_proxy;
    public class CSExtensionTestJSX
    public static function run():void
    var myCSXS:CSXSInterface = CSXSInterface.getInstance();
    var result:SyncRequestResult = CSXSInterface.instance.evalScript("jsxFunction");
                        btnPSCode.enabled = false;   
    I'm getting this error:
    I had originally written a panel using a Flex Project and was able to access the properties of the elements of the main.mxml file directly.  It seems I can't do that anymore.  Am I missing something in the code?  Am I missing some type of library?  I'm sorry I am not very experienced in Adobe development, but we are trying to get more involved in developing plugins and extensions for CS5.  Any help will be greatly appreciated.

    Opps... My fault.  Just figured out waht was missing.
    I forgot to enter the following on the funciton line.
    public static function run(m:main):void
    Again Thank you.

  • Access Variable on Main Timeline from Package

    I have set a variable on the root level timeline.  I have a movieclip that calls a package and within that package I want to call or access the main timline variable.  I have tried MovieClip(root) currentLabelName or just calling currentLabelName and none of that works.  Is there another way to be able to access it?

    I agree with dmennenoh that it's probably best not to mix the two, but let's start out assuming you do mix the two, and also the following
    Your instance is called assessment5Q
    You have a frame script on the same frame with the label you want to get.
    Your frame script might look like:
    assessment5Q.loadQuestions(currentFrameLabel);
    Your Assessment5Q Class would have a method that looks like:
    public function loadQuestions(label:String):void {
        //do your current load here
    Now that your Class is set up to work from a framescript, it will work from a Document Class without modification. However, it sounds like your instance doesn't exist on frame 1 of the main timeline, so you need to make sure you don't try to reference your instance before it exists. So we're going to make use of a getter/setter pair, which will allow Flash to create your instance on the timeline per usual, but when the setter is triggered you can then do things with the new instance. Your main document code would include code something like this:
    protected var _assessment5Q;
    public function get assessment5Q():Assessment5Q {
         return _assessment5Q;
    public function set assessment5Q(value:Assessment5Q):void {
         If (_assessment5Q != value) {
              _assessment5Q=value;
              If (_assessment5Q) {
                   _assessment5Q.loadQuestions(currentFrameLabel);
    Note that even this better way is not a way I'd recommend if you expect your project to take longer than a couple of days to develop or be maintained over more than a couple of weeks. It's not good practice to have a single Class that has the responsibility for both getting the data and displaying it. If you only have a single question format, you may be able to get away with having a Class that loads the questions and makes questions from it. Then you can pass the loaded questions into your View as above (instead of using a method that takes a string, you can use a method that takes an array of questions).
    It just so happens that I build Assessments as the vast majority of the work I do, and I have it broken down where there is a Class that has some number of Classes inside it that know how to build individual question types. That Class gets XML handed to it (from a different Class that just handles loading XML) and then it figures out which child Class knows how to build each question type and hands a snippet of XML to the appropriate child. Once all the questions are created, a set of questions will be handed into a View that can show between 1 and 9 questions. It does this by having individual question views on stage that, again, know about displaying specific types of questions. I'm not saying that you need to go whole hog into creating such a scalable design as I have. I'm just suggesting that your product is more likely to stand the test of time if you break things into smaller pieces that then cooperate. That way if the bigger pieces aren't quite right, you can put the smaller pieces together in a different way.

  • Change a state in main.mxml from a script in another mxml

    Hi,
    i'm having some trouble with my application, let's say i have the main application file called MAIN.MXML
    in wich i have set different States, and have different forms.
    now i have a form called loginForm which contains the textInput item for Login and Password, i also have a link Need to Register
    which onClick will change the state to show in the same panel a different form registerForm (with the relevant textInput items)
    now the MAIN.MXML includes a custom component called <comp: NetworkManager /> which includes all the logic scripts and MXML
    tags to create and manage an HTTPService request to a PHP Server.
    when the user click on the Login button, this will call a function included in the main.as script (imported in MAIN.MXML) which
    will call a function in the script within NetworkManager.MXML passing all the form data.
    in NetworkManager.MXML the script will create an XML message, will send to the PHP Server and wait the response... if this comes
    true the user is authenticated, otherwise is not.
    so far so good, i get the message sent, the correct response back. Now i want to hide the form in MAIN.MXML and put something like
    Welcome firstName lastName!! instead. But i don't know how to do it. If i try to access the states in MAIN.MXML from the NetworkManager.MXML
    i'll get all sort of errors which i don't have it here with me.
    I know this sounds like a newbie question, and it really is ... any taker?
    your help is much appreciated.
    thanks
    T.

    Hi,
    i've tried RemoveChild but i get an error like:
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/removeChild()
    at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()[C:\autobuild\3.2.0\frameworks\p rojects\framework\src\mx\core\UIComponent.as:5096]
    at mx.core::Container/removeChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\ core\Container.as:2274]
    at components::NetworkManager/sendUserAuthHandler()[C:\Documents and Settings\Tom\My Documents\flex_prj\Shoppy\src\components\NetworkManager.mxml:182]
    at components::NetworkManager/serverHandler()[C:\Documents and Settings\Tom\My Documents\flex_prj\Shoppy\src\components\NetworkManager.mxml:98]
    at components::NetworkManager/__serverRPC_result()[C:\Documents and Settings\Tom\My Documents\flex_prj\Shoppy\src\components\NetworkManager.mxml:290]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.2.0\framewor ks\projects\rpc\src\mx\rpc\http\mxml\HTTPService.as:290]
    at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\autobuild\3.2.0\frameworks\ projects\rpc\src\mx\rpc\AbstractInvoker.as:193]
    at mx.rpc::Responder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responde r.as:43]
    at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\ AsyncRequest.as:74]
    at DirectHTTPMessageResponder/completeHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\s rc\mx\messaging\channels\DirectHTTPChannel.as:403]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    who is the caller of loginForm then? i've tried with Application.application.loginForm but i do get the same error though.
    loginForm is contained in a Canvas item, is it the caller? or who else?
    thanks
    T.

  • Set variable in main mxml based on check box selection in another mxml

    I have a two mxml, In one of my mxml I have a checkbox, on checkbox_click event I want to pass some value to my main.mxml.
    Using this value I want to toggle the visibility of map layer in main.mxml.
    So far I have declared a bindable boolean variable in my main application mxml.
    And written a function to set the value of this boolean variable depending on some other variable in the second mxml. This second boolean variable is set depending on the checkbox selection in second mxml. now I do not understand from where should I call this function so that everytime checkbox is checked or unchecked value of my bindable boolean variable (declared in main app) changes.
    Is there any other way of doing this?
    Thanks in Advance

    This makes it even easier:
    -------------- MyComp.mxml ----------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import mx.collections.ArrayCollection;
          import mx.events.ListEvent;
          [Bindable] public var compBool:Boolean = false;
          private function toggleVisibility(evt:ListEvent):void{
            if(cmbx.selectedLabel == "show"){
              compBool = true;
            }else{
              compBool = false;
        ]]>
      </mx:Script>
      <mx:ComboBox id="cmbx" dataProvider="{new ArrayCollection(['hide', 'show'])}"
        change="toggleVisibility(event)"/>
    </mx:VBox>
    -------------- mainapp.mxml -------------
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      xmlns:comp="*">
      <comp:MyComp id="compObj"/>
      <mx:Label text="Map Component" visible="{compObj.compBool}" includeInLayout="{compObj.compBool}"/>
    </mx:Application>
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • Accessing buttons on main stage from inside of a movie clip

    Greetings...
          here is the scenario:
                 - I have buttons on main stage, and a swf file which is loaded to scene using a LOADER in AS3
                 - this is a website, so the problem rises when user moves its cursor around the page and now  buttons in main stage,
                    are still active since they are behind the loaded swf file.
                 - i would like to learn, how can i CODE inside the loaded SWF file, to either remove the buttons in main page, or remove
                    the event listeners. not sure if my case has anything to do with .Parent or .roo, (I want to access those main stage
                    buttons from the SWF file which is loaded)
                 - The general case is, i have SWF files loading inside another SWF files, is it possible to access items on each stage from
                    inside of loaded SWF files on that specific stage. Similarly i would be interested to learn about accessing main stage from inside
                    of movieclips running on stage. how can i access something not in present FLA file yet, in FLA file that is loading the page as SWF.
                    Thanks.

    If you load an swf into another using the Loader class, then the Loader itself is the parent of the loaded swf., so MovieClip(parent.parent) might help you to target the timeline that the Loader was born from.  The more proper way to have a loaded file talk to a parent file is thru dispatching events that the parent assigns listeners for after the file has loaded.  Here's a link to a posting that might help explain how to implement this.
    http://forums.adobe.com/thread/470135?tstart=120
    As for the buttons that you want to disable, you could either use the removeEventListener() method to remove the listeners you have assigned, or you could set their mouseEnabled property to false, or you could set their visible property to false.

  • Call function, pass value, access variable in movieclip class from main stage

    i am new to flash as.
    I got quite confused on some problems. as the function here
    is quite different from c and asp.net.
    I have a movieClip named MC, and it's enabled with action
    script, with the class name MC_Rectangle
    and a Stage.
    I override the MC_Rectangle class file in a mc_rectangle.as
    external file.
    here is the code:
    package{
    import flash.display.*;
    import flash.events.*;
    public class MC_Rectangle extends MovieClip {
    var sequence:int = new int();
    function setSequence(data:int):void{
    sequence = data;
    function addSequence():void{
    sequence ++;
    I have new a object in the main stage var
    mc_rect:MC_Rectangle = new MC_Rectangle()
    question:
    in main stage:
    1. how can i access the variable "sequence" in "mc_rect"
    2. how can i pass parametre from main stage to mc_rect via
    function setSequence(data:int)?
    3. how can i call the function in addSequence() in mc_rect.
    in asp.net, i usually use mc_rect.sequenct,
    mc_rect.setSequence(data), mc_rect.addSequence() to achieve my
    goals......
    btw, can function in mc_rect return out result to main stage?
    thanks in advance.

    Your as-file must be named MC_Rectangle.as (same upper/lower
    case as in the Class name)
    Ad 1) You have to declare sequence as a public property
    "public var sequence;" or - better - define a getter-function for
    sequence.
    Ad 2) mc_rect.setSequence(8); e. g. (you must write "public"
    in the Class-declaration of setSequence)
    Ad 3) mc_rect.addSequence(); e. g. (you must write "public"
    in the Class-declaration of addSequence)
    ... and yes, your methods can return a value: Replace "void"
    with the proper data type (int, String, ...) and place a "return
    myNumber;" or the like in the method's body.

  • Accessing variable of a datatable from Java Code

    Hello,
    I am trying to present a list of objects with a jsf datatable. However, each object needs to be rendered differently, so, I am including another JSP fragment, depending on the datatype.
    JSP code follows:
    <h:dataTable value="#{pc_ConsultaCliente.dadosCliente.historicoCliente}" var="varhistoricoCliente" styleClass="dataTable" >
    <h:column>
    <f:facet name="header">
    <h:outputText styleClass="outputText" value="HistoricoCliente"/>
    </f:facet>
    <%
    String toinclude="";
    try {
    toinclude=FragmentsHandler.getFragmentForBinding(
    javax.faces.context.FacesContext.getCurrentInstance(),
    "#{varhistoricoCliente}" ,
    Contacto.class);
    } catch (Exception ex) { throw new RuntimeException(ex); }
    %>
    <h:panelGroup>
         <jsp:include page="<%= toinclude %>"/>
    </h:panelGroup>
    </h:column></h:dataTable>
    The problem is, when I try to access the varhistoricoCliente from the FragmentsHandler class, I simply can't reach it (I keep on getting null):
    In it, I use (I get fc as a Faces Context from the JSP):
    public static String getFragmentForBinding(FacesContext fc, String valueBinding, Class defaultClass) throws IOException {
    Object o=fc.getApplication().createValueBinding(valueBinding).getValue(fc), defaultClass);
    //After this, o just gets null
    Is this this right? How can I access the var from the datatable component?
    Many thanks!

    I'm no JSF expert but I'm not sure your approach can work at all.
    I would simplify everything by entering a different tag for each different type of object, and enabling the right one with the "rendered" attribute.
    Something like:
    <table>
       <column>
         <tag1 rendered="#{myResult.isType1}">...
         <tag2 rendered="#{myResult.isType2}">...
       ...

  • How to call one Main MXML from another main MXML file and pass values between them?

    Hi,
    I am trying to populate a datagrid from a XML file ,which I have done successful
    I am able to get data out of the datagrid on clicking on any element
    Now when I click on any element in datagrid I want call a new mxml file which is also have Aplication tag and I want to pass that value of clicked element to it
    This is the code I am using for getting data from XML into data grid in 1st MXML file and the XML file used.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"  initialize="exp.send()">
         <fx:Declarations>
             <s:HTTPService id="exp" url="expLab1.xml" result="
    resultHandlerQuestionBar(event)"/>
         </fx:Declarations>
         <s:Panel x="74" y="218" width="485" height="333" title="Work On Configured Experiments" id="p1" fontSize="14" chromeColor="#9BFDAB" dropShadowVisible="false" contentBackgroundColor="#E4EEE6" contentBackgroundAlpha="1.0" backgroundColor="#67B6AC" textAlign="left">
              <mx:DataGrid  x="35" y="33" width="338" height="88" dataProvider="{experimentdetails}" chromeColor="#FCFCFC" contentBackgroundColor="#FFFFFF" selectionColor="#FAFBFD" rollOverColor="#FCFDFF" focusColor="#FCFDFD" itemClick="onItemClick( event );">
                  <mx:columns>
                     <mx:DataGridColumn id="j1" dataField="experimentName" headerText="" itemRenderer="jaya">
                     </mx:DataGridColumn>
                  </mx:columns>
             </mx:DataGrid>
         </s:Panel>
         <fx:Script>
             <![CDATA[
                 import mx.collections.ArrayCollection;
                 import mx.controls.Alert;
                  import mx.events.FlexEvent;
                 import mx.events.ListEvent;
                 import mx.rpc.events.ResultEvent;
                 [Bindable]
                 private var workbenchname:ArrayCollection;
                  //private var a:String;
                 private function resultHandlerQuestionBar(event:ResultEvent):void
                    experimentdetails=event.result.List.experimentList.experiment;  
                 [Bindable]
                 private var experimentdetails:ArrayCollection;
                  private var alert:Alert;
    private var data:String;
                 private function onItemClick( e:ListEvent ):void {
       data= experimentdetails.getItemAt(e.rowIndex).experimentName.toString();
                    alert=Alert.show(experimentdetails.getItemAt(e.rowIndex).experimentName.toString());
             ]]>
         </fx:Script>
    </s:Application>
    and the xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <List>
       <workbench>Basic Movement</workbench>
         <experimentList>
           <experiment>
             <experimentName>Distance with varying time</experimentName>
             <Rating>2</Rating>
             <expNO>1</expNO>
           </experiment>
           <experiment>
             <experimentName>Distance with Constant time</experimentName>
             <Rating>1</Rating>
             <expNO>2</expNO>
           </experiment>
           <experiment>
             <experimentName>Time taken while decelerating</experimentName>
             <Rating>3</Rating>
             <expNO>3</expNO>
           </experiment>
          </experimentList> 
    </List>
    Now the code for 2nd MXML is as follows
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:s="library://ns.adobe.com/flex/spark"
                         xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
          <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
          <s:Label text="lable1" >
          </s:Label>
    </s:Application>

    Check out ExternalInterface class:
    http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_2.html
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • Access var on main timeline from class

    Hello,
    Currently working on some expanding media that has class files for all of the various action functions, then a separate class file for all of the var that sets the graphics, tracking, copy / content and whatnot.
    The final part that's driving me nutty - how to set a var per .swf that will concatenate with the tracking.  Ideally I'd like to get this as automated as possible so if I pass off the files to other designers they can update it quickly with minimal effort.
    Assets:
    unit 1a
    300x250 banner
    728x500 expanded larger content area
    unit 1b
    728x90 banner
    728x90 expanded larger content area (that is a duplicate of the 300x250 content .swf).
    So with tracking, each banner and expanded area would have individual tracking pixels.  Currently I can get all of the pixels to fire properly per unit however I have to have separate functions so there's no overlap and a number of duplicate naming.  Druthers-wise what I would have is the type of unit passed when the pixel function is triggered for the larger expanded sizes.  For example =
    User clicks on unit 1b button, this triggers the buttonClickTracking(); function (which is in the actions class file, shared by both unit 1a and unit 1b)..  unit 1b would have some var in the timeline so that when that function is called, the pixel will have "unit1b" + tracking.pixel;
    To sum it up, I need to set some var on the timeline for each expanded unit so the unit label (id) is called when any of the various tracking functions are initiated.  Right now getting that ID from each of the larger content .swf eludes me so any suggestions would be greatly appreciated!

    i could not understand what you're trying describe.

  • How to access symbol on main timeline from nested symbol

    I did read the the edge JSAPI but still no way to make it work.
    Very simple use: you click on a button, a window appears. the button that makes the window appear is supposed to hide some elements which it does. HOWEVER when I want to use a close button within the symbol (window) to make these symbols appear again, it doesnt work.
    From inside the symbol I tried:
    sym.getComposition().getStage().getSymbol("openTabButtBlack").show();
    Doesnt work.

    sym.getComposition().getStage().$("openTabButtBlack").show();

  • How to access component's control property from main .mxml file

    I have a main .mxml while in which i imported custom
    "popUpWindow" component using "import component.popUpWindow"
    statement. In main .mxml file I display later on that component as
    popUp window using popUp manager class. Once component is
    displayed, how can i access using actionscript component's
    TextInput control (specifically its .text property) from my main
    .mxml file?
    thanks

    I posted this answer elsewhere, maybe it will help:
    First, save the new component wherever you keep your
    components, let's say you call it "MyPopWindow.mxml"
    Assign public variables for the string in both the main app
    and the popup.
    In your case, in the main app:
    Code:
    public var myText:String = "whatever the text field should
    say.";
    and then in the pop up mxml:
    Code:
    [Bindable]
    public var myText;
    Then, in the main mxml file:
    Code:
    // define the window type
    private var popWin:MyPopWindow;
    private function popMeUp(event:MouseEvent):void{
    popWin =MyPopWindow(PopUpManager.createPopUp(this,
    MyPopWindow, true));
    popWin.myText = myText;
    The important things here to notice is the name of the
    component (i.e. the file) is used. A variable is created for the
    window, and TYPED to your file name. Then you use the constructor
    you already had, but again use your type. The "true" is optional
    and gives you a modal popup window.
    Lastly, assign the variable in the window (I called mine
    popWin) to the variable in the main file you want to pass.

  • How to access component's control from main .mxml file?

    I have a main .mxml while in which i imported custom
    "popUpWindow" component using "import components.popUpWindow"
    statement. In main .mxml file I display later on that component as
    popUp window using popUp manager class:
    var popUpWin:IFlexDisplayObject;
    popUpWin = PopUpManager.createPopUp(this, popUpWindow, true);
    Once component is displayed, how can i access using
    actionscript component's TextInput control (specifically its .text
    property) from my main .mxml file?
    thanks

    msabljic , sounds like you ran into the same problem as me,
    perhaps... I posted a question similar to yours around the same
    time. Take a look at the responses I got and maybe that will help
    answer your question.
    Here's a link to the post
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid =1285775&enterthread=y

  • Passing a variable from an mxml component to the main mxml file

    Hey guys,
    I have a popup titlewindowt which is defined as a component in a separate mxml component file.
    In the popup window i have an inputbox and a button
    When i press the button in that popup window i want the text in the input box to be transfered across to a variable in my main mxml file
    How can i do this?
    Thanks
    Chris

    Since you are already tied in to the top level application then I would add a listener at the application level and in the component do a:
      FlexGlobals.topLevelApplication.dispatchEvent(....)
    However, I can't help but encourage you to decouple this functionality and pass events around rather than what you are currently doing.
    There are a few ways you can do this.  One is to use an MVC framework to model your application after.
    A simpler approach even would be to have the component simploy dispatch events to itself and have whatever is creating the component listen for the events and do higher level functionality.
    Good Luck!

  • How can i pass variables from component MXML to main MXML

    I have been struggling to pass some variables from my custom PanelTest.mxml to Main.mxml
    In my Main.mxml, i tried:
    import PanelTest;
    private var newVar:String;
    private var _panel:PanelTest;
    _panel.thisVar = newVar;
    I then bind the newVar to a Label textfield and nothing happens.
    Thanks

    One possibility would be to use a Login PEI to set a unique UserInfo Name/Value for the user. I think in 5.0 each guest session is unique, so would have unique UserInfo. Then you could pass this value to your portlet (by specifying it in the web service) and use it as a key into a Application-scoped hashmap where you store your info. In other words, your Application variables option, but you have a way of uniquely naming your variables via PEI-set UserInfo.

Maybe you are looking for

  • "Function code cannot be selected" error while uploading a document.

    Hi, When we try to upload a document into SAP the user is getting the error "Function code cannot be selected". Detailed error is given below. Only one user is facing this error in PRD. For all other users it is working fine. We replicated the same i

  • Acrobat XI PDF Add-ins do not appear in Office 2013

    I just installed Acrobat XI on a computer with Win7 and Office 2013. The program works fine but I have been unable to get the add-ins to appear in the apps. I had previously done  the  same installation on another computer of mine and all works fine.

  • Automatic TO creation with WMTA during delivery

    Hello, We are creating TO for ZLF delivery with WMTA output type during the creation of delivery. But after WMTA output type is competed, we are trying to display the Transfer Order information with smartform using the ZMTA output type by triggering

  • Missing kodak driver for 9810 photo printer

    When I upgraded to Lion the Kodak 9810 photo printer worked at first. But I accidentally deleted the printer and when I tried to add it again it couldn't locate the driver. I've downloaded the driver from Kodak's website but it still won't show up wh

  • I would like to do a change of ownership please

    I am struggling to get over the 1st hurdle of transferring my EE accounts into my daughter's name and was told this should be relatively easy and can be done by e-mail. It always seems to be someone else's department!