AS: Accessing Components inside Components

I'd like to apply an action to a UI Component. This UI Component is in a TabNavigator. Using actionScript, how can I communicate to that UI Component?
The progression looks like this:
TabNavigator > NavigatorContent > Border > Group > UI Component
Thanks!

Solved my own problem!
<mx:TabNavigator x="10" y="10" width="980" height="748" id="playerTabNav" creationPolicy="all">
The children of a TabNavigator aren't created until they're needed.Only the contents of the first tab are actually created, because they're part of what's needed when the TabNavigator is first displayed. The contents of the second tab won't be instantiated until they need to be displayed, which is when the second tab is clicked on.
To force the contents of the other tabs to be instantiated, the creationPolicy property of the TabNavigator is changed to be "all". This will cause all of the different tabs to be instantiated, regardless of having been clicked on.

Similar Messages

  • How to Install Oracle Data Access Components (ODAC) on Windows Server 2003?

    I recently installed "32-bit Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio" on my computer (Windows 7, 64bit). Everything seems fine and I can develop and run my application in Visual Studio 2010 and IIS 7.
    Now, when I deploy my application to the Server, it raises error:
    Exception: System.TypeInitializationException: The type initializer for 'Oracle.DataAccess.Client.OracleCommand' threw an exception. ---> Oracle.DataAccess.Client.OracleException: The provider is not compatible with the version of Oracle client
    Obviously I need to install ODAC on the server, too. My server is:
    - Windows 2003 32 bit R2 (I know, I know!)
    - IIS 6
    So. I downloaded the same installation from Oracle website (ODAC 11.2 Release 5 and Oracle Developer Tools for Visual Studio [11.2.0.3.20]) and installed it on the server. But still getting the same error.
    PS: When I was installing, I chose Oracle Data Access Component for Oracle Client 11.2.0.3.20 in Oracle Universal Installer. hmmmm. Should I choose "Oracle Server" instead? Screenshot
    Edited by: 1000434 on Apr 17, 2013 6:35 AM
    Edited by: 1000434 on Apr 17, 2013 6:36 AM

    ODP.NET, Unmanaged Driver uses unmanaged dependencies in the Oracle Client. The error you see means you have another Oracle Client installed on the Win2003 machine and ODP.NET is attempting to load the incorrect Oracle Client version, rather than the version you installed ODP.NET with.
    What you need to do is direct ODP.NET where to find the correct version of its unamanaged Oracle Client dependencies. This will be generally the bin directory of your Oracle Client home that was installed with ODP.NET.
    You can learn more about DllPath here:
    http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/InstallODP.htm#sthref94
    If you're not familiar with how to set ODP.NET settings in the Registry or .NET config files, you can read how to do that here:
    http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/featConfig.htm#sthref106

  • How to check if Oracle Data Access Components  is installed?

    How to check if  Oracle Data Access Components is installed and version on my computer?
    Also How to check if Oracle Data Provider is installed and version?
    TIA
    Steve42

    Regedit HKLM->Software->Oracle.  See what's there...
    At the very least, that can give you paths and can check file versions from there.

  • No Setup.exe in 64-bit Oracle Data Access Components (ODAC) Dowload

    Why is there no Setup.exe in the 64-bit Oracle Data Access Components (ODAC) Download? Are the only instructions for installing in the dowloaded readme file?

    You're probably looking at an XCOPY bundle.
    If you're looking for an x64 11.2 bundle installed via the Oracle Installer, you'd need to get either the 11201 full client on OTN, or the 11202 full client on My Oracle Support. The 11202 full client includes support for .NET 4 if you need that.
    Hope it helps,
    Greg

  • Internet Access from Inside to Outside ASA 5510 ver 9.1

    Hi everyone, I need help setting up an ASA 5510 to allow all traffic going from the inside to outside so I can get internet access through it. I have worked on this for days and I have finally got traffic moving between my router and my ASA, but that is it. Everything is blocked because of NAT rules I assume.
    I get errors like this when I try Packet Tracer:
    (nat-xlate-failed) NAT failed
    (acl-drop) Flow is denied by configured rule
    Version Information:
    Cisco Adaptive Security Appliance Software Version 9.1(4)
    Device Manager Version 7.1(5)
    Compiled on Thu 05-Dec-13 19:37 by builders
    System image file is "disk0:/asa914-k8.bin"
    Here is my ASA config, all I want for this exercise is to pass traffic from the inside network to the outside to allow internet access so I can access the internet and then look for specific acl's or nat for specific services:
    Thank You!
    Config:
    ASA5510# sh running-config
    : Saved
    ASA Version 9.1(4)
    hostname ASA5510
    domain-name
    inside.int
    enable password <redacted> encrypted
    xlate per-session deny tcp any4 any4
    xlate per-session deny tcp any4 any6
    xlate per-session deny tcp any6 any4
    xlate per-session deny tcp any6 any6
    xlate per-session deny udp any4 any4 eq domain
    xlate per-session deny udp any4 any6 eq domain
    xlate per-session deny udp any6 any4 eq domain
    xlate per-session deny udp any6 any6 eq domain
    passwd <redacted> encrypted
    names
    dns-guard
    interface Ethernet0/0
    description LAN Interface
    nameif Inside
    security-level 100
    ip address 10.10.1.1 255.255.255.252
    interface Ethernet0/1
    description WAN Interface
    nameif Outside
    security-level 0
    ip address 199.199.199.123 255.255.255.240
    boot system disk0:/asa914-k8.bin
    ftp mode passive
    dns domain-lookup Outside
    dns server-group DefaultDNS
    name-server 199.199.199.4
    domain-name
    inside.int
    object network inside-net
    subnet 10.0.0.0 255.255.255.0
    description Inside Network Object
    access-list USERS standard permit 10.10.1.0 255.255.255.0
    access-list OUTSIDE-IN extended permit ip any any
    access-list INSIDE-IN extended permit ip any any
    pager lines 24
    logging enable
    logging asdm informational
    mtu Inside 1500
    mtu Outside 1500
    mtu management 1500
    icmp unreachable rate-limit 1 burst-size 1
    asdm image disk0:/asdm-715.bin
    no asdm history enable
    arp timeout 14400
    no arp permit-nonconnected
    nat (Inside,Outside) source dynamic any interface
    object network inside-net
      nat (Inside,Outside) dynamic interface
    access-group INSIDE-IN in interface Inside
    access-group OUTSIDE-IN in interface Outside
    router rip
    network 10.0.0.0
    network 199.199.199.0
    version 2
    no auto-summary
    route Outside 0.0.0.0 0.0.0.0 199.199.199.113 1
    route Inside 172.16.10.0 255.255.255.0 10.10.1.2 1
    route Inside 172.16.20.0 255.255.255.0 10.10.1.2 1
    route Inside 192.168.1.0 255.255.255.0 10.10.1.2 1
    timeout xlate 3:00:00
    timeout pat-xlate 0:00:30
    timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
    timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
    timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
    timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
    timeout tcp-proxy-reassembly 0:01:00
    timeout floating-conn 0:00:00
    dynamic-access-policy-record DfltAccessPolicy
    user-identity default-domain LOCAL
    aaa authentication ssh console LOCAL
    http server enable
    http 0.0.0.0 0.0.0.0 Inside
    no snmp-server location
    no snmp-server contact
    snmp-server enable traps snmp authentication linkup linkdown coldstart
    crypto ipsec security-association pmtu-aging infinite
    crypto ca trustpool policy
    telnet timeout 5
    ssh 0.0.0.0 0.0.0.0 Inside
    ssh timeout 60
    ssh version 2
    ssh key-exchange group dh-group1-sha1
    console timeout 0
    threat-detection basic-threat
    threat-detection statistics access-list
    no threat-detection statistics tcp-intercept
    username <redacted> password <redacted> encrypted privilege 15
    class-map inspection_default
    match default-inspection-traffic
    policy-map type inspect dns migrated_dns_map_1
      parameters
      message-length maximum client auto
      message-length maximum 512
    policy-map global_policy
    class inspection_default
      inspect dns migrated_dns_map_1
      inspect ftp
      inspect h323 h225
      inspect h323 ras
       inspect rsh
      inspect rtsp
      inspect esmtp
      inspect sqlnet
      inspect skinny
      inspect sunrpc
      inspect xdmcp
      inspect sip
      inspect netbios
      inspect tftp
      inspect ip-options
    service-policy global_policy global
    prompt hostname context
    no call-home reporting anonymous
    call-home
    profile CiscoTAC-1
      no active
      destination address http
    https://tools.cisco.com/its/service/oddce/services/DDCEService
       destination address email
    [email protected]
      destination transport-method http
      subscribe-to-alert-group diagnostic
      subscribe-to-alert-group environment
      subscribe-to-alert-group inventory periodic monthly
       subscribe-to-alert-group configuration periodic monthly
      subscribe-to-alert-group telemetry periodic daily
    password encryption aes
    Cryptochecksum:
    <redacted>
    : end
    SH NAT:
    ASA5510# sh nat
    Manual NAT Policies (Section 1)
    1 (Inside) to (Outside) source dynamic any interface
        translate_hits = 0, untranslate_hits = 0
    Auto NAT Policies (Section 2)
    1 (Inside) to (Outside) source dynamic inside-net interface
         translate_hits = 0, untranslate_hits = 0
    SH RUN NAT:
    ASA5510# sh run nat
    nat (Inside,Outside) source dynamic any interface
    object network inside-net
    nat (Inside,Outside) dynamic interface
    SH RUN OBJECT:
    ASA5510(config)# sh run object
    object network inside-net
    subnet 10.0.0.0 255.255.255.0
    description Inside Network Object
    Hi all,Hello everyone, I need some help before my head explodes. Idddddddd

    Hello Mitchell,
    First of all how are you testing this:
    interface Ethernet0/0
    description LAN Interface
    nameif Inside
    security-level 100
    ip address 10.10.1.1 255.255.255.252
    Take in consideration that the netmask is /30
    The Twice NAT is good, ACLs are good.
    do the following and provide us the result
    packet-tracer input inside tcp 10.10.1.2 1025 4.2.2.2 80
    packet-tracer input inside tcp 192.168.1.100 1025 4.2.2.2 80
    And provide us the result!
    Looking for some Networking Assistance? 
    Contact me directly at [email protected]
    I will fix your problem ASAP.
    Cheers,
    Julio Carvajal Segura
    Note: Check my website, there is a video about this that might help you.
    http://laguiadelnetworking.com

  • Access elements inside a dialog box/window using applescripts

    Am new to applescript. I want to access elements inside a dialog box/window. I tried following code.
    tell application "System Events" set procs to processes set windowName to {} repeat with proc in procs try if exists (window 1 of proc) then repeat with w in windows of proc if w's name contains "App Name" then copy w's name to the end of windowName copy properties of w to the end of windowName end if end repeat end if end try -- ignore errors end repeat end tell return windowName
    But am only able to get the 4 elements from window: 1.Close 2.Minimize 3.Maximize 4.window title
    Nothing from inside the window/dilog.
    Can any one help me with this pls?

    Hi,
    Like this :
    tell application "System Events"
          tell process "App Name"
                tell (first window) to if exists then return UI elements
          end tell
    end tell

  • Can not access ASAs inside interface via VPN tunnels

    Hi there,
    I have a funny problem.
    I build up a hub and spoke VPN, with RAS Client VPN access for the central location.
    All tunnels and the RAS VPN access are working fine.
    I use the tunnels for Voip, terminal server access and a few other services.
    The only problem I have is, that I could not access the inside IP address of any of my ASAs, neither via tunnels nor via RAS VPN access. No telnet access and no ping reach the inside interfaces.
    No problem when I connect to the interface via a host inside the network.
    All telnet statments in the config are ending with the INSIDE command.
    On most of the ASAs the 8.2 IOS is running on one or two ASAs the 8.0(4).
    For the RAS client access I use the Cisco 5.1 VPN client.
    Did anybody have any suggestions?
    Regards
    Marcel

    Marcel,
    Simply add on the asas you want to administer through the tunnels
    management-access
    http://www.cisco.com/en/US/docs/security/asa/asa82/command/reference/m.html#wp2027985
    for asa5505
    management-access inside
    for all others if you have management interface management0/0 defined then:
    management-access management
    then you may need to allow the source , for example if RA VPN pool network is 10.20.20.0/24 then you tell asa that network cann administer asa and point access to inside, but sounds you have this part already.
    telnet 10.20.20.0 255.255.255.0 inside
    http 10.20.20.0 255.255.255.0 inside
    same principle for l2l vpns
    Regards

  • Access object inside TextObject with SDK

    In RDC there was a FieldElements properties of a TextObject for access object embedded in a TextObject. I can't found anything like this in RAS SDK Model. TextObject can be a container so how I can access object inside ?
    Thanks Filippo

    In RAS, a TextObject can be a little complex.
    - a TextObject has a Paragraphs collection.
    - a Paragraphs collection is comprised of Paragraph objects.
    - a Paragraph contains ParagraphElements
    - a ParagraphElement can be a crParagraphElementKindField, crParagraphElementKindText or crParagraphElementKindTab.
    So starting with a ParagraphTextElement object and a ParagraphFieldElement object, you should be able to construct a TextObject containing an embedded field.
    conversely, you should be able to tear down the paragraphs collection of a TextObject into its individual paragraphs and ParagraphElements to find the embedded object you are looking for.
    Dan

  • Accessing components

    I have upgraded an existing WebDB 2.2 application to Portal 3.0.6.6.5 and I am still able to access the ported procedures directly thru URL (like http://<hostname.domain>:7777/pls/NATT/OSNASS.NSARS_RPT.show). In my previous application one of the reports was the actual starting page with links to other components and forms added as PL/SQL code at the bottom of the report. When creating new applications in Portal the procedure doesn't seem to be accessible the same way as before, the procedure does not show up in the user schema and can not be addressed directly thru URL. Is this true or am I missing something?

    I'm sorry, this was probably the wrong forum. I've reposted this item under Portal Content Areas.
    Peres

  • How to access components in a iview from program

    Hi,
        Can we access the iview components from program dynamically? I have a Table Control , i want to refresh it in my program.
        How to set Mandatory (*) mark for a label? Is there any property for that?
    Thanks,
    Sridhar

    If table is displayed in current view, it will be refreshed with most of the events(There are few exceptions) from that view. You don't need to do anything for that.
    Suppose You have one Input Fields - Inp, and Lable - Lb.
    From the label properties select "Label For" with Inp from DropDown menu. From properties of the inputfield change property "Status" to required.
    Now u would get required mandatory mark.
    Note that, selecting the status "Required" for inputfield only displays the asterisk. But it doesnt stop you from navigating to another view with out entering a value.

  • Accessing components vars.

    Hi,
    How do I access a var in a differint component? I have two custom components in the same application and need to get the variable (arrayCollection) from one to populate a chart in the other.

    Thanks Benji,
    ListItems Component
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init(), reloadData()" height="95%" width="100%" backgroundAlpha="0">
    <mx:Script>
         <![CDATA[
              import mx.core.Application;
              import mx.collections.ArrayCollection;
              import mx.containers.Box;
              import mx.controls.Alert;
              import mx.events.DragEvent;
              import flash.net.navigateToURL;
              import mx.events.StateChangeEvent;
              import mx.controls.ComboBox;
              import mx.controls.LinkButton;
              import mx.containers.VBox;
              import mx.controls.CheckBox;
              import mx.controls.Text;
              import mx.containers.HBox;
              import mx.collections.XMLListCollection;
              import mx.rpc.events.ResultEvent;
              import mx.managers.CursorManager;
              import flash.text.TextField;
              namespace ink = "http://www.inktomi.com/";
              use namespace ink;
              //     Archive Vars
              [Bindable] private var xmlList:XMLList;
              [Bindable] private var listCollection:XMLListCollection;
              [Bindable] private var listData:XML;
              [Bindable] public var serviceURL:String = "http://boss.yahooapis.com/ysearch/news/v1/";
              [Bindable] public var searchFor:String = "biotechnology%20AND%20biotech";  
              private const PROXY:String = "http://localhost/employeePhoneDesktop/src/php/proxy.php?url=";
              private const APIID:String = "?appid=######
              private const PARAMS:String = "&format=xml&orderby=date";
              private var reload:Timer;
              //     Archive Vars
              private var vBox:VBox;
              private var hBox:HBox;
              private var titleText:LinkButton;
              private var itemInfo:Text;
              private var abstract:Text;
              private var archive:CheckBox;
              private var rateItem:ComboBox;
              private var category:ComboBox;
              private var container:VBox;
              private var clickURL:Text;
              private var canvas:Canvas;
              private var titleFormat:TextFormat;
              //     Archive Vars
              /*[Bindable]
              public var newsDB:ArrayCollection = new ArrayCollection( [
                     { title: null, clickURL: null, info: null, abstract: null, category: null, rateItem: null }
             public var newsDB:ArrayCollection = new ArrayCollection;
              private function init():void {
                   listService.send()
                   CursorManager.setBusyCursor();
              private function getData(e:TimerEvent):void{
                   listService.send()
                   CursorManager.setBusyCursor();
                   removeChild(container);
              private function reloadData():void {
                   reload = new Timer(10000, 10);
                   //reload.start();
                   reload.addEventListener(TimerEvent.TIMER, getData);
                   //trace(reload.delay);
                   //reload.addEventListener(TimerEvent.TIMER_COMPLETE,
              private function resultHandler(e:ResultEvent):void {
                   listData = e.result as XML;
                   // add the imems to an XMLList and XMLListCollection
                   // so that they can be used with the repeater class
                   // and update automatically
                   xmlList = e.result.resultset_news.result as XMLList;
                   listCollection = new XMLListCollection(xmlList);
                   CursorManager.removeBusyCursor();
                   // populate the layout with datd
                   createLayout();
              private function createLayout():void {
                   container = new VBox();
                   var categoryLabels:Array = new Array("Health","Industrial","Emerging Tech","Food & Ag");
                   var rateLabels:Array = new Array("Positive","Neutral","Negative");
                   for(var i:int=0; i<listCollection.length; i++) {
                        //vBox = new VBox();
                        canvas = new Canvas();
                        hBox = new HBox();
                        titleText = new LinkButton();
                        titleFormat = new TextFormat();
                        itemInfo = new Text();
                        abstract = new Text();
                        archive = new CheckBox();
                        rateItem = new ComboBox();
                        category = new ComboBox();
                        clickURL = new Text();
                        titleText.label = listCollection.getItemAt(i).title;
                        //titleText.addEventListener(MouseEvent.DOUBLE_CLICK, getURL);
                        titleText.addEventListener(MouseEvent.CLICK, getURL);
                        titleText.width = 400;
                        clickURL.text = listCollection.getItemAt(i).clickurl;
                        clickURL.visible = false;
                        clickURL.includeInLayout = false;
                        itemInfo.text = listCollection.getItemAt(i).source + " | " + listCollection.getItemAt(i).date;
                        itemInfo.y = 25;
                        abstract.text = listCollection.getItemAt(i).abstract;
                        abstract.y = 42;
                        abstract.visible = true;
                        abstract.includeInLayout = true;
                        abstract.width = 400;
                        abstract.height= 60;;
                        archive.label = "Archive";
                        category.prompt = "Category";
                        category.dataProvider = categoryLabels;
                        category.rowCount = categoryLabels.length;
                        category.visible = false;
                        category.includeInLayout = false;
                        category.width = 95;
                        category.height = 20;
                        rateItem.prompt = "Rate";
                        rateItem.dataProvider = rateLabels;
                        rateItem.visible = false;
                        rateItem.includeInLayout = false;
                        rateItem.width = 95;
                        rateItem.height = 20;
                        canvas.addChild(titleText);
                        canvas.addChild(clickURL);
                        canvas.addChild(itemInfo);
                        canvas.addChild(abstract);
                        canvas.addChild(hBox);
                        hBox.addChild(archive);     
                        hBox.addChild(category);
                        hBox.addChild(rateItem);
                        hBox.y = abstract.y + 60;
                        hBox.percentWidth = 80;
                        hBox.percentHeight = 80;
                        archive.addEventListener(Event.CHANGE, toggleArchive);     
                        container.addChild(canvas);          
                   container.x = 10;
                   container.y = 10;
                   addChild(container);
       // If someone chooses to archive the item, set the properties of the
       // ComboBoxes (visible & includeInLayout) to true
       private function toggleArchive(e:Event):void {
             var chb:CheckBox = e.currentTarget as CheckBox;
             var hBox:HBox = chb.parent as HBox;
             var len:int = hBox.numChildren;
             for(var i:int=0; i<len; i++) {
                   var cb:DisplayObject = hBox.getChildAt(i);
                   if((cb is ComboBox)) {
                    // toogle visibility and include in layout
                    (cb as ComboBox).visible = chb.selected;
                    (cb as ComboBox).includeInLayout = chb.selected;
       // Called when someone clicks on the titleLink. This function pulls the
       // origional website URL up in a seperate browser window
       private function getURL(e:MouseEvent):void {
                 var link:LinkButton = e.currentTarget as LinkButton;
                 var canvas:Canvas = link.parent as Canvas;
                 var clickURL:Text = canvas.getChildAt(1) as Text;
                 var url:URLRequest = new URLRequest(clickURL.text);
                 navigateToURL(url);
              trace(clickURL.text);
      /* private function showAbstract(e:MouseEvent):void {
                    var link:LinkButton = e.currentTarget as LinkButton;
                 var canvas:Canvas = link.parent as Canvas;
                 var abstract:Text = canvas.getChildAt(3) as Text;
                 var hBox:HBox = canvas.getChildAt(4) as HBox;
                 link.removeEventListener(MouseEvent.CLICK, showAbstract);
                 link.addEventListener(MouseEvent.CLICK, hideAbstract);
                 abstract.visible = true;
                 abstract.includeInLayout = true;
                 while(abstract.hitTestObject(hBox) == true){
                      hBox.y += 1;
                 trace(canvas.getChildren());
       private function hideAbstract(e:MouseEvent):void {
                    var link:LinkButton = e.currentTarget as LinkButton;
                 var canvas:Canvas = link.parent as Canvas;
                 var abstract:Text = canvas.getChildAt(3) as Text;
                 var hBox:HBox = canvas.getChildAt(4) as HBox;
                 link.removeEventListener(MouseEvent.CLICK, hideAbstract);
                 link.addEventListener(MouseEvent.CLICK, showAbstract);
                 abstract.visible = false;
                 abstract.includeInLayout = false;
              hBox.y = 35;
                 trace(abstract.text);
       public function archiveData():void {
                 var containerArray:Array = container.getChildren() as Array;
                 for(var i:int=0;i<containerArray.length;i++){
                 //for(var i:int=0;i<1;i++){
                      var canvas:Canvas = container.getChildAt(i) as Canvas;
                      var titleText:LinkButton = canvas.getChildAt(0) as LinkButton;
                      var clickURL:Text = canvas.getChildAt(1) as Text;
                      var itemInfo:Text = canvas.getChildAt(2) as Text;
                      var abstract:Text = canvas.getChildAt(3) as Text;
                      var hBox:HBox = canvas.getChildAt(4) as HBox;
                      var archive:CheckBox = hBox.getChildAt(0) as CheckBox;
                      var category:ComboBox = hBox.getChildAt(1) as ComboBox;
                      var rateItem:ComboBox = hBox.getChildAt(2) as ComboBox;     
                      if(archive.selected == true){
                        newsDB.addItem( {
                        title: titleText.label,
                        clickURL: clickURL.text,
                        info: itemInfo.text,
                        abstract: abstract.text,
                        category: category.selectedLabel,
                        rateItem: rateItem.selectedItem });                    
                      trace(newsDB[0].title);
       private function archiveSuccess():void {
                 Alert.show("Your clips have been successfully saved","Archive Complete");        
       private function archiveFault():void {
                 Alert.show("Your clips have not been saved. Please contact an administrator.","Archive Error");
         ]]>
    </mx:Script>
         <mx:HTTPService id="listService" url="{serviceURL + searchFor + APIID + PARAMS}" result="resultHandler(event)" resultFormat="e4x"/>
    </mx:Canvas>
    Main mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="absolute"
         xmlns:com="components.*"
         backgroundGradientAlphas="[1.0, 1.0]"
         backgroundGradientColors="[#EDF4FF, #C6D9FF]"
         width="800" height="600"
         backgroundAlpha=".75"
         title="  Media Trap Beta V1.1"
         titleAlignment="left"
         creationComplete="init()">
         <mx:Script>
              <![CDATA[
              ]]>
         </mx:Script>
         <mx:Style source="assets/style.css" />
         <mx:Label x="19" y="14" text="Media Trap" fontWeight="bold" fontSize="20"/>
         <mx:Label x="20" y="38" text="beta 1.1"/>
         <mx:TabNavigator id="navigator" width="450" height="89%"  x="20" y="61">
              <mx:VBox label="News">
                   <com:listItems id="newsFeed" name="newsFeed" backgroundColor="#FFFFFF" x="0" y="0" height="100%">
                   </com:listItems>
              </mx:VBox>
              <mx:VBox label="Blogs">
                   <mx:Text text="Blog Coverage"/>
              </mx:VBox>
              <mx:VBox label="Twitter">
                   <mx:Text text="Twitter Coverage"/>
              </mx:VBox>
              <mx:VBox label="Video">
                   <mx:Text text="Video Coverage"/>
              </mx:VBox>
         </mx:TabNavigator>
         <mx:Button x="348" y="36" label="Archive Selected" click="newsFeed.archiveData()"/>
         <!--<com:currentArchiveChart id="currentCats" x="478" y="81" height="212" />-->
    </mx:WindowedApplication>
    Charting Component
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="300" height="346" xmlns:com="components.*" creationComplete="init()" >
        <mx:Script>
            <![CDATA[
            import mx.core.Application;
            import mx.collections.ArrayCollection;
              // testing variable
            [Bindable]
            private var medalsAC:ArrayCollection = new ArrayCollection( [
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29, Test: 20000 }
            private function init():void{
                 trace(mx.core.Application.application.myListItems.newsDB as ArrayCollection);
                 medalsAC.addItem( { Country: "Canada", Gold: 75, Silver:39, Bronze: 29 });
                 medalsAC.addItem( { Country: "England", Gold: 100, Silver: 200, Bronze: 100 });
            private function displayGold(data:Object, field:String, index:Number, percentValue:Number):String {
                var temp:String= (" " + percentValue).substr(0,6);
                return data.Country + ": " + '\n' + "Total Gold: " + data.Gold + '\n' + temp + "%";
            ]]>
        </mx:Script>
             <mx:Label id="archiveTitle" x="10" y="10" text="Current Archive " fontSize="14" fontWeight="bold"/>
             <mx:PieChart id="chart" height="130" width="300" color="0x323232"
                showDataTips="false" dataProvider="{medalsAC}"  y="22">
                <mx:series>
                    <mx:PieSeries labelPosition="callout" field="Gold">
                    </mx:PieSeries>
                </mx:series>
            </mx:PieChart>
    </mx:Canvas>

  • Accessing components in a different state

    There's probably a more elegant way of doing this.
    Right now I'm setting certain components to be available in all states, but that means I need to make them visible or invisible depending on the state... which is a pain.
    How can I access a component in a different state.
    Maybe I'm missing something simple like stateName.component.text or something?

    I am currently using this, but I'm getting the error that states that what I'm after doesn't exist... when it clearly does.
    Here's that code.
    private function stateChangeHandler(e:StateChangeEvent):void {
         if (e.newState == "State1") {
              dg.visible = true;
              optionsPanels.visible = false;
         } else if (e.newState == "options") {
              dg.visible = false;
              optionsPanels.visible = true;
              if (preferences["searchType"] == 0) {
                   googleLocalChoice.selected = true;
              } else {
                   yahooLocalChoice.selected = true;
              yahooID.text = preferences["yahooAPI"];
         } else if (e.newState == "notes") {
              dg.visible = false;
              optionsPanels.visible = false;
         } else if (e.newState == "password") {
              dg.visible = false;
              optionsPanels.visible = false;
    What I'm having trouble with is in the if e.newstate == "options" - I'm getting the error on yahooLocalChoice, because preferences["searchType"] does not equal 0.

  • In onLoad JavaScript, I'm getting "Error: Permission denied to access property 'classes'" when I access Components.classes; how do I enable that permission?

    I need to emulate several ActiveX functions in my client's web application. I have located several Mozilla web pages that describe how to do the things I need, and I have attempted to implement those instructions. However, I can't seem to get past the first line of code. In my web page, I am calling a JavaScript function using the onLoad attribute of the <body> tag. I am using the Navigator object to determine that the browser is Firefox. I then attempt to access the extension classes using the following code on lines 51 and 52 of the Download.js file:
    var C = Components;
    var CC = C.classes;
    The Web Console gives me these two messages:
    [13:51:55.621] The Components object is deprecated. It will soon be removed. @ http://distribution:781/NewDDI/DownLoad.js:51
    [13:51:55.621] Error: Permission denied to access property 'classes' @ http://distribution:781/NewDDI/DownLoad.js:52
    How do I enable adequate permission to be able to access the Components classes?

    I think Components is available only in extensions (or otherwise privileged code) and not in ordinary web pages.

  • Accessing components in TabNavigator on unselected tabs

    Hi there,
    I want to set the value of components (says a rich text
    editor, or image source attribute value, etc.) in tabs that are NOT
    selected. So if I have three tabs say, and I currently have tab 1
    selected and I want to set the value of a text field that is
    visible when tab 2 is selected...how can I achieve this? I know the
    TabNavigator extends the ViewStack class but I'm new to Flex and am
    having difficulty with this. In Java it's a very easy process so
    I'm assuming it would be quite similar in Flex...any help is
    greatly appreciated. Thanks!

    quote:
    I would think this code works, but it gives an error. Anyone
    know why?
    You can't use dot syntax to refer to components that way. If
    you know what that component's id ("futuresLbl") is, why would you
    use such a roundabout way to refer to it anyway? From the Flex
    docs:
    The IDs for all tags in an MXML component, no matter how deeply
    nested they are, generate public variables of the component being
    defined. As a result, all id properties must be unique within a
    document. This also means that if you specified an ID for a
    component instance, you can access that component from anywhere in
    the application: from functions, external class files, imported
    ActionScript files, or inline scripts.
    I imagine if you want to do it the roundabout way, you'd have
    to cast the individual DisplayObjects to the proper type and then
    set the text property on the Label. Note that I use a name
    attribute "futuresLbl" for the Label
    private function clickHandler():void{
    var myVBox:VBox = tb.getChildByName("futures") as VBox;
    var myLabel:Label = myVBox.getChildByName("futuresLbl") as
    Label;
    myLabel.text = "New Futures Information";
    TS

  • Accessing components created thru AS addChild

    I am working on an application that requires me to add
    componts on the fly, based on the field type as entered into the
    database. (code attached).
    So, I have no idea how many componets will be added, or what
    types they will be.
    On click of a save button, I need to be able to access the
    values typed in to the boxes. Normall its textbox.text, but since I
    don't know the names of the boxes, I'm stumped.
    I have tried adding the name of the component to an array
    just before I use the .addChild() in the switch statments, but that
    only gives me an array of the names, and looping through the array,
    using array(i).text gives me an error.
    Any ideas? I'm stuck on this. Maybe there is a better way of
    adding the boxes to the page than what I'm doing.
    Thanks!

    I strongly urge you to consider using mx:Repeater. It does a
    lot of work for you , including creating arrays of references to
    repeated components. If you give some tag in the repeater an id,
    say mytext", then you can access the instances of that component
    using mytext[n].text, where "n" is the index of the dataProvider
    item.
    Doing this below does NOT create an id you can use to
    reference the component instance:
    myEditor.id = "Answer"+i.toString();
    If you want to stick with manual addChild, you will need to
    keep a reference to the created components yourself. One effective
    way is to use an associative array, like a hash table. This is just
    a dynamic "Object".
    private var _myEditors:Object = new Object();
    myEditor = new RichTextEditor();
    myEditor.text = "Answer question here";
    _myEditors["Answer"+i] = myEditor; //toString is not
    necessary here
    vbLabBk.addChild(myEditor);
    Then you can later access those instances like this:
    var myEditor:RichTextEditor = _myEditors["Answer"+i];
    But consider Repeater. It does this and much more for you,
    such as destroying unwanted child components when the data changes.
    Tracy

Maybe you are looking for

  • Stale data error while trying to update row.

    Hi, I have a search page, from where i would like to select a particular record and update some of its attributes. But when i try to commit the transaction, i get the error below: Unable to perform transaction on the record. \nCause: The record conta

  • Speeds vary widely

    I have a MacBook Pro, iPad, iPhone, Apple TV, etc. and I live in North VA.  What I have been noticing over the last two months is a wide variance in up and down load speeds on all of these devices.  Today over the last 2 hours I have seen 3.4/12.3, 7

  • Date format conversion from yyyy-mm-dd to mm-dd-yyyy

    Hello Experts, In my application one of the context element wdContext.currentContextElement().getEmployee_employmentDate() returns the value as 1978-06-15. Can any one suggest me how to convert this date into          06-15-1978 in webdynpro java. Th

  • Jdbc and fire walls (reverse proxy)

    Can jdbc use reverse proxy to get through the corporate firewall? This is to provide access to other companies outside the corporate firewall. How? Are there any other secure ways of providing jdbc thru the firewall?

  • Bat file for hide System Drive

    I want to create and Bat file that will invisible my system drive. Kindly help how can i create this batch file. In my system having C, D,E,F,G, I drive and i want all drive hide. Nirmal Singh IT Administrator