Can extend us like DisplayObject?

I want to update a textfield with a function at a later date and would normally extend the public as DisplayObject class so I can refer to the textfield object:

public function setTitle():void {
   var so:SharedObject = SharedObject.getLocal("myApp");
   this.root.lblTitle.text = so.data['foo'];
}

Public class can only be extended like Sprite and if so how can I update the textfield of the function?

Well, if you create a local variable inside a function (probably the manufacturer, if this is the one that has the same name as the class itself) and local variables are not visible outside the function.

Instead, outside this function, define lblTitle as a good (I would call it a "instance variable" maybe, but I'm not clear on the terminology of the OO ActionScript quite yet).  Which would look like this:

public var lblTitle:TextField;

public function MyMainClass {
    ...
    lblTitle = new TextField();    lblTitle.text = "This is the Title";
    addChild(lblTitle);
    ...

Now anything can access foo.lblTitle provided that it contains a reference to your main class in the variable 'foo '.  How you do that is another story...

Who help me?

Tags: BlackBerry Developers

Similar Questions

  • How you can extend the SX80 SpeakerTrak 60 codec?

    Hello

    How you can extend the SX80 SpeakerTrak 60 codec? I want to rack mount the codec but saw nowhere a how far the codec can be the 60 SpeakerTrak. Especially concerned about the HDMI cables on both cameras.

    Thanks in advance.

    Mark

    If you use only cables HDMI, we managed to stretch the cameras at 15 metres with a quality cable.  If you use HDMI--> externders Twisted Pair, you can get much larger distances (and different Extenders give you differring distances, but are usually around the mark of 50 m for full HD).  We do it with success in a number of our rooms.

    Of course, as is controlled by Ethernet, the usual limit of 100 meters applies to that as a Cat6 cable length "' copper pure, but you can go away with fiber or with additional active equipment if you really must.

    Wayne
    --
    Remember the frequency responses and mark your question as answered as appropriate.

  • Can extend us the document class with a custom flash as3 class?

    Hello
    Can extend us the document class with a custom flash as3 class?

    Thank you
    Mallek

    Try:

    amishap67776642 wrote:

    package

    {

    public class accessories extends ScreenBase

    {

    public void accessories()

    {

    Super();

    addEventListener (Event.ADDED_TO_STAGE, onAddedTostageHandler)

    }

    private void onAddedTostageHandler(e:Event):void

    {

    Super.init ();

    }

    }

    }

    / * class ScreenBase * /.

    package

    {

    SerializableAttribute public class extends MovieClip ScreenBase

    {

    public void ScreenBase)

    {

    Super();

    }

    public void init (): void

    {

    MovieClip (that).tutorialBox_mc.visible = true;

    }

    }

    }

  • I have sent and follow my pdf to a recipient, now I can't change like my pdf, it is said that I am limited to do so, how can I solve this problem?

    I have sent and follow my pdf to a recipient, now I can't change like my pdf, it is said that I am limited to do so, how can I solve this problem? When I go to my saved PDF file and try to edit it, I get a message that says that this feature of document in Adobe Acrobat Reader ms document has been changed since its creation and use out functionality is no longer available. For the original version of this document, please contact the author. I am the author, and I can't edit my document what should I do?

    Hi scottk48497237,

    You cannot modify PDF documents by using player application.

    You will need Acrobat free trial download Adobe Acrobat application | Acrobat Pro DC to edit files PDF using Acrobat | Edit PDF files.

    Kind regards
    Nicos

  • How can I download adobe on my desk? I bought adobe photoshop, but where can I I like to download the

    How can I download adobe on my desk? I bought adobe photoshop, but where can I I like to download the

    Have you tried to download link below?

    Download Photoshop Elements | 10, 12, 14, 11, 13

  • Is there a way I can extend the tool icons in the Toolbox?

    Is there a way I can extend the tool icons in the Toolbox?

    Hi kayr,.

    Greetings.

    Not that I can think outside the descent down the resolution of your screen.

    Concerning

    Rohit

  • Dear CC Team, after cancellation of REVEL I perhaps need more space in the cloud (which was unlimited with REVEL upt to now). But I don't need tools more, PS and LR are perfectly sufficient for me. Please advice how I can extend my cloud storage? !! Kund

    Team dear CC,

    After cancellation of REVEL, I perhaps need more space in the cloud (which was unlimited with REVEL upt to now). But I don't need tools more, PS and LR are perfectly sufficient for me. Please advice how I can extend my cloud storage? !!

    Kind regards

    Henning Waschk

    Plan photography special includes 2 gigabytes of storage cloud

    Comprehensive plan includes 20Gig of storage cloud

    Team plan includes 100Gig of cloud storage

  • Can extend us the years of no.of to an existing application.

    Peer Hai,

    (1) I use Hyperion11.1.1.3 can extend us the years of no.of to an existing application.

    (2) I know use the Standard calendar, but how can we use custom calendar and the calendar is set manually, what are their purpose.

    How can I create a periodic weekly application. I'm new to HFM can someone explain to me.

    Sorry, let me clarify start menu and file locations for you.

    On the Windows computer with HFM App Server installed:

    Start--> all programs--> Oracle EPM system--> financial management--> Utilities--> year upgrade

    The location of the file should be:

    \EPMSystem11R1\products\FinancialManagement\Utilities\FMChangeNumberOfYearsForApp.exe (or FMChangeNumberOfYearsForApp_x64.exe)

    example: C:\Oracle\Middleware\EPMSystem11R1\products\FinancialManagement\Utilities\FMChangeNumberOfYearsForApp_x64.exe

    If she is not there, maybe the version your have does not include it again? (I have 11.1.2.1) If she is not there, you can:

    a.) log in to the oracle support (support.oracle.com), then find the item of data by another user in this thread
    (b) download the components for HFM App Server to a version that has the utility (i.e. 11.1.2.1) and extract compressed files. [Probably not recommended unless you are comfortable dealing with files from archive, etc.]

  • Is it possible that I can add tracking (like google analytic) of a simple editing... application code?

    Is it possible that I can add tracking (like google analytic) of a simple editing DPS... application code? If this is not the case, the apple app store offers all analytical for a simple editing DPS after its publication application it?

    Take a look at a previous thread on this topic: http://forums.adobe.com/message/5099353

  • Time capsules can extend a Netgear network

    A time Capsule can be used to expand a network of Wi - Fi Nighthawk Netgear router X 6 AC3200 Tri - Band (R8000)?

    The best answer we could provide... as you do not specify if you intend to "extend" the Netgear using Ethernet or Wi - Fi connection... would be Yes and no.

    Yes, if you connect the Capsule on the Netgear router using a wired Ethernet cable connection, permanently.

    No, if you think you have the time Capsule only connect to the Netgear wireless network.

  • E3000 and E4200 can extend wireless but when snafu disabled DHCP

    Hello

    None of the many posts on the extension of the wireless here really solve my problem (I'm not a tech superstar so I need a little handholding).

    Currently use E3000 as my router.  My House is a wonderfully old brick structure with awesome cast thick walls and cool hardwood floors (Yes, I already drilled twice to drop the Ethernet wiring and run it in my basement to the back of the House to come and connect to a switch where is my office to win 8)  Excellent results.

    Now, I'm going to die just to run the wiring to the front of the House under the said floor so that I can bring it and attach a 2nd router. My sister-in-law gave me (just gave me, you the spirit wouldn't let me pay him!) sound E4200 that she can no longer use a reason any.

    Goal: Best performance for a front of House wireless (my bedroom upstairs and the porch on the main floor, where routers are / will be.)  With the additional router in front of the House I will be finally in a smart cable TV.  I must just have better wireless at the front of the House b/c I do a lot of work here lately.* *.

    1. what router do you recommend using as the main router?

    I tried to configure the e4200 (since the 3000 is already) and following the directions on all workstations. I updated the firmware, so the two routers are underway.  My understanding is that I need to put the 4200 (Router 2 "") in Bridge Mode and

    set on the same channel current wireless router 1 (3000).

    2 should I put the 2.4 and 5 Ghz on separate SSID Router 1?  If so, what do the SSID Router 2?

    3. If Router 2 has a separate SSID or should it be identical to my current network, that is, the Router 1?

    4. I understand that Router 2, you must disable DHCP because Router 1 is that work. BUT whenever I do this, in the process configuration, I can't get connected turn it on to Router 2.  I changed the IP address.   Router 1 is 192.168.1.1 with assignments up to 192.168.1.149.   So I do 2 router 192.168.1.2.   Is this good? I do this, then it restarts, and I connect in 192.168.1.2 "page not found".

    5. the way I go about it is:

    -My Office 8 win (I call him Victor, FYI) is connected via a cable (switch) to 1 (E3000) so LAN router and I use to see what my settings are there (and here I'm typing this post).

    -My Win 7 laptop (Richard, FYI), this is where I work on Router 2 (the E4200).  I have cut all connection without wire, then PC cable to Router 2 and connect to Router 2 and from there.

    That's what I should do? ***

    6. am I correct that Router 2 must be in Bridge mode?  Whatever it is, please teach me - it means I'm setting up to repeat the signal or as a little separate LAN that is connected?  Which is better, in your view, given my objectives, above?  When I'm on 'the extension', it would be ideal to be able to go to the first/main network and send things my printer / PC is there, but I'm willing to put up with less of this in order to get the good signal in my areas of work from the home front.

    Note also that the family and I move and use several devices, so it would be fantastic if me and her husband and son and daughter (think: several tablets, phones, computers laptops, desktops, printers, scanners, blah blah blah in this House - I know, I know a lot more about networks I've always wanted to know!) can just get the signal stronger as we move.

    Thanks for any help you can give and of course I would knew what key information I can be left out. I'm really dying to get up and running.

    Position outside to clear my head, but will be back.

    Thanks again.

    Bonnie in PA

    I recommend using the E4200 as your main router.

    Cascade the E3000 with your LAN E4200 to LAN.

    Cascading 'LAN to LAN' instruction in the link below:

    In waterfall or connect a Linksys router to another router

    Thing to keep in mind when cascading a router:

    1. Change the IP address of the secondary router to something like 192.168.1.254 so its on the same network, but is not in conflict with the main router
    2. Make sure that the DHCP service is disabled on the secondary router
    3. Make sure that nothing is ever connected to the Internet port on the secondary router
    4. Have the different SSID of 2.4 Ghz and 5 GHz
    5. Duplicate configuration on routers wireless, but make them broadcast on different channels or put the chain wireless on 'Auto '.
  • How can extend the existing drive

    I'm using VMware Workstation 7 product in which a virtual machine is running WindowsXP.Its D drive was full. Now, I need to extend it.

    You can help...

    If you do not have enough disk space on the host computer, this should be no problem. Shut down the virtual computer, open the settings of a virtual machine, click the utilities button in the properties of the virtual hard disk. You will find the possibility to expand the virtual disk.

    Assuming that the current virtual disk is sparse (more on request) provided - which is the value by default - you must temporarily on the amount of free disk space as long as the current size of the vmdk.

    After having developed the virtual disk, you can use "diskpart" to expand the disk in the guest OS (assuming that it's the last partition).

    André

  • Within edge can extend an image from the Center on?

    Ok. I have this picture fuzzy, placed on the edge and I want that it stretch it on the screen.

    I have it. Very easy. However, it develops or extends from the left or right and not from the center outwards.

    I want the image to animate as indicated by these < - image - > arrows (from the Center out).

    I would like that to happen. Any ideas?

    Thank you

    mast

    Here's a sample:

    https://app.box.com/s/83573ytkjkttdwv7zi8b

  • Can I use 'like' operator in the column virtaul

    Hello

    can I use as an operator in the column virtaul as below?
    or how can I use it?

    ----------------------------------------------------------------------------------------------------------------
    create table tab1
    (
    C_N_NUMBER VARCHAR2 (25).
    ACE RESET_STS (CASE C_N_NUMBER
    WHEN as 'RESET %' THEN 'NO RESET' OTHER END NULL) VIRTUAL
    ) ;

    ------------------------------------------------------------------------------------
    Rgds,
    PC

    Hello
    you, the correct syntax is

    create table tab1
    (
    C_N_NUMBER VARCHAR2 (25).
    ACE RESET_STS (CASE
    WHEN C_N_NUMBER like 'RESET %' THEN 'NO RESET' OTHER END NULL) VIRTUAL
    ) ;

    Jirka

  • Firefox OS can play flash (like flashplayer movies?) content

    Hello.

    My question is simple: I watch shows a lot using flash player. Times on youtube and other sites (putlocker and so forth)-firefox os can run Flash Player? I can't seem to run everything using the Simulator, and I really want to buy the operating system for development purposes.
    Second question also: firefox os connect to adhoc network hosted on my laptop?

    Thanks in advance for answers!

    Currently, Firefox OS does not support flash player. Connect to a network Ad - Hoc may vary. Generally Firefox OS devices will be able to connect to the network can same Android devices.

Maybe you are looking for