To access the MXML components in the as.

I have a request. For the Visual component of the application, I created a mxml file:

<?xml version="1.0" encoding="utf-8"?>
<ascentify:Main xmlns:fx="http://ns.adobe.com/mxml/2009" 
     xmlns:s="library://ns.adobe.com/flex/spark" 
     xmlns:mx="library://ns.adobe.com/flex/mx" 
     width="800" height="600"
        xmlns:modules="com.ascentify.components.modules.components.*"  
     xmlns:ascentify="com.ascentify.*">
                  
     <mx:TabNavigator id="practicePlayer" width="100%" height="100%" creationPolicy="all">
          <modules:Start id="startModule" label="Start" width="100%" height="100%"/>
     </mx:TabNavigator>
</ascentify:Main>

'Hand' is a class AS 3.0:

package com.ascentify {

     import mx.containers.VBox;
     import mx.containers.TabNavigator;

     public class Main extends Application
     {
               public static var practicePlayer:TabNavigator = new TabNavigator();

               function Main() {
                    var tab1:VBox = new VBox();
                    practicePlayer.addChild(tab1);
               }
        }
}

But the VBox is not added to the TabNavigator. How can I fix?

Just glancing through it, I see no reason why the code you posted should not work. Are you sure it is called?

I advise you of the substitution of the createChildren() method and put the code of creation of child in there. Flex performs this function automatically when the component is ready to be filled with children. If you do this, be sure to call super.createChildren () somewhere in the service.

Other than that, I don't know what to tell you.

Tags: Flex

Similar Questions

  • To access the properties of the controls from other mxml components

    Yet to learn Flex and if this question seems trival please bear with me.

    What I have to do is access the properties of a control in the file main mxlm, but the control is in a separate mxml file.

    The scenerio is that I have a checkbox in the chkbox.mxml file. I need to know the value of the selected property, so that it is accessible to me in the main mxml file where I use this property to determine how to navigate the application.

    Thank you

    Hmmm

    something like

    If (parentApplication.myCheckbox.selected == true) {}
    to do this
    }

    or even

    If (application. Application.myCheckbox.selected == true) {}
    to do this
    }

    does it work?

  • To access the elements of a call from the custom components page

    I'm sure that it's simple, but I have searched for hours and find nothing.

    I have my main mxml page various controls and a HTTPService. From this main page to include a component custom.

    Everything what I'm trying to access the main page in custom components gives me "access undefined property error."

    What Miss me?

    Should be a little bit more about your custom component and what you are trying to access. Normally, when you access objects outside the scope of the current element it is advisable to raise events.

    However, if you simply 'dot' your way to scope enforcement check out
    http://livedocs.Adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=live Docs_Book_Parts & file = app_container_064_11.html

    parentDocument and enforcement will probobly you get what you are looking for.

    If this does not address your situation, your zip code and will bring a more detailed solution.

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

    I'm having problems creating a panel using the Extension Builder SDK. It seems that all the examples explain how a CS5 document using a control panel, but I found no examples of how to control the items in the Panel via ActionScript code.   Furthermore, we use CS Extension Builder SDK with Flash Builder 4.  Here's a simple example of were I'm stuck.

    I create a project Extension generator for a panel of PS named: 'CSExtensionTest '.  In the main.mxml file create a button with id = "btnPSCode".

    ****************************************************************************************** *****************************************

    File:

    hand. 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 ="PS code run"click ="CSExtensionTestPhotoshop.run ()"enabled =" hostName.indexOf{('photoshop') >-1}"/ >

    " < mx:Button id ="btnJSXCode"label ="code JSX run"click ="CSExtensionTestJSX.run ()"/ > "

    < / mx:VBox >

    < / mx:Application >

    ****************************************************************************************** *****************************************

    How can I access 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():Sub

    {

    var myCSXS:CSXSInterface = CSXSInterface.getInstance ();

    var result: SyncRequestResult = CSXSInterface.instance.evalScript ('jsxFunction');

    btnPSCode.enabled = false;

    }

    }

    }

    ****************************************************************************************** *****************************************

    I get this error:

    image001.png

    I had initially written a panel using a Flex project and was able to access the properties of the items in the file main.mxml directly.  It seems that I can't do that.  Did I miss something in the code?  Am I missing some kind of library?  I'm sorry, I'm not very experienced in the development of Adobe, but we are trying to become more involved in the development of plugins and extensions for CS5.  Any help will be greatly appreciated.

    You must pass a reference to your object main mxml in the run method. For example:

    hand. MXML:


    http://www.Adobe.com/2006/mxml"layout ="absolute"historyManagementEnabled ="false">
       
           

    [Bindable]
    private var hostName:String = HostObject.mainExtension;
               
    ]]>
       
       
           
       

    testJSX.as:

    package
    {
    import com.adobe.csxs.core.CSXSInterface;
    import com.adobe.csxs.types.SyncRequestResult;
       
    Import mx.controls.Button;

    public class testJSX
    {
    public static void run(m:main):void
    {
    var result: SyncRequestResult = CSXSInterface.instance.evalScript ("jsxFunction");
    var b:Button = m.myButton;
    }
    }
    }

    HTH.

  • to access the components via script?

    Hi can someone tell me how to access the components via script

    pls... Thank you

    Hello

    You can access any component in the flex application based on the hierarchy of this component.

    parentApplication.CompParentOf_2.CompParentOf_1.AnyComponent;

    parentApplication.CompParentOf_2.CompParentOf_1.AnyPublicVar;

    ParentApplication is defined as the main appplication.

    You can use this script anywhere in the application.

    I hope this can help you if you are looking for it.

    Thank you.

    -

    Afonso

  • To access the dataprovider of mxml component.

    Hello

    I have a dataprovider and want to access the data of mxml component.

    Basically, I

    ActionScript:

    [

    Bindable ]

    private

    var dp : Collection ArrayCollection;

    private

    function dp_handler(e:ResultEvent):Sub

    {

    DP = e.result

    as Collection ArrayCollection;

    }

    I wanted to access RFP since using the mxml component

    < mx:script >

    <! [CDATA]

    mx.core.Application;

    LBL. Text = Application.application.dp.getItemAt (0) .fieldname;

    []] >

    < mx:Label

    id=" LBL " x=" 51 " y=" 136 " />

    He continues to tell me dp is unknown property.  No idea what I am doing wrong?

    RFP to make public, not private.

  • Access the ArrayCollection class MXML ActionScript collection?

    I have a MXML file that has a collection for my tree component arraycollection. I am overriding the updateDisplayList function to add lines to all of my nodes in the tree... However, I can't seem to understand how to access this ArrayCollection collection of inside the actionscript class?

    I tried the methods used to pass variables between two MXML files (like a popup window - which I've used in the past and it works very well).

    My actionscript class code is almost identical to this example here:

    http://www.iepl.NET/treeControlSample/treeControlSample.html

    In the example above, the data is static, but sometimes my data's going to change and I need to access the set dataProvider (collection ArrayCollection) in order to make the lines work well... This has been very frustrating for me! :)

    If someone knows a better way to reach gettign lines for brothers and sisters in a tree... Please let me know!

    Any help would be super duper awesome!

    I found the solution to this. My problem was similar to cheftimo was seen in this post:

    http://www.Adobe.com/cfusion/webforums/Forum/MessageView.cfm?forumid=60&CATID=585&ThreadId = 1367784 & enterthread = y

    The answer is to import the component you are trying to access the variable from and then call using mx.core.Application ' Application.application.'

    Thanks to Greg Lafrance!

  • How to access the Flex collection ArrayCollection in Action Script components?

    I have this code-

    < mx:Label text = "Style" / >
    < mx:ComboBox id = "cboStyle" initialize = "{changeSkin('skins/Plain.swf') ;} "change ="{changeSkin (cboStyle.selectedItem.data) ;} ">
    < mx:ArrayCollection >
    < mx:Object label = "Plain" data="skins/Plain.swf"/ >
    < mx:Object label = "BlueTan" data="skins/BlueTan.swf"/ >
    < mx:Object label = "Brauwny" data="skins/Brauwny.swf"/ >
    < mx:Object label = "Darknite" data="skins/Darknite.swf"/ >
    < mx:Object label = "iCandy" data="skins/iCandy.swf"/ >
    < mx:Object label = "Minty" data="skins/Minty.swf"/ >
    < mx:Object label = "SimplicityGray" data="skins/SimplicityGray.swf"/ >
    < mx:Object label = "SummerSky" data="skins/SummerSky.swf"/ >
    < / mx:ArrayCollection >
    < / mx:ComboBox >

    I would like to do instead of initialize = "{changeSkin('skins/Plain.swf') ;} "East of refers to an item in the collection ArrayCollection.  How can I do this?  I'm relatively new to Flex.  I guess that there is a way to access the ArrayCollection collection and then access the individual table entry.

    Thank you

    Aaron

    Initialize = "{cboStyle.DataProvider.getItemAt (0) .data ;}}" »

    If this post has answered your question or helped, please mark it as such.

  • Cannot access the Microsoft Update Site

    I get the following error message when you try to access the update site:

    Microsoft Update could not be installed on your computer

    Make sure that you log on as an administrator or as a member of the Administrators group, and then try again.

    More troubleshooting options

    • If your computer is connected to a network and the problem persists, contact your system administrator to see if your Microsoft Update settings are managed by using Group Policy.
    • If your computer is not connected to a network, or if your system administrator has not disabled Microsoft Update, check if the Windows Update service is disabled or stopped. For information about how to start a service, search help and Support on your computer.

    Note: If you encounter problems with the installation of Microsoft Update, you can continue to get updates for your computer by going to Windows Update in control Panel.

    [Error number: 0x800A01AE]

    I AM logged on as administrator (it's actually the only account on the system other than the guest account: I have renamed the main administrator account and use it as my account {I know this isn't the best practice, but I always did like it and it makes things easier being the administrator, especially since I changed the name for security reasons}).  I have a small home network wireless, but have no defined group policy (no server - just-to-peer).  The Windows Update Service is launched and running (but I stopped and restarted it just to be safe).

    I don't quite know what to do next.  I would like to be able to access this site for updates that cancelled or failed during the update process automatic (and who seem not to be re - that appear as options when I check the updates).

    Any help you can give would be greatly appreciated...

    BTW, I use a Dell Inspiron E1705 with 32-bit Windows Vista Business SP2.

    Thank you!
    Lorien - a - MCSE/MCSA/network + / A +.

    Hello

    You try to go actually on here Windows Updates site?

    http://www.update.Microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us

    This site does not work for Vista. You must use the Windows built-in to Vista updates or download them
    sites I posted for you last time.

    Absolutely do not use the default Administrator account. Just make a new Admin account to
    use and leave the other to test and difficulty. In fact, make an Admin NOW account to use to test and fix
    According to the needs. If your sole administrator corrupts you will have a big headache.

    -------------------------------------

    Run the Windows updates to reset and

    Do the two of them:

    How to reset the Windows Update components? a Mr Fixit
    http://support.Microsoft.com/kb/971058

    Description of the system update for Windows Vista, for Windows Server 2008 analytical tool, for
    Windows Server 2008 R2 Release Candidate for Windows 7 Release candidate
    http://support.Microsoft.com/kb/947821

    ------------------------------------

    If you have issues with your updates, please describe what you see and all the error codes or the KB/QB
    problem updates.

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • Unable to access the Windows Update Web site.

    When you try to access the Microsoft Windows Update site, the following occurs. the Web page that says "checking to see if you have the latest version of..." "is displayed briefly. It is immediately replaced by a page of information. This has "[error number: 0x800A0005] the website has encountered a problem and cannot display the page you are trying to display." The options provided below may help you solve the problem,"with the other possibilities in clickable (I went through them but nothing helped...

    I tried Microsoft FixIt Center, but all she could do is to tell me that "necessary attachment components" but not which.

    I also tried to reset Windows Update components according to the instructions on "http://support.microsoft.com/kb/971058".. .no luck.

    I am running XPPro SP3 IE8.

    Symantec Endpoint Protection version 11.0.7101.1056.

    Any help much appreciated.

    Hello

    Perform the steps mentioned below and check if that helps:

    Method 1

    Check if the Windows Update Service is selected as a starting point.

    To do this, follow these steps:

    1. on Start, run and type services.msc in the Open box, and then click OK.

    In services.msc find the automatic updates service and double-click it.

    1. click on the tab log and ensure that the "Local System account" is selected for the account logon and the box "Allow service to interact with desktop" is DISABLED.
    2. in the hardware profile sectionin the log tab, check that the service is activated.
    3. on the general tab, the Startup Type should be Automatic, otherwise, the drop-down list box and select automatic.
    4. under "Status of Service" under the general tab, the service must be started, click the Start button enable.

    Repeat the above steps for the service "BITS Background Intelligent Transfer Service ()".

    Method 2:

    You can also re - register dll in Windows Update.

    To do this, follow these steps:

    1. Start, run, type CMD and click ok
    2. in the black command window, type the following command and press enter

    REGSVR32 WUAPI. DLL

    Wait until you receive the "DllRegisterServer in WUAPI. DLL succeeded"message and click OK."

    * Repeat the same step for each of the following commands:

    REGSVR32 WUAUENG. DLL
    REGSVR32 WUAUENG1. DLL
    REGSVR32 ATL. DLL
    REGSVR32 WUCLTUI. DLL
    REGSVR32 STINKS. DLL
    REGSVR32 WUPS2. DLL
    REGSVR32 WUWEB. DLL

    Method 3:

    Delete the corrupted Windows Update files. To do this, follow these steps:

    a. at the command prompt, type the following command and press enter

    net stop WuAuServ

    b. at the command prompt,

    type cd %windir% , and then press enter

    c. in the opened folder, type the following command and press ENTER to rename the Software Distribution folder

    Ren C:\Windows\SoftwareDistribution SD_OLD

    d. restart the Windows Update Service by typing the following at the command prompt

    net start WuAuServ

    Type Exit and press ENTER to close the command prompt.

    e. restart the computer and check if you have a similar question.


    For reference:

    You can access the event viewer on your computer and check the newspaper of windows for messages/error codes important related to the question and after return from errors in the event viewer.

    See the link below for more details:

    What are the information contained in the logs of the event (Event Viewer)?

    http://support.Microsoft.com/kb/308427

    Let us know if it helps.

  • Cannot access the BIOS on Aspire M

    Greetings, Acer community.

    I am a junior high school with a year + old Acer computer which broke down twice and is now out of warranty.  I bought this computer with my own money.

    My laptop Aspire M does not start because of the 'boot configuration file becoming invalid', that's at least what the blue screen States "recovery."  The offeres blue screen with "press Esc for UEFI firmware settings, but is not admissible.  I tried F2, F8, F10, Alt + F10, F12, bar space, Delete, and pause to try and activate the BIOS interface, just as unsuccessful.

    I followed the instructions to buy Acer recovery tools, but without being able to access the BIOS to set the boot order, I just sank another $25 in a laptop that does not work.

    The cost of the service exceeds the cost of the laptop, so I tend to keep trying to fix it myself.  If he can't ' be repaired, there is little chance I will buy a new Acer to replace as this has been a very frustrating experience.

    Help, please.

    -Lauren

    Update!

    Well, first, I removed the HARD drive to try to get the BIOS F2-interruption of the boot sequence.  No luck.  So, it was off looking for the battery CMOS, which I thought might help interruption control W8 (or something else) could have on my sequence start, and as such, did not get to the BIOS screens.

    AND while poking around on the forums, YouTube and the manual - I found on the ACER site, I came across the port of "battery reset" on the merits of the case, which could be used for all disconnect all power from the system.  Seemed to be a promising option.  So, before you tinker with the CMOS, I pressed the reset button of battery for 4 seconds, using a small paper clip and VOILA!, after a power cycle, the bios screens were once more accessible usign F2, etc.  (Obviously, the keyboard is working very well.)

    I returned to screens Alt + F10 to try to * repair * the system using the functions of recovery aboard, but NONE of these options might work, they complain of a locked hard drive no boot device, the missing files of corruption or start-up sector.  Partial, complete repair, troubleshooting, none of this would work.

    Thus, using the system discs that I had already bought, I searched recharge the system entirely.  After you change the boot sequence, placing the CD/DVD drive to the top of the list, I inserted the disc system, rebooted and was on my way.

    I worked my way through the recovery system, three discs and your language and wait now for the freshly loaded operatign system complete the installation of all hardware and software components.  I am sure that this will solve my problem.

    I just wish that I would have realized that this little stupid option disconnect battery existed a few weeks ago.  Persistence is paying off, I guess.

    -Lauren

  • When install or remove a product, get error cannot access the windows installer

    Whenever I'm installing an update or remove a product, I get the message "Cannot access Windows Installer"

    Hello

    ·        What are the programs you are trying to install on the system and updates?

    ·        Have you managed to install the updates before on the system without any problems before?

    ·        Remember to make any change to the system?

    I suggest you follow the steps mentioned below.

    Method 1:

    I suggest you to check in services if the service Windows install is set to automatic. Follow the steps mentioned below.

    a. Click Start--> Run--> "services.msc" [press on enter]

    b. scroll down and find "Windows Installer".

    c. right-click on it and choose "Properties".

    d. on the properties page, verify that the "Startup type" is set to 'Automatic'

    e. confirm the "Service status" is "started."

    f. click "OK".

    Method 2:

    I suggest you unregister re-register Windows install and check if it helps. Follow the steps mentioned in the article below.

    Error message "Could access the Windows Installer Service" when you install the application

    http://support.Microsoft.com/kb/319624

    Method 3:

    I suggest you to reset the windows update components and check. Follow the steps mentioned in the article below.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Method 4:

    I suggest you to download and install Windows install from the link below and check.

    Windows install 4.5 Redistributable

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

    I suggest you follow the steps mentioned in the articles given below for further assistance.

    Error message "Could access the Windows Installer Service" when you install the application

    http://support.Microsoft.com/kb/319624

    How to troubleshoot issues that may occur when you install, uninstall, or upgrade one program on a Windows computer

    http://support.Microsoft.com/kb/2438651

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • Windows 7 error: "Windows cannot access the specified device, path or file. You don't have appropriate permissions to access. »

    Hi I encounter an error message "Windows cannot access the specified device, path or file. You don't have appropriate permissions to access. »

    The error message every time I click on administrative tools of the window (including the Control Panel, windows update, the Windows Explorer, etc.) but without impact on other programs I have.

    I rebooted in safe mode and discover that everything works fine (no error message will appear when you click on window management tools).

    I proceed to do a clean boot-> first disable all services of third parties (message yet to come), and then clear the components of the service windows (message yet to come)

    I tried to type "explorer.exe" in the start menu-> search field then click right highlight to run with administrative rights, then received another message of error "Server execution failed".

    I am the administrator account on this PC - and have full access.

    The error seems to have appeared on 11 August after Windows Update the following:

    Update of security for Microsoft Windows (KB2536276, 2556532 2559049, 2560656, 2563894, 2567680), and

    Update for Microsoft Windows KB2563227

    A security update for the Microsoft.net framework 4 client profile (verson 1)

    There is no installation of any software or updates outside the windows update.

    I also tried to restore the windows before August 10, 2011, but that did nothing.

    As the error prevents me to access any object Admin window - I'm unable to retrieve the product ID and write to Microsoft Tech and ask for help.

    I hope some of you can offer the suggestion of possible solutions (I really want to re - install window 7 and other software, I'm sure).

    Thank you.

    My solution works in about 2 minutes, it's a very weird error and only happened to 3 jobs in the last 3 years, this solution does not need to create another account if local administrator is active and allows access to the corrupt user documents ect.

    Log in as the local administrator or a domain administrator

    If the local administrator is not activated refer to http://support.microsoft.com/kb/555910 and after completing these newspapers of steps on the local administrator account.

    Locate the user for example files. C:\Users\[username]\

    If you see no AppData press Alt to see the toolbar at the top of the window, select Tools > folder options, go to the view tab and select "Show hidden files, folders and drives" click OK.

    Go to AppData\Local

    Select all (Ctrl + a).

    Delete

    * Do not delete credentials (as it will remove their wallpaper) *.

    This allows to release the error.

  • How to fix "could access the Windows Installer service"

    Hello

    I am trying to install an application and I still get the message

    "Installation ' VISA Shared 64-bit components ' failed with the following error: ERROR 1719." The Windows Installer Service could not be accessed. This can occur if Windows Installer is not installed correctly"

    I trieds methods 1, 2 and 4 (I use Windows 7, which is not listed for method 3) on this link http://support.microsoft.com/kb/2438651#reso1 and the problem persists.

    Can suggest additional measures I can take to resolve this please?

    Follow these steps:

    Accessories/RUN

    Type: regedit

    Navigate the menu by clicking on each of the following:

    HKEY_LOCAL_MACHINE

    SYSTEM

    CURRENTCONTROLSET

    SERVICES

    MSIServer

    Right-click on WOW64 and select 'change '.

    Change the value data from 1 to 0

    then close this box of

    Access the dialog box run again (as we started with above)

    Type: services.msc

    Access Windows install and STOP the service and RESTART.

    Then restart your machine.

    I hope this works

  • Make a custom page when you access the URL of the root of a Web application

    A BC blog post says it's now possible to "make a custom page when you access the URL of the root of a Web App site. For example, if you have a "blog" Web App, items can be made available to/blog/my-blog-post, and you will be able to customize the page/blog"

    Is this possible? It doesn't for me due to unique URL problem yet.

    For example the web page is / banksy - Guide of Banksy

    But web app components must be on/banksy/web-app-item but need to change to/banksy-editions / Banksy choose your weapon (green) | Gallery hang up Banksy Guide

    I don't see any documentation, support BC do not know and ask me the Forum to discuss. Someone at - he found a workaround?

    Thank you

    Paul

    You have a page with the same name as you want for the web application folder.

    1 remove this page from banksy (Dungeon of backup of your content)

    2. change your url web app for /banksy you need

    3. create a folder called /banksy (it will allow you to make a folder)

    4. create an index.html in the folder of Banksy page - put your content to the page that you deleted here

    You will then have an index for the file page and the web application will work...

    /Banksy - index page

    /Bansky/ - index page

    /Banksy/index.html - index page

    / web banksy/something - point app

  • A search criterion and the result as a table in the header. Wanted to bind the result table to bean to access the value of the key

    The search criteria and the result is displayed in the table in a group header.  I want to get the value of the selected row and analyze the value of Vo in the next page for a variable binding. So I need to manage the value biniding to the bean tbal, but there is no option to bind the table to a bean. So, how can I get the selected value.

    Kind regards

    K M Krishna.

    First tell us your version of jdev, please.

    to get to the selected line you need not to link the table to a managed bean. You can for example drag the necessary attributes of the VO on the page and drop them as components of a inputText. the framework then generated the attribute bindings and sets the values of the current row for them. As you do not really need the inputText elements switch to source view (! it is essential!), then remove them. This will eliminate the Visual component, but attribute bindings are stored.

    Know you can access the values through their EL or as you get the value of an attribute via it's mandatory.

    Timo

Maybe you are looking for